/* soapC.cpp Generated by gSOAP 2.8.2 from Init.h Copyright(C) 2000-2011, Robert van Engelen, Genivia Inc. All Rights Reserved. The generated code is released under one of the following licenses: GPL OR Genivia's license for commercial use. */ #include "Stdafx.h" #if defined (_SG) && !defined(PRE_MOD_SG_WITH_MACADDR) #if defined(__BORLANDC__) #pragma option push -w-8060 #pragma option push -w-8004 #endif #include "soapH.h" SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.8.2 2011-05-12 12:24:53 GMT") #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap) { if (soap->header) soap_serialize_SOAP_ENV__Header(soap, soap->header); } SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap) { if (soap->header) { soap->part = SOAP_IN_HEADER; if (soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL)) return soap->error; soap->part = SOAP_END_HEADER; } return SOAP_OK; } SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap) { soap->part = SOAP_IN_HEADER; soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", NULL, NULL); soap->part = SOAP_END_HEADER; return soap->header == NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_header(struct soap *soap) { if (!soap->header) { if ((soap->header = soap_new_SOAP_ENV__Header(soap, -1))) soap_default_SOAP_ENV__Header(soap, soap->header); } } SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap) { if (!soap->fault) { soap->fault = soap_new_SOAP_ENV__Fault(soap, -1); if (!soap->fault) return; soap_default_SOAP_ENV__Fault(soap, soap->fault); } if (soap->version == 2 && !soap->fault->SOAP_ENV__Code) { soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap, -1); soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code); } if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason) { soap->fault->SOAP_ENV__Reason = soap_new_SOAP_ENV__Reason(soap, -1); soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason); } } SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap) { soap_fault(soap); if (soap->fault) soap_serialize_SOAP_ENV__Fault(soap, soap->fault); } SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap) { if (soap->fault) return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL); return SOAP_OK; } SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap) { return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap) { soap_fault(soap); if (soap->version == 2) return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value; return (const char**)&soap->fault->faultcode; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultsubcode(struct soap *soap) { soap_fault(soap); if (soap->version == 2) { if (!soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode) { soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode = soap_new_SOAP_ENV__Code(soap, -1); soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode); } return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value; } return (const char**)&soap->fault->faultcode; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultstring(struct soap *soap) { soap_fault(soap); if (soap->version == 2) return (const char**)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text; return (const char**)&soap->fault->faultstring; } SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultdetail(struct soap *soap) { soap_fault(soap); if (soap->version == 1) { if (!soap->fault->detail) { soap->fault->detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail)); soap_default_SOAP_ENV__Detail(soap, soap->fault->detail); } return (const char**)&soap->fault->detail->__any; } if (!soap->fault->SOAP_ENV__Detail) { soap->fault->SOAP_ENV__Detail = soap_new_SOAP_ENV__Detail(soap, -1); soap_default_SOAP_ENV__Detail(soap, soap->fault->SOAP_ENV__Detail); } return (const char**)&soap->fault->SOAP_ENV__Detail->__any; } #endif #ifndef WITH_NOIDREF SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap *soap) { int t; if (soap->version == 1) { for (;;) { if (!soap_getelement(soap, &t)) if (soap->error || soap_ignore_element(soap)) break; } } if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF) soap->error = SOAP_OK; return soap->error; } #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type) { if (soap_peek_element(soap)) return NULL; if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id))) *type = soap_lookup_type(soap, soap->href); switch (*type) { case SOAP_TYPE_xsd__byte: return soap_in_xsd__byte(soap, NULL, NULL, "xsd:byte"); case SOAP_TYPE_byte: return soap_in_byte(soap, NULL, NULL, "xsd:byte"); case SOAP_TYPE_short: return soap_in_short(soap, NULL, NULL, "xsd:short"); case SOAP_TYPE_ns4__char: return soap_in_ns4__char(soap, NULL, NULL, "ns4:char"); case SOAP_TYPE_int: return soap_in_int(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_LONG64: return soap_in_LONG64(soap, NULL, NULL, "xsd:long"); case SOAP_TYPE_float: return soap_in_float(soap, NULL, NULL, "xsd:float"); case SOAP_TYPE_double: return soap_in_double(soap, NULL, NULL, "xsd:double"); case SOAP_TYPE_xsd__unsignedByte: return soap_in_xsd__unsignedByte(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE_unsignedByte: return soap_in_unsignedByte(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE_unsignedShort: return soap_in_unsignedShort(soap, NULL, NULL, "xsd:unsignedShort"); case SOAP_TYPE_unsignedInt: return soap_in_unsignedInt(soap, NULL, NULL, "xsd:unsignedInt"); case SOAP_TYPE_unsignedLONG64: return soap_in_unsignedLONG64(soap, NULL, NULL, "xsd:unsignedLong"); case SOAP_TYPE_time: return soap_in_time(soap, NULL, NULL, "xsd:dateTime"); case SOAP_TYPE_bool: return soap_in_bool(soap, NULL, NULL, "xsd:boolean"); case SOAP_TYPE_ns4__guid__: return soap_in_ns4__guid__(soap, NULL, NULL, "ns4:guid"); case SOAP_TYPE_ns4__guid: return soap_in_ns4__guid(soap, NULL, NULL, "ns4:guid"); case SOAP_TYPE_ns4__duration__: return soap_in_ns4__duration__(soap, NULL, NULL, "ns4:duration"); case SOAP_TYPE_ns4__duration: return soap_in_ns4__duration(soap, NULL, NULL, "ns4:duration"); case SOAP_TYPE_ns4__char__: return soap_in_ns4__char__(soap, NULL, NULL, "ns4:char"); case SOAP_TYPE_ns3__CreationResult: return soap_in_ns3__CreationResult(soap, NULL, NULL, "ns3:CreationResult"); case SOAP_TYPE_ns3__AccountInfo: return soap_in_ns3__AccountInfo(soap, NULL, NULL, "ns3:AccountInfo"); case SOAP_TYPE_xsd__unsignedShort: return soap_in_xsd__unsignedShort(soap, NULL, NULL, "xsd:unsignedShort"); case SOAP_TYPE_xsd__unsignedLong: return soap_in_xsd__unsignedLong(soap, NULL, NULL, "xsd:unsignedLong"); case SOAP_TYPE_xsd__unsignedInt: return soap_in_xsd__unsignedInt(soap, NULL, NULL, "xsd:unsignedInt"); case SOAP_TYPE_xsd__unsignedByte_: return soap_in_xsd__unsignedByte_(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE_xsd__string: return soap_in_xsd__string(soap, NULL, NULL, "xsd:string"); case SOAP_TYPE_xsd__short: return soap_in_xsd__short(soap, NULL, NULL, "xsd:short"); case SOAP_TYPE_xsd__long: return soap_in_xsd__long(soap, NULL, NULL, "xsd:long"); case SOAP_TYPE_xsd__int: return soap_in_xsd__int(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_xsd__float: return soap_in_xsd__float(soap, NULL, NULL, "xsd:float"); case SOAP_TYPE_xsd__duration_: return soap_in_xsd__duration_(soap, NULL, NULL, "xsd:duration"); case SOAP_TYPE_xsd__duration: return soap_in_xsd__duration(soap, NULL, NULL, "xsd:duration"); case SOAP_TYPE_xsd__double: return soap_in_xsd__double(soap, NULL, NULL, "xsd:double"); case SOAP_TYPE_xsd__decimal_: return soap_in_xsd__decimal_(soap, NULL, NULL, "xsd:decimal"); case SOAP_TYPE_xsd__decimal: return soap_in_xsd__decimal(soap, NULL, NULL, "xsd:decimal"); case SOAP_TYPE_xsd__dateTime: return soap_in_xsd__dateTime(soap, NULL, NULL, "xsd:dateTime"); case SOAP_TYPE_xsd__byte_: return soap_in_xsd__byte_(soap, NULL, NULL, "xsd:byte"); case SOAP_TYPE_xsd__boolean: return soap_in_xsd__boolean(soap, NULL, NULL, "xsd:boolean"); case SOAP_TYPE_xsd__base64Binary_: return soap_in_xsd__base64Binary_(soap, NULL, NULL, "xsd:base64Binary"); case SOAP_TYPE_xsd__base64Binary: return soap_in_xsd__base64Binary(soap, NULL, NULL, "xsd:base64Binary"); case SOAP_TYPE_xsd__anyURI_: return soap_in_xsd__anyURI_(soap, NULL, NULL, "xsd:anyURI"); case SOAP_TYPE_xsd__anyURI: return soap_in_xsd__anyURI(soap, NULL, NULL, "xsd:anyURI"); case SOAP_TYPE_xsd__QName_: return soap_in_xsd__QName_(soap, NULL, NULL, "xsd:QName"); case SOAP_TYPE_xsd__QName: return soap_in_xsd__QName(soap, NULL, NULL, "xsd:QName"); case SOAP_TYPE_xsd__IDREF_: return soap_in_xsd__IDREF_(soap, NULL, NULL, "xsd:IDREF"); case SOAP_TYPE_xsd__IDREF: return soap_in_xsd__IDREF(soap, NULL, NULL, "xsd:IDREF"); case SOAP_TYPE_xsd__ID_: return soap_in_xsd__ID_(soap, NULL, NULL, "xsd:ID"); case SOAP_TYPE_xsd__ID: return soap_in_xsd__ID(soap, NULL, NULL, "xsd:ID"); case SOAP_TYPE_std__string: return soap_in_std__string(soap, NULL, NULL, "xsd:string"); case SOAP_TYPE_xsd__anyType: return soap_in_xsd__anyType(soap, NULL, NULL, "xsd:anyType"); case SOAP_TYPE_PointerTo_ns3__CreateAccountResponse: return soap_in_PointerTo_ns3__CreateAccountResponse(soap, NULL, NULL, "ns3:CreateAccountResponse"); case SOAP_TYPE_PointerTo_ns3__CreateAccount: return soap_in_PointerTo_ns3__CreateAccount(soap, NULL, NULL, "ns3:CreateAccount"); case SOAP_TYPE_PointerTo_ns3__AuthenticateResponse: return soap_in_PointerTo_ns3__AuthenticateResponse(soap, NULL, NULL, "ns3:AuthenticateResponse"); case SOAP_TYPE_PointerTo_ns3__Authenticate: return soap_in_PointerTo_ns3__Authenticate(soap, NULL, NULL, "ns3:Authenticate"); case SOAP_TYPE_PointerTons3__CreationResult: return soap_in_PointerTons3__CreationResult(soap, NULL, NULL, "ns3:CreationResult"); case SOAP_TYPE_PointerTons3__AccountInfo: return soap_in_PointerTons3__AccountInfo(soap, NULL, NULL, "ns3:AccountInfo"); case SOAP_TYPE_PointerToint: return soap_in_PointerToint(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_PointerTostd__string: return soap_in_PointerTostd__string(soap, NULL, NULL, "xsd:string"); case SOAP_TYPE_PointerTounsignedByte: return soap_in_PointerTounsignedByte(soap, NULL, NULL, "xsd:unsignedByte"); case SOAP_TYPE__QName: { char **s; s = soap_in__QName(soap, NULL, NULL, "xsd:QName"); return s ? *s : NULL; } case SOAP_TYPE_string: { char **s; s = soap_in_string(soap, NULL, NULL, "xsd:string"); return s ? *s : NULL; } default: { const char *t = soap->type; if (!*t) t = soap->tag; if (!soap_match_tag(soap, t, "ns4:guid")) { *type = SOAP_TYPE_ns4__guid__; return soap_in_ns4__guid__(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns4:guid")) { *type = SOAP_TYPE_ns4__guid; return soap_in_ns4__guid(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns4:duration")) { *type = SOAP_TYPE_ns4__duration__; return soap_in_ns4__duration__(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns4:duration")) { *type = SOAP_TYPE_ns4__duration; return soap_in_ns4__duration(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns4:char")) { *type = SOAP_TYPE_ns4__char__; return soap_in_ns4__char__(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns3:CreationResult")) { *type = SOAP_TYPE_ns3__CreationResult; return soap_in_ns3__CreationResult(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns3:AccountInfo")) { *type = SOAP_TYPE_ns3__AccountInfo; return soap_in_ns3__AccountInfo(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedShort")) { *type = SOAP_TYPE_xsd__unsignedShort; return soap_in_xsd__unsignedShort(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedLong")) { *type = SOAP_TYPE_xsd__unsignedLong; return soap_in_xsd__unsignedLong(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedInt")) { *type = SOAP_TYPE_xsd__unsignedInt; return soap_in_xsd__unsignedInt(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedByte")) { *type = SOAP_TYPE_xsd__unsignedByte_; return soap_in_xsd__unsignedByte_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:string")) { *type = SOAP_TYPE_xsd__string; return soap_in_xsd__string(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:short")) { *type = SOAP_TYPE_xsd__short; return soap_in_xsd__short(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:long")) { *type = SOAP_TYPE_xsd__long; return soap_in_xsd__long(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:int")) { *type = SOAP_TYPE_xsd__int; return soap_in_xsd__int(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:float")) { *type = SOAP_TYPE_xsd__float; return soap_in_xsd__float(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:duration")) { *type = SOAP_TYPE_xsd__duration_; return soap_in_xsd__duration_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:duration")) { *type = SOAP_TYPE_xsd__duration; return soap_in_xsd__duration(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:double")) { *type = SOAP_TYPE_xsd__double; return soap_in_xsd__double(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:decimal")) { *type = SOAP_TYPE_xsd__decimal_; return soap_in_xsd__decimal_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:decimal")) { *type = SOAP_TYPE_xsd__decimal; return soap_in_xsd__decimal(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:dateTime")) { *type = SOAP_TYPE_xsd__dateTime; return soap_in_xsd__dateTime(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:byte")) { *type = SOAP_TYPE_xsd__byte_; return soap_in_xsd__byte_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:boolean")) { *type = SOAP_TYPE_xsd__boolean; return soap_in_xsd__boolean(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:base64Binary")) { *type = SOAP_TYPE_xsd__base64Binary_; return soap_in_xsd__base64Binary_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:base64Binary")) { *type = SOAP_TYPE_xsd__base64Binary; return soap_in_xsd__base64Binary(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:anyURI")) { *type = SOAP_TYPE_xsd__anyURI_; return soap_in_xsd__anyURI_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:anyURI")) { *type = SOAP_TYPE_xsd__anyURI; return soap_in_xsd__anyURI(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:QName")) { *type = SOAP_TYPE_xsd__QName_; return soap_in_xsd__QName_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:QName")) { *type = SOAP_TYPE_xsd__QName; return soap_in_xsd__QName(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:IDREF")) { *type = SOAP_TYPE_xsd__IDREF_; return soap_in_xsd__IDREF_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:IDREF")) { *type = SOAP_TYPE_xsd__IDREF; return soap_in_xsd__IDREF(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:ID")) { *type = SOAP_TYPE_xsd__ID_; return soap_in_xsd__ID_(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:ID")) { *type = SOAP_TYPE_xsd__ID; return soap_in_xsd__ID(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:string")) { *type = SOAP_TYPE_std__string; return soap_in_std__string(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:anyType")) { *type = SOAP_TYPE_xsd__anyType; return soap_in_xsd__anyType(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:byte")) { *type = SOAP_TYPE_xsd__byte; return soap_in_xsd__byte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:byte")) { *type = SOAP_TYPE_byte; return soap_in_byte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:short")) { *type = SOAP_TYPE_short; return soap_in_short(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns4:char")) { *type = SOAP_TYPE_ns4__char; return soap_in_ns4__char(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:int")) { *type = SOAP_TYPE_int; return soap_in_int(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:long")) { *type = SOAP_TYPE_LONG64; return soap_in_LONG64(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:float")) { *type = SOAP_TYPE_float; return soap_in_float(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:double")) { *type = SOAP_TYPE_double; return soap_in_double(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedByte")) { *type = SOAP_TYPE_xsd__unsignedByte; return soap_in_xsd__unsignedByte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedByte")) { *type = SOAP_TYPE_unsignedByte; return soap_in_unsignedByte(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedShort")) { *type = SOAP_TYPE_unsignedShort; return soap_in_unsignedShort(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedInt")) { *type = SOAP_TYPE_unsignedInt; return soap_in_unsignedInt(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:unsignedLong")) { *type = SOAP_TYPE_unsignedLONG64; return soap_in_unsignedLONG64(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:dateTime")) { *type = SOAP_TYPE_time; return soap_in_time(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:boolean")) { *type = SOAP_TYPE_bool; return soap_in_bool(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "xsd:QName")) { char **s; *type = SOAP_TYPE__QName; s = soap_in__QName(soap, NULL, NULL, NULL); return s ? *s : NULL; } if (!soap_match_tag(soap, t, "xsd:string")) { char **s; *type = SOAP_TYPE_string; s = soap_in_string(soap, NULL, NULL, NULL); return s ? *s : NULL; } t = soap->tag; if (!soap_match_tag(soap, t, "ns3:CreateAccountResponse")) { *type = SOAP_TYPE__ns3__CreateAccountResponse; return soap_in__ns3__CreateAccountResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns3:CreateAccount")) { *type = SOAP_TYPE__ns3__CreateAccount; return soap_in__ns3__CreateAccount(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns3:AuthenticateResponse")) { *type = SOAP_TYPE__ns3__AuthenticateResponse; return soap_in__ns3__AuthenticateResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns3:Authenticate")) { *type = SOAP_TYPE__ns3__Authenticate; return soap_in__ns3__Authenticate(soap, NULL, NULL, NULL); } } } soap->error = SOAP_TAG_MISMATCH; return NULL; } #ifdef __cplusplus } #endif #endif SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap) { if (!soap_peek_element(soap)) { int t; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level=%u, %d)\n", soap->tag, soap->level, soap->body)); if (soap->mustUnderstand && !soap->other) return soap->error = SOAP_MUSTUNDERSTAND; if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:")) { DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag)); return soap->error = SOAP_TAG_MISMATCH; } if (!*soap->id || !soap_getelement(soap, &t)) { soap->peeked = 0; if (soap->fignore) soap->error = soap->fignore(soap, soap->tag); else soap->error = SOAP_OK; DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag)); if (!soap->error && soap->body) { soap->level++; while (!soap_ignore_element(soap)) ; if (soap->error == SOAP_NO_TAG) soap->error = soap_element_end_in(soap, NULL); } } } return soap->error; } #ifndef WITH_NOIDREF SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap) { int i; struct soap_plist *pp; if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH))) for (i = 0; i < SOAP_PTRHASH; i++) for (pp = soap->pht[i]; pp; pp = pp->next) if (pp->mark1 == 2 || pp->mark2 == 2) if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type)) return soap->error; return SOAP_OK; } #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type) { switch (type) { case SOAP_TYPE_xsd__byte: return soap_out_xsd__byte(soap, tag, id, (const char *)ptr, "xsd:byte"); case SOAP_TYPE_byte: return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte"); case SOAP_TYPE_short: return soap_out_short(soap, tag, id, (const short *)ptr, "xsd:short"); case SOAP_TYPE_ns4__char: return soap_out_ns4__char(soap, tag, id, (const int *)ptr, "ns4:char"); case SOAP_TYPE_int: return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); case SOAP_TYPE_LONG64: return soap_out_LONG64(soap, tag, id, (const LONG64 *)ptr, "xsd:long"); case SOAP_TYPE_float: return soap_out_float(soap, tag, id, (const float *)ptr, "xsd:float"); case SOAP_TYPE_double: return soap_out_double(soap, tag, id, (const double *)ptr, "xsd:double"); case SOAP_TYPE_xsd__unsignedByte: return soap_out_xsd__unsignedByte(soap, tag, id, (const unsigned char *)ptr, "xsd:unsignedByte"); case SOAP_TYPE_unsignedByte: return soap_out_unsignedByte(soap, tag, id, (const unsigned char *)ptr, "xsd:unsignedByte"); case SOAP_TYPE_unsignedShort: return soap_out_unsignedShort(soap, tag, id, (const unsigned short *)ptr, "xsd:unsignedShort"); case SOAP_TYPE_unsignedInt: return soap_out_unsignedInt(soap, tag, id, (const unsigned int *)ptr, "xsd:unsignedInt"); case SOAP_TYPE_unsignedLONG64: return soap_out_unsignedLONG64(soap, tag, id, (const ULONG64 *)ptr, "xsd:unsignedLong"); case SOAP_TYPE_time: return soap_out_time(soap, tag, id, (const time_t *)ptr, "xsd:dateTime"); case SOAP_TYPE_bool: return soap_out_bool(soap, tag, id, (const bool *)ptr, "xsd:boolean"); case SOAP_TYPE_ns4__guid__: return ((ns4__guid__ *)ptr)->soap_out(soap, tag, id, "ns4:guid"); case SOAP_TYPE_ns4__guid: return soap_out_ns4__guid(soap, tag, id, (const std::string *)ptr, "ns4:guid"); case SOAP_TYPE_ns4__duration__: return ((ns4__duration__ *)ptr)->soap_out(soap, tag, id, "ns4:duration"); case SOAP_TYPE_ns4__duration: return soap_out_ns4__duration(soap, tag, id, (const std::string *)ptr, "ns4:duration"); case SOAP_TYPE_ns4__char__: return ((ns4__char__ *)ptr)->soap_out(soap, tag, id, "ns4:char"); case SOAP_TYPE__ns3__CreateAccountResponse: return ((_ns3__CreateAccountResponse *)ptr)->soap_out(soap, "ns3:CreateAccountResponse", id, NULL); case SOAP_TYPE__ns3__CreateAccount: return ((_ns3__CreateAccount *)ptr)->soap_out(soap, "ns3:CreateAccount", id, NULL); case SOAP_TYPE__ns3__AuthenticateResponse: return ((_ns3__AuthenticateResponse *)ptr)->soap_out(soap, "ns3:AuthenticateResponse", id, NULL); case SOAP_TYPE__ns3__Authenticate: return ((_ns3__Authenticate *)ptr)->soap_out(soap, "ns3:Authenticate", id, NULL); case SOAP_TYPE_ns3__CreationResult: return ((ns3__CreationResult *)ptr)->soap_out(soap, tag, id, "ns3:CreationResult"); case SOAP_TYPE_ns3__AccountInfo: return ((ns3__AccountInfo *)ptr)->soap_out(soap, tag, id, "ns3:AccountInfo"); case SOAP_TYPE_xsd__unsignedShort: return ((xsd__unsignedShort *)ptr)->soap_out(soap, tag, id, "xsd:unsignedShort"); case SOAP_TYPE_xsd__unsignedLong: return ((xsd__unsignedLong *)ptr)->soap_out(soap, tag, id, "xsd:unsignedLong"); case SOAP_TYPE_xsd__unsignedInt: return ((xsd__unsignedInt *)ptr)->soap_out(soap, tag, id, "xsd:unsignedInt"); case SOAP_TYPE_xsd__unsignedByte_: return ((xsd__unsignedByte_ *)ptr)->soap_out(soap, tag, id, "xsd:unsignedByte"); case SOAP_TYPE_xsd__string: return ((xsd__string *)ptr)->soap_out(soap, tag, id, "xsd:string"); case SOAP_TYPE_xsd__short: return ((xsd__short *)ptr)->soap_out(soap, tag, id, "xsd:short"); case SOAP_TYPE_xsd__long: return ((xsd__long *)ptr)->soap_out(soap, tag, id, "xsd:long"); case SOAP_TYPE_xsd__int: return ((xsd__int *)ptr)->soap_out(soap, tag, id, "xsd:int"); case SOAP_TYPE_xsd__float: return ((xsd__float *)ptr)->soap_out(soap, tag, id, "xsd:float"); case SOAP_TYPE_xsd__duration_: return ((xsd__duration_ *)ptr)->soap_out(soap, tag, id, "xsd:duration"); case SOAP_TYPE_xsd__duration: return soap_out_xsd__duration(soap, tag, id, (const std::string *)ptr, "xsd:duration"); case SOAP_TYPE_xsd__double: return ((xsd__double *)ptr)->soap_out(soap, tag, id, "xsd:double"); case SOAP_TYPE_xsd__decimal_: return ((xsd__decimal_ *)ptr)->soap_out(soap, tag, id, "xsd:decimal"); case SOAP_TYPE_xsd__decimal: return soap_out_xsd__decimal(soap, tag, id, (const std::string *)ptr, "xsd:decimal"); case SOAP_TYPE_xsd__dateTime: return ((xsd__dateTime *)ptr)->soap_out(soap, tag, id, "xsd:dateTime"); case SOAP_TYPE_xsd__byte_: return ((xsd__byte_ *)ptr)->soap_out(soap, tag, id, "xsd:byte"); case SOAP_TYPE_xsd__boolean: return ((xsd__boolean *)ptr)->soap_out(soap, tag, id, "xsd:boolean"); case SOAP_TYPE_xsd__base64Binary_: return ((xsd__base64Binary_ *)ptr)->soap_out(soap, tag, id, "xsd:base64Binary"); case SOAP_TYPE_xsd__base64Binary: return ((xsd__base64Binary *)ptr)->soap_out(soap, tag, id, "xsd:base64Binary"); case SOAP_TYPE_xsd__anyURI_: return ((xsd__anyURI_ *)ptr)->soap_out(soap, tag, id, "xsd:anyURI"); case SOAP_TYPE_xsd__anyURI: return soap_out_xsd__anyURI(soap, tag, id, (const std::string *)ptr, "xsd:anyURI"); case SOAP_TYPE_xsd__QName_: return ((xsd__QName_ *)ptr)->soap_out(soap, tag, id, "xsd:QName"); case SOAP_TYPE_xsd__QName: return soap_out_xsd__QName(soap, tag, id, (const xsd__QName *)ptr, "xsd:QName"); case SOAP_TYPE_xsd__IDREF_: return ((xsd__IDREF_ *)ptr)->soap_out(soap, tag, id, "xsd:IDREF"); case SOAP_TYPE_xsd__IDREF: return soap_out_xsd__IDREF(soap, tag, id, (const std::string *)ptr, "xsd:IDREF"); case SOAP_TYPE_xsd__ID_: return ((xsd__ID_ *)ptr)->soap_out(soap, tag, id, "xsd:ID"); case SOAP_TYPE_xsd__ID: return soap_out_xsd__ID(soap, tag, id, (const std::string *)ptr, "xsd:ID"); case SOAP_TYPE_std__string: return soap_out_std__string(soap, tag, id, (const std::string *)ptr, "xsd:string"); case SOAP_TYPE_xsd__anyType: return ((xsd__anyType *)ptr)->soap_out(soap, tag, id, "xsd:anyType"); case SOAP_TYPE_PointerTo_ns3__CreateAccountResponse: return soap_out_PointerTo_ns3__CreateAccountResponse(soap, tag, id, (_ns3__CreateAccountResponse *const*)ptr, "ns3:CreateAccountResponse"); case SOAP_TYPE_PointerTo_ns3__CreateAccount: return soap_out_PointerTo_ns3__CreateAccount(soap, tag, id, (_ns3__CreateAccount *const*)ptr, "ns3:CreateAccount"); case SOAP_TYPE_PointerTo_ns3__AuthenticateResponse: return soap_out_PointerTo_ns3__AuthenticateResponse(soap, tag, id, (_ns3__AuthenticateResponse *const*)ptr, "ns3:AuthenticateResponse"); case SOAP_TYPE_PointerTo_ns3__Authenticate: return soap_out_PointerTo_ns3__Authenticate(soap, tag, id, (_ns3__Authenticate *const*)ptr, "ns3:Authenticate"); case SOAP_TYPE_PointerTons3__CreationResult: return soap_out_PointerTons3__CreationResult(soap, tag, id, (ns3__CreationResult *const*)ptr, "ns3:CreationResult"); case SOAP_TYPE_PointerTons3__AccountInfo: return soap_out_PointerTons3__AccountInfo(soap, tag, id, (ns3__AccountInfo *const*)ptr, "ns3:AccountInfo"); case SOAP_TYPE_PointerToint: return soap_out_PointerToint(soap, tag, id, (int *const*)ptr, "xsd:int"); case SOAP_TYPE_PointerTostd__string: return soap_out_PointerTostd__string(soap, tag, id, (std::string *const*)ptr, "xsd:string"); case SOAP_TYPE_PointerTounsignedByte: return soap_out_PointerTounsignedByte(soap, tag, id, (unsigned char *const*)ptr, "xsd:unsignedByte"); case SOAP_TYPE__QName: return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:QName"); case SOAP_TYPE_string: return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string"); } return SOAP_OK; } #ifdef __cplusplus } #endif #endif #ifndef WITH_NOIDREF #ifdef __cplusplus extern "C" { #endif SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type) { (void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */ switch (type) { case SOAP_TYPE_ns4__guid__: ((ns4__guid__ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_ns4__guid: soap_serialize_ns4__guid(soap, (const std::string *)ptr); break; case SOAP_TYPE_ns4__duration__: ((ns4__duration__ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_ns4__duration: soap_serialize_ns4__duration(soap, (const std::string *)ptr); break; case SOAP_TYPE_ns4__char__: ((ns4__char__ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__ns3__CreateAccountResponse: ((_ns3__CreateAccountResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__ns3__CreateAccount: ((_ns3__CreateAccount *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__ns3__AuthenticateResponse: ((_ns3__AuthenticateResponse *)ptr)->soap_serialize(soap); break; case SOAP_TYPE__ns3__Authenticate: ((_ns3__Authenticate *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_ns3__CreationResult: ((ns3__CreationResult *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_ns3__AccountInfo: ((ns3__AccountInfo *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__unsignedShort: ((xsd__unsignedShort *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__unsignedLong: ((xsd__unsignedLong *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__unsignedInt: ((xsd__unsignedInt *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__unsignedByte_: ((xsd__unsignedByte_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__string: ((xsd__string *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__short: ((xsd__short *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__long: ((xsd__long *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__int: ((xsd__int *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__float: ((xsd__float *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__duration_: ((xsd__duration_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__duration: soap_serialize_xsd__duration(soap, (const std::string *)ptr); break; case SOAP_TYPE_xsd__double: ((xsd__double *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__decimal_: ((xsd__decimal_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__decimal: soap_serialize_xsd__decimal(soap, (const std::string *)ptr); break; case SOAP_TYPE_xsd__dateTime: ((xsd__dateTime *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__byte_: ((xsd__byte_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__boolean: ((xsd__boolean *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__base64Binary_: ((xsd__base64Binary_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__base64Binary: ((xsd__base64Binary *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__anyURI_: ((xsd__anyURI_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__anyURI: soap_serialize_xsd__anyURI(soap, (const std::string *)ptr); break; case SOAP_TYPE_xsd__QName_: ((xsd__QName_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__QName: soap_serialize_xsd__QName(soap, (const xsd__QName *)ptr); break; case SOAP_TYPE_xsd__IDREF_: ((xsd__IDREF_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__IDREF: soap_serialize_xsd__IDREF(soap, (const std::string *)ptr); break; case SOAP_TYPE_xsd__ID_: ((xsd__ID_ *)ptr)->soap_serialize(soap); break; case SOAP_TYPE_xsd__ID: soap_serialize_xsd__ID(soap, (const std::string *)ptr); break; case SOAP_TYPE_std__string: soap_serialize_std__string(soap, (const std::string *)ptr); break; case SOAP_TYPE_xsd__anyType: ((xsd__anyType *)ptr)->soap_serialize(soap); break; case SOAP_TYPE___ns6__CreateAccount: soap_serialize___ns6__CreateAccount(soap, (const struct __ns6__CreateAccount *)ptr); break; case SOAP_TYPE___ns6__Authenticate: soap_serialize___ns6__Authenticate(soap, (const struct __ns6__Authenticate *)ptr); break; case SOAP_TYPE___ns5__CreateAccount: soap_serialize___ns5__CreateAccount(soap, (const struct __ns5__CreateAccount *)ptr); break; case SOAP_TYPE___ns5__Authenticate: soap_serialize___ns5__Authenticate(soap, (const struct __ns5__Authenticate *)ptr); break; case SOAP_TYPE_PointerTo_ns3__CreateAccountResponse: soap_serialize_PointerTo_ns3__CreateAccountResponse(soap, (_ns3__CreateAccountResponse *const*)ptr); break; case SOAP_TYPE_PointerTo_ns3__CreateAccount: soap_serialize_PointerTo_ns3__CreateAccount(soap, (_ns3__CreateAccount *const*)ptr); break; case SOAP_TYPE_PointerTo_ns3__AuthenticateResponse: soap_serialize_PointerTo_ns3__AuthenticateResponse(soap, (_ns3__AuthenticateResponse *const*)ptr); break; case SOAP_TYPE_PointerTo_ns3__Authenticate: soap_serialize_PointerTo_ns3__Authenticate(soap, (_ns3__Authenticate *const*)ptr); break; case SOAP_TYPE_PointerTons3__CreationResult: soap_serialize_PointerTons3__CreationResult(soap, (ns3__CreationResult *const*)ptr); break; case SOAP_TYPE_PointerTons3__AccountInfo: soap_serialize_PointerTons3__AccountInfo(soap, (ns3__AccountInfo *const*)ptr); break; case SOAP_TYPE_PointerToint: soap_serialize_PointerToint(soap, (int *const*)ptr); break; case SOAP_TYPE_PointerTostd__string: soap_serialize_PointerTostd__string(soap, (std::string *const*)ptr); break; case SOAP_TYPE_PointerTounsignedByte: soap_serialize_PointerTounsignedByte(soap, (unsigned char *const*)ptr); break; case SOAP_TYPE__QName: soap_serialize_string(soap, (char*const*)&ptr); break; case SOAP_TYPE_string: soap_serialize_string(soap, (char*const*)&ptr); break; } } #ifdef __cplusplus } #endif #endif SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap *soap, int t, const char *type, const char *arrayType, size_t *n) { switch (t) { case SOAP_TYPE_xsd__anyType: return (void*)soap_instantiate_xsd__anyType(soap, -1, type, arrayType, n); case SOAP_TYPE_std__string: return (void*)soap_instantiate_std__string(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__ID_: return (void*)soap_instantiate_xsd__ID_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__IDREF_: return (void*)soap_instantiate_xsd__IDREF_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__QName_: return (void*)soap_instantiate_xsd__QName_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__anyURI_: return (void*)soap_instantiate_xsd__anyURI_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__base64Binary: return (void*)soap_instantiate_xsd__base64Binary(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__base64Binary_: return (void*)soap_instantiate_xsd__base64Binary_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__boolean: return (void*)soap_instantiate_xsd__boolean(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__byte_: return (void*)soap_instantiate_xsd__byte_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__dateTime: return (void*)soap_instantiate_xsd__dateTime(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__decimal_: return (void*)soap_instantiate_xsd__decimal_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__double: return (void*)soap_instantiate_xsd__double(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__duration_: return (void*)soap_instantiate_xsd__duration_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__float: return (void*)soap_instantiate_xsd__float(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__int: return (void*)soap_instantiate_xsd__int(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__long: return (void*)soap_instantiate_xsd__long(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__short: return (void*)soap_instantiate_xsd__short(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__string: return (void*)soap_instantiate_xsd__string(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__unsignedByte_: return (void*)soap_instantiate_xsd__unsignedByte_(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__unsignedInt: return (void*)soap_instantiate_xsd__unsignedInt(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__unsignedLong: return (void*)soap_instantiate_xsd__unsignedLong(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__unsignedShort: return (void*)soap_instantiate_xsd__unsignedShort(soap, -1, type, arrayType, n); case SOAP_TYPE_ns4__char__: return (void*)soap_instantiate_ns4__char__(soap, -1, type, arrayType, n); case SOAP_TYPE_ns4__duration__: return (void*)soap_instantiate_ns4__duration__(soap, -1, type, arrayType, n); case SOAP_TYPE_ns4__guid__: return (void*)soap_instantiate_ns4__guid__(soap, -1, type, arrayType, n); case SOAP_TYPE_ns3__AccountInfo: return (void*)soap_instantiate_ns3__AccountInfo(soap, -1, type, arrayType, n); case SOAP_TYPE_ns3__CreationResult: return (void*)soap_instantiate_ns3__CreationResult(soap, -1, type, arrayType, n); case SOAP_TYPE__ns3__Authenticate: return (void*)soap_instantiate__ns3__Authenticate(soap, -1, type, arrayType, n); case SOAP_TYPE__ns3__AuthenticateResponse: return (void*)soap_instantiate__ns3__AuthenticateResponse(soap, -1, type, arrayType, n); case SOAP_TYPE__ns3__CreateAccount: return (void*)soap_instantiate__ns3__CreateAccount(soap, -1, type, arrayType, n); case SOAP_TYPE__ns3__CreateAccountResponse: return (void*)soap_instantiate__ns3__CreateAccountResponse(soap, -1, type, arrayType, n); case SOAP_TYPE___ns5__Authenticate: return (void*)soap_instantiate___ns5__Authenticate(soap, -1, type, arrayType, n); case SOAP_TYPE___ns5__CreateAccount: return (void*)soap_instantiate___ns5__CreateAccount(soap, -1, type, arrayType, n); case SOAP_TYPE___ns6__Authenticate: return (void*)soap_instantiate___ns6__Authenticate(soap, -1, type, arrayType, n); case SOAP_TYPE___ns6__CreateAccount: return (void*)soap_instantiate___ns6__CreateAccount(soap, -1, type, arrayType, n); #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Header: return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Code: return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Detail: return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Reason: return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n); #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Fault: return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n); #endif case SOAP_TYPE_xsd__ID: return (void*)soap_instantiate_xsd__ID(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__IDREF: return (void*)soap_instantiate_xsd__IDREF(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__QName: return (void*)soap_instantiate_xsd__QName(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__anyURI: return (void*)soap_instantiate_xsd__anyURI(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__decimal: return (void*)soap_instantiate_xsd__decimal(soap, -1, type, arrayType, n); case SOAP_TYPE_xsd__duration: return (void*)soap_instantiate_xsd__duration(soap, -1, type, arrayType, n); case SOAP_TYPE_ns4__duration: return (void*)soap_instantiate_ns4__duration(soap, -1, type, arrayType, n); case SOAP_TYPE_ns4__guid: return (void*)soap_instantiate_ns4__guid(soap, -1, type, arrayType, n); } return NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p) { switch (p->type) { case SOAP_TYPE_xsd__anyType: if (p->size < 0) SOAP_DELETE((xsd__anyType*)p->ptr); else SOAP_DELETE_ARRAY((xsd__anyType*)p->ptr); break; case SOAP_TYPE_std__string: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_xsd__ID_: if (p->size < 0) SOAP_DELETE((xsd__ID_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__ID_*)p->ptr); break; case SOAP_TYPE_xsd__IDREF_: if (p->size < 0) SOAP_DELETE((xsd__IDREF_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__IDREF_*)p->ptr); break; case SOAP_TYPE_xsd__QName_: if (p->size < 0) SOAP_DELETE((xsd__QName_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__QName_*)p->ptr); break; case SOAP_TYPE_xsd__anyURI_: if (p->size < 0) SOAP_DELETE((xsd__anyURI_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__anyURI_*)p->ptr); break; case SOAP_TYPE_xsd__base64Binary: if (p->size < 0) SOAP_DELETE((xsd__base64Binary*)p->ptr); else SOAP_DELETE_ARRAY((xsd__base64Binary*)p->ptr); break; case SOAP_TYPE_xsd__base64Binary_: if (p->size < 0) SOAP_DELETE((xsd__base64Binary_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__base64Binary_*)p->ptr); break; case SOAP_TYPE_xsd__boolean: if (p->size < 0) SOAP_DELETE((xsd__boolean*)p->ptr); else SOAP_DELETE_ARRAY((xsd__boolean*)p->ptr); break; case SOAP_TYPE_xsd__byte_: if (p->size < 0) SOAP_DELETE((xsd__byte_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__byte_*)p->ptr); break; case SOAP_TYPE_xsd__dateTime: if (p->size < 0) SOAP_DELETE((xsd__dateTime*)p->ptr); else SOAP_DELETE_ARRAY((xsd__dateTime*)p->ptr); break; case SOAP_TYPE_xsd__decimal_: if (p->size < 0) SOAP_DELETE((xsd__decimal_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__decimal_*)p->ptr); break; case SOAP_TYPE_xsd__double: if (p->size < 0) SOAP_DELETE((xsd__double*)p->ptr); else SOAP_DELETE_ARRAY((xsd__double*)p->ptr); break; case SOAP_TYPE_xsd__duration_: if (p->size < 0) SOAP_DELETE((xsd__duration_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__duration_*)p->ptr); break; case SOAP_TYPE_xsd__float: if (p->size < 0) SOAP_DELETE((xsd__float*)p->ptr); else SOAP_DELETE_ARRAY((xsd__float*)p->ptr); break; case SOAP_TYPE_xsd__int: if (p->size < 0) SOAP_DELETE((xsd__int*)p->ptr); else SOAP_DELETE_ARRAY((xsd__int*)p->ptr); break; case SOAP_TYPE_xsd__long: if (p->size < 0) SOAP_DELETE((xsd__long*)p->ptr); else SOAP_DELETE_ARRAY((xsd__long*)p->ptr); break; case SOAP_TYPE_xsd__short: if (p->size < 0) SOAP_DELETE((xsd__short*)p->ptr); else SOAP_DELETE_ARRAY((xsd__short*)p->ptr); break; case SOAP_TYPE_xsd__string: if (p->size < 0) SOAP_DELETE((xsd__string*)p->ptr); else SOAP_DELETE_ARRAY((xsd__string*)p->ptr); break; case SOAP_TYPE_xsd__unsignedByte_: if (p->size < 0) SOAP_DELETE((xsd__unsignedByte_*)p->ptr); else SOAP_DELETE_ARRAY((xsd__unsignedByte_*)p->ptr); break; case SOAP_TYPE_xsd__unsignedInt: if (p->size < 0) SOAP_DELETE((xsd__unsignedInt*)p->ptr); else SOAP_DELETE_ARRAY((xsd__unsignedInt*)p->ptr); break; case SOAP_TYPE_xsd__unsignedLong: if (p->size < 0) SOAP_DELETE((xsd__unsignedLong*)p->ptr); else SOAP_DELETE_ARRAY((xsd__unsignedLong*)p->ptr); break; case SOAP_TYPE_xsd__unsignedShort: if (p->size < 0) SOAP_DELETE((xsd__unsignedShort*)p->ptr); else SOAP_DELETE_ARRAY((xsd__unsignedShort*)p->ptr); break; case SOAP_TYPE_ns4__char__: if (p->size < 0) SOAP_DELETE((ns4__char__*)p->ptr); else SOAP_DELETE_ARRAY((ns4__char__*)p->ptr); break; case SOAP_TYPE_ns4__duration__: if (p->size < 0) SOAP_DELETE((ns4__duration__*)p->ptr); else SOAP_DELETE_ARRAY((ns4__duration__*)p->ptr); break; case SOAP_TYPE_ns4__guid__: if (p->size < 0) SOAP_DELETE((ns4__guid__*)p->ptr); else SOAP_DELETE_ARRAY((ns4__guid__*)p->ptr); break; case SOAP_TYPE_ns3__AccountInfo: if (p->size < 0) SOAP_DELETE((ns3__AccountInfo*)p->ptr); else SOAP_DELETE_ARRAY((ns3__AccountInfo*)p->ptr); break; case SOAP_TYPE_ns3__CreationResult: if (p->size < 0) SOAP_DELETE((ns3__CreationResult*)p->ptr); else SOAP_DELETE_ARRAY((ns3__CreationResult*)p->ptr); break; case SOAP_TYPE__ns3__Authenticate: if (p->size < 0) SOAP_DELETE((_ns3__Authenticate*)p->ptr); else SOAP_DELETE_ARRAY((_ns3__Authenticate*)p->ptr); break; case SOAP_TYPE__ns3__AuthenticateResponse: if (p->size < 0) SOAP_DELETE((_ns3__AuthenticateResponse*)p->ptr); else SOAP_DELETE_ARRAY((_ns3__AuthenticateResponse*)p->ptr); break; case SOAP_TYPE__ns3__CreateAccount: if (p->size < 0) SOAP_DELETE((_ns3__CreateAccount*)p->ptr); else SOAP_DELETE_ARRAY((_ns3__CreateAccount*)p->ptr); break; case SOAP_TYPE__ns3__CreateAccountResponse: if (p->size < 0) SOAP_DELETE((_ns3__CreateAccountResponse*)p->ptr); else SOAP_DELETE_ARRAY((_ns3__CreateAccountResponse*)p->ptr); break; case SOAP_TYPE___ns5__Authenticate: if (p->size < 0) SOAP_DELETE((struct __ns5__Authenticate*)p->ptr); else SOAP_DELETE_ARRAY((struct __ns5__Authenticate*)p->ptr); break; case SOAP_TYPE___ns5__CreateAccount: if (p->size < 0) SOAP_DELETE((struct __ns5__CreateAccount*)p->ptr); else SOAP_DELETE_ARRAY((struct __ns5__CreateAccount*)p->ptr); break; case SOAP_TYPE___ns6__Authenticate: if (p->size < 0) SOAP_DELETE((struct __ns6__Authenticate*)p->ptr); else SOAP_DELETE_ARRAY((struct __ns6__Authenticate*)p->ptr); break; case SOAP_TYPE___ns6__CreateAccount: if (p->size < 0) SOAP_DELETE((struct __ns6__CreateAccount*)p->ptr); else SOAP_DELETE_ARRAY((struct __ns6__CreateAccount*)p->ptr); break; #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Header: if (p->size < 0) SOAP_DELETE((struct SOAP_ENV__Header*)p->ptr); else SOAP_DELETE_ARRAY((struct SOAP_ENV__Header*)p->ptr); break; #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Code: if (p->size < 0) SOAP_DELETE((struct SOAP_ENV__Code*)p->ptr); else SOAP_DELETE_ARRAY((struct SOAP_ENV__Code*)p->ptr); break; #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Detail: if (p->size < 0) SOAP_DELETE((struct SOAP_ENV__Detail*)p->ptr); else SOAP_DELETE_ARRAY((struct SOAP_ENV__Detail*)p->ptr); break; #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Reason: if (p->size < 0) SOAP_DELETE((struct SOAP_ENV__Reason*)p->ptr); else SOAP_DELETE_ARRAY((struct SOAP_ENV__Reason*)p->ptr); break; #endif #ifndef WITH_NOGLOBAL case SOAP_TYPE_SOAP_ENV__Fault: if (p->size < 0) SOAP_DELETE((struct SOAP_ENV__Fault*)p->ptr); else SOAP_DELETE_ARRAY((struct SOAP_ENV__Fault*)p->ptr); break; #endif case SOAP_TYPE_xsd__ID: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_xsd__IDREF: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_xsd__QName: if (p->size < 0) SOAP_DELETE((xsd__QName*)p->ptr); else SOAP_DELETE_ARRAY((xsd__QName*)p->ptr); break; case SOAP_TYPE_xsd__anyURI: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_xsd__decimal: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_xsd__duration: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_ns4__duration: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; case SOAP_TYPE_ns4__guid: if (p->size < 0) SOAP_DELETE((std::string*)p->ptr); else SOAP_DELETE_ARRAY((std::string*)p->ptr); break; default: return SOAP_ERR; } return SOAP_OK; } SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap *soap, const char *id, void *p, int t, size_t n, const char *type, const char *arrayType) { return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, soap_instantiate); } SOAP_FMAC3 void* SOAP_FMAC4 soap_container_id_forward(struct soap *soap, const char *href, void *p, size_t len, int st, int tt, size_t n, unsigned int k) { return soap_id_forward(soap, href, p, len, st, tt, n, k, soap_container_insert); } SOAP_FMAC3 void SOAP_FMAC4 soap_container_insert(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) #ifdef WIN32 #pragma warning(push) #pragma warning(disable:4065) #endif { (void)soap; (void)st; (void)p; (void)len; (void)q; (void)n; /* appease -Wall -Werror */ switch (tt) { default: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Could not insert type=%d in %d\n", st, tt)); } #ifdef WIN32 #pragma warning(pop) #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__byte(struct soap *soap, const char *tag, int id, const char *a, const char *type) { return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_xsd__byte); } SOAP_FMAC3 char * SOAP_FMAC4 soap_in_xsd__byte(struct soap *soap, const char *tag, char *a, const char *type) { char *p; p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_xsd__byte); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__byte(struct soap *soap, const char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__byte); if (soap_out_xsd__byte(soap, tag?tag:"xsd:byte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 char * SOAP_FMAC4 soap_get_xsd__byte(struct soap *soap, char *p, const char *tag, const char *type) { if ((p = soap_in_xsd__byte(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_byte *a = SOAP_DEFAULT_byte; #else *a = (char)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type) { return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_byte); } SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type) { char *p; p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_byte); if (soap_out_byte(soap, tag?tag:"byte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type) { if ((p = soap_in_byte(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_short(struct soap *soap, short *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_short *a = SOAP_DEFAULT_short; #else *a = (short)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_short(struct soap *soap, const char *tag, int id, const short *a, const char *type) { return soap_outshort(soap, tag, id, a, type, SOAP_TYPE_short); } SOAP_FMAC3 short * SOAP_FMAC4 soap_in_short(struct soap *soap, const char *tag, short *a, const char *type) { short *p; p = soap_inshort(soap, tag, a, type, SOAP_TYPE_short); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_short(struct soap *soap, const short *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_short); if (soap_out_short(soap, tag?tag:"short", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 short * SOAP_FMAC4 soap_get_short(struct soap *soap, short *p, const char *tag, const char *type) { if ((p = soap_in_short(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__char(struct soap *soap, const char *tag, int id, const int *a, const char *type) { return soap_outint(soap, tag, id, a, type, SOAP_TYPE_ns4__char); } SOAP_FMAC3 int * SOAP_FMAC4 soap_in_ns4__char(struct soap *soap, const char *tag, int *a, const char *type) { int *p; p = soap_inint(soap, tag, a, type, SOAP_TYPE_ns4__char); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns4__char(struct soap *soap, const int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns4__char); if (soap_out_ns4__char(soap, tag?tag:"ns4:char", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int * SOAP_FMAC4 soap_get_ns4__char(struct soap *soap, int *p, const char *tag, const char *type) { if ((p = soap_in_ns4__char(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_int *a = SOAP_DEFAULT_int; #else *a = (int)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type) { return soap_outint(soap, tag, id, a, type, SOAP_TYPE_int); } SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type) { int *p; p = soap_inint(soap, tag, a, type, SOAP_TYPE_int); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_int); if (soap_out_int(soap, tag?tag:"int", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type) { if ((p = soap_in_int(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_LONG64(struct soap *soap, LONG64 *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_LONG64 *a = SOAP_DEFAULT_LONG64; #else *a = (LONG64)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_LONG64(struct soap *soap, const char *tag, int id, const LONG64 *a, const char *type) { return soap_outLONG64(soap, tag, id, a, type, SOAP_TYPE_LONG64); } SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_in_LONG64(struct soap *soap, const char *tag, LONG64 *a, const char *type) { LONG64 *p; p = soap_inLONG64(soap, tag, a, type, SOAP_TYPE_LONG64); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_LONG64(struct soap *soap, const LONG64 *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_LONG64); if (soap_out_LONG64(soap, tag?tag:"long", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_get_LONG64(struct soap *soap, LONG64 *p, const char *tag, const char *type) { if ((p = soap_in_LONG64(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_float(struct soap *soap, float *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_float *a = SOAP_DEFAULT_float; #else *a = (float)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_float(struct soap *soap, const char *tag, int id, const float *a, const char *type) { return soap_outfloat(soap, tag, id, a, type, SOAP_TYPE_float); } SOAP_FMAC3 float * SOAP_FMAC4 soap_in_float(struct soap *soap, const char *tag, float *a, const char *type) { float *p; p = soap_infloat(soap, tag, a, type, SOAP_TYPE_float); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_float(struct soap *soap, const float *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_float); if (soap_out_float(soap, tag?tag:"float", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 float * SOAP_FMAC4 soap_get_float(struct soap *soap, float *p, const char *tag, const char *type) { if ((p = soap_in_float(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_double(struct soap *soap, double *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_double *a = SOAP_DEFAULT_double; #else *a = (double)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_double(struct soap *soap, const char *tag, int id, const double *a, const char *type) { return soap_outdouble(soap, tag, id, a, type, SOAP_TYPE_double); } SOAP_FMAC3 double * SOAP_FMAC4 soap_in_double(struct soap *soap, const char *tag, double *a, const char *type) { double *p; p = soap_indouble(soap, tag, a, type, SOAP_TYPE_double); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_double(struct soap *soap, const double *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_double); if (soap_out_double(soap, tag?tag:"double", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 double * SOAP_FMAC4 soap_get_double(struct soap *soap, double *p, const char *tag, const char *type) { if ((p = soap_in_double(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__unsignedByte(struct soap *soap, const char *tag, int id, const unsigned char *a, const char *type) { return soap_outunsignedByte(soap, tag, id, a, type, SOAP_TYPE_xsd__unsignedByte); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_xsd__unsignedByte(struct soap *soap, const char *tag, unsigned char *a, const char *type) { unsigned char *p; p = soap_inunsignedByte(soap, tag, a, type, SOAP_TYPE_xsd__unsignedByte); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__unsignedByte(struct soap *soap, const unsigned char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__unsignedByte); if (soap_out_xsd__unsignedByte(soap, tag?tag:"xsd:unsignedByte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_xsd__unsignedByte(struct soap *soap, unsigned char *p, const char *tag, const char *type) { if ((p = soap_in_xsd__unsignedByte(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedByte(struct soap *soap, unsigned char *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedByte *a = SOAP_DEFAULT_unsignedByte; #else *a = (unsigned char)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedByte(struct soap *soap, const char *tag, int id, const unsigned char *a, const char *type) { return soap_outunsignedByte(soap, tag, id, a, type, SOAP_TYPE_unsignedByte); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_in_unsignedByte(struct soap *soap, const char *tag, unsigned char *a, const char *type) { unsigned char *p; p = soap_inunsignedByte(soap, tag, a, type, SOAP_TYPE_unsignedByte); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedByte(struct soap *soap, const unsigned char *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedByte); if (soap_out_unsignedByte(soap, tag?tag:"unsignedByte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 unsigned char * SOAP_FMAC4 soap_get_unsignedByte(struct soap *soap, unsigned char *p, const char *tag, const char *type) { if ((p = soap_in_unsignedByte(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedShort(struct soap *soap, unsigned short *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedShort *a = SOAP_DEFAULT_unsignedShort; #else *a = (unsigned short)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedShort(struct soap *soap, const char *tag, int id, const unsigned short *a, const char *type) { return soap_outunsignedShort(soap, tag, id, a, type, SOAP_TYPE_unsignedShort); } SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_in_unsignedShort(struct soap *soap, const char *tag, unsigned short *a, const char *type) { unsigned short *p; p = soap_inunsignedShort(soap, tag, a, type, SOAP_TYPE_unsignedShort); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedShort(struct soap *soap, const unsigned short *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedShort); if (soap_out_unsignedShort(soap, tag?tag:"unsignedShort", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 unsigned short * SOAP_FMAC4 soap_get_unsignedShort(struct soap *soap, unsigned short *p, const char *tag, const char *type) { if ((p = soap_in_unsignedShort(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedInt(struct soap *soap, unsigned int *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedInt *a = SOAP_DEFAULT_unsignedInt; #else *a = (unsigned int)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedInt(struct soap *soap, const char *tag, int id, const unsigned int *a, const char *type) { return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_unsignedInt); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_in_unsignedInt(struct soap *soap, const char *tag, unsigned int *a, const char *type) { unsigned int *p; p = soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_unsignedInt); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedInt(struct soap *soap, const unsigned int *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedInt); if (soap_out_unsignedInt(soap, tag?tag:"unsignedInt", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 unsigned int * SOAP_FMAC4 soap_get_unsignedInt(struct soap *soap, unsigned int *p, const char *tag, const char *type) { if ((p = soap_in_unsignedInt(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedLONG64(struct soap *soap, ULONG64 *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_unsignedLONG64 *a = SOAP_DEFAULT_unsignedLONG64; #else *a = (ULONG64)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_unsignedLONG64(struct soap *soap, const char *tag, int id, const ULONG64 *a, const char *type) { return soap_outULONG64(soap, tag, id, a, type, SOAP_TYPE_unsignedLONG64); } SOAP_FMAC3 ULONG64 * SOAP_FMAC4 soap_in_unsignedLONG64(struct soap *soap, const char *tag, ULONG64 *a, const char *type) { ULONG64 *p; p = soap_inULONG64(soap, tag, a, type, SOAP_TYPE_unsignedLONG64); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_unsignedLONG64(struct soap *soap, const ULONG64 *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_unsignedLONG64); if (soap_out_unsignedLONG64(soap, tag?tag:"unsignedLong", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 ULONG64 * SOAP_FMAC4 soap_get_unsignedLONG64(struct soap *soap, ULONG64 *p, const char *tag, const char *type) { if ((p = soap_in_unsignedLONG64(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_time(struct soap *soap, time_t *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_time *a = SOAP_DEFAULT_time; #else *a = (time_t)0; #endif } SOAP_FMAC3 int SOAP_FMAC4 soap_out_time(struct soap *soap, const char *tag, int id, const time_t *a, const char *type) { return soap_outdateTime(soap, tag, id, a, type, SOAP_TYPE_time); } SOAP_FMAC3 time_t * SOAP_FMAC4 soap_in_time(struct soap *soap, const char *tag, time_t *a, const char *type) { time_t *p; p = soap_indateTime(soap, tag, a, type, SOAP_TYPE_time); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_time(struct soap *soap, const time_t *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_time); if (soap_out_time(soap, tag?tag:"dateTime", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 time_t * SOAP_FMAC4 soap_get_time(struct soap *soap, time_t *p, const char *tag, const char *type) { if ((p = soap_in_time(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_bool(struct soap *soap, bool *a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_bool *a = SOAP_DEFAULT_bool; #else *a = (bool)0; #endif } static const struct soap_code_map soap_codes_bool[] = { { (long)false, "false" }, { (long)true, "true" }, { 0, NULL } }; SOAP_FMAC3S const char* SOAP_FMAC4S soap_bool2s(struct soap *soap, bool n) { (void)soap; /* appease -Wall -Werror */ return soap_code_str(soap_codes_bool, n!=0); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_bool(struct soap *soap, const char *tag, int id, const bool *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_bool), type) || soap_send(soap, soap_bool2s(soap, *a))) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3S int SOAP_FMAC4S soap_s2bool(struct soap *soap, const char *s, bool *a) { const struct soap_code_map *map; if (!s) return soap->error; map = soap_code(soap_codes_bool, s); if (map) *a = (bool)(map->code != 0); else { long n; if (soap_s2long(soap, s, &n) || n < 0 || n > 1) return soap->error = SOAP_TYPE; *a = (bool)(n != 0); } return SOAP_OK; } SOAP_FMAC3 bool * SOAP_FMAC4 soap_in_bool(struct soap *soap, const char *tag, bool *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":boolean")) { soap->error = SOAP_TYPE; return NULL; } a = (bool *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_bool, sizeof(bool), 0, NULL, NULL, NULL); if (!a) return NULL; if (soap->body && !*soap->href) { if (!a || soap_s2bool(soap, soap_value(soap), a) || soap_element_end_in(soap, tag)) return NULL; } else { a = (bool *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_bool, 0, sizeof(bool), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_bool(struct soap *soap, const bool *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_bool); if (soap_out_bool(soap, tag?tag:"boolean", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 bool * SOAP_FMAC4 soap_get_bool(struct soap *soap, bool *p, const char *tag, const char *type) { if ((p = soap_in_bool(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void ns4__guid__::soap_default(struct soap *soap) { this->soap = soap; soap_default_ns4__guid(soap, &this->ns4__guid__::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void ns4__guid__::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_ns4__guid(soap, &this->ns4__guid__::__item); /* transient soap skipped */ } int ns4__guid__::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_ns4__guid__(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__guid__(struct soap *soap, const char *tag, int id, const ns4__guid__ *a, const char *type) { return soap_out_ns4__guid(soap, tag, id, &(a->ns4__guid__::__item), "ns4:guid"); } void *ns4__guid__::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_ns4__guid__(soap, tag, this, type); } SOAP_FMAC3 ns4__guid__ * SOAP_FMAC4 soap_in_ns4__guid__(struct soap *soap, const char *tag, ns4__guid__ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (ns4__guid__ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns4__guid__, sizeof(ns4__guid__), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_ns4__guid__) return (ns4__guid__ *)a->soap_in(soap, tag, type); } if (!soap_in_ns4__guid(soap, tag, &(a->ns4__guid__::__item), "ns4:guid")) return NULL; return a; } int ns4__guid__::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ns4__guid__); if (this->soap_out(soap, tag?tag:"ns4:guid", id, type)) return soap->error; return soap_putindependent(soap); } void *ns4__guid__::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_ns4__guid__(soap, this, tag, type); } SOAP_FMAC3 ns4__guid__ * SOAP_FMAC4 soap_get_ns4__guid__(struct soap *soap, ns4__guid__ *p, const char *tag, const char *type) { if ((p = soap_in_ns4__guid__(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 ns4__guid__ * SOAP_FMAC2 soap_instantiate_ns4__guid__(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns4__guid__(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns4__guid__, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__guid__); if (size) *size = sizeof(ns4__guid__); ((ns4__guid__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__guid__[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(ns4__guid__); for (int i = 0; i < n; i++) ((ns4__guid__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__guid__*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns4__guid__(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns4__guid__ %p -> %p\n", q, p)); *(ns4__guid__*)p = *(ns4__guid__*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__guid(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_ns4__guid), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_ns4__guid(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ns4__guid, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ns4__guid, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_ns4__guid, 0, sizeof(std::string), 0, soap_copy_ns4__guid); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns4__guid(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns4__guid); if (soap_out_ns4__guid(soap, tag?tag:"ns4:guid", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_ns4__guid(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_ns4__guid(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void ns4__duration__::soap_default(struct soap *soap) { this->soap = soap; soap_default_ns4__duration(soap, &this->ns4__duration__::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void ns4__duration__::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_ns4__duration(soap, &this->ns4__duration__::__item); /* transient soap skipped */ } int ns4__duration__::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_ns4__duration__(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__duration__(struct soap *soap, const char *tag, int id, const ns4__duration__ *a, const char *type) { return soap_out_ns4__duration(soap, tag, id, &(a->ns4__duration__::__item), "ns4:duration"); } void *ns4__duration__::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_ns4__duration__(soap, tag, this, type); } SOAP_FMAC3 ns4__duration__ * SOAP_FMAC4 soap_in_ns4__duration__(struct soap *soap, const char *tag, ns4__duration__ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (ns4__duration__ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns4__duration__, sizeof(ns4__duration__), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_ns4__duration__) return (ns4__duration__ *)a->soap_in(soap, tag, type); } if (!soap_in_ns4__duration(soap, tag, &(a->ns4__duration__::__item), "ns4:duration")) return NULL; return a; } int ns4__duration__::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ns4__duration__); if (this->soap_out(soap, tag?tag:"ns4:duration", id, type)) return soap->error; return soap_putindependent(soap); } void *ns4__duration__::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_ns4__duration__(soap, this, tag, type); } SOAP_FMAC3 ns4__duration__ * SOAP_FMAC4 soap_get_ns4__duration__(struct soap *soap, ns4__duration__ *p, const char *tag, const char *type) { if ((p = soap_in_ns4__duration__(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 ns4__duration__ * SOAP_FMAC2 soap_instantiate_ns4__duration__(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns4__duration__(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns4__duration__, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__duration__); if (size) *size = sizeof(ns4__duration__); ((ns4__duration__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__duration__[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(ns4__duration__); for (int i = 0; i < n; i++) ((ns4__duration__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__duration__*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns4__duration__(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns4__duration__ %p -> %p\n", q, p)); *(ns4__duration__*)p = *(ns4__duration__*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__duration(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_ns4__duration), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_ns4__duration(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ns4__duration, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_ns4__duration, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_ns4__duration, 0, sizeof(std::string), 0, soap_copy_ns4__duration); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns4__duration(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns4__duration); if (soap_out_ns4__duration(soap, tag?tag:"ns4:duration", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_ns4__duration(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_ns4__duration(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void ns4__char__::soap_default(struct soap *soap) { this->soap = soap; soap_default_ns4__char(soap, &this->ns4__char__::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void ns4__char__::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int ns4__char__::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_ns4__char__(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns4__char__(struct soap *soap, const char *tag, int id, const ns4__char__ *a, const char *type) { return soap_out_ns4__char(soap, tag, id, &(a->ns4__char__::__item), "ns4:char"); } void *ns4__char__::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_ns4__char__(soap, tag, this, type); } SOAP_FMAC3 ns4__char__ * SOAP_FMAC4 soap_in_ns4__char__(struct soap *soap, const char *tag, ns4__char__ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (ns4__char__ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns4__char__, sizeof(ns4__char__), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_ns4__char__) return (ns4__char__ *)a->soap_in(soap, tag, type); } if (!soap_in_ns4__char(soap, tag, &(a->ns4__char__::__item), "ns4:char")) return NULL; return a; } int ns4__char__::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ns4__char__); if (this->soap_out(soap, tag?tag:"ns4:char", id, type)) return soap->error; return soap_putindependent(soap); } void *ns4__char__::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_ns4__char__(soap, this, tag, type); } SOAP_FMAC3 ns4__char__ * SOAP_FMAC4 soap_get_ns4__char__(struct soap *soap, ns4__char__ *p, const char *tag, const char *type) { if ((p = soap_in_ns4__char__(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 ns4__char__ * SOAP_FMAC2 soap_instantiate_ns4__char__(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns4__char__(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns4__char__, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__char__); if (size) *size = sizeof(ns4__char__); ((ns4__char__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__char__[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(ns4__char__); for (int i = 0; i < n; i++) ((ns4__char__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__char__*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns4__char__(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns4__char__ %p -> %p\n", q, p)); *(ns4__char__*)p = *(ns4__char__*)q; } void _ns3__CreateAccountResponse::soap_default(struct soap *soap) { this->soap = soap; this->_ns3__CreateAccountResponse::CreateAccountResult = NULL; /* transient soap skipped */ } void _ns3__CreateAccountResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTons3__CreationResult(soap, &this->_ns3__CreateAccountResponse::CreateAccountResult); /* transient soap skipped */ } int _ns3__CreateAccountResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__ns3__CreateAccountResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__ns3__CreateAccountResponse(struct soap *soap, const char *tag, int id, const _ns3__CreateAccountResponse *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__ns3__CreateAccountResponse), type)) return soap->error; if (a->CreateAccountResult) soap_element_result(soap, "ns3:CreateAccountResult"); if (soap_out_PointerTons3__CreationResult(soap, "ns3:CreateAccountResult", -1, &(a->_ns3__CreateAccountResponse::CreateAccountResult), "")) return soap->error; /* transient soap skipped */ return soap_element_end_out(soap, tag); } void *_ns3__CreateAccountResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__ns3__CreateAccountResponse(soap, tag, this, type); } SOAP_FMAC3 _ns3__CreateAccountResponse * SOAP_FMAC4 soap_in__ns3__CreateAccountResponse(struct soap *soap, const char *tag, _ns3__CreateAccountResponse *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_ns3__CreateAccountResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__ns3__CreateAccountResponse, sizeof(_ns3__CreateAccountResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__ns3__CreateAccountResponse) { soap_revert(soap); *soap->id = '\0'; return (_ns3__CreateAccountResponse *)a->soap_in(soap, tag, type); } } size_t soap_flag_CreateAccountResult1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_CreateAccountResult1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTons3__CreationResult(soap, "ns3:CreateAccountResult", &(a->_ns3__CreateAccountResponse::CreateAccountResult), "ns3:CreationResult")) { soap_flag_CreateAccountResult1--; continue; } /* transient soap skipped */ soap_check_result(soap, "ns3:CreateAccountResult"); if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_ns3__CreateAccountResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__ns3__CreateAccountResponse, 0, sizeof(_ns3__CreateAccountResponse), 0, soap_copy__ns3__CreateAccountResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int _ns3__CreateAccountResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__ns3__CreateAccountResponse); if (this->soap_out(soap, tag?tag:"ns3:CreateAccountResponse", id, type)) return soap->error; return soap_putindependent(soap); } void *_ns3__CreateAccountResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__ns3__CreateAccountResponse(soap, this, tag, type); } SOAP_FMAC3 _ns3__CreateAccountResponse * SOAP_FMAC4 soap_get__ns3__CreateAccountResponse(struct soap *soap, _ns3__CreateAccountResponse *p, const char *tag, const char *type) { if ((p = soap_in__ns3__CreateAccountResponse(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 _ns3__CreateAccountResponse * SOAP_FMAC2 soap_instantiate__ns3__CreateAccountResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__ns3__CreateAccountResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__ns3__CreateAccountResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(_ns3__CreateAccountResponse); if (size) *size = sizeof(_ns3__CreateAccountResponse); ((_ns3__CreateAccountResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(_ns3__CreateAccountResponse[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_ns3__CreateAccountResponse); for (int i = 0; i < n; i++) ((_ns3__CreateAccountResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_ns3__CreateAccountResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__ns3__CreateAccountResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _ns3__CreateAccountResponse %p -> %p\n", q, p)); *(_ns3__CreateAccountResponse*)p = *(_ns3__CreateAccountResponse*)q; } void _ns3__CreateAccount::soap_default(struct soap *soap) { this->soap = soap; this->_ns3__CreateAccount::gameID = NULL; this->_ns3__CreateAccount::cherryID = NULL; this->_ns3__CreateAccount::accountID = NULL; this->_ns3__CreateAccount::userIP = NULL; this->_ns3__CreateAccount::hash = NULL; /* transient soap skipped */ } void _ns3__CreateAccount::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &this->_ns3__CreateAccount::gameID); soap_serialize_PointerTostd__string(soap, &this->_ns3__CreateAccount::cherryID); soap_serialize_PointerToint(soap, &this->_ns3__CreateAccount::accountID); soap_serialize_PointerTostd__string(soap, &this->_ns3__CreateAccount::userIP); soap_serialize_PointerTostd__string(soap, &this->_ns3__CreateAccount::hash); /* transient soap skipped */ } int _ns3__CreateAccount::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__ns3__CreateAccount(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__ns3__CreateAccount(struct soap *soap, const char *tag, int id, const _ns3__CreateAccount *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__ns3__CreateAccount), type)) return soap->error; if (soap_out_PointerToint(soap, "ns3:gameID", -1, &(a->_ns3__CreateAccount::gameID), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:cherryID", -1, &(a->_ns3__CreateAccount::cherryID), "")) return soap->error; if (soap_out_PointerToint(soap, "ns3:accountID", -1, &(a->_ns3__CreateAccount::accountID), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:userIP", -1, &(a->_ns3__CreateAccount::userIP), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:hash", -1, &(a->_ns3__CreateAccount::hash), "")) return soap->error; /* transient soap skipped */ return soap_element_end_out(soap, tag); } void *_ns3__CreateAccount::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__ns3__CreateAccount(soap, tag, this, type); } SOAP_FMAC3 _ns3__CreateAccount * SOAP_FMAC4 soap_in__ns3__CreateAccount(struct soap *soap, const char *tag, _ns3__CreateAccount *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_ns3__CreateAccount *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__ns3__CreateAccount, sizeof(_ns3__CreateAccount), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__ns3__CreateAccount) { soap_revert(soap); *soap->id = '\0'; return (_ns3__CreateAccount *)a->soap_in(soap, tag, type); } } size_t soap_flag_gameID1 = 1; size_t soap_flag_cherryID1 = 1; size_t soap_flag_accountID1 = 1; size_t soap_flag_userIP1 = 1; size_t soap_flag_hash1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_gameID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ns3:gameID", &(a->_ns3__CreateAccount::gameID), "xsd:int")) { soap_flag_gameID1--; continue; } if (soap_flag_cherryID1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:cherryID", &(a->_ns3__CreateAccount::cherryID), "xsd:string")) { soap_flag_cherryID1--; continue; } if (soap_flag_accountID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ns3:accountID", &(a->_ns3__CreateAccount::accountID), "xsd:int")) { soap_flag_accountID1--; continue; } if (soap_flag_userIP1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:userIP", &(a->_ns3__CreateAccount::userIP), "xsd:string")) { soap_flag_userIP1--; continue; } if (soap_flag_hash1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:hash", &(a->_ns3__CreateAccount::hash), "xsd:string")) { soap_flag_hash1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_ns3__CreateAccount *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__ns3__CreateAccount, 0, sizeof(_ns3__CreateAccount), 0, soap_copy__ns3__CreateAccount); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int _ns3__CreateAccount::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__ns3__CreateAccount); if (this->soap_out(soap, tag?tag:"ns3:CreateAccount", id, type)) return soap->error; return soap_putindependent(soap); } void *_ns3__CreateAccount::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__ns3__CreateAccount(soap, this, tag, type); } SOAP_FMAC3 _ns3__CreateAccount * SOAP_FMAC4 soap_get__ns3__CreateAccount(struct soap *soap, _ns3__CreateAccount *p, const char *tag, const char *type) { if ((p = soap_in__ns3__CreateAccount(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 _ns3__CreateAccount * SOAP_FMAC2 soap_instantiate__ns3__CreateAccount(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__ns3__CreateAccount(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__ns3__CreateAccount, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(_ns3__CreateAccount); if (size) *size = sizeof(_ns3__CreateAccount); ((_ns3__CreateAccount*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(_ns3__CreateAccount[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_ns3__CreateAccount); for (int i = 0; i < n; i++) ((_ns3__CreateAccount*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_ns3__CreateAccount*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__ns3__CreateAccount(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _ns3__CreateAccount %p -> %p\n", q, p)); *(_ns3__CreateAccount*)p = *(_ns3__CreateAccount*)q; } void _ns3__AuthenticateResponse::soap_default(struct soap *soap) { this->soap = soap; this->_ns3__AuthenticateResponse::AuthenticateResult = NULL; /* transient soap skipped */ } void _ns3__AuthenticateResponse::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTons3__AccountInfo(soap, &this->_ns3__AuthenticateResponse::AuthenticateResult); /* transient soap skipped */ } int _ns3__AuthenticateResponse::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__ns3__AuthenticateResponse(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__ns3__AuthenticateResponse(struct soap *soap, const char *tag, int id, const _ns3__AuthenticateResponse *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__ns3__AuthenticateResponse), type)) return soap->error; if (a->AuthenticateResult) soap_element_result(soap, "ns3:AuthenticateResult"); if (soap_out_PointerTons3__AccountInfo(soap, "ns3:AuthenticateResult", -1, &(a->_ns3__AuthenticateResponse::AuthenticateResult), "")) return soap->error; /* transient soap skipped */ return soap_element_end_out(soap, tag); } void *_ns3__AuthenticateResponse::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__ns3__AuthenticateResponse(soap, tag, this, type); } SOAP_FMAC3 _ns3__AuthenticateResponse * SOAP_FMAC4 soap_in__ns3__AuthenticateResponse(struct soap *soap, const char *tag, _ns3__AuthenticateResponse *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_ns3__AuthenticateResponse *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__ns3__AuthenticateResponse, sizeof(_ns3__AuthenticateResponse), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__ns3__AuthenticateResponse) { soap_revert(soap); *soap->id = '\0'; return (_ns3__AuthenticateResponse *)a->soap_in(soap, tag, type); } } size_t soap_flag_AuthenticateResult1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_AuthenticateResult1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTons3__AccountInfo(soap, "ns3:AuthenticateResult", &(a->_ns3__AuthenticateResponse::AuthenticateResult), "ns3:AccountInfo")) { soap_flag_AuthenticateResult1--; continue; } /* transient soap skipped */ soap_check_result(soap, "ns3:AuthenticateResult"); if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_ns3__AuthenticateResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__ns3__AuthenticateResponse, 0, sizeof(_ns3__AuthenticateResponse), 0, soap_copy__ns3__AuthenticateResponse); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int _ns3__AuthenticateResponse::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__ns3__AuthenticateResponse); if (this->soap_out(soap, tag?tag:"ns3:AuthenticateResponse", id, type)) return soap->error; return soap_putindependent(soap); } void *_ns3__AuthenticateResponse::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__ns3__AuthenticateResponse(soap, this, tag, type); } SOAP_FMAC3 _ns3__AuthenticateResponse * SOAP_FMAC4 soap_get__ns3__AuthenticateResponse(struct soap *soap, _ns3__AuthenticateResponse *p, const char *tag, const char *type) { if ((p = soap_in__ns3__AuthenticateResponse(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 _ns3__AuthenticateResponse * SOAP_FMAC2 soap_instantiate__ns3__AuthenticateResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__ns3__AuthenticateResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__ns3__AuthenticateResponse, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(_ns3__AuthenticateResponse); if (size) *size = sizeof(_ns3__AuthenticateResponse); ((_ns3__AuthenticateResponse*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(_ns3__AuthenticateResponse[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_ns3__AuthenticateResponse); for (int i = 0; i < n; i++) ((_ns3__AuthenticateResponse*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_ns3__AuthenticateResponse*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__ns3__AuthenticateResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _ns3__AuthenticateResponse %p -> %p\n", q, p)); *(_ns3__AuthenticateResponse*)p = *(_ns3__AuthenticateResponse*)q; } void _ns3__Authenticate::soap_default(struct soap *soap) { this->soap = soap; this->_ns3__Authenticate::gameID = NULL; this->_ns3__Authenticate::loginID = NULL; this->_ns3__Authenticate::password = NULL; this->_ns3__Authenticate::userIP = NULL; /* transient soap skipped */ } void _ns3__Authenticate::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &this->_ns3__Authenticate::gameID); soap_serialize_PointerTostd__string(soap, &this->_ns3__Authenticate::loginID); soap_serialize_PointerTostd__string(soap, &this->_ns3__Authenticate::password); soap_serialize_PointerTostd__string(soap, &this->_ns3__Authenticate::userIP); /* transient soap skipped */ } int _ns3__Authenticate::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out__ns3__Authenticate(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out__ns3__Authenticate(struct soap *soap, const char *tag, int id, const _ns3__Authenticate *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE__ns3__Authenticate), type)) return soap->error; if (soap_out_PointerToint(soap, "ns3:gameID", -1, &(a->_ns3__Authenticate::gameID), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:loginID", -1, &(a->_ns3__Authenticate::loginID), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:password", -1, &(a->_ns3__Authenticate::password), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:userIP", -1, &(a->_ns3__Authenticate::userIP), "")) return soap->error; /* transient soap skipped */ return soap_element_end_out(soap, tag); } void *_ns3__Authenticate::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in__ns3__Authenticate(soap, tag, this, type); } SOAP_FMAC3 _ns3__Authenticate * SOAP_FMAC4 soap_in__ns3__Authenticate(struct soap *soap, const char *tag, _ns3__Authenticate *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (_ns3__Authenticate *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE__ns3__Authenticate, sizeof(_ns3__Authenticate), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE__ns3__Authenticate) { soap_revert(soap); *soap->id = '\0'; return (_ns3__Authenticate *)a->soap_in(soap, tag, type); } } size_t soap_flag_gameID1 = 1; size_t soap_flag_loginID1 = 1; size_t soap_flag_password1 = 1; size_t soap_flag_userIP1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_gameID1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ns3:gameID", &(a->_ns3__Authenticate::gameID), "xsd:int")) { soap_flag_gameID1--; continue; } if (soap_flag_loginID1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:loginID", &(a->_ns3__Authenticate::loginID), "xsd:string")) { soap_flag_loginID1--; continue; } if (soap_flag_password1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:password", &(a->_ns3__Authenticate::password), "xsd:string")) { soap_flag_password1--; continue; } if (soap_flag_userIP1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:userIP", &(a->_ns3__Authenticate::userIP), "xsd:string")) { soap_flag_userIP1--; continue; } /* transient soap skipped */ if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (_ns3__Authenticate *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE__ns3__Authenticate, 0, sizeof(_ns3__Authenticate), 0, soap_copy__ns3__Authenticate); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int _ns3__Authenticate::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE__ns3__Authenticate); if (this->soap_out(soap, tag?tag:"ns3:Authenticate", id, type)) return soap->error; return soap_putindependent(soap); } void *_ns3__Authenticate::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get__ns3__Authenticate(soap, this, tag, type); } SOAP_FMAC3 _ns3__Authenticate * SOAP_FMAC4 soap_get__ns3__Authenticate(struct soap *soap, _ns3__Authenticate *p, const char *tag, const char *type) { if ((p = soap_in__ns3__Authenticate(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 _ns3__Authenticate * SOAP_FMAC2 soap_instantiate__ns3__Authenticate(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate__ns3__Authenticate(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE__ns3__Authenticate, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(_ns3__Authenticate); if (size) *size = sizeof(_ns3__Authenticate); ((_ns3__Authenticate*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(_ns3__Authenticate[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(_ns3__Authenticate); for (int i = 0; i < n; i++) ((_ns3__Authenticate*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (_ns3__Authenticate*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy__ns3__Authenticate(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying _ns3__Authenticate %p -> %p\n", q, p)); *(_ns3__Authenticate*)p = *(_ns3__Authenticate*)q; } void ns3__CreationResult::soap_default(struct soap *soap) { this->soap = soap; this->ns3__CreationResult::Description = NULL; this->ns3__CreationResult::ErrorCode = NULL; this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void ns3__CreationResult::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTostd__string(soap, &this->ns3__CreationResult::Description); soap_serialize_PointerToint(soap, &this->ns3__CreationResult::ErrorCode); /* transient soap skipped */ } int ns3__CreationResult::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_ns3__CreationResult(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns3__CreationResult(struct soap *soap, const char *tag, int id, const ns3__CreationResult *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns3__CreationResult), "ns3:CreationResult")) return soap->error; /* transient soap skipped */ if (soap_out_PointerTostd__string(soap, "ns3:Description", -1, &(a->ns3__CreationResult::Description), "")) return soap->error; if (soap_out_PointerToint(soap, "ns3:ErrorCode", -1, &(a->ns3__CreationResult::ErrorCode), "")) return soap->error; return soap_element_end_out(soap, tag); } void *ns3__CreationResult::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_ns3__CreationResult(soap, tag, this, type); } SOAP_FMAC3 ns3__CreationResult * SOAP_FMAC4 soap_in_ns3__CreationResult(struct soap *soap, const char *tag, ns3__CreationResult *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (ns3__CreationResult *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns3__CreationResult, sizeof(ns3__CreationResult), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_ns3__CreationResult) { soap_revert(soap); *soap->id = '\0'; return (ns3__CreationResult *)a->soap_in(soap, tag, type); } } size_t soap_flag___item2 = 1; size_t soap_flag_Description1 = 1; size_t soap_flag_ErrorCode1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; /* transient soap skipped */ if (soap_flag_Description1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:Description", &(a->ns3__CreationResult::Description), "xsd:string")) { soap_flag_Description1--; continue; } if (soap_flag_ErrorCode1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ns3:ErrorCode", &(a->ns3__CreationResult::ErrorCode), "xsd:int")) { soap_flag_ErrorCode1--; continue; } if (soap_flag___item2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_inliteral(soap, "-item", &(a->xsd__anyType::__item))) { soap_flag___item2--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (ns3__CreationResult *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns3__CreationResult, 0, sizeof(ns3__CreationResult), 0, soap_copy_ns3__CreationResult); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int ns3__CreationResult::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ns3__CreationResult); if (this->soap_out(soap, tag?tag:"ns3:CreationResult", id, type)) return soap->error; return soap_putindependent(soap); } void *ns3__CreationResult::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_ns3__CreationResult(soap, this, tag, type); } SOAP_FMAC3 ns3__CreationResult * SOAP_FMAC4 soap_get_ns3__CreationResult(struct soap *soap, ns3__CreationResult *p, const char *tag, const char *type) { if ((p = soap_in_ns3__CreationResult(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 ns3__CreationResult * SOAP_FMAC2 soap_instantiate_ns3__CreationResult(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns3__CreationResult(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns3__CreationResult, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns3__CreationResult); if (size) *size = sizeof(ns3__CreationResult); ((ns3__CreationResult*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns3__CreationResult[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(ns3__CreationResult); for (int i = 0; i < n; i++) ((ns3__CreationResult*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns3__CreationResult*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns3__CreationResult(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns3__CreationResult %p -> %p\n", q, p)); *(ns3__CreationResult*)p = *(ns3__CreationResult*)q; } void ns3__AccountInfo::soap_default(struct soap *soap) { this->soap = soap; this->ns3__AccountInfo::CherryID = NULL; this->ns3__AccountInfo::Email = NULL; this->ns3__AccountInfo::LoginID = NULL; this->ns3__AccountInfo::StatusCode = NULL; this->ns3__AccountInfo::StatusDescription = NULL; this->ns3__AccountInfo::Token = NULL; this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void ns3__AccountInfo::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_PointerTostd__string(soap, &this->ns3__AccountInfo::CherryID); soap_serialize_PointerTostd__string(soap, &this->ns3__AccountInfo::Email); soap_serialize_PointerTostd__string(soap, &this->ns3__AccountInfo::LoginID); soap_serialize_PointerToint(soap, &this->ns3__AccountInfo::StatusCode); soap_serialize_PointerTostd__string(soap, &this->ns3__AccountInfo::StatusDescription); soap_serialize_PointerTostd__string(soap, &this->ns3__AccountInfo::Token); /* transient soap skipped */ } int ns3__AccountInfo::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_ns3__AccountInfo(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns3__AccountInfo(struct soap *soap, const char *tag, int id, const ns3__AccountInfo *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns3__AccountInfo), "ns3:AccountInfo")) return soap->error; /* transient soap skipped */ if (soap_out_PointerTostd__string(soap, "ns3:CherryID", -1, &(a->ns3__AccountInfo::CherryID), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:Email", -1, &(a->ns3__AccountInfo::Email), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:LoginID", -1, &(a->ns3__AccountInfo::LoginID), "")) return soap->error; if (soap_out_PointerToint(soap, "ns3:StatusCode", -1, &(a->ns3__AccountInfo::StatusCode), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:StatusDescription", -1, &(a->ns3__AccountInfo::StatusDescription), "")) return soap->error; if (soap_out_PointerTostd__string(soap, "ns3:Token", -1, &(a->ns3__AccountInfo::Token), "")) return soap->error; return soap_element_end_out(soap, tag); } void *ns3__AccountInfo::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_ns3__AccountInfo(soap, tag, this, type); } SOAP_FMAC3 ns3__AccountInfo * SOAP_FMAC4 soap_in_ns3__AccountInfo(struct soap *soap, const char *tag, ns3__AccountInfo *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 0, NULL)) return NULL; a = (ns3__AccountInfo *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns3__AccountInfo, sizeof(ns3__AccountInfo), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_ns3__AccountInfo) { soap_revert(soap); *soap->id = '\0'; return (ns3__AccountInfo *)a->soap_in(soap, tag, type); } } size_t soap_flag___item2 = 1; size_t soap_flag_CherryID1 = 1; size_t soap_flag_Email1 = 1; size_t soap_flag_LoginID1 = 1; size_t soap_flag_StatusCode1 = 1; size_t soap_flag_StatusDescription1 = 1; size_t soap_flag_Token1 = 1; if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; /* transient soap skipped */ if (soap_flag_CherryID1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:CherryID", &(a->ns3__AccountInfo::CherryID), "xsd:string")) { soap_flag_CherryID1--; continue; } if (soap_flag_Email1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:Email", &(a->ns3__AccountInfo::Email), "xsd:string")) { soap_flag_Email1--; continue; } if (soap_flag_LoginID1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:LoginID", &(a->ns3__AccountInfo::LoginID), "xsd:string")) { soap_flag_LoginID1--; continue; } if (soap_flag_StatusCode1 && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ns3:StatusCode", &(a->ns3__AccountInfo::StatusCode), "xsd:int")) { soap_flag_StatusCode1--; continue; } if (soap_flag_StatusDescription1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:StatusDescription", &(a->ns3__AccountInfo::StatusDescription), "xsd:string")) { soap_flag_StatusDescription1--; continue; } if (soap_flag_Token1 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_PointerTostd__string(soap, "ns3:Token", &(a->ns3__AccountInfo::Token), "xsd:string")) { soap_flag_Token1--; continue; } if (soap_flag___item2 && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_inliteral(soap, "-item", &(a->xsd__anyType::__item))) { soap_flag___item2--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (ns3__AccountInfo *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns3__AccountInfo, 0, sizeof(ns3__AccountInfo), 0, soap_copy_ns3__AccountInfo); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int ns3__AccountInfo::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_ns3__AccountInfo); if (this->soap_out(soap, tag?tag:"ns3:AccountInfo", id, type)) return soap->error; return soap_putindependent(soap); } void *ns3__AccountInfo::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_ns3__AccountInfo(soap, this, tag, type); } SOAP_FMAC3 ns3__AccountInfo * SOAP_FMAC4 soap_get_ns3__AccountInfo(struct soap *soap, ns3__AccountInfo *p, const char *tag, const char *type) { if ((p = soap_in_ns3__AccountInfo(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 ns3__AccountInfo * SOAP_FMAC2 soap_instantiate_ns3__AccountInfo(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns3__AccountInfo(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns3__AccountInfo, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns3__AccountInfo); if (size) *size = sizeof(ns3__AccountInfo); ((ns3__AccountInfo*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns3__AccountInfo[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(ns3__AccountInfo); for (int i = 0; i < n; i++) ((ns3__AccountInfo*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns3__AccountInfo*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns3__AccountInfo(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ns3__AccountInfo %p -> %p\n", q, p)); *(ns3__AccountInfo*)p = *(ns3__AccountInfo*)q; } void xsd__unsignedShort::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedShort(soap, &this->xsd__unsignedShort::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__unsignedShort::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__unsignedShort::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__unsignedShort(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__unsignedShort(struct soap *soap, const char *tag, int id, const xsd__unsignedShort *a, const char *type) { return soap_out_unsignedShort(soap, tag, id, &(a->xsd__unsignedShort::__item), "xsd:unsignedShort"); } void *xsd__unsignedShort::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__unsignedShort(soap, tag, this, type); } SOAP_FMAC3 xsd__unsignedShort * SOAP_FMAC4 soap_in_xsd__unsignedShort(struct soap *soap, const char *tag, xsd__unsignedShort *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__unsignedShort *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__unsignedShort, sizeof(xsd__unsignedShort), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__unsignedShort) return (xsd__unsignedShort *)a->soap_in(soap, tag, type); } if (!soap_in_unsignedShort(soap, tag, &(a->xsd__unsignedShort::__item), "xsd:unsignedShort")) return NULL; return a; } int xsd__unsignedShort::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__unsignedShort); if (this->soap_out(soap, tag?tag:"xsd:unsignedShort", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__unsignedShort::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__unsignedShort(soap, this, tag, type); } SOAP_FMAC3 xsd__unsignedShort * SOAP_FMAC4 soap_get_xsd__unsignedShort(struct soap *soap, xsd__unsignedShort *p, const char *tag, const char *type) { if ((p = soap_in_xsd__unsignedShort(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__unsignedShort * SOAP_FMAC2 soap_instantiate_xsd__unsignedShort(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__unsignedShort(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__unsignedShort, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedShort); if (size) *size = sizeof(xsd__unsignedShort); ((xsd__unsignedShort*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedShort[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__unsignedShort); for (int i = 0; i < n; i++) ((xsd__unsignedShort*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedShort*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__unsignedShort(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__unsignedShort %p -> %p\n", q, p)); *(xsd__unsignedShort*)p = *(xsd__unsignedShort*)q; } void xsd__unsignedLong::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedLONG64(soap, &this->xsd__unsignedLong::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__unsignedLong::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__unsignedLong::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__unsignedLong(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__unsignedLong(struct soap *soap, const char *tag, int id, const xsd__unsignedLong *a, const char *type) { return soap_out_unsignedLONG64(soap, tag, id, &(a->xsd__unsignedLong::__item), "xsd:unsignedLong"); } void *xsd__unsignedLong::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__unsignedLong(soap, tag, this, type); } SOAP_FMAC3 xsd__unsignedLong * SOAP_FMAC4 soap_in_xsd__unsignedLong(struct soap *soap, const char *tag, xsd__unsignedLong *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__unsignedLong *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__unsignedLong, sizeof(xsd__unsignedLong), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__unsignedLong) return (xsd__unsignedLong *)a->soap_in(soap, tag, type); } if (!soap_in_unsignedLONG64(soap, tag, &(a->xsd__unsignedLong::__item), "xsd:unsignedLong")) return NULL; return a; } int xsd__unsignedLong::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__unsignedLong); if (this->soap_out(soap, tag?tag:"xsd:unsignedLong", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__unsignedLong::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__unsignedLong(soap, this, tag, type); } SOAP_FMAC3 xsd__unsignedLong * SOAP_FMAC4 soap_get_xsd__unsignedLong(struct soap *soap, xsd__unsignedLong *p, const char *tag, const char *type) { if ((p = soap_in_xsd__unsignedLong(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__unsignedLong * SOAP_FMAC2 soap_instantiate_xsd__unsignedLong(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__unsignedLong(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__unsignedLong, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedLong); if (size) *size = sizeof(xsd__unsignedLong); ((xsd__unsignedLong*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedLong[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__unsignedLong); for (int i = 0; i < n; i++) ((xsd__unsignedLong*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedLong*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__unsignedLong(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__unsignedLong %p -> %p\n", q, p)); *(xsd__unsignedLong*)p = *(xsd__unsignedLong*)q; } void xsd__unsignedInt::soap_default(struct soap *soap) { this->soap = soap; soap_default_unsignedInt(soap, &this->xsd__unsignedInt::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__unsignedInt::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__unsignedInt::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__unsignedInt(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__unsignedInt(struct soap *soap, const char *tag, int id, const xsd__unsignedInt *a, const char *type) { return soap_out_unsignedInt(soap, tag, id, &(a->xsd__unsignedInt::__item), "xsd:unsignedInt"); } void *xsd__unsignedInt::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__unsignedInt(soap, tag, this, type); } SOAP_FMAC3 xsd__unsignedInt * SOAP_FMAC4 soap_in_xsd__unsignedInt(struct soap *soap, const char *tag, xsd__unsignedInt *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__unsignedInt *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__unsignedInt, sizeof(xsd__unsignedInt), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__unsignedInt) return (xsd__unsignedInt *)a->soap_in(soap, tag, type); } if (!soap_in_unsignedInt(soap, tag, &(a->xsd__unsignedInt::__item), "xsd:unsignedInt")) return NULL; return a; } int xsd__unsignedInt::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__unsignedInt); if (this->soap_out(soap, tag?tag:"xsd:unsignedInt", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__unsignedInt::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__unsignedInt(soap, this, tag, type); } SOAP_FMAC3 xsd__unsignedInt * SOAP_FMAC4 soap_get_xsd__unsignedInt(struct soap *soap, xsd__unsignedInt *p, const char *tag, const char *type) { if ((p = soap_in_xsd__unsignedInt(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__unsignedInt * SOAP_FMAC2 soap_instantiate_xsd__unsignedInt(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__unsignedInt(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__unsignedInt, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedInt); if (size) *size = sizeof(xsd__unsignedInt); ((xsd__unsignedInt*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedInt[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__unsignedInt); for (int i = 0; i < n; i++) ((xsd__unsignedInt*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedInt*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__unsignedInt(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__unsignedInt %p -> %p\n", q, p)); *(xsd__unsignedInt*)p = *(xsd__unsignedInt*)q; } void xsd__unsignedByte_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__unsignedByte(soap, &this->xsd__unsignedByte_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__unsignedByte_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__unsignedByte_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__unsignedByte_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__unsignedByte_(struct soap *soap, const char *tag, int id, const xsd__unsignedByte_ *a, const char *type) { return soap_out_xsd__unsignedByte(soap, tag, id, &(a->xsd__unsignedByte_::__item), "xsd:unsignedByte"); } void *xsd__unsignedByte_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__unsignedByte_(soap, tag, this, type); } SOAP_FMAC3 xsd__unsignedByte_ * SOAP_FMAC4 soap_in_xsd__unsignedByte_(struct soap *soap, const char *tag, xsd__unsignedByte_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__unsignedByte_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__unsignedByte_, sizeof(xsd__unsignedByte_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__unsignedByte_) return (xsd__unsignedByte_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__unsignedByte(soap, tag, &(a->xsd__unsignedByte_::__item), "xsd:unsignedByte")) return NULL; return a; } int xsd__unsignedByte_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__unsignedByte_); if (this->soap_out(soap, tag?tag:"xsd:unsignedByte", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__unsignedByte_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__unsignedByte_(soap, this, tag, type); } SOAP_FMAC3 xsd__unsignedByte_ * SOAP_FMAC4 soap_get_xsd__unsignedByte_(struct soap *soap, xsd__unsignedByte_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__unsignedByte_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__unsignedByte_ * SOAP_FMAC2 soap_instantiate_xsd__unsignedByte_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__unsignedByte_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__unsignedByte_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedByte_); if (size) *size = sizeof(xsd__unsignedByte_); ((xsd__unsignedByte_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedByte_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__unsignedByte_); for (int i = 0; i < n; i++) ((xsd__unsignedByte_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedByte_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__unsignedByte_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__unsignedByte_ %p -> %p\n", q, p)); *(xsd__unsignedByte_*)p = *(xsd__unsignedByte_*)q; } void xsd__string::soap_default(struct soap *soap) { this->soap = soap; soap_default_std__string(soap, &this->xsd__string::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__string::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->xsd__string::__item, SOAP_TYPE_std__string); soap_serialize_std__string(soap, &this->xsd__string::__item); /* transient soap skipped */ } int xsd__string::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__string(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__string(struct soap *soap, const char *tag, int id, const xsd__string *a, const char *type) { return soap_out_std__string(soap, tag, id, &(a->xsd__string::__item), "xsd:string"); } void *xsd__string::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__string(soap, tag, this, type); } SOAP_FMAC3 xsd__string * SOAP_FMAC4 soap_in_xsd__string(struct soap *soap, const char *tag, xsd__string *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__string *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__string, sizeof(xsd__string), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__string) return (xsd__string *)a->soap_in(soap, tag, type); } if (!soap_in_std__string(soap, tag, &(a->xsd__string::__item), "xsd:string")) return NULL; return a; } int xsd__string::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__string); if (this->soap_out(soap, tag?tag:"xsd:string", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__string::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__string(soap, this, tag, type); } SOAP_FMAC3 xsd__string * SOAP_FMAC4 soap_get_xsd__string(struct soap *soap, xsd__string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__string(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__string * SOAP_FMAC2 soap_instantiate_xsd__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__string(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__string, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__string); if (size) *size = sizeof(xsd__string); ((xsd__string*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__string[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__string); for (int i = 0; i < n; i++) ((xsd__string*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__string %p -> %p\n", q, p)); *(xsd__string*)p = *(xsd__string*)q; } void xsd__short::soap_default(struct soap *soap) { this->soap = soap; soap_default_short(soap, &this->xsd__short::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__short::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__short::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__short(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__short(struct soap *soap, const char *tag, int id, const xsd__short *a, const char *type) { return soap_out_short(soap, tag, id, &(a->xsd__short::__item), "xsd:short"); } void *xsd__short::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__short(soap, tag, this, type); } SOAP_FMAC3 xsd__short * SOAP_FMAC4 soap_in_xsd__short(struct soap *soap, const char *tag, xsd__short *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__short *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__short, sizeof(xsd__short), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__short) return (xsd__short *)a->soap_in(soap, tag, type); } if (!soap_in_short(soap, tag, &(a->xsd__short::__item), "xsd:short")) return NULL; return a; } int xsd__short::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__short); if (this->soap_out(soap, tag?tag:"xsd:short", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__short::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__short(soap, this, tag, type); } SOAP_FMAC3 xsd__short * SOAP_FMAC4 soap_get_xsd__short(struct soap *soap, xsd__short *p, const char *tag, const char *type) { if ((p = soap_in_xsd__short(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__short * SOAP_FMAC2 soap_instantiate_xsd__short(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__short(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__short, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__short); if (size) *size = sizeof(xsd__short); ((xsd__short*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__short[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__short); for (int i = 0; i < n; i++) ((xsd__short*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__short*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__short(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__short %p -> %p\n", q, p)); *(xsd__short*)p = *(xsd__short*)q; } void xsd__long::soap_default(struct soap *soap) { this->soap = soap; soap_default_LONG64(soap, &this->xsd__long::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__long::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__long::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__long(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__long(struct soap *soap, const char *tag, int id, const xsd__long *a, const char *type) { return soap_out_LONG64(soap, tag, id, &(a->xsd__long::__item), "xsd:long"); } void *xsd__long::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__long(soap, tag, this, type); } SOAP_FMAC3 xsd__long * SOAP_FMAC4 soap_in_xsd__long(struct soap *soap, const char *tag, xsd__long *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__long *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__long, sizeof(xsd__long), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__long) return (xsd__long *)a->soap_in(soap, tag, type); } if (!soap_in_LONG64(soap, tag, &(a->xsd__long::__item), "xsd:long")) return NULL; return a; } int xsd__long::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__long); if (this->soap_out(soap, tag?tag:"xsd:long", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__long::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__long(soap, this, tag, type); } SOAP_FMAC3 xsd__long * SOAP_FMAC4 soap_get_xsd__long(struct soap *soap, xsd__long *p, const char *tag, const char *type) { if ((p = soap_in_xsd__long(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__long * SOAP_FMAC2 soap_instantiate_xsd__long(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__long(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__long, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__long); if (size) *size = sizeof(xsd__long); ((xsd__long*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__long[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__long); for (int i = 0; i < n; i++) ((xsd__long*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__long*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__long(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__long %p -> %p\n", q, p)); *(xsd__long*)p = *(xsd__long*)q; } void xsd__int::soap_default(struct soap *soap) { this->soap = soap; soap_default_int(soap, &this->xsd__int::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__int::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_embedded(soap, &this->xsd__int::__item, SOAP_TYPE_int); /* transient soap skipped */ } int xsd__int::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__int(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__int(struct soap *soap, const char *tag, int id, const xsd__int *a, const char *type) { return soap_out_int(soap, tag, id, &(a->xsd__int::__item), "xsd:int"); } void *xsd__int::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__int(soap, tag, this, type); } SOAP_FMAC3 xsd__int * SOAP_FMAC4 soap_in_xsd__int(struct soap *soap, const char *tag, xsd__int *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__int *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__int, sizeof(xsd__int), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__int) return (xsd__int *)a->soap_in(soap, tag, type); } if (!soap_in_int(soap, tag, &(a->xsd__int::__item), "xsd:int")) return NULL; return a; } int xsd__int::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__int); if (this->soap_out(soap, tag?tag:"xsd:int", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__int::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__int(soap, this, tag, type); } SOAP_FMAC3 xsd__int * SOAP_FMAC4 soap_get_xsd__int(struct soap *soap, xsd__int *p, const char *tag, const char *type) { if ((p = soap_in_xsd__int(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__int * SOAP_FMAC2 soap_instantiate_xsd__int(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__int(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__int, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__int); if (size) *size = sizeof(xsd__int); ((xsd__int*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__int[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__int); for (int i = 0; i < n; i++) ((xsd__int*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__int*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__int(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__int %p -> %p\n", q, p)); *(xsd__int*)p = *(xsd__int*)q; } void xsd__float::soap_default(struct soap *soap) { this->soap = soap; soap_default_float(soap, &this->xsd__float::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__float::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__float::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__float(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__float(struct soap *soap, const char *tag, int id, const xsd__float *a, const char *type) { return soap_out_float(soap, tag, id, &(a->xsd__float::__item), "xsd:float"); } void *xsd__float::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__float(soap, tag, this, type); } SOAP_FMAC3 xsd__float * SOAP_FMAC4 soap_in_xsd__float(struct soap *soap, const char *tag, xsd__float *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__float *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__float, sizeof(xsd__float), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__float) return (xsd__float *)a->soap_in(soap, tag, type); } if (!soap_in_float(soap, tag, &(a->xsd__float::__item), "xsd:float")) return NULL; return a; } int xsd__float::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__float); if (this->soap_out(soap, tag?tag:"xsd:float", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__float::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__float(soap, this, tag, type); } SOAP_FMAC3 xsd__float * SOAP_FMAC4 soap_get_xsd__float(struct soap *soap, xsd__float *p, const char *tag, const char *type) { if ((p = soap_in_xsd__float(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__float * SOAP_FMAC2 soap_instantiate_xsd__float(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__float(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__float, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__float); if (size) *size = sizeof(xsd__float); ((xsd__float*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__float[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__float); for (int i = 0; i < n; i++) ((xsd__float*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__float*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__float(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__float %p -> %p\n", q, p)); *(xsd__float*)p = *(xsd__float*)q; } void xsd__duration_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__duration(soap, &this->xsd__duration_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__duration_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__duration(soap, &this->xsd__duration_::__item); /* transient soap skipped */ } int xsd__duration_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__duration_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__duration_(struct soap *soap, const char *tag, int id, const xsd__duration_ *a, const char *type) { return soap_out_xsd__duration(soap, tag, id, &(a->xsd__duration_::__item), "xsd:duration"); } void *xsd__duration_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__duration_(soap, tag, this, type); } SOAP_FMAC3 xsd__duration_ * SOAP_FMAC4 soap_in_xsd__duration_(struct soap *soap, const char *tag, xsd__duration_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__duration_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__duration_, sizeof(xsd__duration_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__duration_) return (xsd__duration_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__duration(soap, tag, &(a->xsd__duration_::__item), "xsd:duration")) return NULL; return a; } int xsd__duration_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__duration_); if (this->soap_out(soap, tag?tag:"xsd:duration", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__duration_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__duration_(soap, this, tag, type); } SOAP_FMAC3 xsd__duration_ * SOAP_FMAC4 soap_get_xsd__duration_(struct soap *soap, xsd__duration_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__duration_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__duration_ * SOAP_FMAC2 soap_instantiate_xsd__duration_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__duration_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__duration_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__duration_); if (size) *size = sizeof(xsd__duration_); ((xsd__duration_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__duration_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__duration_); for (int i = 0; i < n; i++) ((xsd__duration_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__duration_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__duration_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__duration_ %p -> %p\n", q, p)); *(xsd__duration_*)p = *(xsd__duration_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__duration(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__duration), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__duration(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__duration, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__duration, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__duration, 0, sizeof(std::string), 0, soap_copy_xsd__duration); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__duration(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__duration); if (soap_out_xsd__duration(soap, tag?tag:"xsd:duration", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__duration(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__duration(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void xsd__double::soap_default(struct soap *soap) { this->soap = soap; soap_default_double(soap, &this->xsd__double::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__double::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__double::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__double(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__double(struct soap *soap, const char *tag, int id, const xsd__double *a, const char *type) { return soap_out_double(soap, tag, id, &(a->xsd__double::__item), "xsd:double"); } void *xsd__double::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__double(soap, tag, this, type); } SOAP_FMAC3 xsd__double * SOAP_FMAC4 soap_in_xsd__double(struct soap *soap, const char *tag, xsd__double *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__double *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__double, sizeof(xsd__double), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__double) return (xsd__double *)a->soap_in(soap, tag, type); } if (!soap_in_double(soap, tag, &(a->xsd__double::__item), "xsd:double")) return NULL; return a; } int xsd__double::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__double); if (this->soap_out(soap, tag?tag:"xsd:double", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__double::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__double(soap, this, tag, type); } SOAP_FMAC3 xsd__double * SOAP_FMAC4 soap_get_xsd__double(struct soap *soap, xsd__double *p, const char *tag, const char *type) { if ((p = soap_in_xsd__double(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__double * SOAP_FMAC2 soap_instantiate_xsd__double(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__double(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__double, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__double); if (size) *size = sizeof(xsd__double); ((xsd__double*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__double[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__double); for (int i = 0; i < n; i++) ((xsd__double*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__double*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__double(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__double %p -> %p\n", q, p)); *(xsd__double*)p = *(xsd__double*)q; } void xsd__decimal_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__decimal(soap, &this->xsd__decimal_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__decimal_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__decimal(soap, &this->xsd__decimal_::__item); /* transient soap skipped */ } int xsd__decimal_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__decimal_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__decimal_(struct soap *soap, const char *tag, int id, const xsd__decimal_ *a, const char *type) { return soap_out_xsd__decimal(soap, tag, id, &(a->xsd__decimal_::__item), "xsd:decimal"); } void *xsd__decimal_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__decimal_(soap, tag, this, type); } SOAP_FMAC3 xsd__decimal_ * SOAP_FMAC4 soap_in_xsd__decimal_(struct soap *soap, const char *tag, xsd__decimal_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__decimal_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__decimal_, sizeof(xsd__decimal_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__decimal_) return (xsd__decimal_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__decimal(soap, tag, &(a->xsd__decimal_::__item), "xsd:decimal")) return NULL; return a; } int xsd__decimal_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__decimal_); if (this->soap_out(soap, tag?tag:"xsd:decimal", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__decimal_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__decimal_(soap, this, tag, type); } SOAP_FMAC3 xsd__decimal_ * SOAP_FMAC4 soap_get_xsd__decimal_(struct soap *soap, xsd__decimal_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__decimal_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__decimal_ * SOAP_FMAC2 soap_instantiate_xsd__decimal_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__decimal_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__decimal_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__decimal_); if (size) *size = sizeof(xsd__decimal_); ((xsd__decimal_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__decimal_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__decimal_); for (int i = 0; i < n; i++) ((xsd__decimal_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__decimal_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__decimal_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__decimal_ %p -> %p\n", q, p)); *(xsd__decimal_*)p = *(xsd__decimal_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__decimal(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__decimal), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__decimal(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__decimal, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__decimal, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__decimal, 0, sizeof(std::string), 0, soap_copy_xsd__decimal); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__decimal(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__decimal); if (soap_out_xsd__decimal(soap, tag?tag:"xsd:decimal", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__decimal(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__decimal(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void xsd__dateTime::soap_default(struct soap *soap) { this->soap = soap; soap_default_time(soap, &this->xsd__dateTime::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__dateTime::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__dateTime::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__dateTime(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__dateTime(struct soap *soap, const char *tag, int id, const xsd__dateTime *a, const char *type) { return soap_out_time(soap, tag, id, &(a->xsd__dateTime::__item), "xsd:dateTime"); } void *xsd__dateTime::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__dateTime(soap, tag, this, type); } SOAP_FMAC3 xsd__dateTime * SOAP_FMAC4 soap_in_xsd__dateTime(struct soap *soap, const char *tag, xsd__dateTime *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__dateTime *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__dateTime, sizeof(xsd__dateTime), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__dateTime) return (xsd__dateTime *)a->soap_in(soap, tag, type); } if (!soap_in_time(soap, tag, &(a->xsd__dateTime::__item), "xsd:dateTime")) return NULL; return a; } int xsd__dateTime::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__dateTime); if (this->soap_out(soap, tag?tag:"xsd:dateTime", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__dateTime::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__dateTime(soap, this, tag, type); } SOAP_FMAC3 xsd__dateTime * SOAP_FMAC4 soap_get_xsd__dateTime(struct soap *soap, xsd__dateTime *p, const char *tag, const char *type) { if ((p = soap_in_xsd__dateTime(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__dateTime * SOAP_FMAC2 soap_instantiate_xsd__dateTime(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__dateTime(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__dateTime, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__dateTime); if (size) *size = sizeof(xsd__dateTime); ((xsd__dateTime*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__dateTime[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__dateTime); for (int i = 0; i < n; i++) ((xsd__dateTime*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__dateTime*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__dateTime(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__dateTime %p -> %p\n", q, p)); *(xsd__dateTime*)p = *(xsd__dateTime*)q; } void xsd__byte_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__byte(soap, &this->xsd__byte_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__byte_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__byte_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__byte_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__byte_(struct soap *soap, const char *tag, int id, const xsd__byte_ *a, const char *type) { return soap_out_xsd__byte(soap, tag, id, &(a->xsd__byte_::__item), "xsd:byte"); } void *xsd__byte_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__byte_(soap, tag, this, type); } SOAP_FMAC3 xsd__byte_ * SOAP_FMAC4 soap_in_xsd__byte_(struct soap *soap, const char *tag, xsd__byte_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__byte_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__byte_, sizeof(xsd__byte_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__byte_) return (xsd__byte_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__byte(soap, tag, &(a->xsd__byte_::__item), "xsd:byte")) return NULL; return a; } int xsd__byte_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__byte_); if (this->soap_out(soap, tag?tag:"xsd:byte", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__byte_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__byte_(soap, this, tag, type); } SOAP_FMAC3 xsd__byte_ * SOAP_FMAC4 soap_get_xsd__byte_(struct soap *soap, xsd__byte_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__byte_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__byte_ * SOAP_FMAC2 soap_instantiate_xsd__byte_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__byte_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__byte_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__byte_); if (size) *size = sizeof(xsd__byte_); ((xsd__byte_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__byte_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__byte_); for (int i = 0; i < n; i++) ((xsd__byte_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__byte_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__byte_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__byte_ %p -> %p\n", q, p)); *(xsd__byte_*)p = *(xsd__byte_*)q; } void xsd__boolean::soap_default(struct soap *soap) { this->soap = soap; soap_default_bool(soap, &this->xsd__boolean::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__boolean::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__boolean::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__boolean(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__boolean(struct soap *soap, const char *tag, int id, const xsd__boolean *a, const char *type) { return soap_out_bool(soap, tag, id, &(a->xsd__boolean::__item), "xsd:boolean"); } void *xsd__boolean::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__boolean(soap, tag, this, type); } SOAP_FMAC3 xsd__boolean * SOAP_FMAC4 soap_in_xsd__boolean(struct soap *soap, const char *tag, xsd__boolean *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__boolean *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__boolean, sizeof(xsd__boolean), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__boolean) return (xsd__boolean *)a->soap_in(soap, tag, type); } if (!soap_in_bool(soap, tag, &(a->xsd__boolean::__item), "xsd:boolean")) return NULL; return a; } int xsd__boolean::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__boolean); if (this->soap_out(soap, tag?tag:"xsd:boolean", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__boolean::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__boolean(soap, this, tag, type); } SOAP_FMAC3 xsd__boolean * SOAP_FMAC4 soap_get_xsd__boolean(struct soap *soap, xsd__boolean *p, const char *tag, const char *type) { if ((p = soap_in_xsd__boolean(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__boolean * SOAP_FMAC2 soap_instantiate_xsd__boolean(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__boolean(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__boolean, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__boolean); if (size) *size = sizeof(xsd__boolean); ((xsd__boolean*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__boolean[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__boolean); for (int i = 0; i < n; i++) ((xsd__boolean*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__boolean*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__boolean(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__boolean %p -> %p\n", q, p)); *(xsd__boolean*)p = *(xsd__boolean*)q; } void xsd__base64Binary_::soap_default(struct soap *soap) { this->soap = soap; this->xsd__base64Binary_::__item.xsd__base64Binary::soap_default(soap); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__base64Binary_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ this->xsd__base64Binary_::__item.soap_serialize(soap); /* transient soap skipped */ } int xsd__base64Binary_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__base64Binary_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__base64Binary_(struct soap *soap, const char *tag, int id, const xsd__base64Binary_ *a, const char *type) { return (a->xsd__base64Binary_::__item).soap_out(soap, tag, id, "xsd:base64Binary"); } void *xsd__base64Binary_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__base64Binary_(soap, tag, this, type); } SOAP_FMAC3 xsd__base64Binary_ * SOAP_FMAC4 soap_in_xsd__base64Binary_(struct soap *soap, const char *tag, xsd__base64Binary_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__base64Binary_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__base64Binary_, sizeof(xsd__base64Binary_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__base64Binary_) return (xsd__base64Binary_ *)a->soap_in(soap, tag, type); } if (!(a->xsd__base64Binary_::__item).soap_in(soap, tag, "xsd:base64Binary")) return NULL; return a; } int xsd__base64Binary_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__base64Binary_); if (this->soap_out(soap, tag?tag:"xsd:base64Binary", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__base64Binary_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__base64Binary_(soap, this, tag, type); } SOAP_FMAC3 xsd__base64Binary_ * SOAP_FMAC4 soap_get_xsd__base64Binary_(struct soap *soap, xsd__base64Binary_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__base64Binary_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__base64Binary_ * SOAP_FMAC2 soap_instantiate_xsd__base64Binary_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__base64Binary_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__base64Binary_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary_); if (size) *size = sizeof(xsd__base64Binary_); ((xsd__base64Binary_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__base64Binary_); for (int i = 0; i < n; i++) ((xsd__base64Binary_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__base64Binary_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__base64Binary_ %p -> %p\n", q, p)); *(xsd__base64Binary_*)p = *(xsd__base64Binary_*)q; } void xsd__base64Binary::soap_default(struct soap *soap) { this->soap = soap; this->__size = 0; this->__ptr = NULL; this->id = NULL; this->type = NULL; this->options = NULL; } void xsd__base64Binary::soap_serialize(struct soap *soap) const { if (this->__ptr && !soap_array_reference(soap, this, (struct soap_array*)&this->__ptr, 1, SOAP_TYPE_xsd__base64Binary)) if (this->id || this->type) soap->mode |= SOAP_ENC_DIME; } int xsd__base64Binary::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__base64Binary(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__base64Binary(struct soap *soap, const char *tag, int id, const xsd__base64Binary *a, const char *type) { #ifndef WITH_LEANER id = soap_attachment(soap, tag, id, a, (struct soap_array*)&a->__ptr, a->id, a->type, a->options, 1, type, SOAP_TYPE_xsd__base64Binary); #else id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_xsd__base64Binary); #endif if (id < 0) return soap->error; if (soap_element_begin_out(soap, tag, id, type)) return soap->error; if (soap_putbase64(soap, a->__ptr, a->__size)) return soap->error; return soap_element_end_out(soap, tag); } void *xsd__base64Binary::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__base64Binary(soap, tag, this, type); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_in_xsd__base64Binary(struct soap *soap, const char *tag, xsd__base64Binary *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":base64Binary") && soap_match_tag(soap, soap->type, ":base64")) { soap->error = SOAP_TYPE; return NULL; } a = (xsd__base64Binary *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__base64Binary, sizeof(xsd__base64Binary), soap->type, soap->arrayType); if (!a) return NULL; if (soap->alloced) a->soap_default(soap); if (soap->body && !*soap->href) { a->__ptr = soap_getbase64(soap, &a->__size, 0); #ifndef WITH_LEANER if (soap_xop_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; #endif if ((!a->__ptr && soap->error) || soap_element_end_in(soap, tag)) return NULL; } else { #ifndef WITH_LEANER if (*soap->href != '#') { if (soap_dime_forward(soap, &a->__ptr, &a->__size, &a->id, &a->type, &a->options)) return NULL; } else #endif a = (xsd__base64Binary *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_xsd__base64Binary, 0, sizeof(xsd__base64Binary), 0, soap_copy_xsd__base64Binary); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } int xsd__base64Binary::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, (struct soap_array*)&this->__ptr, 1, tag, SOAP_TYPE_xsd__base64Binary); if (this->soap_out(soap, tag?tag:"xsd:base64Binary", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__base64Binary::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__base64Binary(soap, this, tag, type); } SOAP_FMAC3 xsd__base64Binary * SOAP_FMAC4 soap_get_xsd__base64Binary(struct soap *soap, xsd__base64Binary *p, const char *tag, const char *type) { if ((p = soap_in_xsd__base64Binary(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__base64Binary * SOAP_FMAC2 soap_instantiate_xsd__base64Binary(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__base64Binary(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__base64Binary, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary); if (size) *size = sizeof(xsd__base64Binary); ((xsd__base64Binary*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__base64Binary); for (int i = 0; i < n; i++) ((xsd__base64Binary*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__base64Binary(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__base64Binary %p -> %p\n", q, p)); *(xsd__base64Binary*)p = *(xsd__base64Binary*)q; } void xsd__anyURI_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__anyURI(soap, &this->xsd__anyURI_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__anyURI_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__anyURI(soap, &this->xsd__anyURI_::__item); /* transient soap skipped */ } int xsd__anyURI_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__anyURI_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__anyURI_(struct soap *soap, const char *tag, int id, const xsd__anyURI_ *a, const char *type) { return soap_out_xsd__anyURI(soap, tag, id, &(a->xsd__anyURI_::__item), "xsd:anyURI"); } void *xsd__anyURI_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__anyURI_(soap, tag, this, type); } SOAP_FMAC3 xsd__anyURI_ * SOAP_FMAC4 soap_in_xsd__anyURI_(struct soap *soap, const char *tag, xsd__anyURI_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__anyURI_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__anyURI_, sizeof(xsd__anyURI_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__anyURI_) return (xsd__anyURI_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__anyURI(soap, tag, &(a->xsd__anyURI_::__item), "xsd:anyURI")) return NULL; return a; } int xsd__anyURI_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__anyURI_); if (this->soap_out(soap, tag?tag:"xsd:anyURI", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__anyURI_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__anyURI_(soap, this, tag, type); } SOAP_FMAC3 xsd__anyURI_ * SOAP_FMAC4 soap_get_xsd__anyURI_(struct soap *soap, xsd__anyURI_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__anyURI_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__anyURI_ * SOAP_FMAC2 soap_instantiate_xsd__anyURI_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__anyURI_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__anyURI_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__anyURI_); if (size) *size = sizeof(xsd__anyURI_); ((xsd__anyURI_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__anyURI_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__anyURI_); for (int i = 0; i < n; i++) ((xsd__anyURI_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__anyURI_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__anyURI_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__anyURI_ %p -> %p\n", q, p)); *(xsd__anyURI_*)p = *(xsd__anyURI_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__anyURI(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__anyURI), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__anyURI(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__anyURI, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__anyURI, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__anyURI, 0, sizeof(std::string), 0, soap_copy_xsd__anyURI); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__anyURI(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__anyURI); if (soap_out_xsd__anyURI(soap, tag?tag:"xsd:anyURI", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__anyURI(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__anyURI(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void xsd__QName_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__QName(soap, &this->xsd__QName_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__QName_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__QName(soap, &this->xsd__QName_::__item); /* transient soap skipped */ } int xsd__QName_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__QName_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__QName_(struct soap *soap, const char *tag, int id, const xsd__QName_ *a, const char *type) { std::string soap_tmp___item(soap_QName2s(soap, a->__item.c_str())); return soap_out_xsd__QName(soap, tag, id, &soap_tmp___item, "xsd:QName"); } void *xsd__QName_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__QName_(soap, tag, this, type); } SOAP_FMAC3 xsd__QName_ * SOAP_FMAC4 soap_in_xsd__QName_(struct soap *soap, const char *tag, xsd__QName_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__QName_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__QName_, sizeof(xsd__QName_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__QName_) return (xsd__QName_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__QName(soap, tag, &(a->xsd__QName_::__item), "xsd:QName")) return NULL; return a; } int xsd__QName_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__QName_); if (this->soap_out(soap, tag?tag:"xsd:QName", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__QName_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__QName_(soap, this, tag, type); } SOAP_FMAC3 xsd__QName_ * SOAP_FMAC4 soap_get_xsd__QName_(struct soap *soap, xsd__QName_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__QName_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__QName_ * SOAP_FMAC2 soap_instantiate_xsd__QName_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__QName_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__QName_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__QName_); if (size) *size = sizeof(xsd__QName_); ((xsd__QName_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__QName_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__QName_); for (int i = 0; i < n; i++) ((xsd__QName_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__QName_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__QName_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__QName_ %p -> %p\n", q, p)); *(xsd__QName_*)p = *(xsd__QName_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__QName(struct soap *soap, const char *tag, int id, const xsd__QName *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_xsd__QName), type)) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_xsd__QName(struct soap *soap, const char *tag, std::string *s, const char *type) { if (soap_element_begin_in(soap, tag, 1, type)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__QName, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 2, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__QName, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__QName, 0, sizeof(std::string), 0, soap_copy_xsd__QName); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__QName(struct soap *soap, const xsd__QName *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__QName); if (soap_out_xsd__QName(soap, tag?tag:"xsd:QName", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 xsd__QName * SOAP_FMAC4 soap_get_xsd__QName(struct soap *soap, xsd__QName *p, const char *tag, const char *type) { if ((p = soap_in_xsd__QName(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__QName * SOAP_FMAC2 soap_instantiate_xsd__QName(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__QName(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__QName, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__QName); if (size) *size = sizeof(xsd__QName); } else { cp->ptr = (void*)SOAP_NEW(xsd__QName[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__QName); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__QName*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__QName(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__QName %p -> %p\n", q, p)); *(xsd__QName*)p = *(xsd__QName*)q; } void xsd__IDREF_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__IDREF(soap, &this->xsd__IDREF_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__IDREF_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__IDREF(soap, &this->xsd__IDREF_::__item); /* transient soap skipped */ } int xsd__IDREF_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__IDREF_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__IDREF_(struct soap *soap, const char *tag, int id, const xsd__IDREF_ *a, const char *type) { return soap_out_xsd__IDREF(soap, tag, id, &(a->xsd__IDREF_::__item), "xsd:IDREF"); } void *xsd__IDREF_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__IDREF_(soap, tag, this, type); } SOAP_FMAC3 xsd__IDREF_ * SOAP_FMAC4 soap_in_xsd__IDREF_(struct soap *soap, const char *tag, xsd__IDREF_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__IDREF_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__IDREF_, sizeof(xsd__IDREF_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__IDREF_) return (xsd__IDREF_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__IDREF(soap, tag, &(a->xsd__IDREF_::__item), "xsd:IDREF")) return NULL; return a; } int xsd__IDREF_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__IDREF_); if (this->soap_out(soap, tag?tag:"xsd:IDREF", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__IDREF_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__IDREF_(soap, this, tag, type); } SOAP_FMAC3 xsd__IDREF_ * SOAP_FMAC4 soap_get_xsd__IDREF_(struct soap *soap, xsd__IDREF_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__IDREF_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__IDREF_ * SOAP_FMAC2 soap_instantiate_xsd__IDREF_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__IDREF_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__IDREF_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__IDREF_); if (size) *size = sizeof(xsd__IDREF_); ((xsd__IDREF_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__IDREF_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__IDREF_); for (int i = 0; i < n; i++) ((xsd__IDREF_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__IDREF_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__IDREF_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__IDREF_ %p -> %p\n", q, p)); *(xsd__IDREF_*)p = *(xsd__IDREF_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__IDREF(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__IDREF), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__IDREF(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__IDREF, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__IDREF, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__IDREF, 0, sizeof(std::string), 0, soap_copy_xsd__IDREF); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__IDREF(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__IDREF); if (soap_out_xsd__IDREF(soap, tag?tag:"xsd:IDREF", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__IDREF(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__IDREF(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } void xsd__ID_::soap_default(struct soap *soap) { this->soap = soap; soap_default_xsd__ID(soap, &this->xsd__ID_::__item); this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__ID_::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ soap_serialize_xsd__ID(soap, &this->xsd__ID_::__item); /* transient soap skipped */ } int xsd__ID_::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__ID_(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__ID_(struct soap *soap, const char *tag, int id, const xsd__ID_ *a, const char *type) { return soap_out_xsd__ID(soap, tag, id, &(a->xsd__ID_::__item), "xsd:ID"); } void *xsd__ID_::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__ID_(soap, tag, this, type); } SOAP_FMAC3 xsd__ID_ * SOAP_FMAC4 soap_in_xsd__ID_(struct soap *soap, const char *tag, xsd__ID_ *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__ID_ *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__ID_, sizeof(xsd__ID_), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__ID_) return (xsd__ID_ *)a->soap_in(soap, tag, type); } if (!soap_in_xsd__ID(soap, tag, &(a->xsd__ID_::__item), "xsd:ID")) return NULL; return a; } int xsd__ID_::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__ID_); if (this->soap_out(soap, tag?tag:"xsd:ID", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__ID_::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__ID_(soap, this, tag, type); } SOAP_FMAC3 xsd__ID_ * SOAP_FMAC4 soap_get_xsd__ID_(struct soap *soap, xsd__ID_ *p, const char *tag, const char *type) { if ((p = soap_in_xsd__ID_(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__ID_ * SOAP_FMAC2 soap_instantiate_xsd__ID_(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__ID_(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__ID_, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__ID_); if (size) *size = sizeof(xsd__ID_); ((xsd__ID_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__ID_[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__ID_); for (int i = 0; i < n; i++) ((xsd__ID_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__ID_*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__ID_(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__ID_ %p -> %p\n", q, p)); *(xsd__ID_*)p = *(xsd__ID_*)q; } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__ID(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_xsd__ID), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_xsd__ID(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__ID, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_xsd__ID, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_xsd__ID, 0, sizeof(std::string), 0, soap_copy_xsd__ID); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__ID(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_xsd__ID); if (soap_out_xsd__ID(soap, tag?tag:"xsd:ID", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_xsd__ID(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_xsd__ID(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_std__string(struct soap *soap, std::string *p) { (void)soap; /* appease -Wall -Werror */ p->erase(); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap *soap, const std::string *p) { (void)soap; (void)p; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap *soap, const char *tag, int id, const std::string *s, const char *type) { if ((soap->mode & SOAP_C_NILSTRING) && s->empty()) return soap_element_null(soap, tag, id, type); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_std__string), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag)) return soap->error; return SOAP_OK; } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_in_std__string(struct soap *soap, const char *tag, std::string *s, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!s) s = soap_new_std__string(soap, -1); if (soap->null) if (s) s->erase(); if (soap->body && !*soap->href) { char *t; s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType); if (s) { if ((t = soap_string_in(soap, 1, 0, -1))) s->assign(t); else return NULL; } } else s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_std__string, 0, sizeof(std::string), 0, soap_copy_std__string); if (soap->body && soap_element_end_in(soap, tag)) return NULL; return s; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap *soap, const std::string *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_std__string); if (soap_out_std__string(soap, tag?tag:"string", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap *soap, std::string *p, const char *tag, const char *type) { if ((p = soap_in_std__string(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 std::string * SOAP_FMAC2 soap_instantiate_std__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__string(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__string, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(std::string); if (size) *size = sizeof(std::string); } else { cp->ptr = (void*)SOAP_NEW(std::string[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(std::string); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (std::string*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p)); *(std::string*)p = *(std::string*)q; } void xsd__anyType::soap_default(struct soap *soap) { this->soap = soap; this->xsd__anyType::__item = NULL; /* transient soap skipped */ } void xsd__anyType::soap_serialize(struct soap *soap) const { (void)soap; /* appease -Wall -Werror */ /* transient soap skipped */ } int xsd__anyType::soap_out(struct soap *soap, const char *tag, int id, const char *type) const { return soap_out_xsd__anyType(soap, tag, id, this, type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__anyType(struct soap *soap, const char *tag, int id, const xsd__anyType *a, const char *type) { return soap_outliteral(soap, tag, &(a->xsd__anyType::__item), NULL); } void *xsd__anyType::soap_in(struct soap *soap, const char *tag, const char *type) { return soap_in_xsd__anyType(soap, tag, this, type); } SOAP_FMAC3 xsd__anyType * SOAP_FMAC4 soap_in_xsd__anyType(struct soap *soap, const char *tag, xsd__anyType *a, const char *type) { (void)type; /* appease -Wall -Werror */ if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!(a = (xsd__anyType *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_xsd__anyType, sizeof(xsd__anyType), soap->type, soap->arrayType))) { soap->error = SOAP_TAG_MISMATCH; return NULL; } soap_revert(soap); *soap->id = '\0'; if (soap->alloced) { a->soap_default(soap); if (soap->clist->type != SOAP_TYPE_xsd__anyType) return (xsd__anyType *)a->soap_in(soap, tag, type); } if (!soap_inliteral(soap, tag, &(a->xsd__anyType::__item))) return NULL; return a; } int xsd__anyType::soap_put(struct soap *soap, const char *tag, const char *type) const { register int id = soap_embed(soap, (void*)this, NULL, 0, tag, SOAP_TYPE_xsd__anyType); if (this->soap_out(soap, tag?tag:"xsd:anyType", id, type)) return soap->error; return soap_putindependent(soap); } void *xsd__anyType::soap_get(struct soap *soap, const char *tag, const char *type) { return soap_get_xsd__anyType(soap, this, tag, type); } SOAP_FMAC3 xsd__anyType * SOAP_FMAC4 soap_get_xsd__anyType(struct soap *soap, xsd__anyType *p, const char *tag, const char *type) { if ((p = soap_in_xsd__anyType(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 xsd__anyType * SOAP_FMAC2 soap_instantiate_xsd__anyType(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__anyType(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_xsd__anyType, n, soap_fdelete); if (!cp) return NULL; if (type && !soap_match_tag(soap, type, "xsd:ID")) { cp->type = SOAP_TYPE_xsd__ID_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__ID_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__ID_); ((xsd__ID_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__ID_[n]); if (size) *size = n * sizeof(xsd__ID_); for (int i = 0; i < n; i++) ((xsd__ID_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__ID_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:IDREF")) { cp->type = SOAP_TYPE_xsd__IDREF_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__IDREF_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__IDREF_); ((xsd__IDREF_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__IDREF_[n]); if (size) *size = n * sizeof(xsd__IDREF_); for (int i = 0; i < n; i++) ((xsd__IDREF_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__IDREF_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:QName")) { cp->type = SOAP_TYPE_xsd__QName_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__QName_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__QName_); ((xsd__QName_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__QName_[n]); if (size) *size = n * sizeof(xsd__QName_); for (int i = 0; i < n; i++) ((xsd__QName_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__QName_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:anyURI")) { cp->type = SOAP_TYPE_xsd__anyURI_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__anyURI_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__anyURI_); ((xsd__anyURI_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__anyURI_[n]); if (size) *size = n * sizeof(xsd__anyURI_); for (int i = 0; i < n; i++) ((xsd__anyURI_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__anyURI_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:base64Binary")) { cp->type = SOAP_TYPE_xsd__base64Binary_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__base64Binary_); ((xsd__base64Binary_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__base64Binary_[n]); if (size) *size = n * sizeof(xsd__base64Binary_); for (int i = 0; i < n; i++) ((xsd__base64Binary_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__base64Binary_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:boolean")) { cp->type = SOAP_TYPE_xsd__boolean; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__boolean); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__boolean); ((xsd__boolean*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__boolean[n]); if (size) *size = n * sizeof(xsd__boolean); for (int i = 0; i < n; i++) ((xsd__boolean*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__boolean*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:byte")) { cp->type = SOAP_TYPE_xsd__byte_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__byte_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__byte_); ((xsd__byte_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__byte_[n]); if (size) *size = n * sizeof(xsd__byte_); for (int i = 0; i < n; i++) ((xsd__byte_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__byte_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:dateTime")) { cp->type = SOAP_TYPE_xsd__dateTime; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__dateTime); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__dateTime); ((xsd__dateTime*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__dateTime[n]); if (size) *size = n * sizeof(xsd__dateTime); for (int i = 0; i < n; i++) ((xsd__dateTime*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__dateTime*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:decimal")) { cp->type = SOAP_TYPE_xsd__decimal_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__decimal_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__decimal_); ((xsd__decimal_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__decimal_[n]); if (size) *size = n * sizeof(xsd__decimal_); for (int i = 0; i < n; i++) ((xsd__decimal_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__decimal_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:double")) { cp->type = SOAP_TYPE_xsd__double; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__double); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__double); ((xsd__double*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__double[n]); if (size) *size = n * sizeof(xsd__double); for (int i = 0; i < n; i++) ((xsd__double*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__double*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:duration")) { cp->type = SOAP_TYPE_xsd__duration_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__duration_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__duration_); ((xsd__duration_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__duration_[n]); if (size) *size = n * sizeof(xsd__duration_); for (int i = 0; i < n; i++) ((xsd__duration_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__duration_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:float")) { cp->type = SOAP_TYPE_xsd__float; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__float); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__float); ((xsd__float*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__float[n]); if (size) *size = n * sizeof(xsd__float); for (int i = 0; i < n; i++) ((xsd__float*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__float*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:int")) { cp->type = SOAP_TYPE_xsd__int; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__int); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__int); ((xsd__int*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__int[n]); if (size) *size = n * sizeof(xsd__int); for (int i = 0; i < n; i++) ((xsd__int*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__int*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:long")) { cp->type = SOAP_TYPE_xsd__long; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__long); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__long); ((xsd__long*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__long[n]); if (size) *size = n * sizeof(xsd__long); for (int i = 0; i < n; i++) ((xsd__long*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__long*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:short")) { cp->type = SOAP_TYPE_xsd__short; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__short); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__short); ((xsd__short*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__short[n]); if (size) *size = n * sizeof(xsd__short); for (int i = 0; i < n; i++) ((xsd__short*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__short*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:string")) { cp->type = SOAP_TYPE_xsd__string; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__string); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__string); ((xsd__string*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__string[n]); if (size) *size = n * sizeof(xsd__string); for (int i = 0; i < n; i++) ((xsd__string*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__string*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:unsignedByte")) { cp->type = SOAP_TYPE_xsd__unsignedByte_; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedByte_); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__unsignedByte_); ((xsd__unsignedByte_*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedByte_[n]); if (size) *size = n * sizeof(xsd__unsignedByte_); for (int i = 0; i < n; i++) ((xsd__unsignedByte_*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedByte_*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:unsignedInt")) { cp->type = SOAP_TYPE_xsd__unsignedInt; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedInt); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__unsignedInt); ((xsd__unsignedInt*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedInt[n]); if (size) *size = n * sizeof(xsd__unsignedInt); for (int i = 0; i < n; i++) ((xsd__unsignedInt*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedInt*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:unsignedLong")) { cp->type = SOAP_TYPE_xsd__unsignedLong; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedLong); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__unsignedLong); ((xsd__unsignedLong*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedLong[n]); if (size) *size = n * sizeof(xsd__unsignedLong); for (int i = 0; i < n; i++) ((xsd__unsignedLong*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedLong*)cp->ptr; } if (type && !soap_match_tag(soap, type, "xsd:unsignedShort")) { cp->type = SOAP_TYPE_xsd__unsignedShort; if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__unsignedShort); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(xsd__unsignedShort); ((xsd__unsignedShort*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__unsignedShort[n]); if (size) *size = n * sizeof(xsd__unsignedShort); for (int i = 0; i < n; i++) ((xsd__unsignedShort*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__unsignedShort*)cp->ptr; } if (type && !soap_match_tag(soap, type, "ns4:char")) { cp->type = SOAP_TYPE_ns4__char__; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__char__); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(ns4__char__); ((ns4__char__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__char__[n]); if (size) *size = n * sizeof(ns4__char__); for (int i = 0; i < n; i++) ((ns4__char__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__char__*)cp->ptr; } if (type && !soap_match_tag(soap, type, "ns4:duration")) { cp->type = SOAP_TYPE_ns4__duration__; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__duration__); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(ns4__duration__); ((ns4__duration__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__duration__[n]); if (size) *size = n * sizeof(ns4__duration__); for (int i = 0; i < n; i++) ((ns4__duration__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__duration__*)cp->ptr; } if (type && !soap_match_tag(soap, type, "ns4:guid")) { cp->type = SOAP_TYPE_ns4__guid__; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns4__guid__); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(ns4__guid__); ((ns4__guid__*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns4__guid__[n]); if (size) *size = n * sizeof(ns4__guid__); for (int i = 0; i < n; i++) ((ns4__guid__*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns4__guid__*)cp->ptr; } if (type && !soap_match_tag(soap, type, "ns3:AccountInfo")) { cp->type = SOAP_TYPE_ns3__AccountInfo; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns3__AccountInfo); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(ns3__AccountInfo); ((ns3__AccountInfo*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns3__AccountInfo[n]); if (size) *size = n * sizeof(ns3__AccountInfo); for (int i = 0; i < n; i++) ((ns3__AccountInfo*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns3__AccountInfo*)cp->ptr; } if (type && !soap_match_tag(soap, type, "ns3:CreationResult")) { cp->type = SOAP_TYPE_ns3__CreationResult; if (n < 0) { cp->ptr = (void*)SOAP_NEW(ns3__CreationResult); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = sizeof(ns3__CreationResult); ((ns3__CreationResult*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(ns3__CreationResult[n]); if (size) *size = n * sizeof(ns3__CreationResult); for (int i = 0; i < n; i++) ((ns3__CreationResult*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (ns3__CreationResult*)cp->ptr; } if (n < 0) { cp->ptr = (void*)SOAP_NEW(xsd__anyType); if (size) *size = sizeof(xsd__anyType); ((xsd__anyType*)cp->ptr)->soap = soap; } else { cp->ptr = (void*)SOAP_NEW(xsd__anyType[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(xsd__anyType); for (int i = 0; i < n; i++) ((xsd__anyType*)cp->ptr)[i].soap = soap; } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (xsd__anyType*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_xsd__anyType(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying xsd__anyType %p -> %p\n", q, p)); *(xsd__anyType*)p = *(xsd__anyType*)q; } #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default__QName(soap, &a->faultcode); soap_default_string(soap, &a->faultstring); soap_default_string(soap, &a->faultactor); a->detail = NULL; a->SOAP_ENV__Code = NULL; a->SOAP_ENV__Reason = NULL; soap_default_string(soap, &a->SOAP_ENV__Node); soap_default_string(soap, &a->SOAP_ENV__Role); a->SOAP_ENV__Detail = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize__QName(soap, &a->faultcode); soap_serialize_string(soap, &a->faultstring); soap_serialize_string(soap, &a->faultactor); soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail); soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code); soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason); soap_serialize_string(soap, &a->SOAP_ENV__Node); soap_serialize_string(soap, &a->SOAP_ENV__Role); soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Fault(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Fault *a, const char *type) { const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type)) return soap->error; if (soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, "")) return soap->error; if (soap_out_string(soap, "faultstring", -1, &a->faultstring, "")) return soap->error; if (soap_out_string(soap, "faultactor", -1, &a->faultactor, "")) return soap->error; if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, "")) return soap->error; if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, "")) return soap->error; if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, "")) return soap->error; if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, "")) return soap->error; if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, "")) return soap->error; if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, "")) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_in_SOAP_ENV__Fault(struct soap *soap, const char *tag, struct SOAP_ENV__Fault *a, const char *type) { size_t soap_flag_faultcode = 1; size_t soap_flag_faultstring = 1; size_t soap_flag_faultactor = 1; size_t soap_flag_detail = 1; size_t soap_flag_SOAP_ENV__Code = 1; size_t soap_flag_SOAP_ENV__Reason = 1; size_t soap_flag_SOAP_ENV__Node = 1; size_t soap_flag_SOAP_ENV__Role = 1; size_t soap_flag_SOAP_ENV__Detail = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Fault *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Fault, sizeof(struct SOAP_ENV__Fault), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Fault(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__QName(soap, "faultcode", &a->faultcode, "")) { soap_flag_faultcode--; continue; } if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string")) { soap_flag_faultstring--; continue; } if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string")) { soap_flag_faultactor--; continue; } if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, "")) { soap_flag_detail--; continue; } if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, "")) { soap_flag_SOAP_ENV__Code--; continue; } if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, "")) { soap_flag_SOAP_ENV__Reason--; continue; } if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string")) { soap_flag_SOAP_ENV__Node--; continue; } if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string")) { soap_flag_SOAP_ENV__Role--; continue; } if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, "")) { soap_flag_SOAP_ENV__Detail--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Fault); if (soap_out_SOAP_ENV__Fault(soap, tag?tag:"SOAP-ENV:Fault", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_get_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct SOAP_ENV__Fault * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Fault(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Fault, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Fault); if (size) *size = sizeof(struct SOAP_ENV__Fault); } else { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Fault[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Fault); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Fault*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p)); *(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->SOAP_ENV__Text); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->SOAP_ENV__Text); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Reason(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Reason *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type)) return soap->error; if (soap->lang) soap_set_attr(soap, "xml:lang", soap->lang, 1); if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, "")) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_in_SOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason *a, const char *type) { size_t soap_flag_SOAP_ENV__Text = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Reason *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Reason(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string")) { soap_flag_SOAP_ENV__Text--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Reason); if (soap_out_SOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_get_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct SOAP_ENV__Reason * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Reason(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Reason, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Reason); if (size) *size = sizeof(struct SOAP_ENV__Reason); } else { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Reason[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Reason); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Reason*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p)); *(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->__any = NULL; a->__type = 0; a->fault = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_markelement(soap, a->fault, a->__type); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Detail(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Detail *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type)) return soap->error; soap_outliteral(soap, "-any", &a->__any, NULL); if (soap_putelement(soap, a->fault, "fault", -1, a->__type)) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_in_SOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail *a, const char *type) { size_t soap_flag___any = 1; size_t soap_flag_fault = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Detail *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Detail(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH) if ((a->fault = soap_getelement(soap, &a->__type))) { soap_flag_fault = 0; continue; } if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_inliteral(soap, "-any", &a->__any)) { soap_flag___any--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Detail); if (soap_out_SOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_get_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct SOAP_ENV__Detail * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Detail(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Detail, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Detail); if (size) *size = sizeof(struct SOAP_ENV__Detail); } else { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Detail[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Detail); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Detail*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p)); *(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default__QName(soap, &a->SOAP_ENV__Value); a->SOAP_ENV__Subcode = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize__QName(soap, &a->SOAP_ENV__Value); soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Code(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Code *a, const char *type) { const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value); if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type)) return soap->error; if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, "")) return soap->error; if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, "")) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_in_SOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code *a, const char *type) { size_t soap_flag_SOAP_ENV__Value = 1; size_t soap_flag_SOAP_ENV__Subcode = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Code *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Code(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, "")) { soap_flag_SOAP_ENV__Value--; continue; } if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, "")) { soap_flag_SOAP_ENV__Subcode--; continue; } if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Code); if (soap_out_SOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_get_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct SOAP_ENV__Code * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Code(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Code, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Code); if (size) *size = sizeof(struct SOAP_ENV__Code); } else { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Code[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Code); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Code*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p)); *(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_out_SOAP_ENV__Header(struct soap *soap, const char *tag, int id, const struct SOAP_ENV__Header *a, const char *type) { if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type)) return soap->error; return soap_element_end_out(soap, tag); } SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_in_SOAP_ENV__Header(struct soap *soap, const char *tag, struct SOAP_ENV__Header *a, const char *type) { if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a = (struct SOAP_ENV__Header *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_SOAP_ENV__Header, sizeof(struct SOAP_ENV__Header), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_SOAP_ENV__Header(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap->error == SOAP_TAG_MISMATCH) soap->error = soap_ignore_element(soap); if (soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Header); if (soap_out_SOAP_ENV__Header(soap, tag?tag:"SOAP-ENV:Header", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_get_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p, const char *tag, const char *type) { if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct SOAP_ENV__Header * SOAP_FMAC2 soap_instantiate_SOAP_ENV__Header(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Header, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Header); if (size) *size = sizeof(struct SOAP_ENV__Header); } else { cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Header[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct SOAP_ENV__Header); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct SOAP_ENV__Header*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p)); *(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns6__CreateAccount(struct soap *soap, struct __ns6__CreateAccount *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ns3__CreateAccount = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns6__CreateAccount(struct soap *soap, const struct __ns6__CreateAccount *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerTo_ns3__CreateAccount(soap, &a->ns3__CreateAccount); } SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns6__CreateAccount(struct soap *soap, const char *tag, int id, const struct __ns6__CreateAccount *a, const char *type) { if (soap_out_PointerTo_ns3__CreateAccount(soap, "ns3:CreateAccount", -1, &a->ns3__CreateAccount, "")) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns6__CreateAccount * SOAP_FMAC4 soap_in___ns6__CreateAccount(struct soap *soap, const char *tag, struct __ns6__CreateAccount *a, const char *type) { size_t soap_flag_ns3__CreateAccount = 1; short soap_flag; a = (struct __ns6__CreateAccount *)soap_id_enter(soap, "", a, SOAP_TYPE___ns6__CreateAccount, sizeof(struct __ns6__CreateAccount), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default___ns6__CreateAccount(soap, a); for (soap_flag = 0;; soap_flag = 1) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ns3__CreateAccount && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTo_ns3__CreateAccount(soap, "ns3:CreateAccount", &a->ns3__CreateAccount, "")) { soap_flag_ns3__CreateAccount--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_flag) { soap->error = SOAP_OK; break; } if (soap_flag && soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns6__CreateAccount(struct soap *soap, const struct __ns6__CreateAccount *a, const char *tag, const char *type) { register int id = 0; if (soap_out___ns6__CreateAccount(soap, tag?tag:"-ns6:CreateAccount", id, a, type)) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns6__CreateAccount * SOAP_FMAC4 soap_get___ns6__CreateAccount(struct soap *soap, struct __ns6__CreateAccount *p, const char *tag, const char *type) { if ((p = soap_in___ns6__CreateAccount(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct __ns6__CreateAccount * SOAP_FMAC2 soap_instantiate___ns6__CreateAccount(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns6__CreateAccount(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___ns6__CreateAccount, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct __ns6__CreateAccount); if (size) *size = sizeof(struct __ns6__CreateAccount); } else { cp->ptr = (void*)SOAP_NEW(struct __ns6__CreateAccount[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct __ns6__CreateAccount); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct __ns6__CreateAccount*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns6__CreateAccount(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns6__CreateAccount %p -> %p\n", q, p)); *(struct __ns6__CreateAccount*)p = *(struct __ns6__CreateAccount*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns6__Authenticate(struct soap *soap, struct __ns6__Authenticate *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ns3__Authenticate = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns6__Authenticate(struct soap *soap, const struct __ns6__Authenticate *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerTo_ns3__Authenticate(soap, &a->ns3__Authenticate); } SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns6__Authenticate(struct soap *soap, const char *tag, int id, const struct __ns6__Authenticate *a, const char *type) { if (soap_out_PointerTo_ns3__Authenticate(soap, "ns3:Authenticate", -1, &a->ns3__Authenticate, "")) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns6__Authenticate * SOAP_FMAC4 soap_in___ns6__Authenticate(struct soap *soap, const char *tag, struct __ns6__Authenticate *a, const char *type) { size_t soap_flag_ns3__Authenticate = 1; short soap_flag; a = (struct __ns6__Authenticate *)soap_id_enter(soap, "", a, SOAP_TYPE___ns6__Authenticate, sizeof(struct __ns6__Authenticate), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default___ns6__Authenticate(soap, a); for (soap_flag = 0;; soap_flag = 1) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ns3__Authenticate && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTo_ns3__Authenticate(soap, "ns3:Authenticate", &a->ns3__Authenticate, "")) { soap_flag_ns3__Authenticate--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_flag) { soap->error = SOAP_OK; break; } if (soap_flag && soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns6__Authenticate(struct soap *soap, const struct __ns6__Authenticate *a, const char *tag, const char *type) { register int id = 0; if (soap_out___ns6__Authenticate(soap, tag?tag:"-ns6:Authenticate", id, a, type)) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns6__Authenticate * SOAP_FMAC4 soap_get___ns6__Authenticate(struct soap *soap, struct __ns6__Authenticate *p, const char *tag, const char *type) { if ((p = soap_in___ns6__Authenticate(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct __ns6__Authenticate * SOAP_FMAC2 soap_instantiate___ns6__Authenticate(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns6__Authenticate(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___ns6__Authenticate, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct __ns6__Authenticate); if (size) *size = sizeof(struct __ns6__Authenticate); } else { cp->ptr = (void*)SOAP_NEW(struct __ns6__Authenticate[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct __ns6__Authenticate); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct __ns6__Authenticate*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns6__Authenticate(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns6__Authenticate %p -> %p\n", q, p)); *(struct __ns6__Authenticate*)p = *(struct __ns6__Authenticate*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns5__CreateAccount(struct soap *soap, struct __ns5__CreateAccount *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ns3__CreateAccount = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns5__CreateAccount(struct soap *soap, const struct __ns5__CreateAccount *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerTo_ns3__CreateAccount(soap, &a->ns3__CreateAccount); } SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns5__CreateAccount(struct soap *soap, const char *tag, int id, const struct __ns5__CreateAccount *a, const char *type) { if (soap_out_PointerTo_ns3__CreateAccount(soap, "ns3:CreateAccount", -1, &a->ns3__CreateAccount, "")) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns5__CreateAccount * SOAP_FMAC4 soap_in___ns5__CreateAccount(struct soap *soap, const char *tag, struct __ns5__CreateAccount *a, const char *type) { size_t soap_flag_ns3__CreateAccount = 1; short soap_flag; a = (struct __ns5__CreateAccount *)soap_id_enter(soap, "", a, SOAP_TYPE___ns5__CreateAccount, sizeof(struct __ns5__CreateAccount), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default___ns5__CreateAccount(soap, a); for (soap_flag = 0;; soap_flag = 1) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ns3__CreateAccount && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTo_ns3__CreateAccount(soap, "ns3:CreateAccount", &a->ns3__CreateAccount, "")) { soap_flag_ns3__CreateAccount--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_flag) { soap->error = SOAP_OK; break; } if (soap_flag && soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns5__CreateAccount(struct soap *soap, const struct __ns5__CreateAccount *a, const char *tag, const char *type) { register int id = 0; if (soap_out___ns5__CreateAccount(soap, tag?tag:"-ns5:CreateAccount", id, a, type)) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns5__CreateAccount * SOAP_FMAC4 soap_get___ns5__CreateAccount(struct soap *soap, struct __ns5__CreateAccount *p, const char *tag, const char *type) { if ((p = soap_in___ns5__CreateAccount(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct __ns5__CreateAccount * SOAP_FMAC2 soap_instantiate___ns5__CreateAccount(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns5__CreateAccount(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___ns5__CreateAccount, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct __ns5__CreateAccount); if (size) *size = sizeof(struct __ns5__CreateAccount); } else { cp->ptr = (void*)SOAP_NEW(struct __ns5__CreateAccount[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct __ns5__CreateAccount); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct __ns5__CreateAccount*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns5__CreateAccount(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns5__CreateAccount %p -> %p\n", q, p)); *(struct __ns5__CreateAccount*)p = *(struct __ns5__CreateAccount*)q; } SOAP_FMAC3 void SOAP_FMAC4 soap_default___ns5__Authenticate(struct soap *soap, struct __ns5__Authenticate *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ns3__Authenticate = NULL; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize___ns5__Authenticate(struct soap *soap, const struct __ns5__Authenticate *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerTo_ns3__Authenticate(soap, &a->ns3__Authenticate); } SOAP_FMAC3 int SOAP_FMAC4 soap_out___ns5__Authenticate(struct soap *soap, const char *tag, int id, const struct __ns5__Authenticate *a, const char *type) { if (soap_out_PointerTo_ns3__Authenticate(soap, "ns3:Authenticate", -1, &a->ns3__Authenticate, "")) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns5__Authenticate * SOAP_FMAC4 soap_in___ns5__Authenticate(struct soap *soap, const char *tag, struct __ns5__Authenticate *a, const char *type) { size_t soap_flag_ns3__Authenticate = 1; short soap_flag; a = (struct __ns5__Authenticate *)soap_id_enter(soap, "", a, SOAP_TYPE___ns5__Authenticate, sizeof(struct __ns5__Authenticate), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default___ns5__Authenticate(soap, a); for (soap_flag = 0;; soap_flag = 1) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ns3__Authenticate && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerTo_ns3__Authenticate(soap, "ns3:Authenticate", &a->ns3__Authenticate, "")) { soap_flag_ns3__Authenticate--; continue; } if (soap->error == SOAP_TAG_MISMATCH) if (soap_flag) { soap->error = SOAP_OK; break; } if (soap_flag && soap->error == SOAP_NO_TAG) break; if (soap->error) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put___ns5__Authenticate(struct soap *soap, const struct __ns5__Authenticate *a, const char *tag, const char *type) { register int id = 0; if (soap_out___ns5__Authenticate(soap, tag?tag:"-ns5:Authenticate", id, a, type)) return soap->error; return SOAP_OK; } SOAP_FMAC3 struct __ns5__Authenticate * SOAP_FMAC4 soap_get___ns5__Authenticate(struct soap *soap, struct __ns5__Authenticate *p, const char *tag, const char *type) { if ((p = soap_in___ns5__Authenticate(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC1 struct __ns5__Authenticate * SOAP_FMAC2 soap_instantiate___ns5__Authenticate(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size) { (void)type; (void)arrayType; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate___ns5__Authenticate(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:"")); struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE___ns5__Authenticate, n, soap_fdelete); if (!cp) return NULL; if (n < 0) { cp->ptr = (void*)SOAP_NEW(struct __ns5__Authenticate); if (size) *size = sizeof(struct __ns5__Authenticate); } else { cp->ptr = (void*)SOAP_NEW(struct __ns5__Authenticate[n]); if (!cp->ptr) { soap->error = SOAP_EOM; return NULL; } if (size) *size = n * sizeof(struct __ns5__Authenticate); } DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr)); return (struct __ns5__Authenticate*)cp->ptr; } SOAP_FMAC3 void SOAP_FMAC4 soap_copy___ns5__Authenticate(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n) { (void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */ DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct __ns5__Authenticate %p -> %p\n", q, p)); *(struct __ns5__Authenticate*)p = *(struct __ns5__Authenticate*)q; } #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Reason)) soap_serialize_SOAP_ENV__Reason(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Reason *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Reason); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Reason); if (soap_out_PointerToSOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Detail)) soap_serialize_SOAP_ENV__Detail(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Detail *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Detail); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Detail); if (soap_out_PointerToSOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } #endif #ifndef WITH_NOGLOBAL SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Code)) soap_serialize_SOAP_ENV__Code(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Code *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Code); if (id < 0) return soap->error; return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type); } SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type))) return NULL; } else { a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Code); if (soap_out_PointerToSOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code **p, const char *tag, const char *type) { if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_ns3__CreateAccountResponse(struct soap *soap, _ns3__CreateAccountResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__ns3__CreateAccountResponse)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_ns3__CreateAccountResponse(struct soap *soap, const char *tag, int id, _ns3__CreateAccountResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__ns3__CreateAccountResponse); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _ns3__CreateAccountResponse ** SOAP_FMAC4 soap_in_PointerTo_ns3__CreateAccountResponse(struct soap *soap, const char *tag, _ns3__CreateAccountResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_ns3__CreateAccountResponse **)soap_malloc(soap, sizeof(_ns3__CreateAccountResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_ns3__CreateAccountResponse *)soap_instantiate__ns3__CreateAccountResponse(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { _ns3__CreateAccountResponse ** p = (_ns3__CreateAccountResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__ns3__CreateAccountResponse, sizeof(_ns3__CreateAccountResponse), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_ns3__CreateAccountResponse(struct soap *soap, _ns3__CreateAccountResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_ns3__CreateAccountResponse); if (soap_out_PointerTo_ns3__CreateAccountResponse(soap, tag?tag:"ns3:CreateAccountResponse", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 _ns3__CreateAccountResponse ** SOAP_FMAC4 soap_get_PointerTo_ns3__CreateAccountResponse(struct soap *soap, _ns3__CreateAccountResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_ns3__CreateAccountResponse(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_ns3__CreateAccount(struct soap *soap, _ns3__CreateAccount *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__ns3__CreateAccount)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_ns3__CreateAccount(struct soap *soap, const char *tag, int id, _ns3__CreateAccount *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__ns3__CreateAccount); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _ns3__CreateAccount ** SOAP_FMAC4 soap_in_PointerTo_ns3__CreateAccount(struct soap *soap, const char *tag, _ns3__CreateAccount **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_ns3__CreateAccount **)soap_malloc(soap, sizeof(_ns3__CreateAccount *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_ns3__CreateAccount *)soap_instantiate__ns3__CreateAccount(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { _ns3__CreateAccount ** p = (_ns3__CreateAccount **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__ns3__CreateAccount, sizeof(_ns3__CreateAccount), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_ns3__CreateAccount(struct soap *soap, _ns3__CreateAccount *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_ns3__CreateAccount); if (soap_out_PointerTo_ns3__CreateAccount(soap, tag?tag:"ns3:CreateAccount", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 _ns3__CreateAccount ** SOAP_FMAC4 soap_get_PointerTo_ns3__CreateAccount(struct soap *soap, _ns3__CreateAccount **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_ns3__CreateAccount(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_ns3__AuthenticateResponse(struct soap *soap, _ns3__AuthenticateResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__ns3__AuthenticateResponse)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_ns3__AuthenticateResponse(struct soap *soap, const char *tag, int id, _ns3__AuthenticateResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__ns3__AuthenticateResponse); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _ns3__AuthenticateResponse ** SOAP_FMAC4 soap_in_PointerTo_ns3__AuthenticateResponse(struct soap *soap, const char *tag, _ns3__AuthenticateResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_ns3__AuthenticateResponse **)soap_malloc(soap, sizeof(_ns3__AuthenticateResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_ns3__AuthenticateResponse *)soap_instantiate__ns3__AuthenticateResponse(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { _ns3__AuthenticateResponse ** p = (_ns3__AuthenticateResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__ns3__AuthenticateResponse, sizeof(_ns3__AuthenticateResponse), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_ns3__AuthenticateResponse(struct soap *soap, _ns3__AuthenticateResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_ns3__AuthenticateResponse); if (soap_out_PointerTo_ns3__AuthenticateResponse(soap, tag?tag:"ns3:AuthenticateResponse", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 _ns3__AuthenticateResponse ** SOAP_FMAC4 soap_get_PointerTo_ns3__AuthenticateResponse(struct soap *soap, _ns3__AuthenticateResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_ns3__AuthenticateResponse(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTo_ns3__Authenticate(struct soap *soap, _ns3__Authenticate *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE__ns3__Authenticate)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTo_ns3__Authenticate(struct soap *soap, const char *tag, int id, _ns3__Authenticate *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE__ns3__Authenticate); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 _ns3__Authenticate ** SOAP_FMAC4 soap_in_PointerTo_ns3__Authenticate(struct soap *soap, const char *tag, _ns3__Authenticate **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (_ns3__Authenticate **)soap_malloc(soap, sizeof(_ns3__Authenticate *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (_ns3__Authenticate *)soap_instantiate__ns3__Authenticate(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { _ns3__Authenticate ** p = (_ns3__Authenticate **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE__ns3__Authenticate, sizeof(_ns3__Authenticate), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTo_ns3__Authenticate(struct soap *soap, _ns3__Authenticate *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTo_ns3__Authenticate); if (soap_out_PointerTo_ns3__Authenticate(soap, tag?tag:"ns3:Authenticate", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 _ns3__Authenticate ** SOAP_FMAC4 soap_get_PointerTo_ns3__Authenticate(struct soap *soap, _ns3__Authenticate **p, const char *tag, const char *type) { if ((p = soap_in_PointerTo_ns3__Authenticate(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons3__CreationResult(struct soap *soap, ns3__CreationResult *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns3__CreationResult)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons3__CreationResult(struct soap *soap, const char *tag, int id, ns3__CreationResult *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns3__CreationResult); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 ns3__CreationResult ** SOAP_FMAC4 soap_in_PointerTons3__CreationResult(struct soap *soap, const char *tag, ns3__CreationResult **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (ns3__CreationResult **)soap_malloc(soap, sizeof(ns3__CreationResult *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (ns3__CreationResult *)soap_instantiate_ns3__CreationResult(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { ns3__CreationResult ** p = (ns3__CreationResult **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns3__CreationResult, sizeof(ns3__CreationResult), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons3__CreationResult(struct soap *soap, ns3__CreationResult *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons3__CreationResult); if (soap_out_PointerTons3__CreationResult(soap, tag?tag:"ns3:CreationResult", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 ns3__CreationResult ** SOAP_FMAC4 soap_get_PointerTons3__CreationResult(struct soap *soap, ns3__CreationResult **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons3__CreationResult(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons3__AccountInfo(struct soap *soap, ns3__AccountInfo *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns3__AccountInfo)) (*a)->soap_serialize(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons3__AccountInfo(struct soap *soap, const char *tag, int id, ns3__AccountInfo *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns3__AccountInfo); if (id < 0) return soap->error; return (*a)->soap_out(soap, tag, id, type); } SOAP_FMAC3 ns3__AccountInfo ** SOAP_FMAC4 soap_in_PointerTons3__AccountInfo(struct soap *soap, const char *tag, ns3__AccountInfo **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (ns3__AccountInfo **)soap_malloc(soap, sizeof(ns3__AccountInfo *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = (ns3__AccountInfo *)soap_instantiate_ns3__AccountInfo(soap, -1, soap->type, soap->arrayType, NULL))) return NULL; (*a)->soap_default(soap); if (!(*a)->soap_in(soap, tag, NULL)) return NULL; } else { ns3__AccountInfo ** p = (ns3__AccountInfo **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns3__AccountInfo, sizeof(ns3__AccountInfo), 0); a = p; if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons3__AccountInfo(struct soap *soap, ns3__AccountInfo *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons3__AccountInfo); if (soap_out_PointerTons3__AccountInfo(soap, tag?tag:"ns3:AccountInfo", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 ns3__AccountInfo ** SOAP_FMAC4 soap_get_PointerTons3__AccountInfo(struct soap *soap, ns3__AccountInfo **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons3__AccountInfo(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToint(struct soap *soap, int *const*a) { soap_reference(soap, *a, SOAP_TYPE_int); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToint(struct soap *soap, const char *tag, int id, int *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_int); if (id < 0) return soap->error; return soap_out_int(soap, tag, id, *a, type); } SOAP_FMAC3 int ** SOAP_FMAC4 soap_in_PointerToint(struct soap *soap, const char *tag, int **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (int **)soap_malloc(soap, sizeof(int *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_int(soap, tag, *a, type))) return NULL; } else { a = (int **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_int, sizeof(int), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToint(struct soap *soap, int *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToint); if (soap_out_PointerToint(soap, tag?tag:"int", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int ** SOAP_FMAC4 soap_get_PointerToint(struct soap *soap, int **p, const char *tag, const char *type) { if ((p = soap_in_PointerToint(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTostd__string(struct soap *soap, std::string *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_std__string)) soap_serialize_std__string(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTostd__string(struct soap *soap, const char *tag, int id, std::string *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_std__string); if (id < 0) return soap->error; return soap_out_std__string(soap, tag, id, *a, type); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_in_PointerTostd__string(struct soap *soap, const char *tag, std::string **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (std::string **)soap_malloc(soap, sizeof(std::string *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_std__string(soap, tag, *a, type))) return NULL; } else { a = (std::string **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_std__string, sizeof(std::string), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTostd__string(struct soap *soap, std::string *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTostd__string); if (soap_out_PointerTostd__string(soap, tag?tag:"string", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 std::string ** SOAP_FMAC4 soap_get_PointerTostd__string(struct soap *soap, std::string **p, const char *tag, const char *type) { if ((p = soap_in_PointerTostd__string(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedByte(struct soap *soap, unsigned char *const*a) { soap_reference(soap, *a, SOAP_TYPE_unsignedByte); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTounsignedByte(struct soap *soap, const char *tag, int id, unsigned char *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_unsignedByte); if (id < 0) return soap->error; return soap_out_unsignedByte(soap, tag, id, *a, type); } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_in_PointerTounsignedByte(struct soap *soap, const char *tag, unsigned char **a, const char *type) { if (soap_element_begin_in(soap, tag, 1, NULL)) return NULL; if (!a) if (!(a = (unsigned char **)soap_malloc(soap, sizeof(unsigned char *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_unsignedByte(soap, tag, *a, type))) return NULL; } else { a = (unsigned char **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_unsignedByte, sizeof(unsigned char), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTounsignedByte(struct soap *soap, unsigned char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTounsignedByte); if (soap_out_PointerTounsignedByte(soap, tag?tag:"unsignedByte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 unsigned char ** SOAP_FMAC4 soap_get_PointerTounsignedByte(struct soap *soap, unsigned char **p, const char *tag, const char *type) { if ((p = soap_in_PointerTounsignedByte(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap *soap, const char *tag, int id, char *const*a, const char *type) { return soap_outstring(soap, tag, id, a, type, SOAP_TYPE__QName); } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type) { char **p; p = soap_instring(soap, tag, a, type, SOAP_TYPE__QName, 2, 0, -1); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__QName); if (soap_out__QName(soap, tag?tag:"byte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in__QName(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a) { (void)soap; /* appease -Wall -Werror */ #ifdef SOAP_DEFAULT_string *a = SOAP_DEFAULT_string; #else *a = (char *)0; #endif } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a) { soap_reference(soap, *a, SOAP_TYPE_string); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap *soap, const char *tag, int id, char *const*a, const char *type) { return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_string); } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type) { char **p; p = soap_instring(soap, tag, a, type, SOAP_TYPE_string, 1, 0, -1); return p; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_string); if (soap_out_string(soap, tag?tag:"byte", id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in_string(soap, tag, p, type))) if (soap_getindependent(soap)) return NULL; return p; } #if defined(__BORLANDC__) #pragma option pop #pragma option pop #endif #endif //#if defined (_SG) && !defined(PRE_MOD_SG_WITH_MACADDR) /* End of soapC.cpp */