00001
00006 /* --------------------------------------------------------------
00007 Copyright (C) 2001 LifeLine Networks BV <soap2corba@lifeline.nl>
00008
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either
00012 version 2 of the License, or (at your option) any later
00013 version.
00014
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018 GNU General Public License for more details.
00019
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023 -------------------------------------------------------------- */
00025 module SOAPBridge {
00026
00031 interface ContextManager {
00032
00038 exception InvalidTimeout {
00040 unsigned short minimumTimeout;
00042 unsigned short maximumTimeout;
00044 unsigned short requestedTimeout;
00045 };
00046
00048 exception ContextKeyNotFound {
00050 string requestedContextKey;
00051 };
00052
00054 struct SOAPContext {
00056 string contextKey;
00058 unsigned short initialTimeout;
00060 unsigned short timeoutRemaining;
00062 unsigned short storedObjectReferenceCount;
00064 string userData;
00065 };
00066
00073 SOAPContext allocateContext (
00074 in unsigned short timeoutSeconds,
00075 in string userData)
00076 raises (
00077 InvalidTimeout );
00078
00086 SOAPContext queryContextInfo (
00087 in string contextKey)
00088 raises (
00089 ContextKeyNotFound );
00090
00096 void freeContext (
00097 in string contextKey)
00098 raises (
00099 ContextKeyNotFound );
00100
00107 void setContextUserData (
00108 in string contextKey,
00109 in string userData)
00110 raises (
00111 ContextKeyNotFound );
00112
00120 void setContextTimeout (
00121 in string contextKey,
00122 in unsigned short timeoutSeconds)
00123 raises (
00124 ContextKeyNotFound,
00125 InvalidTimeout );
00126 }; /* interface ContextManager */
00127
00132 interface SOAPCall {
00141 exception InvocationFailed {
00143 string reason;
00144 };
00145
00154 typedef sequence<octet> XMLData;
00155
00166 XMLData invokeAction (
00167 in string action,
00168 in XMLData data)
00169 raises (
00170 InvocationFailed );
00171
00182 XMLData invokeInstance (
00183 in Object objRef,
00184 in string action,
00185 in XMLData data)
00186 raises (
00187 InvocationFailed );
00188
00192 typedef sequence<string> SOAPActionSeq;
00193
00198 SOAPActionSeq listActions ();
00199
00207 boolean fetchSample (
00208 in string action,
00209 out XMLData request,
00210 out XMLData respons);
00211
00212 };
00213 };
00214
This documentation is part of the "SOAP to CORBA bridge" project