/* stdsoap2.h 2.2.3d The contents of this file are subject to the gSOAP Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.cs.fsu.edu/~engelen/soaplicense.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. The Initial Developer of the Original Code is Robert A. van Engelen. Copyright (C) 2000-2003 Robert A. van Engelen, Genivia inc. All Rights Reserved. */ #ifdef WITH_SOAPDEFS_H #include "soapdefs.h" /* include user-defined definitions */ #endif #ifndef _THREAD_SAFE #define _THREAD_SAFE #endif #ifndef _REENTRANT #define _REENTRANT #endif #ifndef SOAP_FMAC1 #define SOAP_FMAC1 #endif #ifndef SOAP_FMAC2 #define SOAP_FMAC2 #endif #ifndef SOAP_CMAC #define SOAP_CMAC #endif #ifndef SOAP_NMAC #define SOAP_NMAC #endif #ifndef SOAP_SOURCE_STAMP #define SOAP_SOURCE_STAMP(str) #endif #ifdef UNDER_CE #ifndef WIN32 #define WIN32 #endif #endif #ifdef __BORLANDC__ #ifdef __WIN32__ #ifndef WIN32 #define WIN32 #endif #endif #endif #ifdef __CYGWIN__ #ifndef CYGWIN #define CYGWIN #endif #endif #ifndef STDSOAP_H #define STDSOAP_H #ifdef HAVE_CONFIG_H #include "config.h" #else #if defined(UNDER_CE) #define SOAP_LONG_FORMAT "%I64d" #define SOAP_ULONG_FORMAT "%I64u" #define SOAP_BUFLEN 4096 /* use small buffer on small devices */ #elif defined(WIN32) #define SOAP_LONG_FORMAT "%I64d" #define SOAP_ULONG_FORMAT "%I64u" #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #elif defined(CYGWIN) #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #elif defined(__APPLE__) #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #define HAVE_TIMEGM #elif defined(_AIXVERSION_431) #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #elif defined(HP_UX) #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #elif defined(__VMS) #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #elif defined(__GLIBC__) #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #define HAVE_TIMEGM #elif defined(TRU64) #define SOAP_LONG_FORMAT "%ld" #define SOAP_ULONG_FORMAT "%lu" #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #elif defined(MAC_CARBON) #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GETHOSTBYNAME_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #else #define HAVE_SYS_TIMEB_H #define HAVE_FTIME #define HAVE_RAND_R #define HAVE_GETHOSTBYNAME_R #define HAVE_GMTIME_R #define HAVE_LOCALTIME_R #endif #endif #ifndef SOAP_LONG_FORMAT #define SOAP_LONG_FORMAT "%lld" /* printf format for 64 bit ints */ #endif #ifndef SOAP_ULONG_FORMAT #define SOAP_ULONG_FORMAT "%llu" /* printf format for unsigned 64 bit ints */ #endif #include #include #include #include #include #ifndef UNDER_CE #include #ifndef MAC_CARBON #include #endif #ifdef HAVE_SYS_TIMEB_H #include /* for ftime() */ #endif #include #endif #ifdef OPENSERVER #include #include #include extern int h_errno; #endif #ifndef MAC_CARBON #ifndef WIN32 #include #include /* AIX */ #ifdef SUN_OS #include /* SUN */ #endif #ifndef CYGWIN #include /* AIX */ #endif #include #include /* AIX */ #include /* for TCP_NODELAY */ #include #endif #endif #ifdef WITH_FASTCGI #include #endif #ifdef WITH_OPENSSL #include #include #include #ifndef ALLOW_OLD_VERSIONS #if (OPENSSL_VERSION_NUMBER < 0x00905100L) #error "Must use OpenSSL 0.9.6 or later" #endif #endif #endif #ifndef _DEBUG_SOAP #define WITH_GZIP // eMule has to *ensure* that the "gzip compression" is compiled. Do NOT change this!! #endif #ifdef WITH_GZIP #ifndef WITH_ZLIB #define WITH_ZLIB #endif #endif #ifdef WITH_ZLIB #include "zlib/zlib.h" #endif #include /* for isnan() */ /* #define DEBUG */ /* Uncomment to debug sending (in file SENT.log) receiving (in file RECV.log) and messages (in file TEST.log) */ #ifdef __cplusplus extern "C" { #endif #define soap_get0(soap) (((soap)->bufidx>=(soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx]) #define soap_get1(soap) (((soap)->bufidx>=(soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx++]) #define soap_revget1(soap) ((soap)->bufidx--) #define soap_unget(soap, c) ((soap)->ahead = c) #define soap_destroy(soap) /* dummy macro: redefined in soapH.h when classes are used */ #define soap_register_plugin(soap, plugin) soap_register_plugin_arg(soap, plugin, NULL) #define soap_imode(soap, n) ((soap)->mode = (soap)->imode = (n)) #define soap_set_imode(soap, n) ((soap)->mode = (soap)->imode |= (n)) #define soap_clr_imode(soap, n) ((soap)->mode = (soap)->imode &= ~(n)) #define soap_omode(soap, n) ((soap)->mode = (soap)->omode = (n)) #define soap_set_omode(soap, n) ((soap)->mode = (soap)->omode |= (n)) #define soap_clr_omode(soap, n) ((soap)->mode = (soap)->omode &= ~(n)) #ifdef WIN32 #ifndef UNDER_CE #include #include #endif #include #else #ifndef MAC_CARBON #include #include #endif #include #include #define closesocket(n) close(n) #endif #if (!defined(_MATH_H) && !defined(_MATH_INCLUDED)) #ifndef isnan #define isnan(_) (0) #endif #endif extern struct soap_double_nan { unsigned int n1, n2; } soap_double_nan; #ifndef WIN32 #define LONG64 long long #define ULONG64 unsigned LONG64 #else #ifdef UNDER_CE #define LONG64 __int64 #define ULONG64 unsigned LONG64 #endif #endif #ifdef __BORLANDC__ #ifdef SYSMAC_H #define LONG64 ::LONG64 #define ULONG64 ::ULONG64 #endif #endif #ifdef WIN32 #define SOAP_EINTR WSAEINTR #define SOAP_EAGAIN WSAEWOULDBLOCK #define SOAP_EWOULDBLOCK WSAEWOULDBLOCK #define SOAP_EINPROGRESS WSAEINPROGRESS #else #define SOAP_EINTR EINTR #define SOAP_EAGAIN EAGAIN #define SOAP_EWOULDBLOCK EWOULDBLOCK #define SOAP_EINPROGRESS EINPROGRESS #endif #ifdef WIN32 #ifdef UNDER_CE #define soap_errno GetLastError() #define soap_socket_errno GetLastError() #else #define soap_errno GetLastError() #define soap_socket_errno WSAGetLastError() #endif #else #define soap_errno errno #define soap_socket_errno errno #endif #ifndef SOAP_BUFLEN #define SOAP_BUFLEN (32*1024) /* buffer length for socket packets, also used by gethostbyname_r so don't make this too small */ #endif #ifndef SOAP_PTRHASH #define SOAP_PTRHASH 1024 /* size of pointer analysis hash table (must be power of 2) */ #endif #ifndef SOAP_IDHASH #define SOAP_IDHASH 16 /* size of hash table for receiving id/href's */ #endif #ifndef SOAP_BLKLEN #define SOAP_BLKLEN 256 /* size of blocks to collect long strings and XML attributes */ #endif #ifndef SOAP_TAGLEN #define SOAP_TAGLEN 256 /* maximum length of XML tag/attribute name + 1 */ #endif #ifndef SOAP_HDRLEN #define SOAP_HDRLEN 8192 /* maximum length of HTTP header line (must be >4096 to read cookies) */ #endif #ifndef SOAP_MAXDIMS #define SOAP_MAXDIMS 16 /* maximum array dimensions (array nestings) must be less than 64 to protect soap->tmpbuf */ #endif #ifndef SOAP_MAXLOGS #define SOAP_MAXLOGS 3 /* max number of debug logs per struct soap environment */ #define SOAP_INDEX_RECV 0 #define SOAP_INDEX_SENT 1 #define SOAP_INDEX_TEST 2 #endif #ifndef SOAP_MAXKEEPALIVE #define SOAP_MAXKEEPALIVE 100 /* max iterations to keep server connection alive */ #endif #ifndef FLT_NAN #if (defined(_MATH_H) || defined(_MATH_INCLUDED)) #define FLT_NAN (*(float*)&soap_double_nan) #else #define FLT_NAN (0.0) #endif #endif #ifndef FLT_PINFTY #ifdef FLT_MAX #define FLT_PINFTY FLT_MAX #else #ifdef HUGE_VAL #define FLT_PINFTY (float)HUGE_VAL #else #ifdef FLOAT_MAX #define FLT_PINFTY FLOAT_MAX #else #define FLT_PINFTY (3.40282347e+38) #endif #endif #endif #endif #ifndef FLT_NINFTY #define FLT_NINFTY (-FLT_PINFTY) #endif #ifndef DBL_NAN #if (defined(_MATH_H) || defined(_MATH_INCLUDED)) #define DBL_NAN (*(double*)&soap_double_nan) #else #define DBL_NAN (0.0) #endif #endif #ifndef DBL_PINFTY #ifdef DBL_MAX #define DBL_PINFTY DBL_MAX #else #ifdef HUGE_VAL #define DBL_PINFTY (double)HUGE_VAL #else #ifdef DOUBLE_MAX #define DBL_PINFTY DOUBLE_MAX #else #define DBL_PINFTY (1.7976931348623157e+308) #endif #endif #endif #endif #ifndef DBL_NINFTY #define DBL_NINFTY (-DBL_PINFTY) #endif /* gSOAP error codes */ #define SOAP_EOF EOF #define SOAP_OK 0 #define SOAP_CLI_FAULT 1 #define SOAP_SVR_FAULT 2 #define SOAP_TAG_MISMATCH 3 #define SOAP_TYPE_MISMATCH 4 #define SOAP_SYNTAX_ERROR 5 #define SOAP_NO_TAG 6 #define SOAP_IOB 7 #define SOAP_MUSTUNDERSTAND 8 #define SOAP_NAMESPACE 9 #define SOAP_OBJ_MISMATCH 10 #define SOAP_FATAL_ERROR 11 #define SOAP_FAULT 12 #define SOAP_NO_METHOD 13 #define SOAP_GET_METHOD 14 #define SOAP_EOM 15 #define SOAP_NULL 16 #define SOAP_MULTI_ID 17 #define SOAP_MISSING_ID 18 #define SOAP_HREF 19 #define SOAP_TCP_ERROR 20 #define SOAP_HTTP_ERROR 21 #define SOAP_SSL_ERROR 22 #define SOAP_ZLIB_ERROR 23 #define SOAP_DIME_ERROR 24 #define SOAP_EOD 25 #define SOAP_VERSIONMISMATCH 26 #define SOAP_DIME_MISMATCH 27 #define SOAP_PLUGIN_ERROR 28 /* gSOAP HTTP response status codes */ #define SOAP_STOP 100 /* No HTTP response */ #define SOAP_HTML 101 /* HTML response */ #define SOAP_FILE 102 /* Custom file-based response */ /* gSOAP HTTP request status codes */ #define SOAP_POST 200 #define SOAP_GET 201 /* gSOAP DIME */ #define SOAP_DIME_CF 0x01 #define SOAP_DIME_ME 0x02 #define SOAP_DIME_MB 0x04 #define SOAP_DIME_VERSION 0x08 /* DIME version 1 */ #define SOAP_DIME_MEDIA 0x10 #define SOAP_DIME_ABSURI 0x20 /* gSOAP ZLIB */ #define SOAP_ZLIB_NONE 0x00 #define SOAP_ZLIB_DEFLATE 0x01 #define SOAP_ZLIB_GZIP 0x02 /* gSOAP transport, connection, and content encoding modes */ #define SOAP_IO 0x0003 #define SOAP_IO_FLUSH 0x0000 /* flush output immediately, no buffering */ #define SOAP_IO_BUFFER 0x0001 /* buffer output in packets of size SOAP_BUFLEN */ #define SOAP_IO_STORE 0x0002 /* store entire output to determine length for transport */ #define SOAP_IO_CHUNK 0x0003 /* use HTTP chunked transfer AND buffer packets */ #define SOAP_IO_LENGTH 0x0004 #define SOAP_IO_KEEPALIVE 0x0008 #define SOAP_ENC_XML 0x0010 /* plain XML encoding, no HTTP header */ #define SOAP_ENC_DIME 0x0020 #define SOAP_ENC_ZLIB 0x0040 #define SOAP_ENC_SSL 0x0080 #define SOAP_XML_STRICT 0x0100 #define SOAP_XML_TREE 0x0200 #define SOAP_XML_GRAPH 0x0400 #define SOAP_XML_NIL 0x0800 #define SOAP_C_NOIOB 0x1000 #define SOAP_C_UTFSTRING 0x2000 #define SOAP_IO_DEFAULT SOAP_IO_FLUSH /* DEBUG macros */ #ifndef UNDER_CE #ifdef DEBUG #ifdef _DEBUG_SOAP #ifndef SOAP_DEBUG #define SOAP_DEBUG #endif #endif #endif #endif #ifdef SOAP_DEBUG #ifndef SOAP_MESSAGE #define SOAP_MESSAGE fprintf #endif #ifndef DBGLOG #define DBGLOG(DBGFILE, CMD) \ { if (soap)\ { if (!soap->fdebug[SOAP_INDEX_##DBGFILE])\ soap_open_logfile(soap, SOAP_INDEX_##DBGFILE);\ if (soap->fdebug[SOAP_INDEX_##DBGFILE])\ { FILE *fdebug = soap->fdebug[SOAP_INDEX_##DBGFILE];\ CMD;\ fflush(fdebug);\ }\ }\ } #endif #ifndef DBGMSG #define DBGMSG(DBGFILE, MSG, LEN) \ { if (soap)\ { if (!soap->fdebug[SOAP_INDEX_##DBGFILE])\ soap_open_logfile(soap, SOAP_INDEX_##DBGFILE);\ if (soap->fdebug[SOAP_INDEX_##DBGFILE])\ { FILE *fdebug = soap->fdebug[SOAP_INDEX_##DBGFILE];\ unsigned int i;\ for (i = 0; i < (unsigned int)(LEN); i++) fputc((MSG)[i], fdebug);\ fflush(fdebug);\ }\ }\ } #endif #else #define DBGLOG(DBGFILE, CMD) #define DBGMSG(DBGFILE, MSG, LEN) #endif typedef long wchar; /* for compatibility */ struct Namespace { const char *id; const char *ns; const char *in; char *out; }; struct soap_nlist { struct soap_nlist *next; unsigned int level; short index; /* corresponding entry in ns mapping table */ char *ns; /* only set when parsed ns URI is not in the ns mapping table */ char id[1]; /* the actual string value overflows into allocated region below this struct */ }; struct soap_blist { struct soap_blist *next; char *ptr; size_t size; }; struct soap_ilist { struct soap_ilist *next; int type; size_t size; void *link; void *copy; void *ptr; int level; char id[1]; /* the actual string value overflows into allocated region below this struct */ }; struct soap_array { void *__ptr; int __size; }; struct soap_plist { struct soap_plist *next; const void *ptr; const struct soap_array *array; int type; int id; char mark1; char mark2; }; struct soap_clist { struct soap_clist *next; void *ptr; int type; int size; }; struct soap_attribute { struct soap_attribute *next; short visible; const char *name; char *value; size_t size; }; struct soap_cookie { struct soap_cookie *next; char *name; char *value; char *domain; char *path; long expire; /* client-side: local time to expire; server-side: seconds to expire */ unsigned int version; short secure; short session; /* server-side */ short env; /* server-side: got cookie from client */ short modified; /* server-side: client cookie was modified */ }; struct soap { short version; /* 1 = SOAP1.1 and 2 = SOAP1.2 (set automatically from namespace URI in nsmap table) */ short imode; short omode; short mode; short copy; /* 1 = copy of another soap struct */ const char *float_format; /* points to user-definable format string for floats (<1024 chars) */ const char *double_format; /* points to user-definable format string for doubles (<1024 chars) */ const char *dime_id_format; /* points to user-definable format string for integer DIME id ( 0, gives socket recv timeout in seconds, < 0 in usec */ int send_timeout; /* when > 0, gives socket send timeout in seconds, < 0 in usec */ int connect_timeout; /* when > 0, gives socket connect() timeout in seconds, < 0 in usec */ int accept_timeout; /* when > 0, gives socket accept() timeout in seconds, < 0 in usec */ int socket_flags; /* socket recv() and send() flags, e.g. set to MSG_NOSIGNAL to disable sigpipe */ int connect_flags; /* connect() SOL_SOCKET sockopt flags, e.g. set to SO_DEBUG to debug socket */ int bind_flags; /* bind() SOL_SOCKET sockopt flags, e.g. set to SO_REUSEADDR to enable reuse */ int accept_flags; /* accept() SOL_SOCKET sockopt flags */ struct Namespace *namespaces; /* Pointer to global namespace mapping table */ struct Namespace *local_namespaces; /* Local namespace mapping table */ struct soap_nlist *nlist; /* namespace stack */ struct soap_blist *blist; /* block allocation stack */ struct soap_clist *clist; /* class instance allocation list */ void *alist; /* memory allocation list */ struct soap_ilist *iht[SOAP_IDHASH]; struct soap_plist *pht[SOAP_PTRHASH]; struct SOAP_ENV__Header *header; struct SOAP_ENV__Fault *fault; void *user; /* to pass user-defined data */ struct soap_plugin *plugins; /* linked list of plug-in data */ char *userid; /* HTTP Basic authorization userid */ char *passwd; /* HTTP Basic authorization passwd */ int (*fpost)(struct soap*, const char*, const char*, int, const char*, const char*, size_t); int (*fget)(struct soap*, const char*, const char*, const char*, const char*, size_t); int (*fposthdr)(struct soap*, const char*, const char*); int (*fresponse)(struct soap*, int, size_t); int (*fparse)(struct soap*); int (*fparsehdr)(struct soap*, const char*, const char*); int (*fopen)(struct soap*, const char*, const char*, int); int (*faccept)(struct soap*, int, struct sockaddr*, int *n); int (*fclose)(struct soap*); int (*fsend)(struct soap*, const char*, size_t); size_t (*frecv)(struct soap*, char*, size_t); int (*fignore)(struct soap*, const char*); void *(*fplugin)(struct soap*, const char*); void *(*fdimereadopen)(struct soap*, void*, const char*, const char*, const char*); void *(*fdimewriteopen)(struct soap*, const char*, const char*, const char*); void (*fdimereadclose)(struct soap*, void*); void (*fdimewriteclose)(struct soap*, void*); size_t (*fdimeread)(struct soap*, void*, char*, size_t); int (*fdimewrite)(struct soap*, void*, const char*, size_t); int master; int socket; #ifndef UNDER_CE int sendfd; int recvfd; #else FILE *sendfd; FILE *recvfd; char errorstr[256]; wchar_t werrorstr[256]; #endif size_t bufidx; size_t buflen; char buf[SOAP_BUFLEN];/* send and receive buffer */ wchar ahead; short cdata; short body; char msgbuf[1024]; /* output buffer for (error) messages >=1024 bytes */ char tmpbuf[1024]; /* output buffer for HTTP headers and combining XML element name and attributes >=1024 bytes */ size_t count; /* message length counter */ size_t length; /* message length as set by HTTP header */ unsigned int level; char tag[SOAP_TAGLEN]; char id[SOAP_TAGLEN]; char href[SOAP_TAGLEN]; char type[SOAP_TAGLEN]; char arrayType[SOAP_TAGLEN]; char arraySize[SOAP_TAGLEN]; char arrayOffset[SOAP_TAGLEN]; short other; short root; short position; int positions[SOAP_MAXDIMS]; int mustUnderstand; struct soap_attribute *attributes; /* attribute list */ short null; short ns; short is_in_header; short alloced; short peeked; size_t dime_count; int dime_flags; size_t dime_size; size_t dime_chunksize; size_t dime_buflen; char *dime_ptr; char *dime_id; char *dime_type; char *dime_options; size_t chunksize; size_t chunkbuflen; char path[SOAP_TAGLEN]; char host[SOAP_TAGLEN]; char endpoint[SOAP_TAGLEN]; char *action; int port; short keep_alive; const char *proxy_host; /* Proxy Server host name */ int proxy_port; /* Proxy Server port (default = 8080) */ const char *proxy_userid; /* Proxy Authorization user name */ const char *proxy_passwd; /* Proxy Authorization password */ int status; /* -1 when request, else error code to be returned by server */ int error; int errmode; int errnum; int idnum; unsigned long ip; const char *logfile[SOAP_MAXLOGS]; FILE *fdebug[SOAP_MAXLOGS]; struct soap_cookie *cookies; const char *cookie_domain; const char *cookie_path; int cookie_max; short dot_net_bug; #ifdef WITH_OPENSSL BIO *bio; SSL *ssl; short require_server_auth; short rsa; /* when set, use RSA instead of DH */ const char *keyfile; const char *password; const char *dhfile; const char *cafile; const char *randfile; #endif #ifdef WITH_ZLIB short zlib_in; /* SOAP_ZLIB_NONE, SOAP_ZLIB_DEFLATE or SOAP_ZLIB_GZIP */ short zlib_out; /* SOAP_ZLIB_NONE, SOAP_ZLIB_DEFLATE or SOAP_ZLIB_GZIP */ z_stream d_stream; /* decompression stream */ char z_buf[SOAP_BUFLEN]; /* buffer */ size_t z_buflen; unsigned short z_level; /* compression level to be used (0=none, 1=fast to 9=best) */ unsigned long z_crc; /* internal gzip crc */ float z_ratio_in; /* detected compression ratio compressed_length/length of inbound message */ float z_ratio_out; /* detected compression ratio compressed_length/length of outbound message */ #endif }; struct soap_plugin { struct soap_plugin *next; const char *id; void *data; int (*fcopy)(struct soap *soap, struct soap_plugin *dst, struct soap_plugin *src); void (*fdelete)(struct soap *soap, struct soap_plugin *p); /* should delete fields of plugin only and not free(p) */ }; #ifndef WITH_NONAMESPACES extern struct Namespace namespaces[]; #endif SOAP_FMAC1 int SOAP_FMAC2 soap_poll(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_connect(struct soap*, const char*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_bind(struct soap*, const char*, int, int); SOAP_FMAC1 int SOAP_FMAC2 soap_accept(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_ssl_accept(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_fault(struct soap*); SOAP_FMAC1 const char** SOAP_FMAC2 soap_faultcode(struct soap*); SOAP_FMAC1 const char** SOAP_FMAC2 soap_faultstring(struct soap*); SOAP_FMAC1 const char** SOAP_FMAC2 soap_faultdetail(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_serializeheader(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putheader(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_getheader(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_serializefault(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putfault(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_getfault(struct soap*); #ifndef WITH_NOGLOBAL SOAP_FMAC1 int SOAP_FMAC2 soap_putindependent(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_getindependent(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putattachments(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_getattachments(struct soap*); #endif SOAP_FMAC1 void SOAP_FMAC2 soap_set_endpoint(struct soap*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_flush_raw(struct soap*, const char*, size_t); SOAP_FMAC1 int SOAP_FMAC2 soap_flush(struct soap*); SOAP_FMAC1 wchar SOAP_FMAC2 soap_get(struct soap*); SOAP_FMAC1 wchar SOAP_FMAC2 soap_getchar(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_tag_cmp(const char*, const char*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_fault(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_sender_fault(struct soap*, const char*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_receiver_fault(struct soap*, const char*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_send_raw(struct soap*, const char*, size_t); SOAP_FMAC1 int SOAP_FMAC2 soap_recv_raw(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_send(struct soap*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_recv(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_puthex(struct soap*, int); SOAP_FMAC1 int SOAP_FMAC2 soap_gethex(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_pututf8(struct soap*, wchar); SOAP_FMAC1 wchar SOAP_FMAC2 soap_getutf8(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putbase64(struct soap*, const unsigned char*, size_t); SOAP_FMAC1 unsigned char* SOAP_FMAC2 soap_getbase64(struct soap*, size_t*, int); SOAP_FMAC1 struct soap_ilist* SOAP_FMAC2 soap_lookup(struct soap*, const char*); SOAP_FMAC1 struct soap_ilist* SOAP_FMAC2 soap_enter(struct soap*, const char*); SOAP_FMAC1 void SOAP_FMAC2 soap_resolve_ptr(struct soap_ilist*); SOAP_FMAC1 int SOAP_FMAC2 soap_pointer_lookup(struct soap*, const void *p, int t, struct soap_plist**); SOAP_FMAC1 int SOAP_FMAC2 soap_array_pointer_lookup(struct soap*, const void *p, const struct soap_array *a, int n, int t, struct soap_plist**); SOAP_FMAC1 int SOAP_FMAC2 soap_pointer_lookup_id(struct soap*, void *p, int t, struct soap_plist**); SOAP_FMAC1 int SOAP_FMAC2 soap_pointer_enter(struct soap*, const void *p, int t, struct soap_plist**); SOAP_FMAC1 int SOAP_FMAC2 soap_array_pointer_enter(struct soap*, const void *p, const struct soap_array *a, int t, struct soap_plist**); SOAP_FMAC1 void SOAP_FMAC2 soap_begin_count(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_begin_send(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_end_send(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_embedded(struct soap*, const void *p, int t); SOAP_FMAC1 int SOAP_FMAC2 soap_reference(struct soap*, const void *p, int t); SOAP_FMAC1 int SOAP_FMAC2 soap_array_reference(struct soap*, const void *p, const struct soap_array *a, int n, int t); SOAP_FMAC1 int SOAP_FMAC2 soap_embedded_id(struct soap*, int id, const void *p, int t); SOAP_FMAC1 int SOAP_FMAC2 soap_is_embedded(struct soap*, struct soap_plist*); SOAP_FMAC1 int SOAP_FMAC2 soap_is_single(struct soap*, struct soap_plist*); SOAP_FMAC1 int SOAP_FMAC2 soap_is_multi(struct soap*, struct soap_plist*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_embedded(struct soap*, struct soap_plist*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_attached(struct soap*, struct soap_plist*, const char*, const char*, const char*, size_t); SOAP_FMAC1 int SOAP_FMAC2 soap_getline(struct soap*, char*, int); SOAP_FMAC1 int SOAP_FMAC2 soap_begin_recv(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_end_recv(struct soap*); SOAP_FMAC1 void* SOAP_FMAC2 soap_malloc(struct soap*, size_t); SOAP_FMAC1 void SOAP_FMAC2 soap_dealloc(struct soap*, void *); SOAP_FMAC1 void SOAP_FMAC2 soap_unlink(struct soap*, void *); SOAP_FMAC1 void SOAP_FMAC2 soap_free(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_lookup_type(struct soap*, const char *id); SOAP_FMAC1 void* SOAP_FMAC2 soap_id_lookup(struct soap*, const char *id, void **p, int t, size_t n, int k); SOAP_FMAC1 void* SOAP_FMAC2 soap_id_forward(struct soap*, const char *id, void *p, int t, size_t n); SOAP_FMAC1 void* SOAP_FMAC2 soap_id_enter(struct soap*, const char *id, void *p, int t, size_t n, int k); SOAP_FMAC1 int SOAP_FMAC2 soap_size(const int *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_getoffsets(const char *, const int *, int *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_getsize(const char *, const char *, int *); SOAP_FMAC1 int SOAP_FMAC2 soap_getsizes(const char *, int *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_getposition(const char *, int *); SOAP_FMAC1 char* SOAP_FMAC2 soap_putsize(struct soap*, const char *, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_putsizesoffsets(struct soap*, const char *, const int *, const int *, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_putsizes(struct soap*, const char *, const int *, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_putoffset(struct soap*, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_putoffsets(struct soap*, const int *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_ignore_element(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_closesock(struct soap*); SOAP_FMAC1 struct soap *SOAP_FMAC2 soap_new(void); SOAP_FMAC1 struct soap *SOAP_FMAC2 soap_copy(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_init(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_init2(struct soap*, int, int); SOAP_FMAC1 void SOAP_FMAC2 soap_done(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_cleanup(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_begin(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_end(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_recv_logfile(struct soap*, const char*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_sent_logfile(struct soap*, const char*); SOAP_FMAC1 void SOAP_FMAC2 soap_set_test_logfile(struct soap*, const char*); SOAP_FMAC1 void SOAP_FMAC2 soap_close_logfiles(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_open_logfile(struct soap*, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_value(struct soap*); SOAP_FMAC1 wchar SOAP_FMAC2 soap_advance(struct soap*); SOAP_FMAC1 wchar SOAP_FMAC2 soap_skip(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_move(struct soap*, int); SOAP_FMAC1 size_t SOAP_FMAC2 soap_tell(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_match_tag(struct soap*, const char*, const char *); SOAP_FMAC1 int SOAP_FMAC2 soap_match_array(struct soap*, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_element_begin_out(struct soap*, const char *tag, int id, const char *type); SOAP_FMAC1 int SOAP_FMAC2 soap_array_begin_out(struct soap*, const char *tag, int id, const char *type, const char *offset); SOAP_FMAC1 int SOAP_FMAC2 soap_element_end_out(struct soap*, const char *tag); SOAP_FMAC1 int SOAP_FMAC2 soap_element_ref(struct soap*, const char *tag, int id, int href); SOAP_FMAC1 int SOAP_FMAC2 soap_element_href(struct soap*, const char *tag, int id, const char *href); SOAP_FMAC1 int SOAP_FMAC2 soap_element_null(struct soap*, const char *tag, int id, const char *type); SOAP_FMAC1 int SOAP_FMAC2 soap_element_begin_in(struct soap*, const char *tag); SOAP_FMAC1 int SOAP_FMAC2 soap_element_end_in(struct soap*, const char *tag); SOAP_FMAC1 int SOAP_FMAC2 soap_peek_element(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_revert(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_ignore_element(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_string_out(struct soap*, const char *s); SOAP_FMAC1 char* SOAP_FMAC2 soap_string_in(struct soap*, int); SOAP_FMAC1 int SOAP_FMAC2 soap_wstring_out(struct soap*, const wchar_t *s); SOAP_FMAC1 wchar_t* SOAP_FMAC2 soap_wstring_in(struct soap*, int); SOAP_FMAC1 int SOAP_FMAC2 soap_match_namespace(struct soap*, const char *, const char*, int n1, int n2); SOAP_FMAC1 void SOAP_FMAC2 soap_pop_namespace(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_push_namespace(struct soap*, const char *,const char *); SOAP_FMAC1 int SOAP_FMAC2 soap_new_block(struct soap*); SOAP_FMAC1 void* SOAP_FMAC2 soap_push_block(struct soap*, size_t); SOAP_FMAC1 void SOAP_FMAC2 soap_pop_block(struct soap*); SOAP_FMAC1 size_t SOAP_FMAC2 soap_size_block(struct soap*, size_t); SOAP_FMAC1 char* SOAP_FMAC2 soap_first_block(struct soap*); SOAP_FMAC1 char* SOAP_FMAC2 soap_next_block(struct soap*); SOAP_FMAC1 size_t SOAP_FMAC2 soap_block_size(struct soap*); SOAP_FMAC1 char* SOAP_FMAC2 soap_save_block(struct soap*, char*); SOAP_FMAC1 char* SOAP_FMAC2 soap_store_block(struct soap*, char*); SOAP_FMAC1 void SOAP_FMAC2 soap_end_block(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_envelope_begin_out(struct soap*); SOAP_FMAC1 int soap_envelope_end_out(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_envelope_begin_in(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_envelope_end_in(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_body_begin_out(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_body_end_out(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_body_begin_in(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_body_end_in(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_recv_header(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_response(struct soap*, int); SOAP_FMAC1 int SOAP_FMAC2 soap_send_fault(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_recv_fault(struct soap*); SOAP_FMAC1 void SOAP_FMAC2 soap_print_fault(struct soap*, FILE*); SOAP_FMAC1 void SOAP_FMAC2 soap_print_fault_location(struct soap*, FILE*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2byte(struct soap*, const char*, char*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2short(struct soap*, const char*, short*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2int(struct soap*, const char*, int*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2long(struct soap*, const char*, long*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2LONG64(struct soap*, const char*, LONG64*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2float(struct soap*, const char*, float*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2double(struct soap*, const char*, double*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2unsignedByte(struct soap*, const char*, unsigned char*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2unsignedShort(struct soap*, const char*, unsigned short*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2unsignedInt(struct soap*, const char*, unsigned int*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2unsignedLong(struct soap*, const char*, unsigned long*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2ULONG64(struct soap*, const char*, ULONG64*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2dateTime(struct soap*, const char*, time_t*); SOAP_FMAC1 int SOAP_FMAC2 soap_s2string(struct soap*, const char*, char**); SOAP_FMAC1 int SOAP_FMAC2 soap_s2QName(struct soap*, const char*, char**); SOAP_FMAC1 int SOAP_FMAC2 soap_s2base64(struct soap*, const char*, char*, size_t); SOAP_FMAC1 const char* SOAP_FMAC2 soap_byte2s(struct soap*, char); SOAP_FMAC1 const char* SOAP_FMAC2 soap_short2s(struct soap*, short); SOAP_FMAC1 const char* SOAP_FMAC2 soap_int2s(struct soap*, int); SOAP_FMAC1 const char* SOAP_FMAC2 soap_long2s(struct soap*, long); SOAP_FMAC1 const char* SOAP_FMAC2 soap_LONG642s(struct soap*, LONG64); SOAP_FMAC1 const char* SOAP_FMAC2 soap_float2s(struct soap*, float); SOAP_FMAC1 const char* SOAP_FMAC2 soap_double2s(struct soap*, double); SOAP_FMAC1 const char* SOAP_FMAC2 soap_unsignedByte2s(struct soap*, unsigned char); SOAP_FMAC1 const char* SOAP_FMAC2 soap_unsignedShort2s(struct soap*, unsigned short); SOAP_FMAC1 const char* SOAP_FMAC2 soap_unsignedInt2s(struct soap*, unsigned int); SOAP_FMAC1 const char* SOAP_FMAC2 soap_unsignedLong2s(struct soap*, unsigned long); SOAP_FMAC1 const char* SOAP_FMAC2 soap_ULONG642s(struct soap*, ULONG64); SOAP_FMAC1 const char* SOAP_FMAC2 soap_dateTime2s(struct soap*, time_t); SOAP_FMAC1 const char* SOAP_FMAC2 soap_base642s(struct soap*, const char*, char*, size_t, size_t*); SOAP_FMAC1 int* SOAP_FMAC2 soap_inint(struct soap*, const char *tag, int *p, const char *, int); SOAP_FMAC1 char* SOAP_FMAC2 soap_inbyte(struct soap*, const char *tag, char *p, const char *, int); SOAP_FMAC1 long* SOAP_FMAC2 soap_inlong(struct soap*, const char *tag, long *p, const char *, int); SOAP_FMAC1 LONG64* SOAP_FMAC2 soap_inLONG64(struct soap*, const char *tag, LONG64 *p, const char *, int); SOAP_FMAC1 short* SOAP_FMAC2 soap_inshort(struct soap*, const char *tag, short *p, const char *, int); SOAP_FMAC1 float* SOAP_FMAC2 soap_infloat(struct soap*, const char *tag, float *p, const char *, int); SOAP_FMAC1 double* SOAP_FMAC2 soap_indouble(struct soap*, const char *tag, double *p, const char *, int); SOAP_FMAC1 unsigned char* SOAP_FMAC2 soap_inunsignedByte(struct soap*, const char *tag, unsigned char *p, const char *, int); SOAP_FMAC1 unsigned short* SOAP_FMAC2 soap_inunsignedShort(struct soap*, const char *tag, unsigned short *p, const char *, int); SOAP_FMAC1 unsigned int* SOAP_FMAC2 soap_inunsignedInt(struct soap*, const char *tag, unsigned int *p, const char *, int); SOAP_FMAC1 unsigned long* SOAP_FMAC2 soap_inunsignedLong(struct soap*, const char *tag, unsigned long *p, const char *, int); SOAP_FMAC1 ULONG64* SOAP_FMAC2 soap_inULONG64(struct soap*, const char *tag, ULONG64 *p, const char *, int); SOAP_FMAC1 time_t* SOAP_FMAC2 soap_indateTime(struct soap*, const char *tag, time_t *p, const char *, int); SOAP_FMAC1 char** SOAP_FMAC2 soap_instring(struct soap*, const char *tag, char **p, const char *, int, int); SOAP_FMAC1 wchar_t** SOAP_FMAC2 soap_inwstring(struct soap*, const char *tag, wchar_t **p, const char *, int); SOAP_FMAC1 char** SOAP_FMAC2 soap_inliteral(struct soap*, const char *tag, char **p); SOAP_FMAC1 wchar_t** SOAP_FMAC2 soap_inwliteral(struct soap*, const char *tag, wchar_t **p); SOAP_FMAC1 int SOAP_FMAC2 soap_outbyte(struct soap*, const char *tag, int id, const char *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outshort(struct soap*, const char *tag, int id, const short *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outint(struct soap*, const char *tag, int id, const int *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outlong(struct soap*, const char *tag, int id, const long *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outLONG64(struct soap*, const char *tag, int id, const LONG64 *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outfloat(struct soap*, const char *tag, int id, const float *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outdouble(struct soap*, const char *tag, int id, const double *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outunsignedByte(struct soap*, const char *tag, int id, const unsigned char *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outunsignedShort(struct soap*, const char *tag, int id, const unsigned short *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outunsignedInt(struct soap*, const char *tag, int id, const unsigned int *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outunsignedLong(struct soap*, const char *tag, int id, const unsigned long *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outULONG64(struct soap*, const char *tag, int id, const ULONG64 *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outdateTime(struct soap*, const char *tag, int id, const time_t *p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outstring(struct soap*, const char *tag, int id, char *const*p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outwstring(struct soap*, const char *tag, int id, wchar_t *const*p, const char *, int); SOAP_FMAC1 int SOAP_FMAC2 soap_outliteral(struct soap*, const char *tag, char *const*p); SOAP_FMAC1 int SOAP_FMAC2 soap_outwliteral(struct soap*, const char *tag, wchar_t *const*p); SOAP_FMAC1 char* SOAP_FMAC2 soap_dime_option(struct soap*, unsigned short, const char*); SOAP_FMAC1 int SOAP_FMAC2 soap_getdimehdr(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_getdime(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putdimehdr(struct soap*); SOAP_FMAC1 int SOAP_FMAC2 soap_putdime(struct soap*, int, char*, char*, char*, void*, size_t); SOAP_FMAC1 int SOAP_FMAC2 soap_register_plugin_arg(struct soap*, int (*fcreate)(struct soap*, struct soap_plugin*, void*), void*); SOAP_FMAC1 void* SOAP_FMAC2 soap_lookup_plugin(struct soap*, const char*); SOAP_FMAC1 struct soap_attribute * SOAP_FMAC2 soap_attr(struct soap *soap, const char *name); SOAP_FMAC1 const char* SOAP_FMAC2 soap_attr_value(struct soap *soap, const char *name); SOAP_FMAC1 int SOAP_FMAC2 soap_set_attr(struct soap *soap, const char *name, const char *value); SOAP_FMAC1 void SOAP_FMAC2 soap_clr_attr(struct soap *soap); SOAP_FMAC1 int SOAP_FMAC2 soap_encode_string(const char*, char*, int); SOAP_FMAC1 const char* SOAP_FMAC2 soap_decode_string(char*, int, const char*); #ifdef WITH_COOKIES SOAP_FMAC1 extern struct soap_cookie* SOAP_FMAC2 soap_set_cookie(struct soap*, const char*, const char*, const char*, const char*); SOAP_FMAC1 extern struct soap_cookie* SOAP_FMAC2 soap_cookie(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern char* SOAP_FMAC2 soap_cookie_value(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern long SOAP_FMAC2 soap_cookie_expire(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern int SOAP_FMAC2 soap_set_cookie_expire(struct soap*, const char*, long, const char*, const char*); SOAP_FMAC1 extern int SOAP_FMAC2 soap_set_cookie_session(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern int SOAP_FMAC2 soap_clr_cookie_session(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern void SOAP_FMAC2 soap_clr_cookie(struct soap*, const char*, const char*, const char*); SOAP_FMAC1 extern int SOAP_FMAC2 soap_getenv_cookies(struct soap*); SOAP_FMAC1 extern struct soap_cookie* SOAP_FMAC2 soap_copy_cookies(struct soap*); SOAP_FMAC1 extern void SOAP_FMAC2 soap_free_cookies(struct soap*); #endif #ifdef __cplusplus } #endif #endif