COPASI API  4.16.103
Classes | Macros | Typedefs | Enumerations | Functions | Variables
stdsoap2.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/timeb.h>
#include <time.h>
#include <sys/socket.h>
#include <strings.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
Include dependency graph for stdsoap2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Namespace
 
struct  soap
 
struct  soap_array
 
struct  soap_attribute
 
struct  soap_blist
 
struct  soap_clist
 
struct  soap_code_map
 
struct  soap_cookie
 
struct  soap_dime
 
struct  soap_dom_attribute
 
struct  soap_dom_element
 
struct  soap_double_nan
 
struct  soap_flist
 
struct  soap_ilist
 
struct  soap_mime
 
struct  soap_multipart
 
struct  soap_nlist
 
struct  soap_pblk
 
struct  soap_plist
 
struct  soap_plugin
 
struct  soap_xlist
 

Macros

#define _REENTRANT
 
#define _THREAD_SAFE
 
#define DBGFUN(FNAME)
 
#define DBGFUN1(FNAME, FMT, ARG)
 
#define DBGFUN2(FNAME, FMT1, ARG1, FMT2, ARG2)
 
#define DBGFUN3(FNAME, FMT1, ARG1, FMT2, ARG2, FMT3, ARG3)
 
#define DBGHEX(DBGFILE, MSG, LEN)
 
#define DBGLOG(DBGFILE, CMD)
 
#define DBGMSG(DBGFILE, MSG, LEN)
 
#define DBL_NAN   (*(double*)(void*)&soap_double_nan)
 
#define DBL_NINFTY   (-DBL_PINFTY)
 
#define DBL_PINFTY   (1.7976931348623157e+308)
 
#define FD_SETSIZE   (1024)
 
#define FLT_NAN   (*(float*)(void*)&soap_double_nan)
 
#define FLT_NINFTY   (-FLT_PINFTY)
 
#define FLT_PINFTY   (3.40282347e+38F)
 
#define HAVE_FTIME
 
#define HAVE_GETHOSTBYNAME_R
 
#define HAVE_GMTIME_R
 
#define HAVE_LOCALTIME_R
 
#define HAVE_MBTOWC
 
#define HAVE_RAND_R
 
#define HAVE_SSCANF
 
#define HAVE_STRRCHR
 
#define HAVE_STRTOD
 
#define HAVE_STRTOL
 
#define HAVE_STRTOUL
 
#define HAVE_SYS_TIMEB_H
 
#define HAVE_WCTOMB
 
#define LONG64   long long
 
#define SOAP_BEGIN   0
 
#define SOAP_BEGIN_SECURITY   10
 
#define SOAP_BLKLEN   (256) /* size of blocks to collect long strings and XML attributes */
 
#define SOAP_BUFLEN   (65536) /* buffer length for socket packets, also used by gethostbyname_r and UDP messages, so don't make this too small */
 
#define SOAP_C_MBSTRING   0x00400000 /* (de)serialize strings with multi-byte content */
 
#define SOAP_C_NILSTRING   0x00800000 /* serialize empty strings as nil (omitted) */
 
#define SOAP_C_NOIOB   0x00100000 /* don't fault on array index out of bounds (just ignore) */
 
#define SOAP_C_UTFSTRING   0x00200000 /* (de)serialize strings with UTF8 content */
 
#define soap_check_state(soap)   (!(soap) || ((soap)->state != SOAP_INIT && (soap)->state != SOAP_COPY))
 
#define SOAP_CLI_FAULT   1
 
#define soap_closesocket(n)   close(n)
 
#define soap_clr_imode(soap, n)   ((soap)->imode &= ~(n))
 
#define soap_clr_mode(soap, n)   ((soap)->imode &= ~(n), (soap)->omode &= ~(n))
 
#define soap_clr_omode(soap, n)   ((soap)->omode &= ~(n))
 
#define SOAP_CMAC
 
#define SOAP_COPY   2
 
#define SOAP_DATAENCODINGUNKNOWN   41
 
#define SOAP_DEL_METHOD   17
 
#define soap_destroy(soap)   soap_delete((soap), NULL)
 
#define SOAP_DIME_ABSURI   0x20
 
#define SOAP_DIME_CF   0x01
 
#define SOAP_DIME_END   35
 
#define SOAP_DIME_ERROR   32
 
#define SOAP_DIME_HREF   33
 
#define SOAP_DIME_MB   0x04
 
#define SOAP_DIME_ME   0x02
 
#define SOAP_DIME_MEDIA   0x10
 
#define SOAP_DIME_MISMATCH   34
 
#define SOAP_DIME_VERSION   0x08 /* DIME version 1 */
 
#define SOAP_DOM_ASIS   0x04000000
 
#define SOAP_DOM_NODE   0x02000000
 
#define SOAP_DOM_TREE   0x01000000
 
#define SOAP_DUPLICATE_ID   24
 
#define SOAP_EADDRINUSE   EADDRINUSE
 
#define SOAP_EAGAIN   EAGAIN
 
#define SOAP_EINPROGRESS   EINPROGRESS
 
#define SOAP_EINTR   EINTR
 
#define SOAP_ENC   0x00000FFF /* IO and ENC mask */
 
#define SOAP_ENC_DIME   0x00000080
 
#define SOAP_ENC_LATIN   0x00000020 /* accept iso-8859-1 encoding */
 
#define SOAP_ENC_MIME   0x00000100
 
#define SOAP_ENC_MTOM   0x00000200
 
#define SOAP_ENC_SSL   0x00000800
 
#define SOAP_ENC_XML   0x00000040 /* plain XML encoding, no HTTP header */
 
#define SOAP_ENC_ZLIB   0x00000400
 
#define SOAP_END   9
 
#define SOAP_END_BODY   7
 
#define SOAP_END_ENVELOPE   8
 
#define SOAP_END_HEADER   4
 
#define SOAP_END_SECURITY   12
 
#define SOAP_EOF   EOF
 
#define SOAP_EOM   20
 
#define SOAP_ERANGE   ERANGE
 
#define SOAP_ERR   EOF
 
#define soap_errno   errno
 
#define SOAP_EWOULDBLOCK   EWOULDBLOCK
 
#define SOAP_FATAL_ERROR   11
 
#define SOAP_FAULT   12
 
#define SOAP_FD_EXCEEDED   46
 
#define SOAP_FILE   1003 /* Custom file-based response */
 
#define SOAP_FMAC1
 
#define SOAP_FMAC2
 
#define SOAP_FMAC3
 
#define SOAP_FMAC3S   SOAP_FMAC3
 
#define SOAP_FMAC4
 
#define SOAP_FMAC4S   SOAP_FMAC4
 
#define SOAP_FMAC5
 
#define SOAP_FMAC6
 
#define SOAP_FORM   1001 /* Form request/response */
 
#define SOAP_FREE(soap, ptr)   free(ptr)
 
#define SOAP_GAI_STRERROR   gai_strerror
 
#define SOAP_GET   2001
 
#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_GET_METHOD   15
 
#define SOAP_HDR   22
 
#define SOAP_HDRLEN   (8192) /* maximum length of HTTP header line (must be >4096 to read cookies) */
 
#define SOAP_HEAD_METHOD   18
 
#define SOAP_HREF   26
 
#define SOAP_HTML   1002 /* Custom HTML response */
 
#define SOAP_HTTP_ERROR   29
 
#define soap_http_error_check(e)   ((e) == SOAP_HTTP_ERROR || ((e) >= SOAP_GET_METHOD && (e) <= SOAP_HTTP_METHOD)|| (e) == SOAP_NO_DATA || ((e) >= 100 && (e) < 600))
 
#define SOAP_HTTP_METHOD   19
 
#define SOAP_IDHASH   (1999) /* prime size of hash table for parsed id/ref */
 
#define soap_imode(soap, n)   ((soap)->mode = (soap)->imode = (n))
 
#define SOAP_IN_BODY   6
 
#define SOAP_IN_ENVELOPE   2
 
#define SOAP_IN_HEADER   3
 
#define SOAP_IN_SECURITY   11
 
#define SOAP_INDEX_RECV   (0)
 
#define SOAP_INDEX_SENT   (1)
 
#define SOAP_INDEX_TEST   (2)
 
#define SOAP_INIT   1
 
#define soap_int32   int32_t
 
#define SOAP_INVALID_SOCKET   ((SOAP_SOCKET)-1)
 
#define SOAP_IO   0x00000003 /* IO mask */
 
#define SOAP_IO_BUFFER   0x00000001 /* buffer output in packets of size SOAP_BUFLEN */
 
#define SOAP_IO_CHUNK   0x00000003 /* use HTTP chunked transfer AND buffer packets */
 
#define SOAP_IO_DEFAULT   SOAP_IO_FLUSH
 
#define SOAP_IO_FLUSH   0x00000000 /* flush output immediately, no buffering */
 
#define SOAP_IO_KEEPALIVE   0x00000010 /* keep connection alive */
 
#define SOAP_IO_LENGTH   0x00000008 /* calc message length (internal) */
 
#define SOAP_IO_STORE   0x00000002 /* store entire output to determine length for transport */
 
#define SOAP_IO_UDP   0x00000004 /* TCP or UDP */
 
#define SOAP_IOB   7
 
#define soap_isnan(n)   (0)
 
#define soap_isninfd(n)   ((n) <= DBL_NINFTY)
 
#define soap_isninff(n)   ((n) <= FLT_NINFTY)
 
#define soap_ispinfd(n)   ((n) >= DBL_PINFTY)
 
#define soap_ispinff(n)   ((n) >= FLT_PINFTY)
 
#define SOAP_LABLEN   (256) /* initial look-aside buffer length */
 
#define SOAP_LENGTH   45
 
#define SOAP_LONG_FORMAT   "%lld" /* printf format for 64 bit ints */
 
#define SOAP_MALLOC(soap, size)   malloc(size)
 
#define SOAP_MAXARRAYSIZE   (1000000)
 
#define SOAP_MAXDIMS   (16) /* maximum array dimensions (array nestings) must be less than 64 to protect soap->tmpbuf */
 
#define SOAP_MAXKEEPALIVE   (100)
 
#define SOAP_MAXLOGS   (3) /* max number of debug logs per struct soap environment */
 
#define SOAP_MIME_END   38
 
#define SOAP_MIME_ERROR   36
 
#define SOAP_MIME_HREF   37
 
#define SOAP_MIME_POSTCHECK   0x10000000 /* MIME flag (internal) */
 
#define SOAP_MISSING_ID   25
 
#define SOAP_MOE   21
 
#define SOAP_MUSTUNDERSTAND   8
 
#define SOAP_NAMESPACE   9
 
#define SOAP_NMAC
 
#define SOAP_NO_BODY   5
 
#define SOAP_NO_DATA   14
 
#define SOAP_NO_METHOD   13
 
#define SOAP_NO_TAG   6
 
#define SOAP_NONE   0
 
#define SOAP_NULL   23
 
#define SOAP_OCCURS   44
 
#define SOAP_OK   0
 
#define soap_omode(soap, n)   ((soap)->mode = (soap)->omode = (n))
 
#define SOAP_PLUGIN_ERROR   40
 
#define SOAP_POST   2000
 
#define SOAP_PROHIBITED   43
 
#define SOAP_PTRBLK   (32) /* block allocation for pointer hash table chains */
 
#define SOAP_PTRHASH   (1024) /* size of pointer analysis hash table (must be power of 2) */
 
#define SOAP_PUT_METHOD   16
 
#define soap_random   rand()
 
#define soap_register_plugin(soap, plugin)   soap_register_plugin_arg(soap, plugin, NULL)
 
#define SOAP_REQUIRED   42
 
#define soap_reset_errno   (errno = 0)
 
#define soap_revget1(soap)   ((soap)->bufidx--)
 
#define soap_set_imode(soap, n)   ((soap)->imode |= (n))
 
#define soap_set_mode(soap, n)   ((soap)->imode |= (n), (soap)->omode |= (n))
 
#define soap_set_omode(soap, n)   ((soap)->omode |= (n))
 
#define soap_soap_error_check(e)   ((e) == SOAP_CLI_FAULT || (e) == SOAP_SVR_FAULT || (e) == SOAP_VERSIONMISMATCH || (e) == SOAP_MUSTUNDERSTAND || (e) == SOAP_FAULT || (e) == SOAP_NO_METHOD)
 
#define SOAP_SOCKET   int
 
#define soap_socket_errno(s)   errno
 
#define SOAP_SOCKLEN_T   size_t
 
#define SOAP_SOURCE_STAMP(str)
 
#define SOAP_SSL_ALLOW_EXPIRED_CERTIFICATE   0x08 /* client does not check the expiration date of the host certificate */
 
#define SOAP_SSL_DEFAULT   (SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION | SOAP_SSLv3_TLSv1)
 
#define SOAP_SSL_ERROR   30
 
#define soap_ssl_error_check(e)   ((e) == SOAP_SSL_ERROR)
 
#define SOAP_SSL_NO_AUTHENTICATION   0x00 /* for testing purposes */
 
#define SOAP_SSL_NO_DEFAULT_CA_PATH   0x10 /* don't use default_verify_paths */
 
#define SOAP_SSL_REQUIRE_CLIENT_AUTHENTICATION   0x02 /* server requires client to authenticate */
 
#define SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION   0x01 /* client requires server to authenticate */
 
#define SOAP_SSL_RSA   0x20 /* use RSA */
 
#define SOAP_SSL_SKIP_HOST_CHECK   0x04 /* client does not check the common name of the host in certificate */
 
#define SOAP_SSLv3   0x40 /* SSL v3 only */
 
#define SOAP_SSLv3_TLSv1   0x00 /* SSL v3 and TLS v1 support by default */
 
#define SOAP_STD_API
 
#define SOAP_STOP   1000 /* No HTTP response */
 
#define SOAP_STRCMP   strcmp /* case sensitive XML element/attribute names */
 
#define soap_strrchr(s, t)   strrchr(s, t)
 
#define soap_strtol(s, t, b)   strtol(s, t, b)
 
#define soap_strtoul(s, t, b)   strtoul(s, t, b)
 
#define SOAP_SVR_FAULT   2
 
#define SOAP_SYNTAX_ERROR   5
 
#define SOAP_TAG_MISMATCH   3
 
#define SOAP_TAGLEN   (1024) /* maximum length of XML element tag/attribute name or host/path name + 1 */
 
#define SOAP_TCP_ERROR   28
 
#define soap_tcp_error_check(e)   ((e) == SOAP_EOF || (e) == SOAP_TCP_ERROR)
 
#define SOAP_TLSv1   0x80 /* TLS v1 only */
 
#define SOAP_TYPE   4
 
#define SOAP_UDP_ERROR   27
 
#define SOAP_ULONG_FORMAT   "%llu" /* printf format for unsigned 64 bit ints */
 
#define soap_unget(soap, c)   ((soap)->ahead = c)
 
#define SOAP_USER_ERROR   10
 
#define soap_valid_socket(n)   ((n) != SOAP_INVALID_SOCKET)
 
#define SOAP_VERSIONMISMATCH   39
 
#define SOAP_WINSOCKINT   size_t
 
#define SOAP_XML_CANONICAL   0x00004000 /* EXC C14N canonical XML */
 
#define SOAP_XML_DOM   0x00040000
 
#define soap_xml_error_check(e)   ((e) == SOAP_TAG_MISMATCH || (e) == SOAP_NO_TAG || (e) == SOAP_SYNTAX_ERROR || (e) == SOAP_NAMESPACE || (e) == SOAP_DUPLICATE_ID || (e) == SOAP_MISSING_ID || (e) == SOAP_REQUIRED || (e) == SOAP_PROHIBITED || (e) == SOAP_OCCURS || (e) == SOAP_LENGTH || (e) == SOAP_NULL || (e) == SOAP_HREF)
 
#define SOAP_XML_GRAPH   0x00010000
 
#define SOAP_XML_INDENT   0x00002000 /* emit indented XML */
 
#define SOAP_XML_NIL   0x00020000
 
#define SOAP_XML_SEC   0x00080000 /* reserved for WS security */
 
#define SOAP_XML_STRICT   0x00001000 /* apply strict validation */
 
#define SOAP_XML_TREE   0x00008000 /* emit XML tree (no id/ref) */
 
#define SOAP_ZLIB_DEFLATE   0x01
 
#define SOAP_ZLIB_ERROR   31
 
#define soap_zlib_error_check(e)   ((e) == SOAP_ZLIB_ERROR)
 
#define SOAP_ZLIB_GZIP   0x02
 
#define SOAP_ZLIB_INFLATE   0x02
 
#define SOAP_ZLIB_NONE   0x00
 
#define STDSOAP_H
 
#define ULONG64   unsigned LONG64
 
#define WITH_FAST
 

Typedefs

typedef int32_t soap_mode
 
typedef int32_t soap_wchar
 

Enumerations

enum  soap_mime_encoding {
  SOAP_MIME_NONE, SOAP_MIME_7BIT, SOAP_MIME_8BIT, SOAP_MIME_BINARY,
  SOAP_MIME_QUOTED_PRINTABLE, SOAP_MIME_BASE64, SOAP_MIME_IETF_TOKEN, SOAP_MIME_X_TOKEN
}
 

Functions

int soap_accept (struct soap *)
 
int soap_append_lab (struct soap *, const char *, size_t)
 
int soap_array_begin_out (struct soap *, const char *tag, int id, const char *type, const char *offset)
 
int soap_array_pointer_lookup (struct soap *, const void *p, const struct soap_array *a, int n, int t, struct soap_plist **)
 
int soap_array_reference (struct soap *, const void *p, const struct soap_array *a, int n, int t)
 
int soap_attachment (struct soap *, const char *, int, const void *, const struct soap_array *, const char *, const char *, const char *, int, const char *, int)
 
const char * soap_attr_value (struct soap *soap, const char *name, int flag)
 
int soap_attribute (struct soap *, const char *, const char *)
 
const char * soap_base642s (struct soap *, const char *, char *, size_t, int *)
 
void soap_begin (struct soap *)
 
int soap_begin_count (struct soap *)
 
int soap_begin_recv (struct soap *)
 
int soap_begin_send (struct soap *)
 
int soap_bind (struct soap *, const char *, int, int)
 
size_t soap_block_size (struct soap *, struct soap_blist *)
 
int soap_body_begin_in (struct soap *)
 
int soap_body_begin_out (struct soap *)
 
int soap_body_end_in (struct soap *)
 
int soap_body_end_out (struct soap *)
 
const char * soap_byte2s (struct soap *, char)
 
int soap_check_mime_attachments (struct soap *soap)
 
void soap_check_result (struct soap *, const char *tag)
 
void soap_cleanup (struct soap *)
 
int soap_closesock (struct soap *)
 
void soap_clr_attr (struct soap *soap)
 
void soap_clr_dime (struct soap *)
 
void soap_clr_mime (struct soap *)
 
const struct soap_code_mapsoap_code (const struct soap_code_map *, const char *)
 
long soap_code_bits (const struct soap_code_map *, const char *)
 
long soap_code_int (const struct soap_code_map *, const char *, long)
 
const char * soap_code_list (struct soap *, const struct soap_code_map *, long)
 
const char * soap_code_str (const struct soap_code_map *, long)
 
int soap_connect (struct soap *, const char *, const char *)
 
int soap_connect_command (struct soap *, int, const char *, const char *)
 
struct soapsoap_copy (const struct soap *)
 
struct soapsoap_copy_context (struct soap *, const struct soap *)
 
void soap_copy_stream (struct soap *, struct soap *)
 
const char * soap_current_namespace (struct soap *soap, const char *tag)
 
const char * soap_dateTime2s (struct soap *, time_t)
 
void soap_dealloc (struct soap *, void *)
 
const char * soap_decode_key (char *, size_t, const char *)
 
const char * soap_decode_val (char *, size_t, const char *)
 
void soap_del (struct soap *)
 
void soap_delete (struct soap *, void *)
 
int soap_dime_forward (struct soap *, unsigned char **, int *, char **, char **, char **)
 
char * soap_dime_option (struct soap *, unsigned short, const char *)
 
struct soap_dom_attributesoap_dom_next_attribute (struct soap_dom_attribute *att)
 
struct soap_dom_elementsoap_dom_next_element (struct soap_dom_element *elt)
 
void soap_done (struct soap *)
 
const char * soap_double2s (struct soap *, double)
 
int soap_element (struct soap *, const char *, int, const char *)
 
int soap_element_begin_in (struct soap *, const char *tag, int nillable, const char *type)
 
int soap_element_begin_out (struct soap *, const char *tag, int id, const char *type)
 
int soap_element_end_in (struct soap *, const char *tag)
 
int soap_element_end_out (struct soap *, const char *tag)
 
int soap_element_href (struct soap *, const char *tag, int id, const char *ref, const char *val)
 
int soap_element_id (struct soap *, const char *tag, int id, const void *p, const struct soap_array *a, int d, const char *type, int n)
 
int soap_element_null (struct soap *, const char *tag, int id, const char *type)
 
int soap_element_ref (struct soap *, const char *tag, int id, int href)
 
int soap_element_result (struct soap *, const char *tag)
 
int soap_element_start_end_out (struct soap *, const char *tag)
 
int soap_embed (struct soap *soap, const void *p, const struct soap_array *a, int n, const char *tag, int type)
 
void soap_embedded (struct soap *, const void *p, int t)
 
int soap_embedded_id (struct soap *, int id, const void *p, int t)
 
void soap_end (struct soap *)
 
void soap_end_block (struct soap *, struct soap_blist *)
 
int soap_end_count (struct soap *)
 
int soap_end_recv (struct soap *)
 
int soap_end_send (struct soap *)
 
struct soap_ilistsoap_enter (struct soap *, const char *)
 
int soap_envelope_begin_in (struct soap *)
 
int soap_envelope_begin_out (struct soap *)
 
int soap_envelope_end_in (struct soap *)
 
int soap_envelope_end_out (struct soap *)
 
void soap_fault (struct soap *)
 
const char ** soap_faultcode (struct soap *)
 
const char ** soap_faultdetail (struct soap *)
 
const char ** soap_faultstring (struct soap *)
 
const char ** soap_faultsubcode (struct soap *)
 
void soap_fcopy (struct soap *soap, int st, int tt, void *p, size_t, const void *q, size_t n)
 
char * soap_first_block (struct soap *, struct soap_blist *)
 
const char * soap_float2s (struct soap *, float)
 
int soap_flush (struct soap *)
 
int soap_flush_raw (struct soap *, const char *, size_t)
 
void soap_free (struct soap *)
 
void soap_free_temp (struct soap *)
 
soap_wchar soap_get (struct soap *)
 
const char * soap_get_header_attribute (struct soap *, const char *, const char *)
 
struct soap_multipartsoap_get_mime_attachment (struct soap *soap, void *handle)
 
unsigned char * soap_getbase64 (struct soap *, int *, int)
 
soap_wchar soap_getchar (struct soap *)
 
int soap_getdime (struct soap *)
 
int soap_getdimehdr (struct soap *)
 
int soap_getfault (struct soap *)
 
int soap_getheader (struct soap *)
 
unsigned char * soap_gethex (struct soap *, int *)
 
int soap_getline (struct soap *, char *, int)
 
int soap_getmime (struct soap *)
 
int soap_getmimehdr (struct soap *)
 
int soap_getoffsets (const char *, const int *, int *, int)
 
int soap_getposition (const char *, int *)
 
int soap_getsize (const char *, const char *, int *)
 
int soap_getsizes (const char *, int *, int)
 
soap_wchar soap_getutf8 (struct soap *)
 
size_t soap_hash (const char *)
 
void soap_header (struct soap *)
 
const char * soap_hex2s (struct soap *, const char *, char *, size_t, int *)
 
voidsoap_id_enter (struct soap *, const char *id, void *p, int t, size_t n, unsigned int k, const char *type, const char *arrayType, void *(*finstantiate)(struct soap *, int, const char *, const char *, size_t *))
 
voidsoap_id_forward (struct soap *, const char *id, void *p, size_t len, int st, int tt, size_t n, unsigned int k, void(*fcopy)(struct soap *, int, int, void *, size_t, const void *, size_t))
 
voidsoap_id_lookup (struct soap *, const char *id, void **p, int t, size_t n, unsigned int k)
 
char * soap_inbyte (struct soap *, const char *tag, char *p, const char *, int)
 
time_t * soap_indateTime (struct soap *, const char *tag, time_t *p, const char *, int)
 
double * soap_indouble (struct soap *, const char *tag, double *p, const char *, int)
 
float * soap_infloat (struct soap *, const char *tag, float *p, const char *, int)
 
int * soap_inint (struct soap *, const char *tag, int *p, const char *, int)
 
void soap_init (struct soap *)
 
void soap_init1 (struct soap *, soap_mode)
 
void soap_init2 (struct soap *, soap_mode, soap_mode)
 
char ** soap_inliteral (struct soap *, const char *tag, char **p)
 
long * soap_inlong (struct soap *, const char *tag, long *p, const char *, int)
 
long long * soap_inLONG64 (struct soap *, const char *tag, long long *p, const char *, int)
 
short * soap_inshort (struct soap *, const char *tag, short *p, const char *, int)
 
char ** soap_instring (struct soap *, const char *tag, char **p, const char *, int, int, long, long)
 
const char * soap_int2s (struct soap *, int)
 
unsigned long long * soap_inULONG64 (struct soap *, const char *tag, unsigned long long *p, const char *, int)
 
unsigned char * soap_inunsignedByte (struct soap *, const char *tag, unsigned char *p, const char *, int)
 
unsigned int * soap_inunsignedInt (struct soap *, const char *tag, unsigned int *p, const char *, int)
 
unsigned long * soap_inunsignedLong (struct soap *, const char *tag, unsigned long *p, const char *, int)
 
unsigned short * soap_inunsignedShort (struct soap *, const char *tag, unsigned short *p, const char *, int)
 
wchar_t ** soap_inwliteral (struct soap *, const char *tag, wchar_t **p)
 
wchar_t ** soap_inwstring (struct soap *, const char *tag, wchar_t **p, const char *, int, long, long)
 
int soap_is_embedded (struct soap *, struct soap_plist *)
 
int soap_is_single (struct soap *, struct soap_plist *)
 
struct soap_clistsoap_link (struct soap *, void *, int, int, int(*fdelete)(struct soap_clist *))
 
const char * soap_long2s (struct soap *, long)
 
const char * soap_LONG642s (struct soap *, long long)
 
struct soap_ilistsoap_lookup (struct soap *, const char *)
 
struct soap_nlistsoap_lookup_ns (struct soap *soap, const char *tag, size_t n)
 
voidsoap_lookup_plugin (struct soap *, const char *)
 
int soap_lookup_type (struct soap *, const char *id)
 
voidsoap_malloc (struct soap *, size_t)
 
int soap_match_array (struct soap *, const char *)
 
int soap_match_cid (struct soap *, const char *, const char *)
 
int soap_match_namespace (struct soap *, const char *, const char *, size_t n1, size_t n2)
 
int soap_match_tag (struct soap *, const char *, const char *)
 
int soap_move (struct soap *, long)
 
struct soapsoap_new (void)
 
struct soapsoap_new1 (soap_mode)
 
struct soapsoap_new2 (soap_mode, soap_mode)
 
struct soap_blistsoap_new_block (struct soap *)
 
char * soap_next_block (struct soap *, struct soap_blist *)
 
struct soap_multipartsoap_next_multipart (struct soap_multipart *)
 
int soap_outbyte (struct soap *, const char *tag, int id, const char *p, const char *, int)
 
int soap_outdateTime (struct soap *, const char *tag, int id, const time_t *p, const char *, int)
 
int soap_outdouble (struct soap *, const char *tag, int id, const double *p, const char *, int)
 
int soap_outfloat (struct soap *, const char *tag, int id, const float *p, const char *, int)
 
int soap_outint (struct soap *, const char *tag, int id, const int *p, const char *, int)
 
int soap_outliteral (struct soap *, const char *tag, char *const *p, const char *type)
 
int soap_outlong (struct soap *, const char *tag, int id, const long *p, const char *, int)
 
int soap_outLONG64 (struct soap *, const char *tag, int id, const long long *p, const char *, int)
 
int soap_outshort (struct soap *, const char *tag, int id, const short *p, const char *, int)
 
int soap_outstring (struct soap *, const char *tag, int id, char *const *p, const char *, int)
 
int soap_outULONG64 (struct soap *, const char *tag, int id, const unsigned long long *p, const char *, int)
 
int soap_outunsignedByte (struct soap *, const char *tag, int id, const unsigned char *p, const char *, int)
 
int soap_outunsignedInt (struct soap *, const char *tag, int id, const unsigned int *p, const char *, int)
 
int soap_outunsignedLong (struct soap *, const char *tag, int id, const unsigned long *p, const char *, int)
 
int soap_outunsignedShort (struct soap *, const char *tag, int id, const unsigned short *p, const char *, int)
 
int soap_outwliteral (struct soap *, const char *tag, wchar_t *const *p, const char *type)
 
int soap_outwstring (struct soap *, const char *tag, int id, wchar_t *const *p, const char *, int)
 
int soap_peek_element (struct soap *)
 
int soap_pointer_enter (struct soap *, const void *p, const struct soap_array *a, int n, int t, struct soap_plist **)
 
int soap_pointer_lookup (struct soap *, const void *p, int t, struct soap_plist **)
 
int soap_pointer_lookup_id (struct soap *, void *p, int t, struct soap_plist **)
 
int soap_poll (struct soap *)
 
void soap_pop_block (struct soap *, struct soap_blist *)
 
void soap_pop_namespace (struct soap *)
 
void soap_post_check_mime_attachments (struct soap *soap)
 
void soap_print_fault (struct soap *, FILE *)
 
void soap_print_fault_location (struct soap *, FILE *)
 
voidsoap_push_block (struct soap *, struct soap_blist *, size_t)
 
int soap_push_namespace (struct soap *, const char *, const char *)
 
int soap_putbase64 (struct soap *, const unsigned char *, int)
 
int soap_putdime (struct soap *)
 
int soap_putdimehdr (struct soap *)
 
int soap_putfault (struct soap *)
 
int soap_putheader (struct soap *)
 
int soap_puthex (struct soap *, const unsigned char *, int)
 
int soap_puthttphdr (struct soap *, int status, size_t count)
 
int soap_putmime (struct soap *)
 
int soap_putmimehdr (struct soap *, struct soap_multipart *)
 
char * soap_putoffset (struct soap *, int)
 
char * soap_putoffsets (struct soap *, const int *, int)
 
char * soap_putsize (struct soap *, const char *, int)
 
char * soap_putsizes (struct soap *, const char *, const int *, int)
 
char * soap_putsizesoffsets (struct soap *, const char *, const int *, const int *, int)
 
int soap_pututf8 (struct soap *, unsigned long)
 
const char * soap_QName2s (struct soap *, const char *)
 
int soap_receiver_fault (struct soap *, const char *, const char *)
 
int soap_receiver_fault_subcode (struct soap *, const char *, const char *, const char *)
 
int soap_recv (struct soap *)
 
int soap_recv_empty_response (struct soap *)
 
int soap_recv_fault (struct soap *)
 
int soap_recv_header (struct soap *)
 
int soap_recv_raw (struct soap *)
 
int soap_reference (struct soap *, const void *p, int t)
 
int soap_register_plugin_arg (struct soap *, int(*fcreate)(struct soap *, struct soap_plugin *, void *), void *)
 
int soap_resolve (struct soap *)
 
int soap_response (struct soap *, int)
 
void soap_retry (struct soap *)
 
void soap_revert (struct soap *)
 
char * soap_s2base64 (struct soap *, const unsigned char *, char *, int)
 
int soap_s2byte (struct soap *, const char *, char *)
 
int soap_s2dateTime (struct soap *, const char *, time_t *)
 
int soap_s2double (struct soap *, const char *, double *)
 
int soap_s2float (struct soap *, const char *, float *)
 
char * soap_s2hex (struct soap *, const unsigned char *, char *, int)
 
int soap_s2int (struct soap *, const char *, int *)
 
int soap_s2long (struct soap *, const char *, long *)
 
int soap_s2LONG64 (struct soap *, const char *, long long *)
 
int soap_s2QName (struct soap *, const char *, char **)
 
int soap_s2short (struct soap *, const char *, short *)
 
int soap_s2string (struct soap *, const char *, char **)
 
int soap_s2ULONG64 (struct soap *, const char *, unsigned long long *)
 
int soap_s2unsignedByte (struct soap *, const char *, unsigned char *)
 
int soap_s2unsignedInt (struct soap *, const char *, unsigned int *)
 
int soap_s2unsignedLong (struct soap *, const char *, unsigned long *)
 
int soap_s2unsignedShort (struct soap *, const char *, unsigned short *)
 
int soap_s2wchar (struct soap *, const char *, wchar_t **)
 
char * soap_save_block (struct soap *, struct soap_blist *, char *, int)
 
int soap_send (struct soap *, const char *)
 
int soap_send2 (struct soap *, const char *, const char *)
 
int soap_send3 (struct soap *, const char *, const char *, const char *)
 
int soap_send_empty_response (struct soap *, int status)
 
int soap_send_fault (struct soap *)
 
int soap_send_raw (struct soap *, const char *, size_t)
 
int soap_sender_fault (struct soap *, const char *, const char *)
 
int soap_sender_fault_subcode (struct soap *, const char *, const char *, const char *)
 
void soap_serializefault (struct soap *)
 
void soap_serializeheader (struct soap *)
 
int soap_set_attr (struct soap *soap, const char *name, const char *value)
 
void soap_set_dime (struct soap *)
 
int soap_set_dime_attachment (struct soap *, char *ptr, size_t size, const char *type, const char *id, unsigned short optype, const char *option)
 
void soap_set_embedded (struct soap *, struct soap_plist *)
 
void soap_set_endpoint (struct soap *, const char *)
 
void soap_set_fault (struct soap *)
 
void soap_set_local_namespaces (struct soap *)
 
void soap_set_mime (struct soap *, const char *boundary, const char *start)
 
int soap_set_mime_attachment (struct soap *, char *ptr, size_t size, enum soap_mime_encoding encoding, const char *type, const char *id, const char *location, const char *description)
 
int soap_set_namespaces (struct soap *, const struct Namespace *)
 
int soap_set_receiver_error (struct soap *, const char *, const char *, int)
 
int soap_set_sender_error (struct soap *, const char *, const char *, int)
 
const char * soap_short2s (struct soap *, short)
 
int soap_size (const int *, int)
 
size_t soap_size_block (struct soap *, struct soap_blist *, size_t)
 
char * soap_sprint_fault (struct soap *, char *, size_t)
 
int soap_ssl_accept (struct soap *)
 
int soap_ssl_client_context (struct soap *, unsigned short, const char *, const char *, const char *, const char *, const char *)
 
const char * soap_ssl_error (struct soap *, int)
 
void soap_ssl_init ()
 
int soap_ssl_server_context (struct soap *, unsigned short, const char *, const char *, const char *, const char *, const char *, const char *, const char *)
 
int soap_store_lab (struct soap *, const char *, size_t)
 
char * soap_strdup (struct soap *, const char *)
 
char * soap_string_in (struct soap *, int, long, long)
 
int soap_string_out (struct soap *, const char *s, int flag)
 
const char * soap_strsearch (const char *big, const char *little)
 
int soap_tag_cmp (const char *, const char *)
 
size_t soap_tell (struct soap *)
 
time_t soap_timegm (struct tm *)
 
void soap_track_free (struct soap *, const char *, int, void *)
 
voidsoap_track_malloc (struct soap *, const char *, int, size_t)
 
const char * soap_ULONG642s (struct soap *, unsigned long long)
 
void soap_unlink (struct soap *, const void *)
 
const char * soap_unsignedByte2s (struct soap *, unsigned char)
 
const char * soap_unsignedInt2s (struct soap *, unsigned int)
 
const char * soap_unsignedLong2s (struct soap *, unsigned long)
 
const char * soap_unsignedShort2s (struct soap *, unsigned short)
 
const char * soap_value (struct soap *)
 
const char * soap_wchar2s (struct soap *, const wchar_t *)
 
wchar_t * soap_wstrdup (struct soap *, const wchar_t *)
 
wchar_t * soap_wstring_in (struct soap *, int, long, long)
 
int soap_wstring_out (struct soap *, const wchar_t *s, int flag)
 
int soap_xop_forward (struct soap *, unsigned char **, int *, char **, char **, char **)
 

Variables

struct Namespace namespaces []
 
const struct soap_double_nan soap_double_nan
 

Macro Definition Documentation

#define _REENTRANT

Definition at line 77 of file stdsoap2.h.

#define _THREAD_SAFE

Definition at line 72 of file stdsoap2.h.

#define DBGFUN (   FNAME)

Definition at line 1249 of file stdsoap2.h.

#define DBGFUN1 (   FNAME,
  FMT,
  ARG 
)

Definition at line 1250 of file stdsoap2.h.

#define DBGFUN2 (   FNAME,
  FMT1,
  ARG1,
  FMT2,
  ARG2 
)

Definition at line 1251 of file stdsoap2.h.

#define DBGFUN3 (   FNAME,
  FMT1,
  ARG1,
  FMT2,
  ARG2,
  FMT3,
  ARG3 
)

Definition at line 1252 of file stdsoap2.h.

#define DBGHEX (   DBGFILE,
  MSG,
  LEN 
)

Definition at line 1253 of file stdsoap2.h.

Referenced by soap_dealloc().

#define DBGLOG (   DBGFILE,
  CMD 
)

Definition at line 1247 of file stdsoap2.h.

Referenced by http_parse(), http_response(), soap_accept(), soap_append_lab(), soap_array_pointer_lookup(), soap_array_reference(), soap_attachment(), soap_attribute(), soap_begin(), soap_begin_count(), soap_begin_recv(), soap_begin_send(), soap_bind(), soap_copy_ArrayOf_USCORExsd_USCOREstring(), soap_copy_context(), soap_copy_ns2__checkRegExp(), soap_copy_ns2__checkRegExpResponse(), soap_copy_ns2__getDataResources(), soap_copy_ns2__getDataResourcesResponse(), soap_copy_ns2__getDataTypeDef(), soap_copy_ns2__getDataTypeDefResponse(), soap_copy_ns2__getDataTypePattern(), soap_copy_ns2__getDataTypePatternResponse(), soap_copy_ns2__getDataTypesId(), soap_copy_ns2__getDataTypesIdResponse(), soap_copy_ns2__getDataTypesName(), soap_copy_ns2__getDataTypesNameResponse(), soap_copy_ns2__getDataTypeSynonyms(), soap_copy_ns2__getDataTypeSynonymsResponse(), soap_copy_ns2__getDataTypeURI(), soap_copy_ns2__getDataTypeURIResponse(), soap_copy_ns2__getDataTypeURIs(), soap_copy_ns2__getDataTypeURIsResponse(), soap_copy_ns2__getJavaLibraryVersion(), soap_copy_ns2__getJavaLibraryVersionResponse(), soap_copy_ns2__getLocation(), soap_copy_ns2__getLocationResponse(), soap_copy_ns2__getLocations(), soap_copy_ns2__getLocations_(), soap_copy_ns2__getLocationsResponse(), soap_copy_ns2__getLocationsResponse_(), soap_copy_ns2__getMiriamURI(), soap_copy_ns2__getMiriamURIResponse(), soap_copy_ns2__getName(), soap_copy_ns2__getNameResponse(), soap_copy_ns2__getNames(), soap_copy_ns2__getNamesResponse(), soap_copy_ns2__getOfficialDataTypeURI(), soap_copy_ns2__getOfficialDataTypeURIResponse(), soap_copy_ns2__getResourceInfo(), soap_copy_ns2__getResourceInfoResponse(), soap_copy_ns2__getResourceInstitution(), soap_copy_ns2__getResourceInstitutionResponse(), soap_copy_ns2__getResourceLocation(), soap_copy_ns2__getResourceLocationResponse(), soap_copy_ns2__getServicesInfo(), soap_copy_ns2__getServicesInfoResponse(), soap_copy_ns2__getServicesVersion(), soap_copy_ns2__getServicesVersionResponse(), soap_copy_ns2__getURI(), soap_copy_ns2__getURIResponse(), soap_copy_ns2__isDeprecated(), soap_copy_ns2__isDeprecatedResponse(), soap_copy_SOAP_ENV__Code(), soap_copy_SOAP_ENV__Detail(), soap_copy_SOAP_ENV__Fault(), soap_copy_SOAP_ENV__Header(), soap_copy_SOAP_ENV__Reason(), soap_copy_std__string(), soap_count_attachments(), soap_dealloc(), soap_delete(), soap_done(), soap_element(), soap_element_begin_in(), soap_element_end_in(), soap_element_end_out(), soap_element_href(), soap_element_start_end_out(), soap_embedded(), soap_embedded_id(), soap_end_block(), soap_end_count(), soap_end_recv(), soap_end_send(), soap_fcopy(), soap_first_block(), soap_flush(), soap_free_iht(), soap_free_ns(), soap_free_pht(), soap_free_temp(), soap_get_mime_attachment(), soap_get_pi(), soap_getchunkchar(), soap_getdimehdr(), soap_getmimehdr(), soap_id_enter(), soap_id_forward(), soap_id_lookup(), soap_ignore_element(), soap_init(), soap_init_iht(), soap_init_pht(), soap_instantiate_ArrayOf_USCORExsd_USCOREstring(), soap_instantiate_ns2__checkRegExp(), soap_instantiate_ns2__checkRegExpResponse(), soap_instantiate_ns2__getDataResources(), soap_instantiate_ns2__getDataResourcesResponse(), soap_instantiate_ns2__getDataTypeDef(), soap_instantiate_ns2__getDataTypeDefResponse(), soap_instantiate_ns2__getDataTypePattern(), soap_instantiate_ns2__getDataTypePatternResponse(), soap_instantiate_ns2__getDataTypesId(), soap_instantiate_ns2__getDataTypesIdResponse(), soap_instantiate_ns2__getDataTypesName(), soap_instantiate_ns2__getDataTypesNameResponse(), soap_instantiate_ns2__getDataTypeSynonyms(), soap_instantiate_ns2__getDataTypeSynonymsResponse(), soap_instantiate_ns2__getDataTypeURI(), soap_instantiate_ns2__getDataTypeURIResponse(), soap_instantiate_ns2__getDataTypeURIs(), soap_instantiate_ns2__getDataTypeURIsResponse(), soap_instantiate_ns2__getJavaLibraryVersion(), soap_instantiate_ns2__getJavaLibraryVersionResponse(), soap_instantiate_ns2__getLocation(), soap_instantiate_ns2__getLocationResponse(), soap_instantiate_ns2__getLocations(), soap_instantiate_ns2__getLocations_(), soap_instantiate_ns2__getLocationsResponse(), soap_instantiate_ns2__getLocationsResponse_(), soap_instantiate_ns2__getMiriamURI(), soap_instantiate_ns2__getMiriamURIResponse(), soap_instantiate_ns2__getName(), soap_instantiate_ns2__getNameResponse(), soap_instantiate_ns2__getNames(), soap_instantiate_ns2__getNamesResponse(), soap_instantiate_ns2__getOfficialDataTypeURI(), soap_instantiate_ns2__getOfficialDataTypeURIResponse(), soap_instantiate_ns2__getResourceInfo(), soap_instantiate_ns2__getResourceInfoResponse(), soap_instantiate_ns2__getResourceInstitution(), soap_instantiate_ns2__getResourceInstitutionResponse(), soap_instantiate_ns2__getResourceLocation(), soap_instantiate_ns2__getResourceLocationResponse(), soap_instantiate_ns2__getServicesInfo(), soap_instantiate_ns2__getServicesInfoResponse(), soap_instantiate_ns2__getServicesVersion(), soap_instantiate_ns2__getServicesVersionResponse(), soap_instantiate_ns2__getURI(), soap_instantiate_ns2__getURIResponse(), soap_instantiate_ns2__isDeprecated(), soap_instantiate_ns2__isDeprecatedResponse(), soap_instantiate_SOAP_ENV__Code(), soap_instantiate_SOAP_ENV__Detail(), soap_instantiate_SOAP_ENV__Fault(), soap_instantiate_SOAP_ENV__Header(), soap_instantiate_SOAP_ENV__Reason(), soap_instantiate_std__string(), soap_is_embedded(), soap_lookup_type(), soap_match_array(), soap_match_tag(), soap_move(), soap_new_block(), soap_next_block(), soap_pointer_enter(), soap_pointer_lookup(), soap_poll(), soap_pop_block(), soap_pop_namespace(), soap_push_block(), soap_push_namespace(), soap_push_ns(), soap_putdime(), soap_putdimehdr(), soap_putmime(), soap_putmimehdr(), soap_recv(), soap_recv_fault(), soap_recv_raw(), soap_reference(), soap_register_plugin_arg(), soap_resolve(), soap_resolve_attachment(), soap_revert(), soap_s2QName(), soap_save_block(), soap_send_fault(), soap_set_attr(), soap_string_in(), soap_try_connect_command(), soap_unlink(), soap_update_ptrs(), soap_utilize_ns(), soap_value(), soap_wstring_in(), tcp_closesocket(), tcp_connect(), tcp_disconnect(), tcp_gethost(), and tcp_shutdownsocket().

#define DBGMSG (   DBGFILE,
  MSG,
  LEN 
)

Definition at line 1248 of file stdsoap2.h.

Referenced by soap_end_send(), soap_flush_raw(), soap_getchunkchar(), and soap_recv_raw().

#define DBL_NAN   (*(double*)(void*)&soap_double_nan)

Definition at line 957 of file stdsoap2.h.

Referenced by soap_s2double().

#define DBL_NINFTY   (-DBL_PINFTY)

Definition at line 975 of file stdsoap2.h.

Referenced by soap_s2double().

#define DBL_PINFTY   (1.7976931348623157e+308)

Definition at line 970 of file stdsoap2.h.

Referenced by soap_s2double().

#define FD_SETSIZE   (1024)

Definition at line 705 of file stdsoap2.h.

Referenced by frecv(), and fsend().

#define FLT_NAN   (*(float*)(void*)&soap_double_nan)

Definition at line 935 of file stdsoap2.h.

Referenced by soap_s2float().

#define FLT_NINFTY   (-FLT_PINFTY)

Definition at line 953 of file stdsoap2.h.

Referenced by soap_s2float().

#define FLT_PINFTY   (3.40282347e+38F)

Definition at line 948 of file stdsoap2.h.

Referenced by soap_s2float().

#define HAVE_FTIME

Definition at line 469 of file stdsoap2.h.

#define HAVE_GETHOSTBYNAME_R

Definition at line 471 of file stdsoap2.h.

#define HAVE_GMTIME_R

Definition at line 472 of file stdsoap2.h.

#define HAVE_LOCALTIME_R

Definition at line 473 of file stdsoap2.h.

#define HAVE_MBTOWC

Definition at line 475 of file stdsoap2.h.

#define HAVE_RAND_R

Definition at line 470 of file stdsoap2.h.

#define HAVE_SSCANF

Definition at line 465 of file stdsoap2.h.

#define HAVE_STRRCHR

Definition at line 463 of file stdsoap2.h.

#define HAVE_STRTOD

Definition at line 464 of file stdsoap2.h.

#define HAVE_STRTOL

Definition at line 466 of file stdsoap2.h.

#define HAVE_STRTOUL

Definition at line 467 of file stdsoap2.h.

#define HAVE_SYS_TIMEB_H

Definition at line 468 of file stdsoap2.h.

#define HAVE_WCTOMB

Definition at line 474 of file stdsoap2.h.

#define LONG64   long long

Definition at line 733 of file stdsoap2.h.

Referenced by soap_inLONG64().

#define SOAP_BEGIN   0

Definition at line 1154 of file stdsoap2.h.

Referenced by soap_begin_count(), soap_begin_recv(), and soap_begin_send().

#define SOAP_BEGIN_SECURITY   10

Definition at line 1163 of file stdsoap2.h.

Referenced by soap_element(), and soap_set_attr().

#define SOAP_BLKLEN   (256) /* size of blocks to collect long strings and XML attributes */
#define SOAP_BUFLEN   (65536) /* buffer length for socket packets, also used by gethostbyname_r and UDP messages, so don't make this too small */
#define SOAP_C_MBSTRING   0x00400000 /* (de)serialize strings with multi-byte content */

Definition at line 1118 of file stdsoap2.h.

Referenced by soap_string_in(), and soap_string_out().

#define SOAP_C_NILSTRING   0x00800000 /* serialize empty strings as nil (omitted) */

Definition at line 1119 of file stdsoap2.h.

Referenced by soap_out_std__string(), soap_outstring(), and soap_outwstring().

#define SOAP_C_NOIOB   0x00100000 /* don't fault on array index out of bounds (just ignore) */

Definition at line 1116 of file stdsoap2.h.

#define SOAP_C_UTFSTRING   0x00200000 /* (de)serialize strings with UTF8 content */

Definition at line 1117 of file stdsoap2.h.

Referenced by soap_s2string(), soap_string_in(), and soap_string_out().

#define soap_check_state (   soap)    (!(soap) || ((soap)->state != SOAP_INIT && (soap)->state != SOAP_COPY))
#define SOAP_CLI_FAULT   1

Definition at line 996 of file stdsoap2.h.

Referenced by soap_recv_fault(), and soap_set_fault().

#define soap_closesocket (   n)    close(n)

Definition at line 693 of file stdsoap2.h.

Referenced by tcp_closesocket().

#define soap_clr_imode (   soap,
 
)    ((soap)->imode &= ~(n))

Definition at line 1904 of file stdsoap2.h.

#define soap_clr_mode (   soap,
 
)    ((soap)->imode &= ~(n), (soap)->omode &= ~(n))

Definition at line 1909 of file stdsoap2.h.

#define soap_clr_omode (   soap,
 
)    ((soap)->omode &= ~(n))

Definition at line 1907 of file stdsoap2.h.

#define SOAP_CMAC

Definition at line 114 of file stdsoap2.h.

#define SOAP_COPY   2

Definition at line 1148 of file stdsoap2.h.

Referenced by soap_copy_context().

#define SOAP_DATAENCODINGUNKNOWN   41

Definition at line 1036 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_DEL_METHOD   17

Definition at line 1012 of file stdsoap2.h.

Referenced by http_del().

#define soap_destroy (   soap)    soap_delete((soap), NULL)

Definition at line 1910 of file stdsoap2.h.

#define SOAP_DIME_ABSURI   0x20

Definition at line 1073 of file stdsoap2.h.

Referenced by soap_envelope_end_out().

#define SOAP_DIME_CF   0x01

Definition at line 1068 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_getdime(), soap_putdime(), and soap_recv().

#define SOAP_DIME_END   35

Definition at line 1030 of file stdsoap2.h.

Referenced by soap_getdime(), soap_getdimehdr(), and soap_set_fault().

#define SOAP_DIME_ERROR   32

Definition at line 1027 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_DIME_HREF   33

Definition at line 1028 of file stdsoap2.h.

Referenced by soap_end_recv(), and soap_set_fault().

#define SOAP_DIME_MB   0x04

Definition at line 1070 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_envelope_end_out(), and soap_putdime().

#define SOAP_DIME_ME   0x02

Definition at line 1069 of file stdsoap2.h.

Referenced by soap_envelope_end_out(), soap_getdimehdr(), and soap_putdime().

#define SOAP_DIME_MEDIA   0x10

Definition at line 1072 of file stdsoap2.h.

Referenced by soap_putdime().

#define SOAP_DIME_MISMATCH   34

Definition at line 1029 of file stdsoap2.h.

Referenced by soap_getdimehdr(), and soap_set_fault().

#define SOAP_DIME_VERSION   0x08 /* DIME version 1 */

Definition at line 1071 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_getdimehdr(), soap_putdime(), and soap_putdimehdr().

#define SOAP_DOM_ASIS   0x04000000

Definition at line 1123 of file stdsoap2.h.

Referenced by soap_element().

#define SOAP_DOM_NODE   0x02000000

Definition at line 1122 of file stdsoap2.h.

#define SOAP_DOM_TREE   0x01000000

Definition at line 1121 of file stdsoap2.h.

#define SOAP_DUPLICATE_ID   24

Definition at line 1019 of file stdsoap2.h.

Referenced by soap_id_enter(), and soap_set_fault().

#define SOAP_EADDRINUSE   EADDRINUSE

Definition at line 780 of file stdsoap2.h.

Referenced by tcp_connect().

#define SOAP_EAGAIN   EAGAIN

Definition at line 779 of file stdsoap2.h.

Referenced by frecv(), fsend(), soap_accept(), and tcp_connect().

#define SOAP_EINPROGRESS   EINPROGRESS

Definition at line 786 of file stdsoap2.h.

Referenced by tcp_connect().

#define SOAP_EINTR   EINTR

Definition at line 778 of file stdsoap2.h.

Referenced by frecv(), fsend(), soap_accept(), soap_poll(), tcp_connect(), and tcp_disconnect().

#define SOAP_ENC   0x00000FFF /* IO and ENC mask */

Definition at line 1105 of file stdsoap2.h.

Referenced by tcp_connect().

#define SOAP_ENC_DIME   0x00000080
#define SOAP_ENC_LATIN   0x00000020 /* accept iso-8859-1 encoding */

Definition at line 1097 of file stdsoap2.h.

Referenced by soap_get_pi(), soap_getutf8(), soap_s2string(), soap_s2wchar(), and soap_string_in().

#define SOAP_ENC_MIME   0x00000100
#define SOAP_ENC_MTOM   0x00000200
#define SOAP_ENC_SSL   0x00000800

Definition at line 1103 of file stdsoap2.h.

Referenced by http_parse_header(), soap_poll(), and tcp_connect().

#define SOAP_ENC_XML   0x00000040 /* plain XML encoding, no HTTP header */
#define SOAP_ENC_ZLIB   0x00000400
#define SOAP_END   9

Definition at line 1162 of file stdsoap2.h.

Referenced by soap_begin(), soap_end_recv(), and soap_end_send().

#define SOAP_END_BODY   7

Definition at line 1160 of file stdsoap2.h.

Referenced by soap_body_end_in(), and soap_body_end_out().

#define SOAP_END_ENVELOPE   8

Definition at line 1161 of file stdsoap2.h.

Referenced by soap_envelope_end_in(), and soap_envelope_end_out().

#define SOAP_END_HEADER   4

Definition at line 1157 of file stdsoap2.h.

Referenced by soap_getheader(), and soap_putheader().

#define SOAP_END_SECURITY   12

Definition at line 1165 of file stdsoap2.h.

#define SOAP_EOF   EOF
#define SOAP_EOM   20

Definition at line 1015 of file stdsoap2.h.

Referenced by http_post(), http_response(), soap_append_lab(), soap_attachment(), soap_dime_forward(), soap_flush_raw(), soap_get_mime_attachment(), soap_getattrval(), soap_getdime(), soap_getdimefield(), soap_getmimehdr(), soap_id_forward(), soap_instantiate_ArrayOf_USCORExsd_USCOREstring(), soap_instantiate_ns2__checkRegExp(), soap_instantiate_ns2__checkRegExpResponse(), soap_instantiate_ns2__getDataResources(), soap_instantiate_ns2__getDataResourcesResponse(), soap_instantiate_ns2__getDataTypeDef(), soap_instantiate_ns2__getDataTypeDefResponse(), soap_instantiate_ns2__getDataTypePattern(), soap_instantiate_ns2__getDataTypePatternResponse(), soap_instantiate_ns2__getDataTypesId(), soap_instantiate_ns2__getDataTypesIdResponse(), soap_instantiate_ns2__getDataTypesName(), soap_instantiate_ns2__getDataTypesNameResponse(), soap_instantiate_ns2__getDataTypeSynonyms(), soap_instantiate_ns2__getDataTypeSynonymsResponse(), soap_instantiate_ns2__getDataTypeURI(), soap_instantiate_ns2__getDataTypeURIResponse(), soap_instantiate_ns2__getDataTypeURIs(), soap_instantiate_ns2__getDataTypeURIsResponse(), soap_instantiate_ns2__getJavaLibraryVersion(), soap_instantiate_ns2__getJavaLibraryVersionResponse(), soap_instantiate_ns2__getLocation(), soap_instantiate_ns2__getLocationResponse(), soap_instantiate_ns2__getLocations(), soap_instantiate_ns2__getLocations_(), soap_instantiate_ns2__getLocationsResponse(), soap_instantiate_ns2__getLocationsResponse_(), soap_instantiate_ns2__getMiriamURI(), soap_instantiate_ns2__getMiriamURIResponse(), soap_instantiate_ns2__getName(), soap_instantiate_ns2__getNameResponse(), soap_instantiate_ns2__getNames(), soap_instantiate_ns2__getNamesResponse(), soap_instantiate_ns2__getOfficialDataTypeURI(), soap_instantiate_ns2__getOfficialDataTypeURIResponse(), soap_instantiate_ns2__getResourceInfo(), soap_instantiate_ns2__getResourceInfoResponse(), soap_instantiate_ns2__getResourceInstitution(), soap_instantiate_ns2__getResourceInstitutionResponse(), soap_instantiate_ns2__getResourceLocation(), soap_instantiate_ns2__getResourceLocationResponse(), soap_instantiate_ns2__getServicesInfo(), soap_instantiate_ns2__getServicesInfoResponse(), soap_instantiate_ns2__getServicesVersion(), soap_instantiate_ns2__getServicesVersionResponse(), soap_instantiate_ns2__getURI(), soap_instantiate_ns2__getURIResponse(), soap_instantiate_ns2__isDeprecated(), soap_instantiate_ns2__isDeprecatedResponse(), soap_instantiate_SOAP_ENV__Code(), soap_instantiate_SOAP_ENV__Detail(), soap_instantiate_SOAP_ENV__Fault(), soap_instantiate_SOAP_ENV__Header(), soap_instantiate_SOAP_ENV__Reason(), soap_instantiate_std__string(), soap_malloc(), soap_new_block(), soap_peek_element(), soap_pointer_enter(), soap_push_block(), soap_push_namespace(), soap_push_ns(), soap_register_plugin_arg(), soap_s2string(), soap_save_block(), soap_set_attr(), soap_set_dime_attachment(), soap_set_fault(), and soap_set_mime_attachment().

#define SOAP_ERANGE   ERANGE
#define SOAP_ERR   EOF
#define soap_errno   errno
#define SOAP_EWOULDBLOCK   EWOULDBLOCK

Definition at line 785 of file stdsoap2.h.

Referenced by frecv(), fsend(), soap_accept(), and tcp_connect().

#define SOAP_FATAL_ERROR   11

Definition at line 1006 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_FAULT   12

Definition at line 1007 of file stdsoap2.h.

Referenced by soap_copy_fault(), soap_recv_fault(), and soap_set_fault().

#define SOAP_FD_EXCEEDED   46

Definition at line 1041 of file stdsoap2.h.

Referenced by frecv(), fsend(), soap_accept(), soap_poll(), soap_set_fault(), and tcp_connect().

#define SOAP_FILE   1003 /* Custom file-based response */

Definition at line 1059 of file stdsoap2.h.

Referenced by http_response(), soap_puthttphdr(), and soap_response().

#define SOAP_FMAC1

Definition at line 82 of file stdsoap2.h.

#define SOAP_FMAC2

Definition at line 86 of file stdsoap2.h.

#define SOAP_FMAC3

Definition at line 90 of file stdsoap2.h.

#define SOAP_FMAC3S   SOAP_FMAC3

Definition at line 94 of file stdsoap2.h.

#define SOAP_FMAC4

Definition at line 98 of file stdsoap2.h.

#define SOAP_FMAC4S   SOAP_FMAC4

Definition at line 102 of file stdsoap2.h.

#define SOAP_FMAC5

Definition at line 106 of file stdsoap2.h.

#define SOAP_FMAC6

Definition at line 110 of file stdsoap2.h.

#define SOAP_FORM   1001 /* Form request/response */

Definition at line 1057 of file stdsoap2.h.

Referenced by soap_begin_recv().

#define SOAP_FREE (   soap,
  ptr 
)    free(ptr)
#define SOAP_GAI_STRERROR   gai_strerror

Definition at line 701 of file stdsoap2.h.

Referenced by soap_bind(), and tcp_connect().

#define SOAP_GET   2001

Definition at line 1064 of file stdsoap2.h.

Referenced by http_post(), and soap_puthttphdr().

#define soap_get0 (   soap)    (((soap)->bufidx>=(soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx])

Definition at line 1892 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_get(), and soap_getline().

#define soap_get1 (   soap)    (((soap)->bufidx>=(soap)->buflen && soap_recv(soap)) ? EOF : (unsigned char)(soap)->buf[(soap)->bufidx++])
#define SOAP_GET_METHOD   15

Definition at line 1010 of file stdsoap2.h.

Referenced by http_get(), and soap_set_fault().

#define SOAP_HDR   22

Definition at line 1017 of file stdsoap2.h.

Referenced by soap_getline(), and soap_set_fault().

#define SOAP_HDRLEN   (8192) /* maximum length of HTTP header line (must be >4096 to read cookies) */

Definition at line 855 of file stdsoap2.h.

Referenced by http_parse().

#define SOAP_HEAD_METHOD   18

Definition at line 1013 of file stdsoap2.h.

Referenced by http_head(), and soap_set_fault().

#define SOAP_HREF   26

Definition at line 1021 of file stdsoap2.h.

Referenced by soap_id_enter(), soap_id_forward(), soap_id_lookup(), and soap_set_fault().

#define SOAP_HTML   1002 /* Custom HTML response */

Definition at line 1058 of file stdsoap2.h.

Referenced by http_response(), soap_puthttphdr(), and soap_response().

#define SOAP_HTTP_ERROR   29

Definition at line 1024 of file stdsoap2.h.

Referenced by soap_set_fault().

#define soap_http_error_check (   e)    ((e) == SOAP_HTTP_ERROR || ((e) >= SOAP_GET_METHOD && (e) <= SOAP_HTTP_METHOD)|| (e) == SOAP_NO_DATA || ((e) >= 100 && (e) < 600))

Definition at line 1048 of file stdsoap2.h.

#define SOAP_HTTP_METHOD   19

Definition at line 1014 of file stdsoap2.h.

Referenced by http_parse(), and soap_set_fault().

#define SOAP_IDHASH   (1999) /* prime size of hash table for parsed id/ref */
#define soap_imode (   soap,
 
)    ((soap)->mode = (soap)->imode = (n))
#define SOAP_IN_BODY   6

Definition at line 1159 of file stdsoap2.h.

Referenced by soap_body_begin_in(), soap_body_begin_out(), and soap_element().

#define SOAP_IN_ENVELOPE   2

Definition at line 1155 of file stdsoap2.h.

Referenced by soap_envelope_begin_in(), and soap_envelope_begin_out().

#define SOAP_IN_HEADER   3
#define SOAP_IN_SECURITY   11

Definition at line 1164 of file stdsoap2.h.

Referenced by soap_element().

#define SOAP_INDEX_RECV   (0)

Definition at line 870 of file stdsoap2.h.

Referenced by soap_copy_context().

#define SOAP_INDEX_SENT   (1)

Definition at line 871 of file stdsoap2.h.

Referenced by soap_copy_context().

#define SOAP_INDEX_TEST   (2)

Definition at line 872 of file stdsoap2.h.

Referenced by soap_copy_context().

#define SOAP_INIT   1

Definition at line 1147 of file stdsoap2.h.

Referenced by soap_done(), and soap_init().

#define soap_int32   int32_t

Definition at line 766 of file stdsoap2.h.

Referenced by tcp_gethost().

#define SOAP_INVALID_SOCKET   ((SOAP_SOCKET)-1)

Definition at line 697 of file stdsoap2.h.

Referenced by soap_accept(), soap_bind(), soap_done(), soap_init(), tcp_connect(), and tcp_disconnect().

#define SOAP_IO   0x00000003 /* IO mask */
#define SOAP_IO_BUFFER   0x00000001 /* buffer output in packets of size SOAP_BUFLEN */
#define SOAP_IO_CHUNK   0x00000003 /* use HTTP chunked transfer AND buffer packets */
#define SOAP_IO_DEFAULT   SOAP_IO_FLUSH
#define SOAP_IO_FLUSH   0x00000000 /* flush output immediately, no buffering */
#define SOAP_IO_KEEPALIVE   0x00000010 /* keep connection alive */
#define SOAP_IO_LENGTH   0x00000008 /* calc message length (internal) */

Definition at line 1094 of file stdsoap2.h.

Referenced by MiriamWebServicesSoapBindingProxy::checkRegExp(), MiriamWebServicesSoapBindingProxy::getDataResources(), MiriamWebServicesSoapBindingProxy::getDataTypeDef(), MiriamWebServicesSoapBindingProxy::getDataTypePattern(), MiriamWebServicesSoapBindingProxy::getDataTypesId(), MiriamWebServicesSoapBindingProxy::getDataTypesName(), MiriamWebServicesSoapBindingProxy::getDataTypeSynonyms(), MiriamWebServicesSoapBindingProxy::getDataTypeURI(), MiriamWebServicesSoapBindingProxy::getDataTypeURIs(), MiriamWebServicesSoapBindingProxy::getJavaLibraryVersion(), MiriamWebServicesSoapBindingProxy::getLocation(), MiriamWebServicesSoapBindingProxy::getLocations(), MiriamWebServicesSoapBindingProxy::getLocations_(), MiriamWebServicesSoapBindingProxy::getMiriamURI(), MiriamWebServicesSoapBindingProxy::getName(), MiriamWebServicesSoapBindingProxy::getNames(), MiriamWebServicesSoapBindingProxy::getOfficialDataTypeURI(), MiriamWebServicesSoapBindingProxy::getResourceInfo(), MiriamWebServicesSoapBindingProxy::getResourceInstitution(), MiriamWebServicesSoapBindingProxy::getResourceLocation(), MiriamWebServicesSoapBindingProxy::getServicesInfo(), MiriamWebServicesSoapBindingProxy::getServicesVersion(), MiriamWebServicesSoapBindingProxy::getURI(), MiriamWebServicesSoapBindingProxy::isDeprecated(), soap_attachment(), soap_begin_count(), soap_begin_send(), soap_embedded_id(), soap_envelope_begin_out(), soap_envelope_end_out(), soap_is_embedded(), soap_is_single(), soap_send_fault(), soap_send_raw(), and soap_set_embedded().

#define SOAP_IO_STORE   0x00000002 /* store entire output to determine length for transport */
#define SOAP_IO_UDP   0x00000004 /* TCP or UDP */
#define SOAP_IOB   7

Definition at line 1002 of file stdsoap2.h.

Referenced by soap_in_ArrayOf_USCORExsd_USCOREstring(), and soap_set_fault().

#define soap_isnan (   n)    (0)

Definition at line 982 of file stdsoap2.h.

Referenced by soap_double2s(), and soap_float2s().

#define soap_isninfd (   n)    ((n) <= DBL_NINFTY)

Definition at line 988 of file stdsoap2.h.

Referenced by soap_double2s().

#define soap_isninff (   n)    ((n) <= FLT_NINFTY)

Definition at line 989 of file stdsoap2.h.

Referenced by soap_float2s().

#define soap_ispinfd (   n)    ((n) >= DBL_PINFTY)

Definition at line 986 of file stdsoap2.h.

Referenced by soap_double2s().

#define soap_ispinff (   n)    ((n) >= FLT_PINFTY)

Definition at line 987 of file stdsoap2.h.

Referenced by soap_float2s().

#define SOAP_LABLEN   (256) /* initial look-aside buffer length */

Definition at line 820 of file stdsoap2.h.

Referenced by soap_append_lab(), and soap_peek_element().

#define SOAP_LENGTH   45

Definition at line 1040 of file stdsoap2.h.

Referenced by soap_set_fault(), soap_string_in(), and soap_wstring_in().

#define SOAP_LONG_FORMAT   "%lld" /* printf format for 64 bit ints */

Definition at line 746 of file stdsoap2.h.

Referenced by soap_LONG642s(), and soap_s2LONG64().

#define SOAP_MALLOC (   soap,
  size 
)    malloc(size)
#define SOAP_MAXARRAYSIZE   (1000000)

Definition at line 884 of file stdsoap2.h.

Referenced by soap_getsize(), and soap_getsizes().

#define SOAP_MAXDIMS   (16) /* maximum array dimensions (array nestings) must be less than 64 to protect soap->tmpbuf */

Definition at line 862 of file stdsoap2.h.

Referenced by soap_getposition().

#define SOAP_MAXKEEPALIVE   (100)

Definition at line 877 of file stdsoap2.h.

Referenced by soap_init().

#define SOAP_MAXLOGS   (3) /* max number of debug logs per struct soap environment */

Definition at line 869 of file stdsoap2.h.

Referenced by soap_done(), and soap_init_logs().

#define SOAP_MIME_END   38

Definition at line 1033 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_MIME_ERROR   36

Definition at line 1031 of file stdsoap2.h.

Referenced by soap_get_mime_attachment(), soap_getmimehdr(), and soap_set_fault().

#define SOAP_MIME_HREF   37

Definition at line 1032 of file stdsoap2.h.

Referenced by soap_end_recv(), and soap_set_fault().

#define SOAP_MIME_POSTCHECK   0x10000000 /* MIME flag (internal) */
#define SOAP_MISSING_ID   25

Definition at line 1020 of file stdsoap2.h.

Referenced by soap_resolve(), and soap_set_fault().

#define SOAP_MOE   21

Definition at line 1016 of file stdsoap2.h.

Referenced by soap_dealloc(), and soap_set_fault().

#define SOAP_MUSTUNDERSTAND   8

Definition at line 1003 of file stdsoap2.h.

Referenced by soap_ignore_element(), soap_recv_fault(), and soap_set_fault().

#define SOAP_NAMESPACE   9
#define SOAP_NMAC

Definition at line 118 of file stdsoap2.h.

#define SOAP_NO_BODY   5

Definition at line 1158 of file stdsoap2.h.

Referenced by soap_body_begin_in(), and soap_body_end_in().

#define SOAP_NO_DATA   14

Definition at line 1009 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_recv_empty_response(), and soap_set_fault().

#define SOAP_NO_METHOD   13

Definition at line 1008 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_NO_TAG   6

Definition at line 1001 of file stdsoap2.h.

Referenced by soap_element_begin_in(), soap_element_end_in(), soap_getindependent(), soap_ignore_element(), soap_in_ArrayOf_USCORExsd_USCOREstring(), soap_in_ns2__checkRegExp(), soap_in_ns2__checkRegExpResponse(), soap_in_ns2__getDataResources(), soap_in_ns2__getDataResourcesResponse(), soap_in_ns2__getDataTypeDef(), soap_in_ns2__getDataTypeDefResponse(), soap_in_ns2__getDataTypePattern(), soap_in_ns2__getDataTypePatternResponse(), soap_in_ns2__getDataTypesId(), soap_in_ns2__getDataTypesIdResponse(), soap_in_ns2__getDataTypesName(), soap_in_ns2__getDataTypesNameResponse(), soap_in_ns2__getDataTypeSynonyms(), soap_in_ns2__getDataTypeSynonymsResponse(), soap_in_ns2__getDataTypeURI(), soap_in_ns2__getDataTypeURIResponse(), soap_in_ns2__getDataTypeURIs(), soap_in_ns2__getDataTypeURIsResponse(), soap_in_ns2__getJavaLibraryVersion(), soap_in_ns2__getJavaLibraryVersionResponse(), soap_in_ns2__getLocation(), soap_in_ns2__getLocationResponse(), soap_in_ns2__getLocations(), soap_in_ns2__getLocations_(), soap_in_ns2__getLocationsResponse(), soap_in_ns2__getLocationsResponse_(), soap_in_ns2__getMiriamURI(), soap_in_ns2__getMiriamURIResponse(), soap_in_ns2__getName(), soap_in_ns2__getNameResponse(), soap_in_ns2__getNames(), soap_in_ns2__getNamesResponse(), soap_in_ns2__getOfficialDataTypeURI(), soap_in_ns2__getOfficialDataTypeURIResponse(), soap_in_ns2__getResourceInfo(), soap_in_ns2__getResourceInfoResponse(), soap_in_ns2__getResourceInstitution(), soap_in_ns2__getResourceInstitutionResponse(), soap_in_ns2__getResourceLocation(), soap_in_ns2__getResourceLocationResponse(), soap_in_ns2__getServicesInfo(), soap_in_ns2__getServicesInfoResponse(), soap_in_ns2__getServicesVersion(), soap_in_ns2__getServicesVersionResponse(), soap_in_ns2__getURI(), soap_in_ns2__getURIResponse(), soap_in_ns2__isDeprecated(), soap_in_ns2__isDeprecatedResponse(), soap_in_SOAP_ENV__Code(), soap_in_SOAP_ENV__Detail(), soap_in_SOAP_ENV__Fault(), soap_in_SOAP_ENV__Header(), soap_in_SOAP_ENV__Reason(), soap_inliteral(), soap_instring(), soap_inwliteral(), soap_inwstring(), soap_peek_element(), and soap_set_fault().

#define SOAP_NONE   0

Definition at line 1146 of file stdsoap2.h.

Referenced by soap_done().

#define SOAP_NULL   23

Definition at line 1018 of file stdsoap2.h.

Referenced by soap_element_begin_in(), and soap_set_fault().

#define SOAP_OCCURS   44
#define SOAP_OK   0

Definition at line 995 of file stdsoap2.h.

Referenced by fsend(), http_parse(), http_parse_header(), http_post(), http_send_header(), soap_accept(), soap_append_lab(), soap_attribute(), soap_begin(), soap_begin_count(), soap_begin_recv(), soap_begin_send(), soap_body_begin_in(), soap_body_end_in(), soap_body_end_out(), soap_connect_command(), soap_copy_context(), soap_dime_forward(), soap_element(), soap_element_begin_in(), soap_element_begin_out(), soap_element_end_in(), soap_element_end_out(), soap_element_href(), soap_element_null(), soap_element_result(), soap_element_start_end_out(), soap_end_count(), soap_end_recv(), soap_end_send(), soap_envelope_begin_in(), soap_envelope_end_out(), soap_fdelete(), soap_flush(), soap_flush_raw(), soap_getattrval(), soap_getdime(), soap_getdimehdr(), soap_getindependent(), soap_getline(), soap_getmimehdr(), soap_has_copies(), soap_ignore_element(), soap_in_ArrayOf_USCORExsd_USCOREstring(), soap_inliteral(), soap_instring(), soap_inwliteral(), soap_inwstring(), soap_isnumeric(), soap_match_array(), soap_match_namespace(), soap_match_tag(), soap_move(), soap_out_std__string(), soap_outliteral(), soap_outstring(), soap_outwliteral(), soap_outwstring(), soap_peek_element(), soap_poll(), soap_push_namespace(), soap_putbase64(), soap_putdime(), soap_putdimehdr(), soap_putelement(), soap_putfault(), soap_putheader(), soap_puthex(), soap_puthttphdr(), soap_putindependent(), soap_putmime(), soap_recv(), soap_recv_empty_response(), soap_recv_fault(), soap_recv_header(), soap_recv_raw(), soap_register_plugin_arg(), soap_resolve(), soap_response(), soap_retry(), soap_s2wchar(), soap_send(), soap_send_empty_response(), soap_send_fault(), soap_send_raw(), soap_set_attr(), soap_set_dime_attachment(), soap_set_mime_attachment(), soap_set_namespaces(), soap_string_out(), soap_try_connect_command(), soap_valid_mime_boundary(), soap_wstring_out(), soap_xop_forward(), tcp_disconnect(), tcp_gethost(), and CMIRIAMResources::updateMIRIAMResources().

#define soap_omode (   soap,
 
)    ((soap)->mode = (soap)->omode = (n))
#define SOAP_PLUGIN_ERROR   40

Definition at line 1035 of file stdsoap2.h.

Referenced by soap_set_fault().

#define SOAP_POST   2000

Definition at line 1063 of file stdsoap2.h.

Referenced by soap_connect(), soap_end_send(), and soap_try_connect_command().

#define SOAP_PROHIBITED   43

Definition at line 1038 of file stdsoap2.h.

Referenced by soap_attr_value(), and soap_set_fault().

#define SOAP_PTRBLK   (32) /* block allocation for pointer hash table chains */

Definition at line 823 of file stdsoap2.h.

Referenced by soap_pointer_enter().

#define SOAP_PTRHASH   (1024) /* size of pointer analysis hash table (must be power of 2) */

Definition at line 827 of file stdsoap2.h.

Referenced by soap_free_pht(), soap_init_pht(), and soap_putindependent().

#define SOAP_PUT_METHOD   16

Definition at line 1011 of file stdsoap2.h.

Referenced by http_put(), and soap_set_fault().

#define soap_random   rand()

Definition at line 1936 of file stdsoap2.h.

Referenced by fsend(), and soap_select_mime_boundary().

#define soap_register_plugin (   soap,
  plugin 
)    soap_register_plugin_arg(soap, plugin, NULL)

Definition at line 1901 of file stdsoap2.h.

#define SOAP_REQUIRED   42

Definition at line 1037 of file stdsoap2.h.

Referenced by soap_attr_value(), and soap_set_fault().

#define soap_reset_errno   (errno = 0)
#define soap_revget1 (   soap)    ((soap)->bufidx--)

Definition at line 1899 of file stdsoap2.h.

Referenced by soap_begin_recv(), soap_get(), and soap_getutf8().

#define soap_set_imode (   soap,
 
)    ((soap)->imode |= (n))

Definition at line 1903 of file stdsoap2.h.

#define soap_set_mode (   soap,
 
)    ((soap)->imode |= (n), (soap)->omode |= (n))

Definition at line 1908 of file stdsoap2.h.

#define soap_set_omode (   soap,
 
)    ((soap)->omode |= (n))

Definition at line 1906 of file stdsoap2.h.

#define soap_soap_error_check (   e)    ((e) == SOAP_CLI_FAULT || (e) == SOAP_SVR_FAULT || (e) == SOAP_VERSIONMISMATCH || (e) == SOAP_MUSTUNDERSTAND || (e) == SOAP_FAULT || (e) == SOAP_NO_METHOD)

Definition at line 1044 of file stdsoap2.h.

#define SOAP_SOCKET   int

Definition at line 692 of file stdsoap2.h.

Referenced by tcp_accept(), and tcp_connect().

#define soap_socket_errno (   s)    errno

Definition at line 803 of file stdsoap2.h.

Referenced by frecv(), fsend(), soap_accept(), soap_bind(), soap_poll(), tcp_connect(), and tcp_disconnect().

#define SOAP_SOCKLEN_T   size_t

Definition at line 684 of file stdsoap2.h.

Referenced by frecv(), tcp_accept(), and tcp_connect().

#define SOAP_SOURCE_STAMP (   str)

Definition at line 122 of file stdsoap2.h.

#define SOAP_SSL_ALLOW_EXPIRED_CERTIFICATE   0x08 /* client does not check the expiration date of the host certificate */

Definition at line 1135 of file stdsoap2.h.

#define SOAP_SSL_DEFAULT   (SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION | SOAP_SSLv3_TLSv1)

Definition at line 1142 of file stdsoap2.h.

Referenced by soap_init().

#define SOAP_SSL_ERROR   30

Definition at line 1025 of file stdsoap2.h.

Referenced by soap_closesock(), soap_set_fault(), tcp_connect(), and tcp_disconnect().

#define soap_ssl_error_check (   e)    ((e) == SOAP_SSL_ERROR)

Definition at line 1046 of file stdsoap2.h.

#define SOAP_SSL_NO_AUTHENTICATION   0x00 /* for testing purposes */

Definition at line 1131 of file stdsoap2.h.

#define SOAP_SSL_NO_DEFAULT_CA_PATH   0x10 /* don't use default_verify_paths */

Definition at line 1136 of file stdsoap2.h.

#define SOAP_SSL_REQUIRE_CLIENT_AUTHENTICATION   0x02 /* server requires client to authenticate */

Definition at line 1133 of file stdsoap2.h.

#define SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION   0x01 /* client requires server to authenticate */

Definition at line 1132 of file stdsoap2.h.

Referenced by tcp_connect().

#define SOAP_SSL_RSA   0x20 /* use RSA */

Definition at line 1137 of file stdsoap2.h.

#define SOAP_SSL_SKIP_HOST_CHECK   0x04 /* client does not check the common name of the host in certificate */

Definition at line 1134 of file stdsoap2.h.

Referenced by tcp_connect().

#define SOAP_SSLv3   0x40 /* SSL v3 only */

Definition at line 1138 of file stdsoap2.h.

#define SOAP_SSLv3_TLSv1   0x00 /* SSL v3 and TLS v1 support by default */

Definition at line 1140 of file stdsoap2.h.

#define SOAP_STD_API

Definition at line 1594 of file stdsoap2.h.

#define SOAP_STOP   1000 /* No HTTP response */
#define SOAP_STRCMP   strcmp /* case sensitive XML element/attribute names */

Definition at line 650 of file stdsoap2.h.

Referenced by soap_match_tag(), and soap_peek_element().

#define soap_strrchr (   s,
 
)    strrchr(s, t)

Definition at line 1913 of file stdsoap2.h.

Referenced by soap_array_begin_out(), and soap_peek_element().

#define soap_strtol (   s,
  t,
 
)    strtol(s, t, b)

Definition at line 1919 of file stdsoap2.h.

Referenced by soap_char(), soap_getsize(), soap_s2byte(), soap_s2int(), soap_s2long(), and soap_s2short().

#define soap_strtoul (   s,
  t,
 
)    strtoul(s, t, b)
#define SOAP_SVR_FAULT   2

Definition at line 997 of file stdsoap2.h.

Referenced by soap_recv_fault(), and soap_set_fault().

#define SOAP_SYNTAX_ERROR   5
#define SOAP_TAG_MISMATCH   3

Definition at line 998 of file stdsoap2.h.

Referenced by MiriamWebServicesSoapBindingProxy::checkRegExp(), MiriamWebServicesSoapBindingProxy::getDataResources(), MiriamWebServicesSoapBindingProxy::getDataTypeDef(), MiriamWebServicesSoapBindingProxy::getDataTypePattern(), MiriamWebServicesSoapBindingProxy::getDataTypesId(), MiriamWebServicesSoapBindingProxy::getDataTypesName(), MiriamWebServicesSoapBindingProxy::getDataTypeSynonyms(), MiriamWebServicesSoapBindingProxy::getDataTypeURI(), MiriamWebServicesSoapBindingProxy::getDataTypeURIs(), MiriamWebServicesSoapBindingProxy::getJavaLibraryVersion(), MiriamWebServicesSoapBindingProxy::getLocation(), MiriamWebServicesSoapBindingProxy::getLocations(), MiriamWebServicesSoapBindingProxy::getLocations_(), MiriamWebServicesSoapBindingProxy::getMiriamURI(), MiriamWebServicesSoapBindingProxy::getName(), MiriamWebServicesSoapBindingProxy::getNames(), MiriamWebServicesSoapBindingProxy::getOfficialDataTypeURI(), MiriamWebServicesSoapBindingProxy::getResourceInfo(), MiriamWebServicesSoapBindingProxy::getResourceInstitution(), MiriamWebServicesSoapBindingProxy::getResourceLocation(), MiriamWebServicesSoapBindingProxy::getServicesInfo(), MiriamWebServicesSoapBindingProxy::getServicesVersion(), MiriamWebServicesSoapBindingProxy::getURI(), MiriamWebServicesSoapBindingProxy::isDeprecated(), soap_element_begin_in(), soap_envelope_begin_in(), soap_getelement(), soap_ignore_element(), soap_in_ns2__checkRegExp(), soap_in_ns2__checkRegExpResponse(), soap_in_ns2__getDataResources(), soap_in_ns2__getDataResourcesResponse(), soap_in_ns2__getDataTypeDef(), soap_in_ns2__getDataTypeDefResponse(), soap_in_ns2__getDataTypePattern(), soap_in_ns2__getDataTypePatternResponse(), soap_in_ns2__getDataTypesId(), soap_in_ns2__getDataTypesIdResponse(), soap_in_ns2__getDataTypesName(), soap_in_ns2__getDataTypesNameResponse(), soap_in_ns2__getDataTypeSynonyms(), soap_in_ns2__getDataTypeSynonymsResponse(), soap_in_ns2__getDataTypeURI(), soap_in_ns2__getDataTypeURIResponse(), soap_in_ns2__getDataTypeURIs(), soap_in_ns2__getDataTypeURIsResponse(), soap_in_ns2__getJavaLibraryVersion(), soap_in_ns2__getJavaLibraryVersionResponse(), soap_in_ns2__getLocation(), soap_in_ns2__getLocationResponse(), soap_in_ns2__getLocations(), soap_in_ns2__getLocations_(), soap_in_ns2__getLocationsResponse(), soap_in_ns2__getLocationsResponse_(), soap_in_ns2__getMiriamURI(), soap_in_ns2__getMiriamURIResponse(), soap_in_ns2__getName(), soap_in_ns2__getNameResponse(), soap_in_ns2__getNames(), soap_in_ns2__getNamesResponse(), soap_in_ns2__getOfficialDataTypeURI(), soap_in_ns2__getOfficialDataTypeURIResponse(), soap_in_ns2__getResourceInfo(), soap_in_ns2__getResourceInfoResponse(), soap_in_ns2__getResourceInstitution(), soap_in_ns2__getResourceInstitutionResponse(), soap_in_ns2__getResourceLocation(), soap_in_ns2__getResourceLocationResponse(), soap_in_ns2__getServicesInfo(), soap_in_ns2__getServicesInfoResponse(), soap_in_ns2__getServicesVersion(), soap_in_ns2__getServicesVersionResponse(), soap_in_ns2__getURI(), soap_in_ns2__getURIResponse(), soap_in_ns2__isDeprecated(), soap_in_ns2__isDeprecatedResponse(), soap_in_SOAP_ENV__Code(), soap_in_SOAP_ENV__Detail(), soap_in_SOAP_ENV__Fault(), soap_in_SOAP_ENV__Header(), soap_in_SOAP_ENV__Reason(), soap_match_array(), soap_match_tag(), soap_recv_header(), and soap_set_fault().

#define SOAP_TAGLEN   (1024) /* maximum length of XML element tag/attribute name or host/path name + 1 */

Definition at line 848 of file stdsoap2.h.

#define SOAP_TCP_ERROR   28
#define soap_tcp_error_check (   e)    ((e) == SOAP_EOF || (e) == SOAP_TCP_ERROR)

Definition at line 1045 of file stdsoap2.h.

#define SOAP_TLSv1   0x80 /* TLS v1 only */

Definition at line 1139 of file stdsoap2.h.

#define SOAP_TYPE   4
#define SOAP_UDP_ERROR   27

Definition at line 1022 of file stdsoap2.h.

Referenced by soap_begin_send(), and soap_set_fault().

#define SOAP_ULONG_FORMAT   "%llu" /* printf format for unsigned 64 bit ints */

Definition at line 750 of file stdsoap2.h.

Referenced by soap_s2ULONG64(), and soap_ULONG642s().

#define soap_unget (   soap,
 
)    ((soap)->ahead = c)
#define SOAP_USER_ERROR   10

Definition at line 1005 of file stdsoap2.h.

Referenced by soap_set_fault().

#define soap_valid_socket (   n)    ((n) != SOAP_INVALID_SOCKET)
#define SOAP_VERSIONMISMATCH   39

Definition at line 1034 of file stdsoap2.h.

Referenced by soap_envelope_begin_in(), soap_recv_fault(), and soap_set_fault().

#define SOAP_WINSOCKINT   size_t

Definition at line 587 of file stdsoap2.h.

Referenced by frecv(), and fsend().

#define SOAP_XML_CANONICAL   0x00004000 /* EXC C14N canonical XML */
#define SOAP_XML_DOM   0x00040000
#define soap_xml_error_check (   e)    ((e) == SOAP_TAG_MISMATCH || (e) == SOAP_NO_TAG || (e) == SOAP_SYNTAX_ERROR || (e) == SOAP_NAMESPACE || (e) == SOAP_DUPLICATE_ID || (e) == SOAP_MISSING_ID || (e) == SOAP_REQUIRED || (e) == SOAP_PROHIBITED || (e) == SOAP_OCCURS || (e) == SOAP_LENGTH || (e) == SOAP_NULL || (e) == SOAP_HREF)

Definition at line 1043 of file stdsoap2.h.

#define SOAP_XML_GRAPH   0x00010000
#define SOAP_XML_INDENT   0x00002000 /* emit indented XML */

Definition at line 1108 of file stdsoap2.h.

Referenced by soap_element(), and soap_element_end_out().

#define SOAP_XML_NIL   0x00020000

Definition at line 1112 of file stdsoap2.h.

Referenced by soap_element_null().

#define SOAP_XML_SEC   0x00080000 /* reserved for WS security */

Definition at line 1114 of file stdsoap2.h.

Referenced by soap_body_begin_out(), soap_element(), and soap_end_send().

#define SOAP_XML_STRICT   0x00001000 /* apply strict validation */

Definition at line 1107 of file stdsoap2.h.

Referenced by soap_attr_value(), soap_element_begin_in(), soap_element_end_in(), soap_ignore_element(), soap_in_ns2__checkRegExp(), soap_in_ns2__checkRegExpResponse(), soap_in_ns2__getDataResources(), soap_in_ns2__getDataTypeDef(), soap_in_ns2__getDataTypeDefResponse(), soap_in_ns2__getDataTypePattern(), soap_in_ns2__getDataTypePatternResponse(), soap_in_ns2__getDataTypeSynonyms(), soap_in_ns2__getDataTypeURI(), soap_in_ns2__getDataTypeURIResponse(), soap_in_ns2__getDataTypeURIs(), soap_in_ns2__getJavaLibraryVersionResponse(), soap_in_ns2__getLocation(), soap_in_ns2__getLocationResponse(), soap_in_ns2__getLocations(), soap_in_ns2__getLocations_(), soap_in_ns2__getMiriamURI(), soap_in_ns2__getMiriamURIResponse(), soap_in_ns2__getName(), soap_in_ns2__getNameResponse(), soap_in_ns2__getNames(), soap_in_ns2__getOfficialDataTypeURI(), soap_in_ns2__getOfficialDataTypeURIResponse(), soap_in_ns2__getResourceInfo(), soap_in_ns2__getResourceInfoResponse(), soap_in_ns2__getResourceInstitution(), soap_in_ns2__getResourceInstitutionResponse(), soap_in_ns2__getResourceLocation(), soap_in_ns2__getResourceLocationResponse(), soap_in_ns2__getServicesInfoResponse(), soap_in_ns2__getServicesVersionResponse(), soap_in_ns2__getURI(), soap_in_ns2__getURIResponse(), soap_in_ns2__isDeprecated(), soap_in_ns2__isDeprecatedResponse(), soap_s2int(), soap_s2long(), soap_s2LONG64(), soap_s2ULONG64(), soap_s2unsignedInt(), soap_s2unsignedLong(), soap_string_in(), and soap_wstring_in().

#define SOAP_XML_TREE   0x00008000 /* emit XML tree (no id/ref) */
#define SOAP_ZLIB_DEFLATE   0x01
#define SOAP_ZLIB_ERROR   31
#define soap_zlib_error_check (   e)    ((e) == SOAP_ZLIB_ERROR)

Definition at line 1047 of file stdsoap2.h.

#define SOAP_ZLIB_GZIP   0x02
#define SOAP_ZLIB_INFLATE   0x02

Definition at line 1079 of file stdsoap2.h.

Referenced by soap_begin_recv(), and soap_closesock().

#define SOAP_ZLIB_NONE   0x00
#define STDSOAP_H

Definition at line 143 of file stdsoap2.h.

#define ULONG64   unsigned LONG64

Definition at line 734 of file stdsoap2.h.

Referenced by soap_inULONG64().

#define WITH_FAST

Definition at line 127 of file stdsoap2.h.

Typedef Documentation

typedef int32_t soap_mode

Definition at line 1084 of file stdsoap2.h.

typedef int32_t soap_wchar

Definition at line 1257 of file stdsoap2.h.

Enumeration Type Documentation

Enumerator
SOAP_MIME_NONE 
SOAP_MIME_7BIT 
SOAP_MIME_8BIT 
SOAP_MIME_BINARY 
SOAP_MIME_QUOTED_PRINTABLE 
SOAP_MIME_BASE64 
SOAP_MIME_IETF_TOKEN 
SOAP_MIME_X_TOKEN 

Definition at line 1425 of file stdsoap2.h.

Function Documentation

int soap_accept ( struct soap )

Definition at line 5779 of file stdsoap2.cpp.

References soap::accept_flags, soap::accept_timeout, DBGLOG, soap::errmode, soap::errnum, soap::error, soap::faccept, soap::host, soap::imode, soap::ip, soap::keep_alive, soap::linger_time, soap::master, soap::omode, soap::peer, soap::peerlen, soap::port, soap::recv_timeout, soap::send_timeout, SOAP_BUFLEN, soap_closesock(), SOAP_EAGAIN, SOAP_EINTR, SOAP_EWOULDBLOCK, SOAP_FD_EXCEEDED, SOAP_INVALID_SOCKET, SOAP_IO_KEEPALIVE, SOAP_IO_UDP, SOAP_OK, soap_set_receiver_error(), soap_set_sender_error(), SOAP_SOCKBLOCK, soap_socket_errno, SOAP_SOCKNONBLOCK, SOAP_TCP_ERROR, soap_valid_socket, soap::socket, and tcp_error().

5780  {
5781  int n = (int)sizeof(soap->peer);
5782 #ifndef WITH_LEAN
5783  int len = SOAP_BUFLEN;
5784  int set = 1;
5785 #endif
5786  soap->error = SOAP_OK;
5787 #ifndef WITH_LEAN
5788 
5789  if ((soap->omode & SOAP_IO_UDP))
5790  return soap->socket = soap->master;
5791 
5792 #endif
5793  memset((void*)&soap->peer, 0, sizeof(soap->peer));
5795  soap->errmode = 0;
5796  soap->keep_alive = 0;
5797 
5799  {
5800  register int err;
5801 
5802  for (;;)
5803  {
5804 #ifndef WITH_LEAN
5805 
5807  {
5808 #ifndef WIN32
5809 
5810  if ((int)soap->socket >= (int)FD_SETSIZE)
5811  {
5813  return SOAP_INVALID_SOCKET; /* Hint: MUST increase FD_SETSIZE */
5814  }
5815 
5816 #endif
5817 
5818  for (;;)
5819  {
5820  struct timeval timeout;
5821  fd_set fd;
5822  register int r;
5823 
5824  if (soap->accept_timeout > 0)
5825  {
5826  timeout.tv_sec = soap->accept_timeout;
5827  timeout.tv_usec = 0;
5828  }
5829  else if (soap->accept_timeout < 0)
5830  {
5831  timeout.tv_sec = -soap->accept_timeout / 1000000;
5832  timeout.tv_usec = -soap->accept_timeout % 1000000;
5833  }
5834  else
5835  {
5836  timeout.tv_sec = 60;
5837  timeout.tv_usec = 0;
5838  }
5839 
5840  FD_ZERO(&fd);
5841  FD_SET(soap->master, &fd);
5842  r = select((int)soap->master + 1, &fd, &fd, &fd, &timeout);
5843 
5844  if (r > 0)
5845  break;
5846 
5847  if (!r && soap->accept_timeout)
5848  {
5849  soap->errnum = 0;
5850  soap_set_receiver_error(soap, "Timeout", "accept failed in soap_accept()", SOAP_TCP_ERROR);
5851  return SOAP_INVALID_SOCKET;
5852  }
5853 
5854  if (r < 0)
5855  {
5857 
5858  if (r != SOAP_EINTR)
5859  {
5860  soap->errnum = r;
5862  soap_set_sender_error(soap, tcp_error(soap), "accept failed in soap_accept()", SOAP_TCP_ERROR);
5863  return SOAP_INVALID_SOCKET;
5864  }
5865  }
5866  }
5867  }
5868 
5871  else
5872  SOAP_SOCKBLOCK(soap->master)
5873 #endif
5874  soap->socket = soap->faccept(soap, soap->master, (struct sockaddr*) & soap->peer, &n);
5875 
5876  soap->peerlen = (size_t)n;
5877 
5879  {
5880 #ifdef WITH_IPV6
5881  /* Use soap->host to store the numeric form of the remote host */
5882  getnameinfo((struct sockaddr*)&soap->peer, n, soap->host, sizeof(soap->host), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
5883  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Accept socket %d from %s\n", soap->socket, soap->host));
5884  soap->ip = 0; /* info stored in soap->peer and soap->host */
5885  soap->port = 0; /* info stored in soap->peer and soap->host */
5886 #else
5887  soap->ip = ntohl(soap->peer.sin_addr.s_addr);
5888  soap->port = (int)ntohs(soap->peer.sin_port); /* does not return port number on some systems */
5889  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Accept socket %d at port %d from IP %d.%d.%d.%d\n", soap->socket, soap->port, (int)(soap->ip >> 24)&0xFF, (int)(soap->ip >> 16)&0xFF, (int)(soap->ip >> 8)&0xFF, (int)soap->ip&0xFF));
5890 #endif
5891 #ifndef WITH_LEAN
5892 
5893  if (soap->accept_flags == SO_LINGER)
5894  {
5895  struct linger linger;
5896  memset((void*)&linger, 0, sizeof(linger));
5897  linger.l_onoff = 1;
5898  linger.l_linger = soap->linger_time;
5899 
5900  if (setsockopt(soap->socket, SOL_SOCKET, SO_LINGER, (char*)&linger, sizeof(struct linger)))
5901  {
5903  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt SO_LINGER failed in soap_accept()", SOAP_TCP_ERROR);
5905  return SOAP_INVALID_SOCKET;
5906  }
5907  }
5908  else if (soap->accept_flags && setsockopt(soap->socket, SOL_SOCKET, soap->accept_flags, (char*)&set, sizeof(int)))
5909  {
5911  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt failed in soap_accept()", SOAP_TCP_ERROR);
5913  return SOAP_INVALID_SOCKET;
5914  }
5915 
5916  if (((soap->imode | soap->omode) & SOAP_IO_KEEPALIVE) && setsockopt(soap->socket, SOL_SOCKET, SO_KEEPALIVE, (char*)&set, sizeof(int)))
5917  {
5919  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt SO_KEEPALIVE failed in soap_accept()", SOAP_TCP_ERROR);
5921  return SOAP_INVALID_SOCKET;
5922  }
5923 
5924  if (setsockopt(soap->socket, SOL_SOCKET, SO_SNDBUF, (char*)&len, sizeof(int)))
5925  {
5927  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt SO_SNDBUF failed in soap_accept()", SOAP_TCP_ERROR);
5929  return SOAP_INVALID_SOCKET;
5930  }
5931 
5932  if (setsockopt(soap->socket, SOL_SOCKET, SO_RCVBUF, (char*)&len, sizeof(int)))
5933  {
5935  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt SO_RCVBUF failed in soap_accept()", SOAP_TCP_ERROR);
5937  return SOAP_INVALID_SOCKET;
5938  }
5939 
5940 #ifdef TCP_NODELAY
5941 
5942  if (!(soap->omode & SOAP_IO_UDP) && setsockopt(soap->socket, IPPROTO_TCP, TCP_NODELAY, (char*)&set, sizeof(int)))
5943  {
5945  soap_set_receiver_error(soap, tcp_error(soap), "setsockopt TCP_NODELAY failed in soap_accept()", SOAP_TCP_ERROR);
5947  return SOAP_INVALID_SOCKET;
5948  }
5949 
5950 #endif
5951 #endif
5952  soap->keep_alive = (((soap->imode | soap->omode) & SOAP_IO_KEEPALIVE) != 0);
5953  return soap->socket;
5954  }
5955 
5956  err = soap_socket_errno(soap->socket);
5957 
5958  if (err != 0 && err != SOAP_EINTR && err != SOAP_EAGAIN && err != SOAP_EWOULDBLOCK)
5959  {
5960  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Accept failed from %s\n", soap->host));
5961  soap->errnum = err;
5962  soap_set_receiver_error(soap, tcp_error(soap), "accept failed in soap_accept()", SOAP_TCP_ERROR);
5964  return SOAP_INVALID_SOCKET;
5965  }
5966  }
5967  }
5968  else
5969  {
5970  soap->errnum = 0;
5971  soap_set_receiver_error(soap, tcp_error(soap), "no master socket in soap_accept()", SOAP_TCP_ERROR);
5972  return SOAP_INVALID_SOCKET;
5973  }
5974  }
#define soap_socket_errno(s)
Definition: stdsoap2.h:803
short keep_alive
Definition: stdsoap2.h:1742
int error
Definition: stdsoap2.h:1755
#define SOAP_SOCKNONBLOCK(fd)
Definition: stdsoap2.cpp:274
unsigned long ip
Definition: stdsoap2.h:1740
#define soap_valid_socket(n)
Definition: stdsoap2.h:698
int(* faccept)(struct soap *, int, struct sockaddr *, int *n)
Definition: stdsoap2.h:1655
soap_mode imode
Definition: stdsoap2.h:1602
#define SOAP_EWOULDBLOCK
Definition: stdsoap2.h:785
#define SOAP_BUFLEN
Definition: stdsoap2.h:814
#define FD_SETSIZE
Definition: stdsoap2.h:705
#define SOAP_IO_UDP
Definition: stdsoap2.h:1092
int accept_timeout
Definition: stdsoap2.h:1615
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
#define SOAP_EAGAIN
Definition: stdsoap2.h:779
int errmode
Definition: stdsoap2.h:1756
int soap_set_receiver_error(struct soap *soap, const char *faultstring, const char *faultdetailXML, int soaperror)
Definition: stdsoap2.cpp:19218
int master
Definition: stdsoap2.h:1683
soap_mode omode
Definition: stdsoap2.h:1603
int send_timeout
Definition: stdsoap2.h:1613
size_t peerlen
Definition: stdsoap2.h:1787
int soap_set_sender_error(struct soap *soap, const char *faultstring, const char *faultdetailXML, int soaperror)
Definition: stdsoap2.cpp:19207
static const char * tcp_error(struct soap *)
Definition: stdsoap2.cpp:4506
#define SOAP_SOCKBLOCK(fd)
Definition: stdsoap2.cpp:273
struct sockaddr_in peer
Definition: stdsoap2.h:1784
int errnum
Definition: stdsoap2.h:1757
char host[(1024)]
Definition: stdsoap2.h:1736
int recv_timeout
Definition: stdsoap2.h:1612
int port
Definition: stdsoap2.h:1741
int soap_closesock(struct soap *soap)
Definition: stdsoap2.cpp:6121
#define SOAP_INVALID_SOCKET
Definition: stdsoap2.h:697
#define SOAP_OK
Definition: stdsoap2.h:995
#define SOAP_TCP_ERROR
Definition: stdsoap2.h:1023
unsigned short linger_time
Definition: stdsoap2.h:1620
int socket
Definition: stdsoap2.h:1684
#define SOAP_IO_KEEPALIVE
Definition: stdsoap2.h:1095
#define SOAP_FD_EXCEEDED
Definition: stdsoap2.h:1041
int accept_flags
Definition: stdsoap2.h:1619
#define SOAP_EINTR
Definition: stdsoap2.h:778
int soap_append_lab ( struct soap ,
const char *  ,
size_t   
)

Definition at line 10289 of file stdsoap2.cpp.

References DBGLOG, soap::error, soap::labbuf, soap::labidx, soap::lablen, SOAP_EOM, SOAP_FREE, SOAP_LABLEN, SOAP_MALLOC, and SOAP_OK.

Referenced by soap_get_http_body(), soap_getbase64(), soap_gethex(), soap_peek_element(), soap_QName2s(), soap_s2QName(), soap_store_lab(), and soap_string_in().

10290  {
10291  if (soap->labidx + n >= soap->lablen)
10292  {
10293  register char *t = soap->labbuf;
10294  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Enlarging look-aside buffer to append data, old size=%lu", (unsigned long)soap->lablen));
10295 
10296  if (soap->lablen == 0)
10297  soap->lablen = SOAP_LABLEN;
10298 
10299  while (soap->labidx + n >= soap->lablen)
10300  soap->lablen <<= 1;
10301 
10302  DBGLOG(TEST, SOAP_MESSAGE(fdebug, ", new size=%lu\n", (unsigned long)soap->lablen));
10303  soap->labbuf = (char*)SOAP_MALLOC(soap, soap->lablen);
10304 
10305  if (!soap->labbuf)
10306  {
10307  if (t)
10308  SOAP_FREE(soap, t);
10309 
10310  return soap->error = SOAP_EOM;
10311  }
10312 
10313  if (t)
10314  {
10315  memcpy(soap->labbuf, t, soap->labidx);
10316  SOAP_FREE(soap, t);
10317  }
10318  }
10319 
10320  if (s)
10321  {
10322  memcpy(soap->labbuf + soap->labidx, s, n);
10323  soap->labidx += n;
10324  }
10325 
10326  return SOAP_OK;
10327  }
size_t lablen
Definition: stdsoap2.h:1708
#define SOAP_LABLEN
Definition: stdsoap2.h:820
int error
Definition: stdsoap2.h:1755
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
#define SOAP_MALLOC(soap, size)
Definition: stdsoap2.h:1190
size_t labidx
Definition: stdsoap2.h:1709
char * labbuf
Definition: stdsoap2.h:1707
#define SOAP_OK
Definition: stdsoap2.h:995
#define SOAP_EOM
Definition: stdsoap2.h:1015
#define SOAP_FREE(soap, ptr)
Definition: stdsoap2.h:1194
int soap_array_begin_out ( struct soap ,
const char *  tag,
int  id,
const char *  type,
const char *  offset 
)

Definition at line 9404 of file stdsoap2.cpp.

References soap::error, soap::mode, soap_attribute(), soap_element(), soap_element_begin_out(), soap_element_start_end_out(), soap_strrchr, soap_utilize_ns(), SOAP_XML_CANONICAL, soap::tmpbuf, and soap::version.

Referenced by soap_out_ArrayOf_USCORExsd_USCOREstring().

9405  {
9406  if (!type || !*type)
9407  return soap_element_begin_out(soap, tag, id, NULL);
9408 
9409  if (soap_element(soap, tag, id, "SOAP-ENC:Array"))
9410  return soap->error;
9411 
9412  if (soap->version == 2)
9413  {
9414  const char *s;
9415  s = soap_strrchr(type, '[');
9416 
9417  if ((size_t)(s - type) < sizeof(soap->tmpbuf))
9418  {
9419  strncpy(soap->tmpbuf, type, s - type);
9420  soap->tmpbuf[s - type] = '\0';
9421 
9422  if (soap_attribute(soap, "SOAP-ENC:itemType", soap->tmpbuf))
9423  return soap->error;
9424 
9425  if (s && (soap_attribute(soap, "SOAP-ENC:arraySize", s + 1)))
9426  return soap->error;
9427  }
9428  }
9429  else
9430  {
9431  if (offset && soap_attribute(soap, "SOAP-ENC:offset", offset))
9432  return soap->error;
9433 
9434  if (soap_attribute(soap, "SOAP-ENC:arrayType", type))
9435  return soap->error;
9436  }
9437 
9438 #ifndef WITH_LEAN
9439 
9440  if ((soap->mode & SOAP_XML_CANONICAL))
9441  {
9442  const char *s = strchr(type, ':');
9443 
9444  if (s)
9445  soap_utilize_ns(soap, type, s - type);
9446  }
9447 
9448 #endif
9449  return soap_element_start_end_out(soap, NULL);
9450  }
char tmpbuf[1024]
Definition: stdsoap2.h:1712
int soap_element(struct soap *soap, const char *tag, int id, const char *type)
Definition: stdsoap2.cpp:9009
int error
Definition: stdsoap2.h:1755
soap_mode mode
Definition: stdsoap2.h:1601
short version
Definition: stdsoap2.h:1600
#define SOAP_XML_CANONICAL
Definition: stdsoap2.h:1109
int soap_element_start_end_out(struct soap *soap, const char *tag)
Definition: stdsoap2.cpp:9458
int soap_element_begin_out(struct soap *soap, const char *tag, int id, const char *type)
Definition: stdsoap2.cpp:9244
#define soap_strrchr(s, t)
Definition: stdsoap2.h:1913
static void soap_utilize_ns(struct soap *soap, const char *tag, size_t n)
Definition: stdsoap2.cpp:8976
int soap_attribute(struct soap *soap, const char *name, const char *value)
Definition: stdsoap2.cpp:9802
int soap_array_pointer_lookup ( struct soap ,
const void p,
const struct soap_array a,
int  n,
int  t,
struct soap_plist **   
)

Definition at line 6383 of file stdsoap2.cpp.

References soap_array::__ptr, soap_array::__size, soap_plist::array, DBGLOG, soap_plist::id, soap_plist::next, soap::pht, soap_hash_ptr, and soap_plist::type.

Referenced by soap_array_reference(), soap_attachment(), soap_element_id(), and soap_embed().

6384  {
6385  register struct soap_plist *pp;
6386  *ppp = NULL;
6387 
6388  if (!p || !a->__ptr)
6389  return 0;
6390 
6391  for (pp = soap->pht[soap_hash_ptr(a->__ptr)]; pp; pp = pp->next)
6392  {
6393  if (pp->type == type && pp->array && pp->array->__ptr == a->__ptr)
6394  {
6395  register int i;
6396 
6397  for (i = 0; i < n; i++)
6398  if (((const int*)&pp->array->__size)[i] != ((const int*)&a->__size)[i])
6399  break;
6400 
6401  if (i == n)
6402  {
6403  *ppp = pp;
6404  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Array lookup location=%p type=%d id=%d\n", a->__ptr, type, pp->id));
6405  return pp->id;
6406  }
6407  }
6408  }
6409 
6410  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Array lookup location=%p type=%d: not found\n", a->__ptr, type));
6411  return 0;
6412  }
struct soap_plist * next
Definition: stdsoap2.h:1296
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
const struct soap_array * array
Definition: stdsoap2.h:1298
int __size
Definition: stdsoap2.h:1290
struct soap_plist * pht[(1024)]
Definition: stdsoap2.h:1628
#define soap_hash_ptr(p)
Definition: stdsoap2.cpp:124
void * __ptr
Definition: stdsoap2.h:1289
int soap_array_reference ( struct soap ,
const void p,
const struct soap_array a,
int  n,
int  t 
)

Definition at line 6723 of file stdsoap2.cpp.

References soap_array::__ptr, DBGLOG, soap_plist::mark1, soap_plist::mark2, soap_array_pointer_lookup(), and soap_pointer_enter().

Referenced by ArrayOf_USCORExsd_USCOREstring::soap_serialize().

6724  {
6725  register int i;
6726  struct soap_plist *pp;
6727 
6728  if (!p || !a->__ptr)
6729  return 1;
6730 
6731  i = soap_array_pointer_lookup(soap, p, a, n, t, &pp);
6732 
6733  if (i)
6734  {
6735  if (pp->mark1 == 0)
6736  {
6737  pp->mark1 = 2;
6738  pp->mark2 = 2;
6739  }
6740  }
6741  else if (!soap_pointer_enter(soap, p, a, n, t, &pp))
6742  return 1;
6743  else
6744  {
6745  pp->mark1 = 0;
6746  pp->mark2 = 0;
6747  }
6748 
6749  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Array reference %p ptr=%p dim=%d type=%d (%d %d)\n", p, a->__ptr, n, t, (int)pp->mark1, (int)pp->mark2));
6750  return pp->mark1;
6751  }
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
char mark1
Definition: stdsoap2.h:1301
int soap_pointer_enter(struct soap *soap, const void *p, const struct soap_array *a, int n, int type, struct soap_plist **ppp)
Definition: stdsoap2.cpp:6336
int soap_array_pointer_lookup(struct soap *soap, const void *p, const struct soap_array *a, int n, int type, struct soap_plist **ppp)
Definition: stdsoap2.cpp:6383
void * __ptr
Definition: stdsoap2.h:1289
char mark2
Definition: stdsoap2.h:1302
int soap_attachment ( struct soap ,
const char *  ,
int  ,
const void ,
const struct soap_array ,
const char *  ,
const char *  ,
const char *  ,
int  ,
const char *  ,
int   
)

Definition at line 6888 of file stdsoap2.cpp.

References soap_array::__ptr, soap_array::__size, DBGLOG, soap::dime, soap::dime_id_format, soap_multipart::encoding, soap::error, soap_dime::first, soap_mime::first, soap_multipart::id, soap_dime::last, soap_mime::last, soap_plist::mark1, soap_plist::mark2, soap::mime, soap::mode, soap_multipart::options, soap_array_pointer_lookup(), soap_element_begin_out(), soap_element_end_out(), soap_element_href(), soap_element_id(), SOAP_ENC_MTOM, SOAP_EOM, SOAP_IO_LENGTH, soap_malloc(), SOAP_MIME_BINARY, soap_new_multipart(), soap_pointer_enter(), SOAP_STR_EOS, soap_strdup(), soap::tmpbuf, and soap_multipart::type.

6889  {
6890 #ifndef WITH_NOIDREF
6891  struct soap_plist *pp;
6892  int i;
6893 
6894  if (!p || !a->__ptr || (!aid && !atype))
6895  return soap_element_id(soap, tag, id, p, a, n, type, t);
6896 
6897  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Attachment tag='%s' id='%s' (%d) type='%s'\n", tag, aid ? aid : SOAP_STR_EOS, id, atype ? atype : SOAP_STR_EOS));
6898  i = soap_array_pointer_lookup(soap, p, a, n, t, &pp);
6899 
6900  if (!i)
6901  {
6902  i = soap_pointer_enter(soap, p, a, n, t, &pp);
6903 
6904  if (!i)
6905  {
6906  soap->error = SOAP_EOM;
6907  return - 1;
6908  }
6909  }
6910 
6911  if (id <= 0)
6912  id = i;
6913 
6914  if (!aid)
6915  {
6916  sprintf(soap->tmpbuf, soap->dime_id_format, id);
6917  aid = soap_strdup(soap, soap->tmpbuf);
6918  }
6919 
6920  /* Add MTOM xop:Include element when necessary */
6921 
6922  /* TODO: this code to be obsoleted with new import/xop.h conventions */
6923  if ((soap->mode & SOAP_ENC_MTOM) && strcmp(tag, "xop:Include"))
6924  {
6925  if (soap_element_begin_out(soap, tag, 0, type)
6926  || soap_element_href(soap, "xop:Include", 0, "href", aid)
6927  || soap_element_end_out(soap, tag))
6928  return soap->error;
6929  }
6930  else if (soap_element_href(soap, tag, 0, "href", aid))
6931  return soap->error;
6932 
6933  if (soap->mode & SOAP_IO_LENGTH)
6934  {
6935  if (pp->mark1 != 3)
6936  {
6937  struct soap_multipart *content;
6938 
6939  if (soap->mode & SOAP_ENC_MTOM)
6940  content = soap_new_multipart(soap, &soap->mime.first, &soap->mime.last, (char*)a->__ptr, a->__size);
6941  else
6942  content = soap_new_multipart(soap, &soap->dime.first, &soap->dime.last, (char*)a->__ptr, a->__size);
6943 
6944  if (!content)
6945  {
6946  soap->error = SOAP_EOM;
6947  return - 1;
6948  }
6949 
6950  if (!strncmp(aid, "cid:", 4)) /* RFC 2111 */
6951  {
6952  if (soap->mode & SOAP_ENC_MTOM)
6953  {
6954  char *s = (char*)soap_malloc(soap, strlen(aid) - 1);
6955 
6956  if (s)
6957  {
6958  *s = '<';
6959  strcpy(s + 1, aid + 4);
6960  strcat(s, ">");
6961  content->id = s;
6962  }
6963  }
6964  else
6965  content->id = aid + 4;
6966  }
6967  else
6968  content->id = aid;
6969 
6970  content->type = atype;
6971  content->options = aoptions;
6972  content->encoding = SOAP_MIME_BINARY;
6973  pp->mark1 = 3;
6974  }
6975  }
6976  else
6977  pp->mark2 = 3;
6978 
6979 #endif
6980  return - 1;
6981  }
char tmpbuf[1024]
Definition: stdsoap2.h:1712
const char * id
Definition: stdsoap2.h:1444
const char * dime_id_format
Definition: stdsoap2.h:1606
int error
Definition: stdsoap2.h:1755
struct soap_multipart * first
Definition: stdsoap2.h:1413
int soap_element_end_out(struct soap *soap, const char *tag)
Definition: stdsoap2.cpp:9588
soap_mode mode
Definition: stdsoap2.h:1601
struct soap_multipart * first
Definition: stdsoap2.h:1397
#define SOAP_ENC_MTOM
Definition: stdsoap2.h:1101
static struct soap_multipart * soap_new_multipart(struct soap *, struct soap_multipart **, struct soap_multipart **, char *, size_t)
Definition: stdsoap2.cpp:15487
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
char mark1
Definition: stdsoap2.h:1301
enum soap_mime_encoding encoding
Definition: stdsoap2.h:1447
struct soap_dime dime
Definition: stdsoap2.h:1760
int soap_element_id(struct soap *soap, const char *tag, int id, const void *p, const struct soap_array *a, int n, const char *type, int t)
Definition: stdsoap2.cpp:9717
#define SOAP_IO_LENGTH
Definition: stdsoap2.h:1094
int soap_element_begin_out(struct soap *soap, const char *tag, int id, const char *type)
Definition: stdsoap2.cpp:9244
struct soap_multipart * last
Definition: stdsoap2.h:1397
struct soap_multipart * last
Definition: stdsoap2.h:1413
int soap_element_href(struct soap *soap, const char *tag, int id, const char *ref, const char *val)
Definition: stdsoap2.cpp:9668
int soap_pointer_enter(struct soap *soap, const void *p, const struct soap_array *a, int n, int type, struct soap_plist **ppp)
Definition: stdsoap2.cpp:6336
int soap_array_pointer_lookup(struct soap *soap, const void *p, const struct soap_array *a, int n, int type, struct soap_plist **ppp)
Definition: stdsoap2.cpp:6383
#define SOAP_STR_EOS
Definition: stdsoap2.cpp:310
#define SOAP_EOM
Definition: stdsoap2.h:1015
const char * options
Definition: stdsoap2.h:1446
struct soap_mime mime
Definition: stdsoap2.h:1761
char * soap_strdup(struct soap *soap, const char *s)
Definition: stdsoap2.cpp:2688
char mark2
Definition: stdsoap2.h:1302
const char * type
Definition: stdsoap2.h:1445
void * soap_malloc(struct soap *soap, size_t n)
Definition: stdsoap2.cpp:7080
const char* soap_attr_value ( struct soap soap,
const char *  name,
int  flag 
)

Definition at line 10003 of file stdsoap2.cpp.

References soap::attributes, soap::error, soap::mode, soap_attribute::name, soap_attribute::next, soap_match_tag(), SOAP_PROHIBITED, SOAP_REQUIRED, SOAP_STR_EOS, SOAP_XML_STRICT, soap_attribute::value, and soap_attribute::visible.

10004  {
10005  register struct soap_attribute *tp;
10006 
10007  if (*name == '-')
10008  return SOAP_STR_EOS;
10009 
10010  for (tp = soap->attributes; tp; tp = tp->next)
10011  {
10012  if (tp->visible && !soap_match_tag(soap, tp->name, name))
10013  break;
10014  }
10015 
10016  if (tp)
10017  {
10018  if (flag == 2 && (soap->mode & SOAP_XML_STRICT))
10019  soap->error = SOAP_PROHIBITED;
10020  else
10021  return tp->value;
10022  }
10023  else if (flag == 1 && (soap->mode & SOAP_XML_STRICT))
10024  soap->error = SOAP_REQUIRED;
10025 
10026  return NULL;
10027  }
int soap_match_tag(struct soap *soap, const char *tag1, const char *tag2)
Definition: stdsoap2.cpp:3727
int error
Definition: stdsoap2.h:1755
soap_mode mode
Definition: stdsoap2.h:1601
struct soap_attribute * next
Definition: stdsoap2.h:1337
#define SOAP_XML_STRICT
Definition: stdsoap2.h:1107
long int flag
Definition: f2c.h:52
struct soap_attribute * attributes
Definition: stdsoap2.h:1724
char name[1]
Definition: stdsoap2.h:1342
#define SOAP_PROHIBITED
Definition: stdsoap2.h:1038
#define SOAP_STR_EOS
Definition: stdsoap2.cpp:310
#define SOAP_REQUIRED
Definition: stdsoap2.h:1037
char * value
Definition: stdsoap2.h:1338
int soap_attribute ( struct soap ,
const char *  ,
const char *   
)

Definition at line 9802 of file stdsoap2.cpp.

References soap_dom_element::atts, soap_dom_attribute::data, DBGLOG, soap::dom, soap::error, soap::mode, soap_dom_attribute::name, soap_dom_attribute::next, soap_dom_attribute::nstr, soap_dom_attribute::soap, soap_malloc(), SOAP_OK, soap_push_ns(), soap_send(), soap_send_raw(), soap_set_attr(), soap_strdup(), soap_string_out(), SOAP_XML_CANONICAL, SOAP_XML_DOM, and soap_dom_attribute::wide.

Referenced by soap_array_begin_out(), soap_element(), soap_element_href(), soap_element_null(), soap_element_result(), soap_outliteral(), and soap_outwliteral().

9803  {
9804  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Attribute '%s'='%s'\n", name, value));
9805 #ifdef WITH_DOM
9806 
9807  if ((soap->mode & SOAP_XML_DOM) && !(soap->mode & SOAP_XML_CANONICAL) && soap->dom)
9808  {
9809  register struct soap_dom_attribute *a = (struct soap_dom_attribute*)soap_malloc(soap, sizeof(struct soap_dom_attribute));
9810 
9811  if (!a)
9812  return soap->error;
9813 
9814  a->next = soap->dom->atts;
9815  a->nstr = NULL;
9816  a->name = soap_strdup(soap, name);
9817  a->data = soap_strdup(soap, value);
9818  a->wide = NULL;
9819  a->soap = soap;
9820  soap->dom->atts = a;
9821  return SOAP_OK;
9822  }
9823 
9824 #endif
9825 #ifndef WITH_LEAN
9826 
9827  if (soap->mode & SOAP_XML_CANONICAL)
9828  {/* TODO: consider using this code to handle default namespace bindings
9829  if (!strncmp(name, "xmlns", 5) && (name[5] == ':' || name[5] == '\0'))
9830  {if (name[5] == ':')
9831  soap_push_ns(soap, name + 6, value, 0);
9832  else
9833  soap_push_ns(soap, "", value, 0);
9834  }
9835  */
9836  if (!strncmp(name, "xmlns:", 6))
9837  soap_push_ns(soap, name + 6, value, 0);
9838  else if (soap_set_attr(soap, name, value))
9839  return soap->error;
9840  }
9841  else
9842 #endif
9843 
9844  {
9845  if (soap_send(soap, " ") || soap_send(soap, name))
9846  return soap->error;
9847 
9848  if (value)
9849  if (soap_send_raw(soap, "=\"", 2)
9850  || soap_string_out(soap, value, 1)
9851  || soap_send_raw(soap, "\"", 1))
9852  return soap->error;
9853  }
9854 
9855  return SOAP_OK;
9856  }
struct soap_dom_element * dom
Definition: stdsoap2.h:1759
int error
Definition: stdsoap2.h:1755
const char * nstr
Definition: stdsoap2.h:1494
soap_mode mode
Definition: stdsoap2.h:1601
int soap_send_raw(struct soap *soap, const char *s, size_t n)
Definition: stdsoap2.cpp:815
#define SOAP_XML_DOM
Definition: stdsoap2.h:1113
int soap_string_out(struct soap *soap, const char *s, int flag)
Definition: stdsoap2.cpp:10882
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
#define SOAP_XML_CANONICAL
Definition: stdsoap2.h:1109
int soap_send(struct soap *soap, const char *s)
Definition: stdsoap2.cpp:959
wchar_t * wide
Definition: stdsoap2.h:1497
static struct soap_nlist * soap_push_ns(struct soap *soap, const char *id, const char *ns, short utilized)
Definition: stdsoap2.cpp:8914
struct soap_dom_attribute * next
Definition: stdsoap2.h:1493
char name[1]
Definition: stdsoap2.h:1342
#define SOAP_OK
Definition: stdsoap2.h:995
int soap_set_attr(struct soap *soap, const char *name, const char *value)
Definition: stdsoap2.cpp:10035
struct soap_dom_attribute * atts
Definition: stdsoap2.h:1541
char * soap_strdup(struct soap *soap, const char *s)
Definition: stdsoap2.cpp:2688
void * soap_malloc(struct soap *soap, size_t n)
Definition: stdsoap2.cpp:7080
char * value
Definition: stdsoap2.h:1338
struct soap * soap
Definition: stdsoap2.h:1498
const char* soap_base642s ( struct soap ,
const char *  ,
char *  ,
size_t  ,
int *   
)

Definition at line 18039 of file stdsoap2.cpp.

References soap::error, soap_blank, SOAP_BLKLEN, soap_malloc(), SOAP_NON_NULL, and SOAP_TYPE.

Referenced by http_parse_header(), and soap_getbase64().

18040  {
18041  register int i, j, c;
18042  register unsigned long m;
18043  register const char *p;
18044 
18045  if (!s || !*s)
18046  {
18047  if (n)
18048  *n = 0;
18049 
18050  if (soap->error)
18051  return NULL;
18052 
18053  return SOAP_NON_NULL;
18054  }
18055 
18056  if (!t)
18057  {
18058  l = (strlen(s) + 3) / 4 * 3;
18059  t = (char*)soap_malloc(soap, l);
18060  }
18061 
18062  if (!t)
18063  return NULL;
18064 
18065  p = t;
18066 
18067  if (n)
18068  *n = 0;
18069 
18070  for (;;)
18071  {
18072  for (i = 0; i < SOAP_BLKLEN; i++)
18073  {
18074  m = 0;
18075  j = 0;
18076 
18077  while (j < 4)
18078  {
18079  c = *s++;
18080 
18081  if (c == '=' || !c)
18082  {
18083  i *= 3;
18084 
18085  switch (j)
18086  {
18087  case 2:
18088  *t++ = (char)((m >> 4) & 0xFF);
18089  i++;
18090  break;
18091  case 3:
18092  *t++ = (char)((m >> 10) & 0xFF);
18093  *t++ = (char)((m >> 2) & 0xFF);
18094  i += 2;
18095  }
18096 
18097  if (n)
18098  *n += i;
18099 
18100  return p;
18101  }
18102 
18103  c -= '+';
18104 
18105  if (c >= 0 && c <= 79)
18106  {
18107  int b = soap_base64i[c];
18108 
18109  if (b >= 64)
18110  {
18111  soap->error = SOAP_TYPE;
18112  return NULL;
18113  }
18114 
18115  m = (m << 6) + b;
18116  j++;
18117  }
18118  else if (!soap_blank(c + '+'))
18119  {
18120  soap->error = SOAP_TYPE;
18121  return NULL;
18122  }
18123  }
18124 
18125  *t++ = (char)((m >> 16) & 0xFF);
18126  *t++ = (char)((m >> 8) & 0xFF);
18127  *t++ = (char)(m & 0xFF);
18128 
18129  if (l < 3)
18130  {
18131  if (n)
18132  *n += i;
18133 
18134  return p;
18135  }
18136 
18137  l -= 3;
18138  }
18139 
18140  if (n)
18141  *n += 3 * SOAP_BLKLEN;
18142  }
18143  }
int error
Definition: stdsoap2.h:1755
#define SOAP_NON_NULL
Definition: stdsoap2.cpp:311
#define SOAP_TYPE
Definition: stdsoap2.h:999
#define soap_blank(c)
Definition: stdsoap2.cpp:118
#define SOAP_BLKLEN
Definition: stdsoap2.h:841
void * soap_malloc(struct soap *soap, size_t n)
Definition: stdsoap2.cpp:7080
static const char soap_base64i[81]
Definition: stdsoap2.cpp:294
void soap_begin ( struct soap )

Definition at line 8685 of file stdsoap2.cpp.

References soap::ahead, soap::alloced, soap::bufidx, soap_dime::buflen, soap::buflen, soap::cdata, soap_dime::chunksize, soap::count, DBGLOG, soap::dime, soap::encoding, soap::endpoint, soap::error, soap::idnum, soap::imode, soap::keep_alive, soap::length, soap::level, soap::mode, soap::mustUnderstand, soap::ns, soap::null, soap::omode, soap::part, soap::peeked, soap::position, SOAP_END, soap_free_temp(), SOAP_IO_KEEPALIVE, and SOAP_OK.

Referenced by MiriamWebServicesSoapBindingProxy::checkRegExp(), MiriamWebServicesSoapBindingProxy::getDataResources(), MiriamWebServicesSoapBindingProxy::getDataTypeDef(), MiriamWebServicesSoapBindingProxy::getDataTypePattern(), MiriamWebServicesSoapBindingProxy::getDataTypesId(), MiriamWebServicesSoapBindingProxy::getDataTypesName(), MiriamWebServicesSoapBindingProxy::getDataTypeSynonyms(), MiriamWebServicesSoapBindingProxy::getDataTypeURI(), MiriamWebServicesSoapBindingProxy::getDataTypeURIs(), MiriamWebServicesSoapBindingProxy::getJavaLibraryVersion(), MiriamWebServicesSoapBindingProxy::getLocation(), MiriamWebServicesSoapBindingProxy::getLocations(), MiriamWebServicesSoapBindingProxy::getLocations_(), MiriamWebServicesSoapBindingProxy::getMiriamURI(), MiriamWebServicesSoapBindingProxy::getName(), MiriamWebServicesSoapBindingProxy::getNames(), MiriamWebServicesSoapBindingProxy::getOfficialDataTypeURI(), MiriamWebServicesSoapBindingProxy::getResourceInfo(), MiriamWebServicesSoapBindingProxy::getResourceInstitution(), MiriamWebServicesSoapBindingProxy::getResourceLocation(), MiriamWebServicesSoapBindingProxy::getServicesInfo(), MiriamWebServicesSoapBindingProxy::getServicesVersion(), MiriamWebServicesSoapBindingProxy::getURI(), MiriamWebServicesSoapBindingProxy::isDeprecated(), and soap_init().

8686  {
8687  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Reinitializing context\n"));
8688 
8689  if (!soap->keep_alive)
8690  {
8691  soap->buflen = 0;
8692  soap->bufidx = 0;
8693  }
8694 
8695  soap->keep_alive = (((soap->imode | soap->omode) & SOAP_IO_KEEPALIVE) != 0);
8696  soap->null = 0;
8697  soap->position = 0;
8698  soap->encoding = 0;
8699  soap->mustUnderstand = 0;
8700  soap->mode = 0;
8701  soap->ns = 0;
8702  soap->part = SOAP_END;
8703  soap->alloced = 0;
8704  soap->count = 0;
8705  soap->length = 0;
8706  soap->cdata = 0;
8707  soap->error = SOAP_OK;
8708  soap->peeked = 0;
8709  soap->ahead = 0;
8710  soap->idnum = 0;
8711  soap->level = 0;
8712  soap->endpoint[0] = '\0';
8713 #ifndef WITH_LEANER
8714  soap->dime.chunksize = 0;
8715  soap->dime.buflen = 0;
8716 #endif
8718  }
short alloced
Definition: stdsoap2.h:1730
short keep_alive
Definition: stdsoap2.h:1742
size_t chunksize
Definition: stdsoap2.h:1389
int error
Definition: stdsoap2.h:1755
void soap_free_temp(struct soap *soap)
Definition: stdsoap2.cpp:8060
short part
Definition: stdsoap2.h:1729
soap_mode imode
Definition: stdsoap2.h:1602
soap_mode mode
Definition: stdsoap2.h:1601
short ns
Definition: stdsoap2.h:1728
unsigned int level
Definition: stdsoap2.h:1704
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
struct soap_dime dime
Definition: stdsoap2.h:1760
short peeked
Definition: stdsoap2.h:1731
soap_wchar ahead
Definition: stdsoap2.h:1701
soap_mode omode
Definition: stdsoap2.h:1603
short encoding
Definition: stdsoap2.h:1725
short cdata
Definition: stdsoap2.h:1702
size_t bufidx
Definition: stdsoap2.h:1699
#define SOAP_END
Definition: stdsoap2.h:1162
short mustUnderstand
Definition: stdsoap2.h:1726
#define SOAP_OK
Definition: stdsoap2.h:995
int idnum
Definition: stdsoap2.h:1633
size_t length
Definition: stdsoap2.h:1706
short position
Definition: stdsoap2.h:1721
size_t buflen
Definition: stdsoap2.h:1390
char endpoint[(1024)]
Definition: stdsoap2.h:1734
#define SOAP_IO_KEEPALIVE
Definition: stdsoap2.h:1095
short null
Definition: stdsoap2.h:1727
size_t buflen
Definition: stdsoap2.h:1700
size_t count
Definition: stdsoap2.h:1705
int soap_begin_count ( struct soap )

Definition at line 6421 of file stdsoap2.cpp.

References soap_dime::count, soap::count, DBGLOG, soap::dime, soap::encoding, soap::encodingStyle, soap::error, soap::fprepareinit, soap::fpreparesend, soap::idnum, soap_dime::last, soap_dime::list, soap::mode, soap::mustUnderstand, soap::ns, soap::null, soap::omode, soap::part, soap::position, soap_dime::size, SOAP_BEGIN, soap_clr_attr(), SOAP_ENC_DIME, SOAP_ENC_MIME, SOAP_ENC_MTOM, SOAP_ENC_XML, SOAP_ENC_ZLIB, soap_free_ns(), SOAP_IO, SOAP_IO_BUFFER, SOAP_IO_CHUNK, SOAP_IO_FLUSH, SOAP_IO_LENGTH, SOAP_IO_STORE, SOAP_OK, soap_select_mime_boundary(), soap_set_local_namespaces(), SOAP_XML_GRAPH, SOAP_XML_TREE, and soap::socket.

Referenced by MiriamWebServicesSoapBindingProxy::checkRegExp(), MiriamWebServicesSoapBindingProxy::getDataResources(), MiriamWebServicesSoapBindingProxy::getDataTypeDef(), MiriamWebServicesSoapBindingProxy::getDataTypePattern(), MiriamWebServicesSoapBindingProxy::getDataTypesId(), MiriamWebServicesSoapBindingProxy::getDataTypesName(), MiriamWebServicesSoapBindingProxy::getDataTypeSynonyms(), MiriamWebServicesSoapBindingProxy::getDataTypeURI(), MiriamWebServicesSoapBindingProxy::getDataTypeURIs(), MiriamWebServicesSoapBindingProxy::getJavaLibraryVersion(), MiriamWebServicesSoapBindingProxy::getLocation(), MiriamWebServicesSoapBindingProxy::getLocations(), MiriamWebServicesSoapBindingProxy::getLocations_(), MiriamWebServicesSoapBindingProxy::getMiriamURI(), MiriamWebServicesSoapBindingProxy::getName(), MiriamWebServicesSoapBindingProxy::getNames(), MiriamWebServicesSoapBindingProxy::getOfficialDataTypeURI(), MiriamWebServicesSoapBindingProxy::getResourceInfo(), MiriamWebServicesSoapBindingProxy::getResourceInstitution(), MiriamWebServicesSoapBindingProxy::getResourceLocation(), MiriamWebServicesSoapBindingProxy::getServicesInfo(), MiriamWebServicesSoapBindingProxy::getServicesVersion(), MiriamWebServicesSoapBindingProxy::getURI(), MiriamWebServicesSoapBindingProxy::isDeprecated(), and soap_send_fault().

6422  {
6423  soap_free_ns(soap);
6424 #ifndef WITH_LEANER
6425 
6426  if ((soap->mode & SOAP_ENC_DIME) || (soap->omode & SOAP_ENC_DIME))
6428  else
6429 #endif
6430 
6431  {
6432  soap->mode = soap->omode;
6433 
6434  if ((soap->mode & SOAP_IO) == SOAP_IO_STORE
6435  || (((soap->mode & SOAP_IO) == SOAP_IO_CHUNK || (soap->mode & SOAP_ENC_XML))
6436 #ifndef WITH_LEANER
6437  && !soap->fpreparesend
6438 #endif
6439  ))
6440  soap->mode &= ~SOAP_IO_LENGTH;
6441  else
6442  soap->mode |= SOAP_IO_LENGTH;
6443  }
6444 
6445 #ifdef WITH_ZLIB
6446 
6447  if ((soap->mode & SOAP_ENC_ZLIB) && (soap->mode & SOAP_IO) == SOAP_IO_FLUSH)
6448  {
6449  if (!(soap->mode & SOAP_ENC_DIME))
6450  soap->mode &= ~SOAP_IO_LENGTH;
6451 
6452  if (soap->mode & SOAP_ENC_XML)
6453  soap->mode |= SOAP_IO_BUFFER;
6454  else
6455  soap->mode |= SOAP_IO_STORE;
6456  }
6457 
6458 #endif
6459 
6460  if (!soap->encodingStyle && !(soap->mode & SOAP_XML_GRAPH))
6461  soap->mode |= SOAP_XML_TREE;
6462 
6463 #ifndef WITH_LEANER
6464 
6465  if ((soap->mode & SOAP_ENC_MTOM) && (soap->mode & SOAP_ENC_DIME))
6466  soap->mode |= SOAP_ENC_MIME;
6467  else
6468  soap->mode &= ~SOAP_ENC_MTOM;
6469 
6470  if (soap->mode & SOAP_ENC_MIME)
6472 
6473  soap->dime.list = soap->dime.last; /* keep track of last DIME attachment */
6474 #endif
6475  soap->count = 0;
6476  soap->ns = 0;
6477  soap->null = 0;
6478  soap->position = 0;
6479  soap->mustUnderstand = 0;
6480  soap->encoding = 0;
6481  soap->part = SOAP_BEGIN;
6482  soap->idnum = 0;
6485  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin count phase (socket=%d mode=0x%x count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));
6486 #ifndef WITH_LEANER
6487  soap->dime.count = 0; /* count # of attachments */
6488  soap->dime.size = 0; /* accumulate total size of attachments */
6489 
6490  if (soap->fprepareinit && (soap->mode & SOAP_IO) != SOAP_IO_STORE)
6491  return soap->error = soap->fprepareinit(soap);
6492 
6493 #endif
6494  return SOAP_OK;
6495  }
#define SOAP_XML_GRAPH
Definition: stdsoap2.h:1111
int error
Definition: stdsoap2.h:1755
short part
Definition: stdsoap2.h:1729
soap_mode mode
Definition: stdsoap2.h:1601
#define SOAP_ENC_MTOM
Definition: stdsoap2.h:1101
size_t size
Definition: stdsoap2.h:1388
#define SOAP_BEGIN
Definition: stdsoap2.h:1154
short ns
Definition: stdsoap2.h:1728
#define SOAP_IO_FLUSH
Definition: stdsoap2.h:1087
#define SOAP_IO
Definition: stdsoap2.h:1086
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
struct soap_multipart * list
Definition: stdsoap2.h:1396
void soap_set_local_namespaces(struct soap *soap)
Definition: stdsoap2.cpp:8831
struct soap_dime dime
Definition: stdsoap2.h:1760
#define SOAP_IO_CHUNK
Definition: stdsoap2.h:1090
#define SOAP_XML_TREE
Definition: stdsoap2.h:1110
#define SOAP_IO_LENGTH
Definition: stdsoap2.h:1094
int(* fpreparesend)(struct soap *, const char *, size_t)
Definition: stdsoap2.h:1667
soap_mode omode
Definition: stdsoap2.h:1603
size_t count
Definition: stdsoap2.h:1387
short encoding
Definition: stdsoap2.h:1725
#define SOAP_IO_BUFFER
Definition: stdsoap2.h:1088
#define SOAP_ENC_ZLIB
Definition: stdsoap2.h:1102
struct soap_multipart * last
Definition: stdsoap2.h:1397
short mustUnderstand
Definition: stdsoap2.h:1726
int(* fprepareinit)(struct soap *)
Definition: stdsoap2.h:1666
#define SOAP_OK
Definition: stdsoap2.h:995
int idnum
Definition: stdsoap2.h:1633
#define SOAP_IO_STORE
Definition: stdsoap2.h:1089
short position
Definition: stdsoap2.h:1721
static void soap_select_mime_boundary(struct soap *)
Definition: stdsoap2.cpp:15582
#define SOAP_ENC_XML
Definition: stdsoap2.h:1098
#define SOAP_ENC_DIME
Definition: stdsoap2.h:1099
int socket
Definition: stdsoap2.h:1684
#define SOAP_ENC_MIME
Definition: stdsoap2.h:1100
short null
Definition: stdsoap2.h:1727
void soap_clr_attr(struct soap *soap)
Definition: stdsoap2.cpp:10164
static void soap_free_ns(struct soap *soap)
Definition: stdsoap2.cpp:8135
const char * encodingStyle
Definition: stdsoap2.h:1609
size_t count
Definition: stdsoap2.h:1705
int soap_begin_recv ( struct soap )

Definition at line 16617 of file stdsoap2.cpp.

References soap::action, soap::ahead, soap::alloced, soap_mime::boundary, soap::buf, soap::bufidx, soap_dime::buflen, soap::buflen, soap::cdata, soap::chunkbuflen, soap_dime::chunksize, soap::chunksize, soap::count, soap::d_stream, DBGLOG, soap::dime, soap::dom, soap::endpoint, soap::error, soap::fault, soap::fform, soap_dime::first, soap_mime::first, soap_dime::flags, soap::fparse, soap::fprepareinit, soap::fpreparerecv, soap::header, soap_multipart::id, if(), soap::imode, soap::keep_alive, soap_dime::last, soap_mime::last, soap::length, soap::level, soap_dime::list, soap_mime::list, soap::mime, soap::mode, soap::omode, soap::part, soap::peeked, soap::recvfd, soap_dime::size, SOAP_BEGIN, soap_blank, SOAP_BUFLEN, SOAP_DIME_CF, SOAP_DIME_MB, SOAP_DIME_VERSION, SOAP_ENC_DIME, SOAP_ENC_MIME, SOAP_ENC_ZLIB, SOAP_EOF, SOAP_FORM, soap_free_iht(), soap_free_temp(), soap_get0, soap_get1, soap_get_header_attribute(), soap_get_mime_attachment(), soap_getchar(), soap_getdimehdr(), soap_getmimehdr(), SOAP_IO, SOAP_IO_CHUNK, SOAP_IO_KEEPALIVE, SOAP_MALLOC, soap_match_cid(), SOAP_NO_DATA, SOAP_OK, soap_revget1, soap_set_local_namespaces(), SOAP_STOP, soap_unget, soap_valid_socket, SOAP_ZLIB_DEFLATE, SOAP_ZLIB_ERROR, SOAP_ZLIB_GZIP, SOAP_ZLIB_INFLATE, SOAP_ZLIB_NONE, soap::socket, soap::ssl, soap_mime::start, soap::status, soap_multipart::type, soap::version, soap::z_buf, soap::z_buflen, soap::z_crc, soap::z_ratio_in, soap::zlib_in, soap::zlib_out, and soap::zlib_state.

Referenced by MiriamWebServicesSoapBindingProxy::checkRegExp(), MiriamWebServicesSoapBindingProxy::getDataResources(), MiriamWebServicesSoapBindingProxy::getDataTypeDef(), MiriamWebServicesSoapBindingProxy::getDataTypePattern(), MiriamWebServicesSoapBindingProxy::getDataTypesId(), MiriamWebServicesSoapBindingProxy::getDataTypesName(), MiriamWebServicesSoapBindingProxy::getDataTypeSynonyms(), MiriamWebServicesSoapBindingProxy::getDataTypeURI(), MiriamWebServicesSoapBindingProxy::getDataTypeURIs(), MiriamWebServicesSoapBindingProxy::getJavaLibraryVersion(), MiriamWebServicesSoapBindingProxy::getLocation(), MiriamWebServicesSoapBindingProxy::getLocations(), MiriamWebServicesSoapBindingProxy::getLocations_(), MiriamWebServicesSoapBindingProxy::getMiriamURI(), MiriamWebServicesSoapBindingProxy::getName(), MiriamWebServicesSoapBindingProxy::getNames(), MiriamWebServicesSoapBindingProxy::getOfficialDataTypeURI(), MiriamWebServicesSoapBindingProxy::getResourceInfo(), MiriamWebServicesSoapBindingProxy::getResourceInstitution(), MiriamWebServicesSoapBindingProxy::getResourceLocation(), MiriamWebServicesSoapBindingProxy::getServicesInfo(), MiriamWebServicesSoapBindingProxy::getServicesVersion(), MiriamWebServicesSoapBindingProxy::getURI(), MiriamWebServicesSoapBindingProxy::isDeprecated(), and soap_recv_empty_response().

16618  {
16619  soap_wchar c;
16620  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Initializing for input\n"));
16621  soap->error = SOAP_OK;
16624  soap->version = 0; /* don't assume we're parsing SOAP content by default */
16625 #ifndef WITH_NOIDREF
16627 #endif
16628 
16629  if ((soap->imode & SOAP_IO) == SOAP_IO_CHUNK)
16630  soap->omode |= SOAP_IO_CHUNK;
16631 
16632  soap->imode &= ~(SOAP_IO | SOAP_ENC_MIME);
16633  soap->mode = soap->imode;
16634 
16635  if (!soap->keep_alive)
16636  {
16637  soap->buflen = 0;
16638  soap->bufidx = 0;
16639  }
16640 
16641  if (!(soap->mode & SOAP_IO_KEEPALIVE))
16642  soap->keep_alive = 0;
16643 
16644  soap->ahead = 0;
16645  soap->peeked = 0;
16646  soap->level = 0;
16647  soap->part = SOAP_BEGIN;
16648  soap->alloced = 0;
16649  soap->count = 0;
16650  soap->length = 0;
16651  soap->cdata = 0;
16652  *soap->endpoint = '\0';
16653  soap->action = NULL;
16654  soap->header = NULL;
16655  soap->fault = NULL;
16656  soap->status = 0;
16657 #ifndef WITH_LEANER
16658  soap->dom = NULL;
16659  soap->dime.chunksize = 0;
16660  soap->dime.buflen = 0;
16661  soap->dime.list = NULL;
16662  soap->dime.first = NULL;
16663  soap->dime.last = NULL;
16664  soap->mime.list = NULL;
16665  soap->mime.first = NULL;
16666  soap->mime.last = NULL;
16667  soap->mime.boundary = NULL;
16668  soap->mime.start = NULL;
16669 #endif
16670 #ifdef WIN32
16671 #ifndef UNDER_CE
16672 #ifndef WITH_FASTCGI
16673 
16675  _setmode(soap->recvfd, _O_BINARY);
16676 
16677 #endif
16678 #endif
16679 #endif
16680 #ifdef WITH_ZLIB
16681  soap->mode &= ~SOAP_ENC_ZLIB;
16684  soap->d_stream->next_in = Z_NULL;
16685  soap->d_stream->avail_in = 0;
16686  soap->d_stream->next_out = (Byte*)soap->buf;
16687  soap->d_stream->avail_out = SOAP_BUFLEN;
16688  soap->z_ratio_in = 1.0;
16689 #endif
16690 #ifdef WITH_OPENSSL
16691 
16692  if (soap->ssl)
16693  ERR_clear_error();
16694 
16695 #endif
16696 #ifndef WITH_LEANER
16697 
16698  if (soap->fprepareinit)
16700 
16701 #endif
16702  c = soap_getchar(soap);
16703 #ifdef WITH_GZIP
16704 
16705  if (c == 0x1F)
16706  {
16707  if (soap_getgziphdr(soap))
16708  return soap->error;
16709 
16710  if (inflateInit2(soap->d_stream, -MAX_WBITS) != Z_OK)
16711  return soap->error = SOAP_ZLIB_ERROR;
16712 
16714  soap->mode |= SOAP_ENC_ZLIB;
16716  soap->z_crc = crc32(0L, NULL, 0);
16717  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "gzip initialized\n"));
16718 
16719  if (!soap->z_buf)
16720  soap->z_buf = (char*)SOAP_MALLOC(soap, SOAP_BUFLEN);
16721 
16722  memcpy(soap->z_buf, soap->buf, SOAP_BUFLEN);
16723  /* should not chunk over plain transport, so why bother to check? */
16724  /* if ((soap->mode & SOAP_IO) == SOAP_IO_CHUNK) */
16725  /* soap->z_buflen = soap->bufidx; */
16726  /* else */
16727  soap->d_stream->next_in = (Byte*)(soap->z_buf + soap->bufidx);
16728  soap->d_stream->avail_in = soap->buflen - soap->bufidx;
16729  soap->z_buflen = soap->buflen;
16730  soap->buflen = soap->bufidx;
16731  c = soap_getchar(soap);
16732  }
16733 
16734 #endif
16735 #ifndef WITH_LEANER
16736 
16737  if (c == '-' && soap_get0(soap) == '-')
16738  soap->mode |= SOAP_ENC_MIME;
16739  else if ((c & 0xFFFC) == (SOAP_DIME_VERSION | SOAP_DIME_MB) && (soap_get0(soap) & 0xFFF0) == 0x20)
16740  soap->mode |= SOAP_ENC_DIME;
16741  else
16742 #endif
16743 
16744  {
16745  while (soap_blank(c))
16746  c = soap_getchar(soap);
16747  }
16748 
16749  if ((int)c == EOF)
16750  return soap->error = SOAP_EOF;
16751 
16752  soap_unget(soap, c);
16753 #ifndef WITH_NOHTTP
16754 
16755  /* if not XML or (start of)BOM or MIME/DIME/ZLIB, assume HTTP header */
16756  if (c != '<' && c != 0xEF && !(soap->mode & (SOAP_ENC_MIME | SOAP_ENC_DIME | SOAP_ENC_ZLIB)))
16757  {
16758  soap_mode m = soap->imode;
16759  soap->mode &= ~SOAP_IO;
16760  soap->error = soap->fparse(soap);
16761 
16762  if (soap->error && soap->error < SOAP_STOP)
16763  {
16764  soap->keep_alive = 0; /* force close later */
16765  return soap->error;
16766  }
16767 
16768  if (soap->error == SOAP_STOP)
16769  return soap->error;
16770 
16771  soap->mode = soap->imode; /* if imode is changed, effectuate */
16772  soap->imode = m; /* restore imode */
16773 #ifdef WITH_ZLIB
16774  soap->mode &= ~SOAP_ENC_ZLIB;
16775 #endif
16776 
16777  if ((soap->mode & SOAP_IO) == SOAP_IO_CHUNK)
16778  {
16780  soap->buflen = soap->bufidx;
16781  soap->chunksize = 0;
16782  }
16783 
16784 #ifndef WITH_LEANER
16785  else if (soap->fpreparerecv && soap->buflen != soap->bufidx)
16787 
16788 #endif
16789 
16790  /* Note: fparse should not use soap_unget to push back last char */
16791  if (soap_get0(soap) == (int)EOF)
16792  {
16793  if (soap->status == 200)
16794  return soap->error = SOAP_NO_DATA; /* HTTP OK: always expect data */
16795 
16796  return soap->error = soap->status;
16797  }
16798 
16799 #ifdef WITH_ZLIB
16800 
16801  if (soap->zlib_in != SOAP_ZLIB_NONE)
16802  {
16803 #ifdef WITH_GZIP
16804 
16805  if (soap->zlib_in != SOAP_ZLIB_DEFLATE)
16806  {
16807  c = soap_get1(soap);
16808 
16809  if (c == 0x1F)
16810  {
16811  if (soap_getgziphdr(soap))
16812  return soap->error;
16813 
16814  if (inflateInit2(soap->d_stream, -MAX_WBITS) != Z_OK)
16815  return soap->error = SOAP_ZLIB_ERROR;
16816 
16817  soap->z_crc = crc32(0L, NULL, 0);
16818  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "gzip initialized\n"));
16819  }
16820  else
16821  {
16822  soap_revget1(soap);
16823 
16824  if (inflateInit(soap->d_stream) != Z_OK)
16825  return soap->error = SOAP_ZLIB_ERROR;
16826 
16828  }
16829  }
16830  else
16831 #endif
16832  if (inflateInit(soap->d_stream) != Z_OK)
16833  return soap->error = SOAP_ZLIB_ERROR;
16834 
16836  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Inflate initialized\n"));
16837  soap->mode |= SOAP_ENC_ZLIB;
16838 
16839  if (!soap->z_buf)
16840  soap->z_buf = (char*)SOAP_MALLOC(soap, SOAP_BUFLEN);
16841 
16842  memcpy(soap->z_buf, soap->buf, SOAP_BUFLEN);
16843  soap->d_stream->next_in = (Byte*)(soap->z_buf + soap->bufidx);
16844  soap->d_stream->avail_in = soap->buflen - soap->bufidx;
16845  soap->z_buflen = soap->buflen;
16846  soap->buflen = soap->bufidx;
16847  }
16848 
16849 #endif
16850 
16851  if (soap->error)
16852  {
16853  if (soap->error == SOAP_FORM && soap->fform)
16854  {
16855  soap->error = soap->fform(soap);
16856 
16857  if (soap->error == SOAP_OK)
16858  soap->error = SOAP_STOP; /* prevents further processing */
16859  }
16860 
16861  return soap->error;
16862  }
16863  }
16864 
16865 #endif
16866 #ifndef WITH_LEANER
16867 
16868  if (soap->mode & SOAP_ENC_MIME)
16869  {
16870  if (soap_getmimehdr(soap))
16871  return soap->error;
16872 
16873  if (soap->mime.start)
16874  {
16875  do
16876  {
16877  if (!soap->mime.last->id)
16878  break;
16879 
16881  break;
16882  }
16883  while (soap_get_mime_attachment(soap, NULL));
16884  }
16885 
16886  if (soap_get_header_attribute(soap, soap->mime.first->type, "application/dime"))
16887  soap->mode |= SOAP_ENC_DIME;
16888  }
16889 
16890  if (soap->mode & SOAP_ENC_DIME)
16891  {
16892  if (soap_getdimehdr(soap))
16893  return soap->error;
16894 
16895  if (soap->dime.flags & SOAP_DIME_CF)
16896  {
16897  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Chunked DIME SOAP message\n"));
16899 
16900  if (soap->buflen - soap->bufidx >= soap->dime.chunksize)
16901  {
16902  soap->dime.buflen = soap->buflen;
16904  }
16905  else
16907  }
16908 
16909  soap->count = soap->buflen - soap->bufidx;
16910  }
16911 
16912 #endif
16913  return SOAP_OK;
16914  }
const char * id
Definition: stdsoap2.h:1444
short alloced
Definition: stdsoap2.h:1730
short keep_alive
Definition: stdsoap2.h:1742
int recvfd
Definition: stdsoap2.h:1694
struct soap_dom_element * dom
Definition: stdsoap2.h:1759
size_t chunksize
Definition: stdsoap2.h:1389
int error
Definition: stdsoap2.h:1755
struct soap_multipart * first
Definition: stdsoap2.h:1413
struct soap_multipart * list
Definition: stdsoap2.h:1412
#define soap_valid_socket(n)
Definition: stdsoap2.h:698
void soap_free_temp(struct soap *soap)
Definition: stdsoap2.cpp:8060
short part
Definition: stdsoap2.h:1729
char * action
Definition: stdsoap2.h:1737
soap_mode imode
Definition: stdsoap2.h:1602
soap_mode mode
Definition: stdsoap2.h:1601
struct soap_multipart * first
Definition: stdsoap2.h:1397
struct SOAP_ENV__Fault * fault
Definition: stdsoap2.h:1632
#define SOAP_BUFLEN
Definition: stdsoap2.h:814
size_t size
Definition: stdsoap2.h:1388
#define SOAP_BEGIN
Definition: stdsoap2.h:1154
size_t chunksize
Definition: stdsoap2.h:1732
short version
Definition: stdsoap2.h:1600
#define SOAP_IO
Definition: stdsoap2.h:1086
unsigned int level
Definition: stdsoap2.h:1704
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
#define SOAP_ZLIB_NONE
Definition: stdsoap2.h:1077
struct soap_multipart * list
Definition: stdsoap2.h:1396
struct soap_multipart * soap_get_mime_attachment(struct soap *soap, void *handle)
Definition: stdsoap2.cpp:15054
#define SOAP_ZLIB_INFLATE
Definition: stdsoap2.h:1079
int32_t z_crc
Definition: stdsoap2.h:1823
void soap_set_local_namespaces(struct soap *soap)
Definition: stdsoap2.cpp:8831
struct soap_dime dime
Definition: stdsoap2.h:1760
size_t z_buflen
Definition: stdsoap2.h:1829
short zlib_state
Definition: stdsoap2.h:1825
int(* fform)(struct soap *)
Definition: stdsoap2.h:1643
#define SOAP_ZLIB_DEFLATE
Definition: stdsoap2.h:1078
int soap_getmimehdr(struct soap *soap)
Definition: stdsoap2.cpp:14923
short peeked
Definition: stdsoap2.h:1731
#define SOAP_ZLIB_GZIP
Definition: stdsoap2.h:1080
#define SOAP_IO_CHUNK
Definition: stdsoap2.h:1090
#define soap_unget(soap, c)
Definition: stdsoap2.h:1900
soap_wchar ahead
Definition: stdsoap2.h:1701
int32_t soap_mode
Definition: stdsoap2.h:1084
#define soap_blank(c)
Definition: stdsoap2.cpp:118
void * d_stream
Definition: stdsoap2.h:1822
char buf[(65536)]
Definition: stdsoap2.h:1710
#define soap_revget1(soap)
Definition: stdsoap2.h:1899
#define SOAP_STOP
Definition: stdsoap2.h:1056
#define SOAP_DIME_VERSION
Definition: stdsoap2.h:1071
soap_mode omode
Definition: stdsoap2.h:1603
#define SOAP_MALLOC(soap, size)
Definition: stdsoap2.h:1190
void * ssl
Definition: stdsoap2.h:1799
soap_wchar soap_getchar(struct soap *soap)
Definition: stdsoap2.cpp:1616
const char * start
Definition: stdsoap2.h:1411
static void soap_free_iht(struct soap *)
Definition: stdsoap2.cpp:7004
short cdata
Definition: stdsoap2.h:1702
#define SOAP_ENC_ZLIB
Definition: stdsoap2.h:1102
struct SOAP_ENV__Header * header
Definition: stdsoap2.h:1631
float z_ratio_in
Definition: stdsoap2.h:1831
struct soap_multipart * last
Definition: stdsoap2.h:1397
#define SOAP_FORM
Definition: stdsoap2.h:1057
struct soap_multipart * last
Definition: stdsoap2.h:1413
size_t bufidx
Definition: stdsoap2.h:1699
#define SOAP_DIME_CF
Definition: stdsoap2.h:1068
int soap_getdimehdr(struct soap *soap)
Definition: stdsoap2.cpp:14690
char * boundary
Definition: stdsoap2.h:1410
int(* fprepareinit)(struct soap *)
Definition: stdsoap2.h:1666
#define SOAP_OK
Definition: stdsoap2.h:995
short zlib_in
Definition: stdsoap2.h:1826
char * z_buf
Definition: stdsoap2.h:1828
int status
Definition: stdsoap2.h:1754
const char * soap_get_header_attribute(struct soap *soap, const char *line, const char *key)
Definition: stdsoap2.cpp:17301
int soap_match_cid(struct soap *soap, const char *s, const char *t)
Definition: stdsoap2.cpp:15216
#define soap_get1(soap)
Definition: stdsoap2.h:1893
#define soap_get0(soap)
Definition: stdsoap2.h:1892
size_t length
Definition: stdsoap2.h:1706
char flags
Definition: stdsoap2.h:1391
#define SOAP_NO_DATA
Definition: stdsoap2.h:1009
int(* fpreparerecv)(struct soap *, const char *, size_t)
Definition: stdsoap2.h:1668
size_t chunkbuflen
Definition: stdsoap2.h:1733
#define SOAP_ZLIB_ERROR
Definition: stdsoap2.h:1026
struct soap_mime mime
Definition: stdsoap2.h:1761
#define SOAP_EOF
Definition: stdsoap2.h:993
if(!yymsg) yymsg
#define SOAP_ENC_DIME
Definition: stdsoap2.h:1099
size_t buflen
Definition: stdsoap2.h:1390
int socket
Definition: stdsoap2.h:1684
const char * type
Definition: stdsoap2.h:1445
char endpoint[(1024)]
Definition: stdsoap2.h:1734
#define SOAP_IO_KEEPALIVE
Definition: stdsoap2.h:1095
#define SOAP_ENC_MIME
Definition: stdsoap2.h:1100
int32_t soap_wchar
Definition: stdsoap2.h:1257
size_t buflen
Definition: stdsoap2.h:1700
int(* fparse)(struct soap *)
Definition: stdsoap2.h:1646
short zlib_out
Definition: stdsoap2.h:1827
#define SOAP_DIME_MB
Definition: stdsoap2.h:1070
size_t count
Definition: stdsoap2.h:1705
int soap_begin_send ( struct soap )

Definition at line 6521 of file stdsoap2.cpp.

References soap::bufidx, soap::buflen, soap::chunksize, soap::count, soap::d_stream, DBGLOG, soap::encoding, soap::encodingStyle, soap::error, soap::fprepareinit, soap::idnum, if(), soap::keep_alive, soap::level, soap::mode, soap::mustUnderstand, soap::ns, soap::null, soap::omode, soap::part, soap::position, soap::sendfd, SOAP_BEGIN, SOAP_BUFLEN, soap_clr_attr(), SOAP_ENC_DIME, SOAP_ENC_MIME, SOAP_ENC_MTOM, SOAP_ENC_XML, SOAP_ENC_ZLIB, soap_free_ns(), SOAP_IO, SOAP_IO_BUFFER, SOAP_IO_FLUSH, SOAP_IO_KEEPALIVE, SOAP_IO_LENGTH, SOAP_IO_STORE, SOAP_IO_UDP, SOAP_MALLOC, soap_new_block(), SOAP_OK, soap_select_mime_boundary(), soap_set_local_namespaces(), SOAP_UDP_ERROR, soap_valid_socket, SOAP_XML_GRAPH, SOAP_XML_TREE, SOAP_ZLIB_DEFLATE, SOAP_ZLIB_ERROR, SOAP_ZLIB_GZIP, soap::socket, soap::ssl, soap::z_buf, soap::z_crc, soap::z_level, soap::z_ratio_out, soap::zlib_out, and soap::zlib_state.

Referenced by soap_response(), soap_try_connect_command(), and tcp_connect().

6522  {
6523  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Initializing for output\n"));
6524  soap_free_ns(soap);
6525  soap->error = SOAP_OK;
6527 #ifdef WITH_ZLIB
6528 
6529  if ((soap->mode & SOAP_ENC_ZLIB) && (soap->mode & SOAP_IO) == SOAP_IO_FLUSH)
6530  {
6531  if (soap->mode & SOAP_ENC_XML)
6532  soap->mode |= SOAP_IO_BUFFER;
6533  else
6534  soap->mode |= SOAP_IO_STORE;
6535  }
6536 
6537 #endif
6538 #ifndef WITH_LEAN
6539 
6540  if ((soap->mode & SOAP_IO_UDP))
6541  {
6542  soap->mode |= SOAP_ENC_XML;
6543 
6544  if (soap->count > SOAP_BUFLEN)
6545  return soap->error = SOAP_UDP_ERROR;
6546  }
6547 
6548 #endif
6549 
6551  {
6552  if (soap->count || (soap->mode & SOAP_IO_LENGTH) || (soap->mode & SOAP_ENC_XML))
6553  soap->mode |= SOAP_IO_BUFFER;
6554  else
6555  soap->mode |= SOAP_IO_STORE;
6556  }
6557 
6558  soap->mode &= ~SOAP_IO_LENGTH;
6559 
6560  if ((soap->mode & SOAP_IO) == SOAP_IO_STORE)
6561  if (soap_new_block(soap) == NULL)
6562  return soap->error;
6563 
6564  if (!(soap->mode & SOAP_IO_KEEPALIVE))
6565  soap->keep_alive = 0;
6566 
6568  soap->mode |= SOAP_XML_TREE;
6569 
6570 #ifndef WITH_LEANER
6571 
6573  {
6574  soap->mode |= SOAP_ENC_MIME;
6575  soap->mode &= ~SOAP_ENC_DIME;
6576  }
6577  else
6578  soap->mode &= ~SOAP_ENC_MTOM;
6579 
6580  if (soap->mode & SOAP_ENC_MIME)
6582 
6583 #ifdef WIN32
6584 #ifndef UNDER_CE
6585 #ifndef WITH_FASTCGI
6586 
6587  if (!soap_valid_socket(soap->socket)) /* Set win32 stdout or soap->sendfd to BINARY, e.g. to support DIME */
6588  _setmode(soap->sendfd, _O_BINARY);
6589 
6590 #endif
6591 #endif
6592 #endif
6593 #endif
6594 
6595  if (soap->mode & SOAP_IO)
6596  {
6597  soap->bufidx = 0;
6598  soap->buflen = 0;
6599  }
6600 
6601  soap->chunksize = 0;
6602  soap->ns = 0;
6603  soap->null = 0;
6604  soap->position = 0;
6605  soap->mustUnderstand = 0;
6606  soap->encoding = 0;
6607  soap->idnum = 0;
6608  soap->level = 0;
6611 #ifdef WITH_ZLIB
6612  soap->z_ratio_out = 1.0;
6613 
6615  {
6616  if (!soap->z_buf)
6617  soap->z_buf = (char*)SOAP_MALLOC(soap, SOAP_BUFLEN);
6618 
6619  soap->d_stream->next_out = (Byte*)soap->z_buf;
6620  soap->d_stream->avail_out = SOAP_BUFLEN;
6621 #ifdef WITH_GZIP
6622 
6624  {
6625  memcpy(soap->z_buf, "\37\213\10\0\0\0\0\0\0\377", 10);
6626  soap->d_stream->next_out = (Byte*)soap->z_buf + 10;
6627  soap->d_stream->avail_out = SOAP_BUFLEN - 10;
6628  soap->z_crc = crc32(0L, NULL, 0);
6630 
6631  if (deflateInit2(soap->d_stream, soap->z_level, Z_DEFLATED, -MAX_WBITS, 8, Z_DEFAULT_STRATEGY) != Z_OK)
6632  return soap->error = SOAP_ZLIB_ERROR;
6633  }
6634  else
6635 #endif
6636  if (deflateInit(soap->d_stream, soap->z_level) != Z_OK)
6637  return soap->error = SOAP_ZLIB_ERROR;
6638 
6639  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Deflate initialized\n"));
6641  }
6642 
6643 #endif
6644 #ifdef WITH_OPENSSL
6645 
6646  if (soap->ssl)
6647  ERR_clear_error();
6648 
6649 #endif
6650  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin send phase (socket=%d mode=0x%x count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));
6651  soap->part = SOAP_BEGIN;
6652 #ifndef WITH_LEANER
6653 
6654  if (soap->fprepareinit && (soap->mode & SOAP_IO) == SOAP_IO_STORE)
6656 
6657 #endif
6658  return SOAP_OK;
6659  }
short keep_alive
Definition: stdsoap2.h:1742
#define SOAP_XML_GRAPH
Definition: stdsoap2.h:1111
unsigned short z_level
Definition: stdsoap2.h:1830
int error
Definition: stdsoap2.h:1755
#define soap_valid_socket(n)
Definition: stdsoap2.h:698
int sendfd
Definition: stdsoap2.h:1693
short part
Definition: stdsoap2.h:1729
#define SOAP_UDP_ERROR
Definition: stdsoap2.h:1022
soap_mode mode
Definition: stdsoap2.h:1601
#define SOAP_ENC_MTOM
Definition: stdsoap2.h:1101
#define SOAP_BUFLEN
Definition: stdsoap2.h:814
#define SOAP_BEGIN
Definition: stdsoap2.h:1154
short ns
Definition: stdsoap2.h:1728
#define SOAP_IO_UDP
Definition: stdsoap2.h:1092
size_t chunksize
Definition: stdsoap2.h:1732
#define SOAP_IO_FLUSH
Definition: stdsoap2.h:1087
#define SOAP_IO
Definition: stdsoap2.h:1086
unsigned int level
Definition: stdsoap2.h:1704
#define DBGLOG(DBGFILE, CMD)
Definition: stdsoap2.h:1247
int32_t z_crc
Definition: stdsoap2.h:1823
void soap_set_local_namespaces(struct soap *soap)
Definition: stdsoap2.cpp:8831
short zlib_state
Definition: stdsoap2.h:1825
#define SOAP_ZLIB_DEFLATE
Definition: stdsoap2.h:1078
#define SOAP_ZLIB_GZIP
Definition: stdsoap2.h:1080
struct soap_blist * soap_new_block(struct soap *soap)
Definition: stdsoap2.cpp:2728
#define SOAP_XML_TREE
Definition: stdsoap2.h:1110
void * d_stream
Definition: stdsoap2.h:1822
#define SOAP_IO_LENGTH
Definition: stdsoap2.h:1094
float z_ratio_out
Definition: stdsoap2.h:1832
soap_mode omode
Definition: stdsoap2.h:1603
#define SOAP_MALLOC(soap, size)
Definition: stdsoap2.h:1190
short encoding
Definition: stdsoap2.h:1725
void * ssl
Definition: stdsoap2.h:1799
#define SOAP_IO_BUFFER
Definition: stdsoap2.h:1088
#define SOAP_ENC_ZLIB
Definition: stdsoap2.h:1102
size_t bufidx
Definition: stdsoap2.h:1699
short mustUnderstand
Definition: stdsoap2.h:1726
int(* fprepare