/* soapC.c Generated by gSOAP 2.7.6c from DataAcquisitionControl.h Copyright (C) 2000-2005, Robert van Engelen, Genivia Inc. All Rights Reserved. This part of the software is released under one of the following licenses: GPL, the gSOAP public license, or Genivia's license for commercial use. */ #include "soapH.h" #ifdef __cplusplus extern "C" { #endif SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.6c 2009-03-16 14:24:27 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; soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL); 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_fault(struct soap *soap) { if (!soap->fault) { soap->fault = (struct SOAP_ENV__Fault*)soap_malloc(soap, sizeof(struct SOAP_ENV__Fault)); soap_default_SOAP_ENV__Fault(soap, soap->fault); } if (soap->version == 2 && !soap->fault->SOAP_ENV__Code) { soap->fault->SOAP_ENV__Code = (struct SOAP_ENV__Code*)soap_malloc(soap, sizeof(struct SOAP_ENV__Code)); 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 = (struct SOAP_ENV__Reason*)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason)); soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason); } } SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *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 = (struct SOAP_ENV__Code*)soap_malloc(soap, sizeof(struct SOAP_ENV__Code)); 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 = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail)); 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; 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 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_byte: return soap_in_byte(soap, NULL, NULL, "xsd:byte"); case SOAP_TYPE_int: return soap_in_int(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_SOAP_ENV__Reason: return soap_in_SOAP_ENV__Reason(soap, NULL, NULL, "SOAP-ENV:Reason"); case SOAP_TYPE_ns2__GetRates: return soap_in_ns2__GetRates(soap, NULL, NULL, "ns2:GetRates"); case SOAP_TYPE_ns2__GetRatesResponse: return soap_in_ns2__GetRatesResponse(soap, NULL, NULL, "ns2:GetRatesResponse"); case SOAP_TYPE_ns2__GetCounters: return soap_in_ns2__GetCounters(soap, NULL, NULL, "ns2:GetCounters"); case SOAP_TYPE_ns2__GetCountersResponse: return soap_in_ns2__GetCountersResponse(soap, NULL, NULL, "ns2:GetCountersResponse"); case SOAP_TYPE_ns2__DoGo: return soap_in_ns2__DoGo(soap, NULL, NULL, "ns2:DoGo"); case SOAP_TYPE_ns2__DoGoResponse: return soap_in_ns2__DoGoResponse(soap, NULL, NULL, "ns2:DoGoResponse"); case SOAP_TYPE_ns2__DoStop: return soap_in_ns2__DoStop(soap, NULL, NULL, "ns2:DoStop"); case SOAP_TYPE_ns2__DoStopResponse: return soap_in_ns2__DoStopResponse(soap, NULL, NULL, "ns2:DoStopResponse"); case SOAP_TYPE_ns2__DoOption: return soap_in_ns2__DoOption(soap, NULL, NULL, "ns2:DoOption"); case SOAP_TYPE_ns2__DoOptionResponse: return soap_in_ns2__DoOptionResponse(soap, NULL, NULL, "ns2:DoOptionResponse"); case SOAP_TYPE_ns2__DoSetUp: return soap_in_ns2__DoSetUp(soap, NULL, NULL, "ns2:DoSetUp"); case SOAP_TYPE_ns2__DoSetUpResponse: return soap_in_ns2__DoSetUpResponse(soap, NULL, NULL, "ns2:DoSetUpResponse"); case SOAP_TYPE_ns2__DoReset: return soap_in_ns2__DoReset(soap, NULL, NULL, "ns2:DoReset"); case SOAP_TYPE_ns2__DoResetResponse: return soap_in_ns2__DoResetResponse(soap, NULL, NULL, "ns2:DoResetResponse"); case SOAP_TYPE_ns2__GetInformation: return soap_in_ns2__GetInformation(soap, NULL, NULL, "ns2:GetInformation"); case SOAP_TYPE_ns2__GetInformationResponse: return soap_in_ns2__GetInformationResponse(soap, NULL, NULL, "ns2:GetInformationResponse"); case SOAP_TYPE_ns2__GetLastError: return soap_in_ns2__GetLastError(soap, NULL, NULL, "ns2:GetLastError"); case SOAP_TYPE_ns2__GetLastErrorResponse: return soap_in_ns2__GetLastErrorResponse(soap, NULL, NULL, "ns2:GetLastErrorResponse"); case SOAP_TYPE_ns2__GetOption: return soap_in_ns2__GetOption(soap, NULL, NULL, "ns2:GetOption"); case SOAP_TYPE_ns2__GetOptionResponse: return soap_in_ns2__GetOptionResponse(soap, NULL, NULL, "ns2:GetOptionResponse"); case SOAP_TYPE_ns2__GetState: return soap_in_ns2__GetState(soap, NULL, NULL, "ns2:GetState"); case SOAP_TYPE_ns2__GetStateResponse: return soap_in_ns2__GetStateResponse(soap, NULL, NULL, "ns2:GetStateResponse"); case SOAP_TYPE_PointerToSOAP_ENV__Reason: return soap_in_PointerToSOAP_ENV__Reason(soap, NULL, NULL, "SOAP-ENV:Reason"); case SOAP_TYPE_PointerTons2__GetRatesResponse: return soap_in_PointerTons2__GetRatesResponse(soap, NULL, NULL, "ns2:GetRatesResponse"); case SOAP_TYPE_PointerTons2__GetCountersResponse: return soap_in_PointerTons2__GetCountersResponse(soap, NULL, NULL, "ns2:GetCountersResponse"); case SOAP_TYPE_PointerToint: return soap_in_PointerToint(soap, NULL, NULL, "xsd:int"); case SOAP_TYPE_PointerTons2__GetInformationResponse: return soap_in_PointerTons2__GetInformationResponse(soap, NULL, NULL, "ns2:GetInformationResponse"); case SOAP_TYPE_PointerTons2__GetLastErrorResponse: return soap_in_PointerTons2__GetLastErrorResponse(soap, NULL, NULL, "ns2:GetLastErrorResponse"); case SOAP_TYPE_PointerTons2__GetOptionResponse: return soap_in_PointerTons2__GetOptionResponse(soap, NULL, NULL, "ns2:GetOptionResponse"); case SOAP_TYPE_PointerTons2__GetStateResponse: return soap_in_PointerTons2__GetStateResponse(soap, NULL, NULL, "ns2:GetStateResponse"); case SOAP_TYPE__QName: { char **s; s = soap_in__QName(soap, NULL, NULL, "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, "xsd:byte")) { *type = SOAP_TYPE_byte; return soap_in_byte(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, "SOAP-ENV:Reason")) { *type = SOAP_TYPE_SOAP_ENV__Reason; return soap_in_SOAP_ENV__Reason(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetRates")) { *type = SOAP_TYPE_ns2__GetRates; return soap_in_ns2__GetRates(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetRatesResponse")) { *type = SOAP_TYPE_ns2__GetRatesResponse; return soap_in_ns2__GetRatesResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetCounters")) { *type = SOAP_TYPE_ns2__GetCounters; return soap_in_ns2__GetCounters(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetCountersResponse")) { *type = SOAP_TYPE_ns2__GetCountersResponse; return soap_in_ns2__GetCountersResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoGo")) { *type = SOAP_TYPE_ns2__DoGo; return soap_in_ns2__DoGo(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoGoResponse")) { *type = SOAP_TYPE_ns2__DoGoResponse; return soap_in_ns2__DoGoResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoStop")) { *type = SOAP_TYPE_ns2__DoStop; return soap_in_ns2__DoStop(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoStopResponse")) { *type = SOAP_TYPE_ns2__DoStopResponse; return soap_in_ns2__DoStopResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoOption")) { *type = SOAP_TYPE_ns2__DoOption; return soap_in_ns2__DoOption(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoOptionResponse")) { *type = SOAP_TYPE_ns2__DoOptionResponse; return soap_in_ns2__DoOptionResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoSetUp")) { *type = SOAP_TYPE_ns2__DoSetUp; return soap_in_ns2__DoSetUp(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoSetUpResponse")) { *type = SOAP_TYPE_ns2__DoSetUpResponse; return soap_in_ns2__DoSetUpResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoReset")) { *type = SOAP_TYPE_ns2__DoReset; return soap_in_ns2__DoReset(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:DoResetResponse")) { *type = SOAP_TYPE_ns2__DoResetResponse; return soap_in_ns2__DoResetResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetInformation")) { *type = SOAP_TYPE_ns2__GetInformation; return soap_in_ns2__GetInformation(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetInformationResponse")) { *type = SOAP_TYPE_ns2__GetInformationResponse; return soap_in_ns2__GetInformationResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetLastError")) { *type = SOAP_TYPE_ns2__GetLastError; return soap_in_ns2__GetLastError(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetLastErrorResponse")) { *type = SOAP_TYPE_ns2__GetLastErrorResponse; return soap_in_ns2__GetLastErrorResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetOption")) { *type = SOAP_TYPE_ns2__GetOption; return soap_in_ns2__GetOption(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetOptionResponse")) { *type = SOAP_TYPE_ns2__GetOptionResponse; return soap_in_ns2__GetOptionResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetState")) { *type = SOAP_TYPE_ns2__GetState; return soap_in_ns2__GetState(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "ns2:GetStateResponse")) { *type = SOAP_TYPE_ns2__GetStateResponse; return soap_in_ns2__GetStateResponse(soap, NULL, NULL, NULL); } if (!soap_match_tag(soap, t, "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; } } } soap->error = SOAP_TAG_MISMATCH; return NULL; } #endif SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap) { if (!soap_peek_element(soap)) { int t; 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:")) return soap->error = SOAP_TAG_MISMATCH; if (!*soap->id || !soap_getelement(soap, &t)) { soap->peeked = 0; DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unknown element '%s' (level=%u, %d)\n", soap->tag, soap->level, soap->body)); 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 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_byte: return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte"); case SOAP_TYPE_int: return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); case SOAP_TYPE_SOAP_ENV__Reason: return soap_out_SOAP_ENV__Reason(soap, tag, id, (const struct SOAP_ENV__Reason *)ptr, "SOAP-ENV:Reason"); case SOAP_TYPE_ns2__GetRates: return soap_out_ns2__GetRates(soap, tag, id, (const struct ns2__GetRates *)ptr, "ns2:GetRates"); case SOAP_TYPE_ns2__GetRatesResponse: return soap_out_ns2__GetRatesResponse(soap, tag, id, (const struct ns2__GetRatesResponse *)ptr, "ns2:GetRatesResponse"); case SOAP_TYPE_ns2__GetCounters: return soap_out_ns2__GetCounters(soap, tag, id, (const struct ns2__GetCounters *)ptr, "ns2:GetCounters"); case SOAP_TYPE_ns2__GetCountersResponse: return soap_out_ns2__GetCountersResponse(soap, tag, id, (const struct ns2__GetCountersResponse *)ptr, "ns2:GetCountersResponse"); case SOAP_TYPE_ns2__DoGo: return soap_out_ns2__DoGo(soap, tag, id, (const struct ns2__DoGo *)ptr, "ns2:DoGo"); case SOAP_TYPE_ns2__DoGoResponse: return soap_out_ns2__DoGoResponse(soap, tag, id, (const struct ns2__DoGoResponse *)ptr, "ns2:DoGoResponse"); case SOAP_TYPE_ns2__DoStop: return soap_out_ns2__DoStop(soap, tag, id, (const struct ns2__DoStop *)ptr, "ns2:DoStop"); case SOAP_TYPE_ns2__DoStopResponse: return soap_out_ns2__DoStopResponse(soap, tag, id, (const struct ns2__DoStopResponse *)ptr, "ns2:DoStopResponse"); case SOAP_TYPE_ns2__DoOption: return soap_out_ns2__DoOption(soap, tag, id, (const struct ns2__DoOption *)ptr, "ns2:DoOption"); case SOAP_TYPE_ns2__DoOptionResponse: return soap_out_ns2__DoOptionResponse(soap, tag, id, (const struct ns2__DoOptionResponse *)ptr, "ns2:DoOptionResponse"); case SOAP_TYPE_ns2__DoSetUp: return soap_out_ns2__DoSetUp(soap, tag, id, (const struct ns2__DoSetUp *)ptr, "ns2:DoSetUp"); case SOAP_TYPE_ns2__DoSetUpResponse: return soap_out_ns2__DoSetUpResponse(soap, tag, id, (const struct ns2__DoSetUpResponse *)ptr, "ns2:DoSetUpResponse"); case SOAP_TYPE_ns2__DoReset: return soap_out_ns2__DoReset(soap, tag, id, (const struct ns2__DoReset *)ptr, "ns2:DoReset"); case SOAP_TYPE_ns2__DoResetResponse: return soap_out_ns2__DoResetResponse(soap, tag, id, (const struct ns2__DoResetResponse *)ptr, "ns2:DoResetResponse"); case SOAP_TYPE_ns2__GetInformation: return soap_out_ns2__GetInformation(soap, tag, id, (const struct ns2__GetInformation *)ptr, "ns2:GetInformation"); case SOAP_TYPE_ns2__GetInformationResponse: return soap_out_ns2__GetInformationResponse(soap, tag, id, (const struct ns2__GetInformationResponse *)ptr, "ns2:GetInformationResponse"); case SOAP_TYPE_ns2__GetLastError: return soap_out_ns2__GetLastError(soap, tag, id, (const struct ns2__GetLastError *)ptr, "ns2:GetLastError"); case SOAP_TYPE_ns2__GetLastErrorResponse: return soap_out_ns2__GetLastErrorResponse(soap, tag, id, (const struct ns2__GetLastErrorResponse *)ptr, "ns2:GetLastErrorResponse"); case SOAP_TYPE_ns2__GetOption: return soap_out_ns2__GetOption(soap, tag, id, (const struct ns2__GetOption *)ptr, "ns2:GetOption"); case SOAP_TYPE_ns2__GetOptionResponse: return soap_out_ns2__GetOptionResponse(soap, tag, id, (const struct ns2__GetOptionResponse *)ptr, "ns2:GetOptionResponse"); case SOAP_TYPE_ns2__GetState: return soap_out_ns2__GetState(soap, tag, id, (const struct ns2__GetState *)ptr, "ns2:GetState"); case SOAP_TYPE_ns2__GetStateResponse: return soap_out_ns2__GetStateResponse(soap, tag, id, (const struct ns2__GetStateResponse *)ptr, "ns2:GetStateResponse"); case SOAP_TYPE_PointerToSOAP_ENV__Reason: return soap_out_PointerToSOAP_ENV__Reason(soap, tag, id, (struct SOAP_ENV__Reason *const*)ptr, "SOAP-ENV:Reason"); case SOAP_TYPE_PointerTons2__GetRatesResponse: return soap_out_PointerTons2__GetRatesResponse(soap, tag, id, (struct ns2__GetRatesResponse *const*)ptr, "ns2:GetRatesResponse"); case SOAP_TYPE_PointerTons2__GetCountersResponse: return soap_out_PointerTons2__GetCountersResponse(soap, tag, id, (struct ns2__GetCountersResponse *const*)ptr, "ns2:GetCountersResponse"); case SOAP_TYPE_PointerToint: return soap_out_PointerToint(soap, tag, id, (int *const*)ptr, "xsd:int"); case SOAP_TYPE_PointerTons2__GetInformationResponse: return soap_out_PointerTons2__GetInformationResponse(soap, tag, id, (struct ns2__GetInformationResponse *const*)ptr, "ns2:GetInformationResponse"); case SOAP_TYPE_PointerTons2__GetLastErrorResponse: return soap_out_PointerTons2__GetLastErrorResponse(soap, tag, id, (struct ns2__GetLastErrorResponse *const*)ptr, "ns2:GetLastErrorResponse"); case SOAP_TYPE_PointerTons2__GetOptionResponse: return soap_out_PointerTons2__GetOptionResponse(soap, tag, id, (struct ns2__GetOptionResponse *const*)ptr, "ns2:GetOptionResponse"); case SOAP_TYPE_PointerTons2__GetStateResponse: return soap_out_PointerTons2__GetStateResponse(soap, tag, id, (struct ns2__GetStateResponse *const*)ptr, "ns2:GetStateResponse"); case SOAP_TYPE__QName: return soap_out_string(soap, "QName", id, (char**)&ptr, NULL); case SOAP_TYPE_string: return soap_out_string(soap, tag, id, (char**)&ptr, "xsd:string"); } return SOAP_OK; } #endif #ifndef WITH_NOIDREF 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_SOAP_ENV__Reason: soap_serialize_SOAP_ENV__Reason(soap, (const struct SOAP_ENV__Reason *)ptr); break; case SOAP_TYPE_ns2__GetRates: soap_serialize_ns2__GetRates(soap, (const struct ns2__GetRates *)ptr); break; case SOAP_TYPE_ns2__GetRatesResponse: soap_serialize_ns2__GetRatesResponse(soap, (const struct ns2__GetRatesResponse *)ptr); break; case SOAP_TYPE_ns2__GetCounters: soap_serialize_ns2__GetCounters(soap, (const struct ns2__GetCounters *)ptr); break; case SOAP_TYPE_ns2__GetCountersResponse: soap_serialize_ns2__GetCountersResponse(soap, (const struct ns2__GetCountersResponse *)ptr); break; case SOAP_TYPE_ns2__DoGo: soap_serialize_ns2__DoGo(soap, (const struct ns2__DoGo *)ptr); break; case SOAP_TYPE_ns2__DoGoResponse: soap_serialize_ns2__DoGoResponse(soap, (const struct ns2__DoGoResponse *)ptr); break; case SOAP_TYPE_ns2__DoStop: soap_serialize_ns2__DoStop(soap, (const struct ns2__DoStop *)ptr); break; case SOAP_TYPE_ns2__DoStopResponse: soap_serialize_ns2__DoStopResponse(soap, (const struct ns2__DoStopResponse *)ptr); break; case SOAP_TYPE_ns2__DoOption: soap_serialize_ns2__DoOption(soap, (const struct ns2__DoOption *)ptr); break; case SOAP_TYPE_ns2__DoOptionResponse: soap_serialize_ns2__DoOptionResponse(soap, (const struct ns2__DoOptionResponse *)ptr); break; case SOAP_TYPE_ns2__DoSetUp: soap_serialize_ns2__DoSetUp(soap, (const struct ns2__DoSetUp *)ptr); break; case SOAP_TYPE_ns2__DoSetUpResponse: soap_serialize_ns2__DoSetUpResponse(soap, (const struct ns2__DoSetUpResponse *)ptr); break; case SOAP_TYPE_ns2__DoReset: soap_serialize_ns2__DoReset(soap, (const struct ns2__DoReset *)ptr); break; case SOAP_TYPE_ns2__DoResetResponse: soap_serialize_ns2__DoResetResponse(soap, (const struct ns2__DoResetResponse *)ptr); break; case SOAP_TYPE_ns2__GetInformation: soap_serialize_ns2__GetInformation(soap, (const struct ns2__GetInformation *)ptr); break; case SOAP_TYPE_ns2__GetInformationResponse: soap_serialize_ns2__GetInformationResponse(soap, (const struct ns2__GetInformationResponse *)ptr); break; case SOAP_TYPE_ns2__GetLastError: soap_serialize_ns2__GetLastError(soap, (const struct ns2__GetLastError *)ptr); break; case SOAP_TYPE_ns2__GetLastErrorResponse: soap_serialize_ns2__GetLastErrorResponse(soap, (const struct ns2__GetLastErrorResponse *)ptr); break; case SOAP_TYPE_ns2__GetOption: soap_serialize_ns2__GetOption(soap, (const struct ns2__GetOption *)ptr); break; case SOAP_TYPE_ns2__GetOptionResponse: soap_serialize_ns2__GetOptionResponse(soap, (const struct ns2__GetOptionResponse *)ptr); break; case SOAP_TYPE_ns2__GetState: soap_serialize_ns2__GetState(soap, (const struct ns2__GetState *)ptr); break; case SOAP_TYPE_ns2__GetStateResponse: soap_serialize_ns2__GetStateResponse(soap, (const struct ns2__GetStateResponse *)ptr); break; case SOAP_TYPE_PointerToSOAP_ENV__Reason: soap_serialize_PointerToSOAP_ENV__Reason(soap, (struct SOAP_ENV__Reason *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetRatesResponse: soap_serialize_PointerTons2__GetRatesResponse(soap, (struct ns2__GetRatesResponse *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetCountersResponse: soap_serialize_PointerTons2__GetCountersResponse(soap, (struct ns2__GetCountersResponse *const*)ptr); break; case SOAP_TYPE_PointerToint: soap_serialize_PointerToint(soap, (int *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetInformationResponse: soap_serialize_PointerTons2__GetInformationResponse(soap, (struct ns2__GetInformationResponse *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetLastErrorResponse: soap_serialize_PointerTons2__GetLastErrorResponse(soap, (struct ns2__GetLastErrorResponse *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetOptionResponse: soap_serialize_PointerTons2__GetOptionResponse(soap, (struct ns2__GetOptionResponse *const*)ptr); break; case SOAP_TYPE_PointerTons2__GetStateResponse: soap_serialize_PointerTons2__GetStateResponse(soap, (struct ns2__GetStateResponse *const*)ptr); break; case SOAP_TYPE__QName: soap_serialize_string(soap, (char**)&ptr); break; case SOAP_TYPE_string: soap_serialize_string(soap, (char**)&ptr); break; } } #endif 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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_get_byte(struct soap *soap, char *p, const char *tag, const char *type) { if ((p = soap_in_byte(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type) { return soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte); } 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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_get_int(struct soap *soap, int *p, const char *tag, const char *type) { if ((p = soap_in_int(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type) { return soap_inint(soap, tag, a, type, SOAP_TYPE_int); } #ifndef WITH_NOGLOBAL 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 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 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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); soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type); soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, ""); soap_out_string(soap, "faultstring", -1, &a->faultstring, "xsd:string"); soap_out_string(soap, "faultactor", -1, &a->faultactor, "xsd:string"); soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, ""); soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, ""); soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, ""); soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, ""); soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, ""); soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, ""); soap_element_end_out(soap, tag); return SOAP_OK; } 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))) soap_getindependent(soap); return p; } 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) { short soap_flag_faultcode = 1, soap_flag_faultstring = 1, soap_flag_faultactor = 1, soap_flag_detail = 1, soap_flag_SOAP_ENV__Code = 1, soap_flag_SOAP_ENV__Reason = 1, soap_flag_SOAP_ENV__Node = 1, soap_flag_SOAP_ENV__Role = 1, soap_flag_SOAP_ENV__Detail = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_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, 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; } #endif 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 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 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type); soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, ""); soap_element_end_out(soap, tag); return SOAP_OK; } 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))) soap_getindependent(soap); return p; } 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) { short soap_flag_SOAP_ENV__Text = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_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, 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; } #ifndef WITH_NOGLOBAL 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 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->__type = 0; a->fault = NULL; a->__any = NULL; } 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type); soap_putelement(soap, a->fault, "fault", -1, a->__type); soap_outliteral(soap, "-any", &a->__any); soap_element_end_out(soap, tag); return SOAP_OK; } 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))) soap_getindependent(soap); return p; } 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) { short soap_flag_fault = 1, soap_flag___any = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_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, 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; } #endif #ifndef WITH_NOGLOBAL 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 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 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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); soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type); soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, ""); soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, ""); soap_element_end_out(soap, tag); return SOAP_OK; } 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))) soap_getindependent(soap); return p; } 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) { short soap_flag_SOAP_ENV__Value = 1, soap_flag_SOAP_ENV__Subcode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_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, 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; } #endif #ifndef WITH_NOGLOBAL 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 */ /* transient dummy skipped */ } 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 */ /* transient dummy skipped */ } 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type); /* transient dummy skipped */ soap_element_end_out(soap, tag); return SOAP_OK; } 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))) soap_getindependent(soap); return p; } 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)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_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; /* transient dummy 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 = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void**)a, 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; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetRates(struct soap *soap, const struct ns2__GetRates *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetRates(struct soap *soap, struct ns2__GetRates *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetRates(struct soap *soap, const struct ns2__GetRates *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetRates); if (soap_out_ns2__GetRates(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetRates(struct soap *soap, const char *tag, int id, const struct ns2__GetRates *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetRates), type); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetRates * SOAP_FMAC4 soap_get_ns2__GetRates(struct soap *soap, struct ns2__GetRates *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetRates(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetRates * SOAP_FMAC4 soap_in_ns2__GetRates(struct soap *soap, const char *tag, struct ns2__GetRates *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetRates *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetRates, sizeof(struct ns2__GetRates), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetRates(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 ns2__GetRates *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetRates, 0, sizeof(struct ns2__GetRates), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetRatesResponse(struct soap *soap, const struct ns2__GetRatesResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_serialize_string(soap, &a->Rates); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetRatesResponse(struct soap *soap, struct ns2__GetRatesResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_string(soap, &a->Rates); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetRatesResponse(struct soap *soap, const struct ns2__GetRatesResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetRatesResponse); if (soap_out_ns2__GetRatesResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetRatesResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetRatesResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetRatesResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_string(soap, "Rates", -1, &a->Rates, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetRatesResponse * SOAP_FMAC4 soap_get_ns2__GetRatesResponse(struct soap *soap, struct ns2__GetRatesResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetRatesResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetRatesResponse * SOAP_FMAC4 soap_in_ns2__GetRatesResponse(struct soap *soap, const char *tag, struct ns2__GetRatesResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Rates = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetRatesResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetRatesResponse, sizeof(struct ns2__GetRatesResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetRatesResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Rates && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Rates", &a->Rates, "xsd:string")) { soap_flag_Rates--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetRatesResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetRatesResponse, 0, sizeof(struct ns2__GetRatesResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetCounters(struct soap *soap, const struct ns2__GetCounters *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetCounters(struct soap *soap, struct ns2__GetCounters *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetCounters(struct soap *soap, const struct ns2__GetCounters *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetCounters); if (soap_out_ns2__GetCounters(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetCounters(struct soap *soap, const char *tag, int id, const struct ns2__GetCounters *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetCounters), type); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetCounters * SOAP_FMAC4 soap_get_ns2__GetCounters(struct soap *soap, struct ns2__GetCounters *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetCounters(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetCounters * SOAP_FMAC4 soap_in_ns2__GetCounters(struct soap *soap, const char *tag, struct ns2__GetCounters *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetCounters *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetCounters, sizeof(struct ns2__GetCounters), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetCounters(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 ns2__GetCounters *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetCounters, 0, sizeof(struct ns2__GetCounters), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetCountersResponse(struct soap *soap, const struct ns2__GetCountersResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_serialize_string(soap, &a->Counters); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetCountersResponse(struct soap *soap, struct ns2__GetCountersResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_string(soap, &a->Counters); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetCountersResponse(struct soap *soap, const struct ns2__GetCountersResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetCountersResponse); if (soap_out_ns2__GetCountersResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetCountersResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetCountersResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetCountersResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_string(soap, "Counters", -1, &a->Counters, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetCountersResponse * SOAP_FMAC4 soap_get_ns2__GetCountersResponse(struct soap *soap, struct ns2__GetCountersResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetCountersResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetCountersResponse * SOAP_FMAC4 soap_in_ns2__GetCountersResponse(struct soap *soap, const char *tag, struct ns2__GetCountersResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Counters = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetCountersResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetCountersResponse, sizeof(struct ns2__GetCountersResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetCountersResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Counters && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Counters", &a->Counters, "xsd:string")) { soap_flag_Counters--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetCountersResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetCountersResponse, 0, sizeof(struct ns2__GetCountersResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoGo(struct soap *soap, const struct ns2__DoGo *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoGo(struct soap *soap, struct ns2__DoGo *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoGo(struct soap *soap, const struct ns2__DoGo *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoGo); if (soap_out_ns2__DoGo(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoGo(struct soap *soap, const char *tag, int id, const struct ns2__DoGo *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoGo), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoGo * SOAP_FMAC4 soap_get_ns2__DoGo(struct soap *soap, struct ns2__DoGo *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoGo(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoGo * SOAP_FMAC4 soap_in_ns2__DoGo(struct soap *soap, const char *tag, struct ns2__DoGo *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoGo *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoGo, sizeof(struct ns2__DoGo), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoGo(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__DoGo *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoGo, 0, sizeof(struct ns2__DoGo), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoGoResponse(struct soap *soap, const struct ns2__DoGoResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &a->ResponseCode); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoGoResponse(struct soap *soap, struct ns2__DoGoResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ResponseCode = NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoGoResponse(struct soap *soap, const struct ns2__DoGoResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoGoResponse); if (soap_out_ns2__DoGoResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoGoResponse(struct soap *soap, const char *tag, int id, const struct ns2__DoGoResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoGoResponse), type); if (a->ResponseCode) soap_element_result(soap, "ResponseCode"); soap_out_PointerToint(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoGoResponse * SOAP_FMAC4 soap_get_ns2__DoGoResponse(struct soap *soap, struct ns2__DoGoResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoGoResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoGoResponse * SOAP_FMAC4 soap_in_ns2__DoGoResponse(struct soap *soap, const char *tag, struct ns2__DoGoResponse *a, const char *type) { short soap_flag_ResponseCode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoGoResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoGoResponse, sizeof(struct ns2__DoGoResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoGoResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; 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 ns2__DoGoResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoGoResponse, 0, sizeof(struct ns2__DoGoResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoStop(struct soap *soap, const struct ns2__DoStop *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoStop(struct soap *soap, struct ns2__DoStop *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoStop(struct soap *soap, const struct ns2__DoStop *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoStop); if (soap_out_ns2__DoStop(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoStop(struct soap *soap, const char *tag, int id, const struct ns2__DoStop *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoStop), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoStop * SOAP_FMAC4 soap_get_ns2__DoStop(struct soap *soap, struct ns2__DoStop *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoStop(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoStop * SOAP_FMAC4 soap_in_ns2__DoStop(struct soap *soap, const char *tag, struct ns2__DoStop *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoStop *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoStop, sizeof(struct ns2__DoStop), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoStop(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__DoStop *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoStop, 0, sizeof(struct ns2__DoStop), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoStopResponse(struct soap *soap, const struct ns2__DoStopResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &a->ResponseCode); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoStopResponse(struct soap *soap, struct ns2__DoStopResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ResponseCode = NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoStopResponse(struct soap *soap, const struct ns2__DoStopResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoStopResponse); if (soap_out_ns2__DoStopResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoStopResponse(struct soap *soap, const char *tag, int id, const struct ns2__DoStopResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoStopResponse), type); if (a->ResponseCode) soap_element_result(soap, "ResponseCode"); soap_out_PointerToint(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoStopResponse * SOAP_FMAC4 soap_get_ns2__DoStopResponse(struct soap *soap, struct ns2__DoStopResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoStopResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoStopResponse * SOAP_FMAC4 soap_in_ns2__DoStopResponse(struct soap *soap, const char *tag, struct ns2__DoStopResponse *a, const char *type) { short soap_flag_ResponseCode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoStopResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoStopResponse, sizeof(struct ns2__DoStopResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoStopResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; 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 ns2__DoStopResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoStopResponse, 0, sizeof(struct ns2__DoStopResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoOption(struct soap *soap, const struct ns2__DoOption *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoOption(struct soap *soap, struct ns2__DoOption *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoOption(struct soap *soap, const struct ns2__DoOption *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoOption); if (soap_out_ns2__DoOption(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoOption(struct soap *soap, const char *tag, int id, const struct ns2__DoOption *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoOption), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoOption * SOAP_FMAC4 soap_get_ns2__DoOption(struct soap *soap, struct ns2__DoOption *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoOption(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoOption * SOAP_FMAC4 soap_in_ns2__DoOption(struct soap *soap, const char *tag, struct ns2__DoOption *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoOption *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoOption, sizeof(struct ns2__DoOption), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoOption(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__DoOption *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoOption, 0, sizeof(struct ns2__DoOption), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoOptionResponse(struct soap *soap, const struct ns2__DoOptionResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &a->ResponseCode); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoOptionResponse(struct soap *soap, struct ns2__DoOptionResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ResponseCode = NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoOptionResponse(struct soap *soap, const struct ns2__DoOptionResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoOptionResponse); if (soap_out_ns2__DoOptionResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoOptionResponse(struct soap *soap, const char *tag, int id, const struct ns2__DoOptionResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoOptionResponse), type); if (a->ResponseCode) soap_element_result(soap, "ResponseCode"); soap_out_PointerToint(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoOptionResponse * SOAP_FMAC4 soap_get_ns2__DoOptionResponse(struct soap *soap, struct ns2__DoOptionResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoOptionResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoOptionResponse * SOAP_FMAC4 soap_in_ns2__DoOptionResponse(struct soap *soap, const char *tag, struct ns2__DoOptionResponse *a, const char *type) { short soap_flag_ResponseCode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoOptionResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoOptionResponse, sizeof(struct ns2__DoOptionResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoOptionResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; 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 ns2__DoOptionResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoOptionResponse, 0, sizeof(struct ns2__DoOptionResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoSetUp(struct soap *soap, const struct ns2__DoSetUp *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoSetUp(struct soap *soap, struct ns2__DoSetUp *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoSetUp(struct soap *soap, const struct ns2__DoSetUp *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoSetUp); if (soap_out_ns2__DoSetUp(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoSetUp(struct soap *soap, const char *tag, int id, const struct ns2__DoSetUp *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoSetUp), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoSetUp * SOAP_FMAC4 soap_get_ns2__DoSetUp(struct soap *soap, struct ns2__DoSetUp *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoSetUp(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoSetUp * SOAP_FMAC4 soap_in_ns2__DoSetUp(struct soap *soap, const char *tag, struct ns2__DoSetUp *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoSetUp *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoSetUp, sizeof(struct ns2__DoSetUp), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoSetUp(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__DoSetUp *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoSetUp, 0, sizeof(struct ns2__DoSetUp), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoSetUpResponse(struct soap *soap, const struct ns2__DoSetUpResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &a->ResponseCode); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoSetUpResponse(struct soap *soap, struct ns2__DoSetUpResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ResponseCode = NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoSetUpResponse(struct soap *soap, const struct ns2__DoSetUpResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoSetUpResponse); if (soap_out_ns2__DoSetUpResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoSetUpResponse(struct soap *soap, const char *tag, int id, const struct ns2__DoSetUpResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoSetUpResponse), type); if (a->ResponseCode) soap_element_result(soap, "ResponseCode"); soap_out_PointerToint(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoSetUpResponse * SOAP_FMAC4 soap_get_ns2__DoSetUpResponse(struct soap *soap, struct ns2__DoSetUpResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoSetUpResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoSetUpResponse * SOAP_FMAC4 soap_in_ns2__DoSetUpResponse(struct soap *soap, const char *tag, struct ns2__DoSetUpResponse *a, const char *type) { short soap_flag_ResponseCode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoSetUpResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoSetUpResponse, sizeof(struct ns2__DoSetUpResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoSetUpResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; 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 ns2__DoSetUpResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoSetUpResponse, 0, sizeof(struct ns2__DoSetUpResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoReset(struct soap *soap, const struct ns2__DoReset *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoReset(struct soap *soap, struct ns2__DoReset *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoReset(struct soap *soap, const struct ns2__DoReset *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoReset); if (soap_out_ns2__DoReset(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoReset(struct soap *soap, const char *tag, int id, const struct ns2__DoReset *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoReset), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoReset * SOAP_FMAC4 soap_get_ns2__DoReset(struct soap *soap, struct ns2__DoReset *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoReset(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoReset * SOAP_FMAC4 soap_in_ns2__DoReset(struct soap *soap, const char *tag, struct ns2__DoReset *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoReset *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoReset, sizeof(struct ns2__DoReset), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoReset(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__DoReset *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoReset, 0, sizeof(struct ns2__DoReset), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__DoResetResponse(struct soap *soap, const struct ns2__DoResetResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_PointerToint(soap, &a->ResponseCode); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__DoResetResponse(struct soap *soap, struct ns2__DoResetResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ a->ResponseCode = NULL; } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__DoResetResponse(struct soap *soap, const struct ns2__DoResetResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__DoResetResponse); if (soap_out_ns2__DoResetResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__DoResetResponse(struct soap *soap, const char *tag, int id, const struct ns2__DoResetResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__DoResetResponse), type); if (a->ResponseCode) soap_element_result(soap, "ResponseCode"); soap_out_PointerToint(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__DoResetResponse * SOAP_FMAC4 soap_get_ns2__DoResetResponse(struct soap *soap, struct ns2__DoResetResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__DoResetResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__DoResetResponse * SOAP_FMAC4 soap_in_ns2__DoResetResponse(struct soap *soap, const char *tag, struct ns2__DoResetResponse *a, const char *type) { short soap_flag_ResponseCode = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__DoResetResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__DoResetResponse, sizeof(struct ns2__DoResetResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__DoResetResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_PointerToint(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; 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 ns2__DoResetResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__DoResetResponse, 0, sizeof(struct ns2__DoResetResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetInformation(struct soap *soap, const struct ns2__GetInformation *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetInformation(struct soap *soap, struct ns2__GetInformation *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetInformation(struct soap *soap, const struct ns2__GetInformation *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetInformation); if (soap_out_ns2__GetInformation(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetInformation(struct soap *soap, const char *tag, int id, const struct ns2__GetInformation *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetInformation), type); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetInformation * SOAP_FMAC4 soap_get_ns2__GetInformation(struct soap *soap, struct ns2__GetInformation *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetInformation(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetInformation * SOAP_FMAC4 soap_in_ns2__GetInformation(struct soap *soap, const char *tag, struct ns2__GetInformation *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetInformation *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetInformation, sizeof(struct ns2__GetInformation), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetInformation(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 ns2__GetInformation *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetInformation, 0, sizeof(struct ns2__GetInformation), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetInformationResponse(struct soap *soap, const struct ns2__GetInformationResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_serialize_string(soap, &a->Reason); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetInformationResponse(struct soap *soap, struct ns2__GetInformationResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_string(soap, &a->Reason); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetInformationResponse(struct soap *soap, const struct ns2__GetInformationResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetInformationResponse); if (soap_out_ns2__GetInformationResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetInformationResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetInformationResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetInformationResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_string(soap, "Reason", -1, &a->Reason, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetInformationResponse * SOAP_FMAC4 soap_get_ns2__GetInformationResponse(struct soap *soap, struct ns2__GetInformationResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetInformationResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetInformationResponse * SOAP_FMAC4 soap_in_ns2__GetInformationResponse(struct soap *soap, const char *tag, struct ns2__GetInformationResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Reason = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetInformationResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetInformationResponse, sizeof(struct ns2__GetInformationResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetInformationResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Reason && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Reason", &a->Reason, "xsd:string")) { soap_flag_Reason--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetInformationResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetInformationResponse, 0, sizeof(struct ns2__GetInformationResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetLastError(struct soap *soap, const struct ns2__GetLastError *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetLastError(struct soap *soap, struct ns2__GetLastError *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetLastError(struct soap *soap, const struct ns2__GetLastError *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetLastError); if (soap_out_ns2__GetLastError(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetLastError(struct soap *soap, const char *tag, int id, const struct ns2__GetLastError *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetLastError), type); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetLastError * SOAP_FMAC4 soap_get_ns2__GetLastError(struct soap *soap, struct ns2__GetLastError *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetLastError(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetLastError * SOAP_FMAC4 soap_in_ns2__GetLastError(struct soap *soap, const char *tag, struct ns2__GetLastError *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetLastError *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetLastError, sizeof(struct ns2__GetLastError), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetLastError(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 ns2__GetLastError *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetLastError, 0, sizeof(struct ns2__GetLastError), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetLastErrorResponse(struct soap *soap, const struct ns2__GetLastErrorResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_embedded(soap, &a->Code, SOAP_TYPE_int); soap_serialize_string(soap, &a->Reason); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetLastErrorResponse(struct soap *soap, struct ns2__GetLastErrorResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_int(soap, &a->Code); soap_default_string(soap, &a->Reason); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetLastErrorResponse(struct soap *soap, const struct ns2__GetLastErrorResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetLastErrorResponse); if (soap_out_ns2__GetLastErrorResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetLastErrorResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetLastErrorResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetLastErrorResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_int(soap, "Code", -1, &a->Code, "xsd:int"); soap_out_string(soap, "Reason", -1, &a->Reason, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetLastErrorResponse * SOAP_FMAC4 soap_get_ns2__GetLastErrorResponse(struct soap *soap, struct ns2__GetLastErrorResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetLastErrorResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetLastErrorResponse * SOAP_FMAC4 soap_in_ns2__GetLastErrorResponse(struct soap *soap, const char *tag, struct ns2__GetLastErrorResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Code = 1, soap_flag_Reason = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetLastErrorResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetLastErrorResponse, sizeof(struct ns2__GetLastErrorResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetLastErrorResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Code && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "Code", &a->Code, "xsd:int")) { soap_flag_Code--; continue; } if (soap_flag_Reason && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Reason", &a->Reason, "xsd:string")) { soap_flag_Reason--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0 || soap_flag_Code > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetLastErrorResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetLastErrorResponse, 0, sizeof(struct ns2__GetLastErrorResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetOption(struct soap *soap, const struct ns2__GetOption *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_serialize_string(soap, &a->Parameter); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetOption(struct soap *soap, struct ns2__GetOption *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_string(soap, &a->Parameter); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetOption(struct soap *soap, const struct ns2__GetOption *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetOption); if (soap_out_ns2__GetOption(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetOption(struct soap *soap, const char *tag, int id, const struct ns2__GetOption *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetOption), type); soap_out_string(soap, "Parameter", -1, &a->Parameter, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetOption * SOAP_FMAC4 soap_get_ns2__GetOption(struct soap *soap, struct ns2__GetOption *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetOption(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetOption * SOAP_FMAC4 soap_in_ns2__GetOption(struct soap *soap, const char *tag, struct ns2__GetOption *a, const char *type) { short soap_flag_Parameter = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetOption *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetOption, sizeof(struct ns2__GetOption), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetOption(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_Parameter && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Parameter", &a->Parameter, "xsd:string")) { soap_flag_Parameter--; 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 ns2__GetOption *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetOption, 0, sizeof(struct ns2__GetOption), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetOptionResponse(struct soap *soap, const struct ns2__GetOptionResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_serialize_string(soap, &a->Option); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetOptionResponse(struct soap *soap, struct ns2__GetOptionResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_string(soap, &a->Option); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetOptionResponse(struct soap *soap, const struct ns2__GetOptionResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetOptionResponse); if (soap_out_ns2__GetOptionResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetOptionResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetOptionResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetOptionResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_string(soap, "Option", -1, &a->Option, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetOptionResponse * SOAP_FMAC4 soap_get_ns2__GetOptionResponse(struct soap *soap, struct ns2__GetOptionResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetOptionResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetOptionResponse * SOAP_FMAC4 soap_in_ns2__GetOptionResponse(struct soap *soap, const char *tag, struct ns2__GetOptionResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Option = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetOptionResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetOptionResponse, sizeof(struct ns2__GetOptionResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetOptionResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Option && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Option", &a->Option, "xsd:string")) { soap_flag_Option--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetOptionResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetOptionResponse, 0, sizeof(struct ns2__GetOptionResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetState(struct soap *soap, const struct ns2__GetState *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetState(struct soap *soap, struct ns2__GetState *a) { (void)soap; (void)a; /* appease -Wall -Werror */ } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetState(struct soap *soap, const struct ns2__GetState *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetState); if (soap_out_ns2__GetState(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetState(struct soap *soap, const char *tag, int id, const struct ns2__GetState *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetState), type); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetState * SOAP_FMAC4 soap_get_ns2__GetState(struct soap *soap, struct ns2__GetState *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetState(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetState * SOAP_FMAC4 soap_in_ns2__GetState(struct soap *soap, const char *tag, struct ns2__GetState *a, const char *type) {; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetState *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetState, sizeof(struct ns2__GetState), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetState(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 ns2__GetState *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetState, 0, sizeof(struct ns2__GetState), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns2__GetStateResponse(struct soap *soap, const struct ns2__GetStateResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_embedded(soap, &a->ResponseCode, SOAP_TYPE_int); soap_embedded(soap, &a->Code, SOAP_TYPE_int); soap_serialize_string(soap, &a->State); soap_serialize_string(soap, &a->Reason); } SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns2__GetStateResponse(struct soap *soap, struct ns2__GetStateResponse *a) { (void)soap; (void)a; /* appease -Wall -Werror */ soap_default_int(soap, &a->ResponseCode); soap_default_int(soap, &a->Code); soap_default_string(soap, &a->State); soap_default_string(soap, &a->Reason); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__GetStateResponse(struct soap *soap, const struct ns2__GetStateResponse *a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__GetStateResponse); if (soap_out_ns2__GetStateResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__GetStateResponse(struct soap *soap, const char *tag, int id, const struct ns2__GetStateResponse *a, const char *type) { soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__GetStateResponse), type); soap_element_result(soap, "ResponseCode"); soap_out_int(soap, "ResponseCode", -1, &a->ResponseCode, "xsd:int"); soap_out_int(soap, "Code", -1, &a->Code, "xsd:int"); soap_out_string(soap, "State", -1, &a->State, "xsd:string"); soap_out_string(soap, "Reason", -1, &a->Reason, "xsd:string"); soap_element_end_out(soap, tag); return SOAP_OK; } SOAP_FMAC3 struct ns2__GetStateResponse * SOAP_FMAC4 soap_get_ns2__GetStateResponse(struct soap *soap, struct ns2__GetStateResponse *p, const char *tag, const char *type) { if ((p = soap_in_ns2__GetStateResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetStateResponse * SOAP_FMAC4 soap_in_ns2__GetStateResponse(struct soap *soap, const char *tag, struct ns2__GetStateResponse *a, const char *type) { short soap_flag_ResponseCode = 1, soap_flag_Code = 1, soap_flag_State = 1, soap_flag_Reason = 1; if (soap_element_begin_in(soap, tag, 0)) return NULL; if (*soap->type && soap_match_tag(soap, soap->type, type)) { soap->error = SOAP_TYPE; return NULL; } a = (struct ns2__GetStateResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__GetStateResponse, sizeof(struct ns2__GetStateResponse), 0, NULL, NULL, NULL); if (!a) return NULL; soap_default_ns2__GetStateResponse(soap, a); if (soap->body && !*soap->href) { for (;;) { soap->error = SOAP_TAG_MISMATCH; if (soap_flag_ResponseCode && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "ResponseCode", &a->ResponseCode, "xsd:int")) { soap_flag_ResponseCode--; continue; } if (soap_flag_Code && soap->error == SOAP_TAG_MISMATCH) if (soap_in_int(soap, "Code", &a->Code, "xsd:int")) { soap_flag_Code--; continue; } if (soap_flag_State && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "State", &a->State, "xsd:string")) { soap_flag_State--; continue; } if (soap_flag_Reason && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) if (soap_in_string(soap, "Reason", &a->Reason, "xsd:string")) { soap_flag_Reason--; 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->mode & SOAP_XML_STRICT) && (soap_flag_ResponseCode > 0 || soap_flag_Code > 0)) { soap->error = SOAP_OCCURS; return NULL; } if (soap_element_end_in(soap, tag)) return NULL; } else { a = (struct ns2__GetStateResponse *)soap_id_forward(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetStateResponse, 0, sizeof(struct ns2__GetStateResponse), 0, NULL); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } 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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_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))) soap_getindependent(soap); return p; } 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)) 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; } #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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_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))) soap_getindependent(soap); return p; } 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)) 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; } #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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_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))) soap_getindependent(soap); return p; } 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)) 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; } #endif SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons2__GetRatesResponse(struct soap *soap, struct ns2__GetRatesResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetRatesResponse)) soap_serialize_ns2__GetRatesResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetRatesResponse(struct soap *soap, struct ns2__GetRatesResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetRatesResponse); if (soap_out_PointerTons2__GetRatesResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetRatesResponse(struct soap *soap, const char *tag, int id, struct ns2__GetRatesResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetRatesResponse); if (id < 0) return soap->error; return soap_out_ns2__GetRatesResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetRatesResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetRatesResponse(struct soap *soap, struct ns2__GetRatesResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetRatesResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetRatesResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetRatesResponse(struct soap *soap, const char *tag, struct ns2__GetRatesResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetRatesResponse **)soap_malloc(soap, sizeof(struct ns2__GetRatesResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetRatesResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetRatesResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetRatesResponse, sizeof(struct ns2__GetRatesResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons2__GetCountersResponse(struct soap *soap, struct ns2__GetCountersResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetCountersResponse)) soap_serialize_ns2__GetCountersResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetCountersResponse(struct soap *soap, struct ns2__GetCountersResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetCountersResponse); if (soap_out_PointerTons2__GetCountersResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetCountersResponse(struct soap *soap, const char *tag, int id, struct ns2__GetCountersResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetCountersResponse); if (id < 0) return soap->error; return soap_out_ns2__GetCountersResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetCountersResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetCountersResponse(struct soap *soap, struct ns2__GetCountersResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetCountersResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetCountersResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetCountersResponse(struct soap *soap, const char *tag, struct ns2__GetCountersResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetCountersResponse **)soap_malloc(soap, sizeof(struct ns2__GetCountersResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetCountersResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetCountersResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetCountersResponse, sizeof(struct ns2__GetCountersResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } 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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_get_PointerToint(struct soap *soap, int **p, const char *tag, const char *type) { if ((p = soap_in_PointerToint(soap, tag, p, type))) soap_getindependent(soap); return p; } 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)) 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 void SOAP_FMAC4 soap_serialize_PointerTons2__GetInformationResponse(struct soap *soap, struct ns2__GetInformationResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetInformationResponse)) soap_serialize_ns2__GetInformationResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetInformationResponse(struct soap *soap, struct ns2__GetInformationResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetInformationResponse); if (soap_out_PointerTons2__GetInformationResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetInformationResponse(struct soap *soap, const char *tag, int id, struct ns2__GetInformationResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetInformationResponse); if (id < 0) return soap->error; return soap_out_ns2__GetInformationResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetInformationResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetInformationResponse(struct soap *soap, struct ns2__GetInformationResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetInformationResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetInformationResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetInformationResponse(struct soap *soap, const char *tag, struct ns2__GetInformationResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetInformationResponse **)soap_malloc(soap, sizeof(struct ns2__GetInformationResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetInformationResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetInformationResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetInformationResponse, sizeof(struct ns2__GetInformationResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons2__GetLastErrorResponse(struct soap *soap, struct ns2__GetLastErrorResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetLastErrorResponse)) soap_serialize_ns2__GetLastErrorResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetLastErrorResponse(struct soap *soap, struct ns2__GetLastErrorResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetLastErrorResponse); if (soap_out_PointerTons2__GetLastErrorResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetLastErrorResponse(struct soap *soap, const char *tag, int id, struct ns2__GetLastErrorResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetLastErrorResponse); if (id < 0) return soap->error; return soap_out_ns2__GetLastErrorResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetLastErrorResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetLastErrorResponse(struct soap *soap, struct ns2__GetLastErrorResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetLastErrorResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetLastErrorResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetLastErrorResponse(struct soap *soap, const char *tag, struct ns2__GetLastErrorResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetLastErrorResponse **)soap_malloc(soap, sizeof(struct ns2__GetLastErrorResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetLastErrorResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetLastErrorResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetLastErrorResponse, sizeof(struct ns2__GetLastErrorResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons2__GetOptionResponse(struct soap *soap, struct ns2__GetOptionResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetOptionResponse)) soap_serialize_ns2__GetOptionResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetOptionResponse(struct soap *soap, struct ns2__GetOptionResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetOptionResponse); if (soap_out_PointerTons2__GetOptionResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetOptionResponse(struct soap *soap, const char *tag, int id, struct ns2__GetOptionResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetOptionResponse); if (id < 0) return soap->error; return soap_out_ns2__GetOptionResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetOptionResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetOptionResponse(struct soap *soap, struct ns2__GetOptionResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetOptionResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetOptionResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetOptionResponse(struct soap *soap, const char *tag, struct ns2__GetOptionResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetOptionResponse **)soap_malloc(soap, sizeof(struct ns2__GetOptionResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetOptionResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetOptionResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetOptionResponse, sizeof(struct ns2__GetOptionResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons2__GetStateResponse(struct soap *soap, struct ns2__GetStateResponse *const*a) { if (!soap_reference(soap, *a, SOAP_TYPE_ns2__GetStateResponse)) soap_serialize_ns2__GetStateResponse(soap, *a); } SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons2__GetStateResponse(struct soap *soap, struct ns2__GetStateResponse *const*a, const char *tag, const char *type) { register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons2__GetStateResponse); if (soap_out_PointerTons2__GetStateResponse(soap, tag, id, a, type)) return soap->error; return soap_putindependent(soap); } SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons2__GetStateResponse(struct soap *soap, const char *tag, int id, struct ns2__GetStateResponse *const*a, const char *type) { id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns2__GetStateResponse); if (id < 0) return soap->error; return soap_out_ns2__GetStateResponse(soap, tag, id, *a, type); } SOAP_FMAC3 struct ns2__GetStateResponse ** SOAP_FMAC4 soap_get_PointerTons2__GetStateResponse(struct soap *soap, struct ns2__GetStateResponse **p, const char *tag, const char *type) { if ((p = soap_in_PointerTons2__GetStateResponse(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 struct ns2__GetStateResponse ** SOAP_FMAC4 soap_in_PointerTons2__GetStateResponse(struct soap *soap, const char *tag, struct ns2__GetStateResponse **a, const char *type) { if (soap_element_begin_in(soap, tag, 1)) return NULL; if (!a) if (!(a = (struct ns2__GetStateResponse **)soap_malloc(soap, sizeof(struct ns2__GetStateResponse *)))) return NULL; *a = NULL; if (!soap->null && *soap->href != '#') { soap_revert(soap); if (!(*a = soap_in_ns2__GetStateResponse(soap, tag, *a, type))) return NULL; } else { a = (struct ns2__GetStateResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns2__GetStateResponse, sizeof(struct ns2__GetStateResponse), 0); if (soap->body && soap_element_end_in(soap, tag)) return NULL; } return a; } SOAP_FMAC3 void SOAP_FMAC4 soap_default__QName(struct soap *soap, char **a) { soap_default_string(soap, a); } SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap *soap, char *const*a) { soap_serialize_string(soap, a); } 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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_get__QName(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in__QName(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type) { return soap_instring(soap, tag, a, type, SOAP_TYPE__QName, 2, -1, -1); } 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_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, id, a, type)) return soap->error; return soap_putindependent(soap); } 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_get_string(struct soap *soap, char **p, const char *tag, const char *type) { if ((p = soap_in_string(soap, tag, p, type))) soap_getindependent(soap); return p; } SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type) { return soap_instring(soap, tag, a, type, SOAP_TYPE_string, 1, -1, -1); } #ifdef __cplusplus } #endif /* End of soapC.c */