COPASI API  4.16.103
soapC.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAM/WebServicesIssues/soapC.cpp,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2009/04/21 16:17:18 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 /* soapC.cpp
15  Generated by gSOAP 2.7.12 from MIRIAM.h
16  Copyright(C) 2000-2008, Robert van Engelen, Genivia Inc. All Rights Reserved.
17  This part of the software is released under one of the following licenses:
18  GPL, the gSOAP public license, or Genivia's license for commercial use.
19  */
20 
21 #include "soapH.h"
22 
23 SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.7.12 2009-01-22 20:17:15 GMT")
24 
25 #ifndef WITH_NOGLOBAL
26 
28 {
29  if (soap->header)
31 }
32 
34 {
35  if (soap->header)
36  {
37  soap->part = SOAP_IN_HEADER;
38 
39  if (soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL))
40  return soap->error;
41 
42  soap->part = SOAP_END_HEADER;
43  }
44 
45  return SOAP_OK;
46 }
47 
49 {
50  soap->part = SOAP_IN_HEADER;
51  soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", NULL, NULL);
52  soap->part = SOAP_END_HEADER;
53  return soap->header == NULL;
54 }
55 
57 {
58  if (!soap->header)
59  {
60  soap->header = soap_new_SOAP_ENV__Header(soap, -1);
62  }
63 }
64 
66 {
67  if (!soap->fault)
68  {
69  soap->fault = soap_new_SOAP_ENV__Fault(soap, -1);
70 
71  if (!soap->fault)
72  return;
73 
75  }
76 
77  if (soap->version == 2 && !soap->fault->SOAP_ENV__Code)
78  {
79  soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap, -1);
81  }
82 
83  if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason)
84  {
87  }
88 }
89 
91 {
92  soap_fault(soap);
93 
94  if (soap->fault)
96 }
97 
99 {
100  if (soap->fault)
101  return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL);
102 
103  return SOAP_OK;
104 }
105 
107 {
108  return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL;
109 }
110 
112 {
113  soap_fault(soap);
114 
115  if (soap->version == 2)
116  return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value;
117 
118  return (const char**)&soap->fault->faultcode;
119 }
120 
122 {
123  soap_fault(soap);
124 
125  if (soap->version == 2)
126  {
128  {
131  }
132 
133  return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value;
134  }
135 
136  return (const char**)&soap->fault->faultcode;
137 }
138 
140 {
141  soap_fault(soap);
142 
143  if (soap->version == 2)
144  return (const char**)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text;
145 
146  return (const char**)&soap->fault->faultstring;
147 }
148 
150 {
151  soap_fault(soap);
152 
153  if (soap->version == 1)
154  {
155  if (!soap->fault->detail)
156  {
157  soap->fault->detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail));
159  }
160 
161  return (const char**)&soap->fault->detail->__any;
162  }
163 
164  if (!soap->fault->SOAP_ENV__Detail)
165  {
168  }
169 
170  return (const char**)&soap->fault->SOAP_ENV__Detail->__any;
171 }
172 
173 #endif
174 
175 #ifndef WITH_NOIDREF
177 {
178  int t;
179 
180  for (;;)
181  if (!soap_getelement(soap, &t))
182  if (soap->error || soap_ignore_element(soap))
183  break;
184 
185  if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF)
186  soap->error = SOAP_OK;
187 
188  return soap->error;
189 }
190 #endif
191 
192 #ifndef WITH_NOIDREF
193 
194 #ifdef __cplusplus
195 extern "C"
196 {
197 #endif
198  SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type)
199  {
200  if (soap_peek_element(soap))
201  return NULL;
202 
203  if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id)))
204  * type = soap_lookup_type(soap, soap->href);
205 
206  switch (*type)
207  {
208  case SOAP_TYPE_byte:
209  return soap_in_byte(soap, NULL, NULL, "xsd:byte");
210  case SOAP_TYPE_int:
211  return soap_in_int(soap, NULL, NULL, "xsd:int");
213  return soap_in_std__string(soap, NULL, NULL, "xsd:string");
215  return soap_in_ArrayOf_USCORExsd_USCOREstring(soap, NULL, NULL, "xsd:string");
217  return soap_in_ns2__checkRegExp(soap, NULL, NULL, "ns2:checkRegExp");
219  return soap_in_ns2__checkRegExpResponse(soap, NULL, NULL, "ns2:checkRegExpResponse");
221  return soap_in_ns2__getDataTypesId(soap, NULL, NULL, "ns2:getDataTypesId");
223  return soap_in_ns2__getDataTypesIdResponse(soap, NULL, NULL, "ns2:getDataTypesIdResponse");
225  return soap_in_ns2__getDataTypesName(soap, NULL, NULL, "ns2:getDataTypesName");
227  return soap_in_ns2__getDataTypesNameResponse(soap, NULL, NULL, "ns2:getDataTypesNameResponse");
229  return soap_in_ns2__getNames(soap, NULL, NULL, "ns2:getNames");
231  return soap_in_ns2__getNamesResponse(soap, NULL, NULL, "ns2:getNamesResponse");
233  return soap_in_ns2__getDataTypeSynonyms(soap, NULL, NULL, "ns2:getDataTypeSynonyms");
235  return soap_in_ns2__getDataTypeSynonymsResponse(soap, NULL, NULL, "ns2:getDataTypeSynonymsResponse");
237  return soap_in_ns2__getResourceLocation(soap, NULL, NULL, "ns2:getResourceLocation");
239  return soap_in_ns2__getResourceLocationResponse(soap, NULL, NULL, "ns2:getResourceLocationResponse");
241  return soap_in_ns2__getResourceInstitution(soap, NULL, NULL, "ns2:getResourceInstitution");
243  return soap_in_ns2__getResourceInstitutionResponse(soap, NULL, NULL, "ns2:getResourceInstitutionResponse");
245  return soap_in_ns2__getResourceInfo(soap, NULL, NULL, "ns2:getResourceInfo");
247  return soap_in_ns2__getResourceInfoResponse(soap, NULL, NULL, "ns2:getResourceInfoResponse");
249  return soap_in_ns2__getDataTypePattern(soap, NULL, NULL, "ns2:getDataTypePattern");
251  return soap_in_ns2__getDataTypePatternResponse(soap, NULL, NULL, "ns2:getDataTypePatternResponse");
253  return soap_in_ns2__getMiriamURI(soap, NULL, NULL, "ns2:getMiriamURI");
255  return soap_in_ns2__getMiriamURIResponse(soap, NULL, NULL, "ns2:getMiriamURIResponse");
257  return soap_in_ns2__getOfficialDataTypeURI(soap, NULL, NULL, "ns2:getOfficialDataTypeURI");
259  return soap_in_ns2__getOfficialDataTypeURIResponse(soap, NULL, NULL, "ns2:getOfficialDataTypeURIResponse");
261  return soap_in_ns2__isDeprecated(soap, NULL, NULL, "ns2:isDeprecated");
263  return soap_in_ns2__isDeprecatedResponse(soap, NULL, NULL, "ns2:isDeprecatedResponse");
265  return soap_in_ns2__getLocations_(soap, NULL, NULL, "ns2:getLocations");
267  return soap_in_ns2__getLocationsResponse_(soap, NULL, NULL, "ns2:getLocationsResponse");
269  return soap_in_ns2__getLocations(soap, NULL, NULL, "ns2:getLocations");
271  return soap_in_ns2__getLocationsResponse(soap, NULL, NULL, "ns2:getLocationsResponse");
273  return soap_in_ns2__getDataTypeDef(soap, NULL, NULL, "ns2:getDataTypeDef");
275  return soap_in_ns2__getDataTypeDefResponse(soap, NULL, NULL, "ns2:getDataTypeDefResponse");
277  return soap_in_ns2__getDataTypeURIs(soap, NULL, NULL, "ns2:getDataTypeURIs");
279  return soap_in_ns2__getDataTypeURIsResponse(soap, NULL, NULL, "ns2:getDataTypeURIsResponse");
281  return soap_in_ns2__getDataTypeURI(soap, NULL, NULL, "ns2:getDataTypeURI");
283  return soap_in_ns2__getDataTypeURIResponse(soap, NULL, NULL, "ns2:getDataTypeURIResponse");
285  return soap_in_ns2__getJavaLibraryVersion(soap, NULL, NULL, "ns2:getJavaLibraryVersion");
287  return soap_in_ns2__getJavaLibraryVersionResponse(soap, NULL, NULL, "ns2:getJavaLibraryVersionResponse");
289  return soap_in_ns2__getServicesVersion(soap, NULL, NULL, "ns2:getServicesVersion");
291  return soap_in_ns2__getServicesVersionResponse(soap, NULL, NULL, "ns2:getServicesVersionResponse");
293  return soap_in_ns2__getServicesInfo(soap, NULL, NULL, "ns2:getServicesInfo");
295  return soap_in_ns2__getServicesInfoResponse(soap, NULL, NULL, "ns2:getServicesInfoResponse");
297  return soap_in_ns2__getDataResources(soap, NULL, NULL, "ns2:getDataResources");
299  return soap_in_ns2__getDataResourcesResponse(soap, NULL, NULL, "ns2:getDataResourcesResponse");
301  return soap_in_ns2__getURI(soap, NULL, NULL, "ns2:getURI");
303  return soap_in_ns2__getURIResponse(soap, NULL, NULL, "ns2:getURIResponse");
305  return soap_in_ns2__getLocation(soap, NULL, NULL, "ns2:getLocation");
307  return soap_in_ns2__getLocationResponse(soap, NULL, NULL, "ns2:getLocationResponse");
309  return soap_in_ns2__getName(soap, NULL, NULL, "ns2:getName");
311  return soap_in_ns2__getNameResponse(soap, NULL, NULL, "ns2:getNameResponse");
313  return soap_in_PointerToArrayOf_USCORExsd_USCOREstring(soap, NULL, NULL, "xsd:string");
315  return soap_in_PointerTostd__string(soap, NULL, NULL, "xsd:string");
316  case SOAP_TYPE_string:
317  {
318  char **s;
319  s = soap_in_string(soap, NULL, NULL, "xsd:string");
320  return s ? *s : NULL;
321  }
322  default:
323  {
324  const char *t = soap->type;
325 
326  if (!*t)
327  t = soap->tag;
328 
329  if (!soap_match_tag(soap, t, "xsd:string"))
330  {
331  *type = SOAP_TYPE_std__string;
332  return soap_in_std__string(soap, NULL, NULL, NULL);
333  }
334 
335  if (*soap->arrayType && !soap_match_array(soap, "xsd:string"))
336  {
338  return soap_in_ArrayOf_USCORExsd_USCOREstring(soap, NULL, NULL, NULL);
339  }
340 
341  if (!soap_match_tag(soap, t, "xsd:byte"))
342  {
343  *type = SOAP_TYPE_byte;
344  return soap_in_byte(soap, NULL, NULL, NULL);
345  }
346 
347  if (!soap_match_tag(soap, t, "xsd:int"))
348  {
349  *type = SOAP_TYPE_int;
350  return soap_in_int(soap, NULL, NULL, NULL);
351  }
352 
353  if (!soap_match_tag(soap, t, "ns2:checkRegExp"))
354  {
356  return soap_in_ns2__checkRegExp(soap, NULL, NULL, NULL);
357  }
358 
359  if (!soap_match_tag(soap, t, "ns2:checkRegExpResponse"))
360  {
362  return soap_in_ns2__checkRegExpResponse(soap, NULL, NULL, NULL);
363  }
364 
365  if (!soap_match_tag(soap, t, "ns2:getDataTypesId"))
366  {
368  return soap_in_ns2__getDataTypesId(soap, NULL, NULL, NULL);
369  }
370 
371  if (!soap_match_tag(soap, t, "ns2:getDataTypesIdResponse"))
372  {
374  return soap_in_ns2__getDataTypesIdResponse(soap, NULL, NULL, NULL);
375  }
376 
377  if (!soap_match_tag(soap, t, "ns2:getDataTypesName"))
378  {
380  return soap_in_ns2__getDataTypesName(soap, NULL, NULL, NULL);
381  }
382 
383  if (!soap_match_tag(soap, t, "ns2:getDataTypesNameResponse"))
384  {
386  return soap_in_ns2__getDataTypesNameResponse(soap, NULL, NULL, NULL);
387  }
388 
389  if (!soap_match_tag(soap, t, "ns2:getNames"))
390  {
391  *type = SOAP_TYPE_ns2__getNames;
392  return soap_in_ns2__getNames(soap, NULL, NULL, NULL);
393  }
394 
395  if (!soap_match_tag(soap, t, "ns2:getNamesResponse"))
396  {
398  return soap_in_ns2__getNamesResponse(soap, NULL, NULL, NULL);
399  }
400 
401  if (!soap_match_tag(soap, t, "ns2:getDataTypeSynonyms"))
402  {
404  return soap_in_ns2__getDataTypeSynonyms(soap, NULL, NULL, NULL);
405  }
406 
407  if (!soap_match_tag(soap, t, "ns2:getDataTypeSynonymsResponse"))
408  {
410  return soap_in_ns2__getDataTypeSynonymsResponse(soap, NULL, NULL, NULL);
411  }
412 
413  if (!soap_match_tag(soap, t, "ns2:getResourceLocation"))
414  {
416  return soap_in_ns2__getResourceLocation(soap, NULL, NULL, NULL);
417  }
418 
419  if (!soap_match_tag(soap, t, "ns2:getResourceLocationResponse"))
420  {
422  return soap_in_ns2__getResourceLocationResponse(soap, NULL, NULL, NULL);
423  }
424 
425  if (!soap_match_tag(soap, t, "ns2:getResourceInstitution"))
426  {
428  return soap_in_ns2__getResourceInstitution(soap, NULL, NULL, NULL);
429  }
430 
431  if (!soap_match_tag(soap, t, "ns2:getResourceInstitutionResponse"))
432  {
434  return soap_in_ns2__getResourceInstitutionResponse(soap, NULL, NULL, NULL);
435  }
436 
437  if (!soap_match_tag(soap, t, "ns2:getResourceInfo"))
438  {
440  return soap_in_ns2__getResourceInfo(soap, NULL, NULL, NULL);
441  }
442 
443  if (!soap_match_tag(soap, t, "ns2:getResourceInfoResponse"))
444  {
446  return soap_in_ns2__getResourceInfoResponse(soap, NULL, NULL, NULL);
447  }
448 
449  if (!soap_match_tag(soap, t, "ns2:getDataTypePattern"))
450  {
452  return soap_in_ns2__getDataTypePattern(soap, NULL, NULL, NULL);
453  }
454 
455  if (!soap_match_tag(soap, t, "ns2:getDataTypePatternResponse"))
456  {
458  return soap_in_ns2__getDataTypePatternResponse(soap, NULL, NULL, NULL);
459  }
460 
461  if (!soap_match_tag(soap, t, "ns2:getMiriamURI"))
462  {
464  return soap_in_ns2__getMiriamURI(soap, NULL, NULL, NULL);
465  }
466 
467  if (!soap_match_tag(soap, t, "ns2:getMiriamURIResponse"))
468  {
470  return soap_in_ns2__getMiriamURIResponse(soap, NULL, NULL, NULL);
471  }
472 
473  if (!soap_match_tag(soap, t, "ns2:getOfficialDataTypeURI"))
474  {
476  return soap_in_ns2__getOfficialDataTypeURI(soap, NULL, NULL, NULL);
477  }
478 
479  if (!soap_match_tag(soap, t, "ns2:getOfficialDataTypeURIResponse"))
480  {
482  return soap_in_ns2__getOfficialDataTypeURIResponse(soap, NULL, NULL, NULL);
483  }
484 
485  if (!soap_match_tag(soap, t, "ns2:isDeprecated"))
486  {
488  return soap_in_ns2__isDeprecated(soap, NULL, NULL, NULL);
489  }
490 
491  if (!soap_match_tag(soap, t, "ns2:isDeprecatedResponse"))
492  {
494  return soap_in_ns2__isDeprecatedResponse(soap, NULL, NULL, NULL);
495  }
496 
497  if (!soap_match_tag(soap, t, "ns2:getLocations"))
498  {
500  return soap_in_ns2__getLocations_(soap, NULL, NULL, NULL);
501  }
502 
503  if (!soap_match_tag(soap, t, "ns2:getLocationsResponse"))
504  {
506  return soap_in_ns2__getLocationsResponse_(soap, NULL, NULL, NULL);
507  }
508 
509  if (!soap_match_tag(soap, t, "ns2:getLocations"))
510  {
512  return soap_in_ns2__getLocations(soap, NULL, NULL, NULL);
513  }
514 
515  if (!soap_match_tag(soap, t, "ns2:getLocationsResponse"))
516  {
518  return soap_in_ns2__getLocationsResponse(soap, NULL, NULL, NULL);
519  }
520 
521  if (!soap_match_tag(soap, t, "ns2:getDataTypeDef"))
522  {
524  return soap_in_ns2__getDataTypeDef(soap, NULL, NULL, NULL);
525  }
526 
527  if (!soap_match_tag(soap, t, "ns2:getDataTypeDefResponse"))
528  {
530  return soap_in_ns2__getDataTypeDefResponse(soap, NULL, NULL, NULL);
531  }
532 
533  if (!soap_match_tag(soap, t, "ns2:getDataTypeURIs"))
534  {
536  return soap_in_ns2__getDataTypeURIs(soap, NULL, NULL, NULL);
537  }
538 
539  if (!soap_match_tag(soap, t, "ns2:getDataTypeURIsResponse"))
540  {
542  return soap_in_ns2__getDataTypeURIsResponse(soap, NULL, NULL, NULL);
543  }
544 
545  if (!soap_match_tag(soap, t, "ns2:getDataTypeURI"))
546  {
548  return soap_in_ns2__getDataTypeURI(soap, NULL, NULL, NULL);
549  }
550 
551  if (!soap_match_tag(soap, t, "ns2:getDataTypeURIResponse"))
552  {
554  return soap_in_ns2__getDataTypeURIResponse(soap, NULL, NULL, NULL);
555  }
556 
557  if (!soap_match_tag(soap, t, "ns2:getJavaLibraryVersion"))
558  {
560  return soap_in_ns2__getJavaLibraryVersion(soap, NULL, NULL, NULL);
561  }
562 
563  if (!soap_match_tag(soap, t, "ns2:getJavaLibraryVersionResponse"))
564  {
566  return soap_in_ns2__getJavaLibraryVersionResponse(soap, NULL, NULL, NULL);
567  }
568 
569  if (!soap_match_tag(soap, t, "ns2:getServicesVersion"))
570  {
572  return soap_in_ns2__getServicesVersion(soap, NULL, NULL, NULL);
573  }
574 
575  if (!soap_match_tag(soap, t, "ns2:getServicesVersionResponse"))
576  {
578  return soap_in_ns2__getServicesVersionResponse(soap, NULL, NULL, NULL);
579  }
580 
581  if (!soap_match_tag(soap, t, "ns2:getServicesInfo"))
582  {
584  return soap_in_ns2__getServicesInfo(soap, NULL, NULL, NULL);
585  }
586 
587  if (!soap_match_tag(soap, t, "ns2:getServicesInfoResponse"))
588  {
590  return soap_in_ns2__getServicesInfoResponse(soap, NULL, NULL, NULL);
591  }
592 
593  if (!soap_match_tag(soap, t, "ns2:getDataResources"))
594  {
596  return soap_in_ns2__getDataResources(soap, NULL, NULL, NULL);
597  }
598 
599  if (!soap_match_tag(soap, t, "ns2:getDataResourcesResponse"))
600  {
602  return soap_in_ns2__getDataResourcesResponse(soap, NULL, NULL, NULL);
603  }
604 
605  if (!soap_match_tag(soap, t, "ns2:getURI"))
606  {
607  *type = SOAP_TYPE_ns2__getURI;
608  return soap_in_ns2__getURI(soap, NULL, NULL, NULL);
609  }
610 
611  if (!soap_match_tag(soap, t, "ns2:getURIResponse"))
612  {
614  return soap_in_ns2__getURIResponse(soap, NULL, NULL, NULL);
615  }
616 
617  if (!soap_match_tag(soap, t, "ns2:getLocation"))
618  {
620  return soap_in_ns2__getLocation(soap, NULL, NULL, NULL);
621  }
622 
623  if (!soap_match_tag(soap, t, "ns2:getLocationResponse"))
624  {
626  return soap_in_ns2__getLocationResponse(soap, NULL, NULL, NULL);
627  }
628 
629  if (!soap_match_tag(soap, t, "ns2:getName"))
630  {
631  *type = SOAP_TYPE_ns2__getName;
632  return soap_in_ns2__getName(soap, NULL, NULL, NULL);
633  }
634 
635  if (!soap_match_tag(soap, t, "ns2:getNameResponse"))
636  {
638  return soap_in_ns2__getNameResponse(soap, NULL, NULL, NULL);
639  }
640 
641  if (!soap_match_tag(soap, t, "xsd:string"))
642  {
643  char **s;
644  *type = SOAP_TYPE_string;
645  s = soap_in_string(soap, NULL, NULL, NULL);
646  return s ? *s : NULL;
647  }
648 
649  t = soap->tag;
650 
651  if (!soap_match_tag(soap, t, "xsd:QName"))
652  {
653  char **s;
654  *type = SOAP_TYPE__QName;
655  s = soap_in__QName(soap, NULL, NULL, NULL);
656  return s ? *s : NULL;
657  }
658  }
659  }
660 
661  soap->error = SOAP_TAG_MISMATCH;
662  return NULL;
663  }
664 
665 #ifdef __cplusplus
666 }
667 #endif
668 #endif
669 
671 {
672  if (!soap_peek_element(soap))
673  {
674  int t;
675  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level=%u, %d)\n", soap->tag, soap->level, soap->body));
676 
677  if (soap->mustUnderstand && !soap->other)
678  return soap->error = SOAP_MUSTUNDERSTAND;
679 
680  if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:"))
681  {
682  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag));
683  return soap->error = SOAP_TAG_MISMATCH;
684  }
685 
686  if (!*soap->id || !soap_getelement(soap, &t))
687  {
688  soap->peeked = 0;
689 
690  if (soap->fignore)
691  soap->error = soap->fignore(soap, soap->tag);
692  else
693  soap->error = SOAP_OK;
694 
695  DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag));
696 
697  if (!soap->error && soap->body)
698  {
699  soap->level++;
700 
701  while (!soap_ignore_element(soap))
702  ;
703 
704  if (soap->error == SOAP_NO_TAG)
705  soap->error = soap_element_end_in(soap, NULL);
706  }
707  }
708  }
709 
710  return soap->error;
711 }
712 
713 #ifndef WITH_NOIDREF
715 {
716  int i;
717  struct soap_plist *pp;
718 
719  if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH)))
720  for (i = 0; i < SOAP_PTRHASH; i++)
721  for (pp = soap->pht[i]; pp; pp = pp->next)
722  if (pp->mark1 == 2 || pp->mark2 == 2)
723  if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type))
724  return soap->error;
725 
726  return SOAP_OK;
727 }
728 #endif
729 
730 #ifndef WITH_NOIDREF
731 
732 #ifdef __cplusplus
733 extern "C"
734 {
735 #endif
736  SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type)
737  {
738  switch (type)
739  {
740  case SOAP_TYPE_byte:
741  return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte");
742  case SOAP_TYPE_int:
743  return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
745  return soap_out_std__string(soap, tag, id, (const std::string *)ptr, "xsd:string");
747  return ((ArrayOf_USCORExsd_USCOREstring *)ptr)->soap_out(soap, tag, id, "xsd:string");
749  return soap_out_ns2__checkRegExp(soap, tag, id, (const struct ns2__checkRegExp *)ptr, "ns2:checkRegExp");
751  return soap_out_ns2__checkRegExpResponse(soap, tag, id, (const struct ns2__checkRegExpResponse *)ptr, "ns2:checkRegExpResponse");
753  return soap_out_ns2__getDataTypesId(soap, tag, id, (const struct ns2__getDataTypesId *)ptr, "ns2:getDataTypesId");
755  return soap_out_ns2__getDataTypesIdResponse(soap, tag, id, (const struct ns2__getDataTypesIdResponse *)ptr, "ns2:getDataTypesIdResponse");
757  return soap_out_ns2__getDataTypesName(soap, tag, id, (const struct ns2__getDataTypesName *)ptr, "ns2:getDataTypesName");
759  return soap_out_ns2__getDataTypesNameResponse(soap, tag, id, (const struct ns2__getDataTypesNameResponse *)ptr, "ns2:getDataTypesNameResponse");
761  return soap_out_ns2__getNames(soap, tag, id, (const struct ns2__getNames *)ptr, "ns2:getNames");
763  return soap_out_ns2__getNamesResponse(soap, tag, id, (const struct ns2__getNamesResponse *)ptr, "ns2:getNamesResponse");
765  return soap_out_ns2__getDataTypeSynonyms(soap, tag, id, (const struct ns2__getDataTypeSynonyms *)ptr, "ns2:getDataTypeSynonyms");
767  return soap_out_ns2__getDataTypeSynonymsResponse(soap, tag, id, (const struct ns2__getDataTypeSynonymsResponse *)ptr, "ns2:getDataTypeSynonymsResponse");
769  return soap_out_ns2__getResourceLocation(soap, tag, id, (const struct ns2__getResourceLocation *)ptr, "ns2:getResourceLocation");
771  return soap_out_ns2__getResourceLocationResponse(soap, tag, id, (const struct ns2__getResourceLocationResponse *)ptr, "ns2:getResourceLocationResponse");
773  return soap_out_ns2__getResourceInstitution(soap, tag, id, (const struct ns2__getResourceInstitution *)ptr, "ns2:getResourceInstitution");
775  return soap_out_ns2__getResourceInstitutionResponse(soap, tag, id, (const struct ns2__getResourceInstitutionResponse *)ptr, "ns2:getResourceInstitutionResponse");
777  return soap_out_ns2__getResourceInfo(soap, tag, id, (const struct ns2__getResourceInfo *)ptr, "ns2:getResourceInfo");
779  return soap_out_ns2__getResourceInfoResponse(soap, tag, id, (const struct ns2__getResourceInfoResponse *)ptr, "ns2:getResourceInfoResponse");
781  return soap_out_ns2__getDataTypePattern(soap, tag, id, (const struct ns2__getDataTypePattern *)ptr, "ns2:getDataTypePattern");
783  return soap_out_ns2__getDataTypePatternResponse(soap, tag, id, (const struct ns2__getDataTypePatternResponse *)ptr, "ns2:getDataTypePatternResponse");
785  return soap_out_ns2__getMiriamURI(soap, tag, id, (const struct ns2__getMiriamURI *)ptr, "ns2:getMiriamURI");
787  return soap_out_ns2__getMiriamURIResponse(soap, tag, id, (const struct ns2__getMiriamURIResponse *)ptr, "ns2:getMiriamURIResponse");
789  return soap_out_ns2__getOfficialDataTypeURI(soap, tag, id, (const struct ns2__getOfficialDataTypeURI *)ptr, "ns2:getOfficialDataTypeURI");
791  return soap_out_ns2__getOfficialDataTypeURIResponse(soap, tag, id, (const struct ns2__getOfficialDataTypeURIResponse *)ptr, "ns2:getOfficialDataTypeURIResponse");
793  return soap_out_ns2__isDeprecated(soap, tag, id, (const struct ns2__isDeprecated *)ptr, "ns2:isDeprecated");
795  return soap_out_ns2__isDeprecatedResponse(soap, tag, id, (const struct ns2__isDeprecatedResponse *)ptr, "ns2:isDeprecatedResponse");
797  return soap_out_ns2__getLocations_(soap, tag, id, (const struct ns2__getLocations_ *)ptr, "ns2:getLocations");
799  return soap_out_ns2__getLocationsResponse_(soap, tag, id, (const struct ns2__getLocationsResponse_ *)ptr, "ns2:getLocationsResponse");
801  return soap_out_ns2__getLocations(soap, tag, id, (const struct ns2__getLocations *)ptr, "ns2:getLocations");
803  return soap_out_ns2__getLocationsResponse(soap, tag, id, (const struct ns2__getLocationsResponse *)ptr, "ns2:getLocationsResponse");
805  return soap_out_ns2__getDataTypeDef(soap, tag, id, (const struct ns2__getDataTypeDef *)ptr, "ns2:getDataTypeDef");
807  return soap_out_ns2__getDataTypeDefResponse(soap, tag, id, (const struct ns2__getDataTypeDefResponse *)ptr, "ns2:getDataTypeDefResponse");
809  return soap_out_ns2__getDataTypeURIs(soap, tag, id, (const struct ns2__getDataTypeURIs *)ptr, "ns2:getDataTypeURIs");
811  return soap_out_ns2__getDataTypeURIsResponse(soap, tag, id, (const struct ns2__getDataTypeURIsResponse *)ptr, "ns2:getDataTypeURIsResponse");
813  return soap_out_ns2__getDataTypeURI(soap, tag, id, (const struct ns2__getDataTypeURI *)ptr, "ns2:getDataTypeURI");
815  return soap_out_ns2__getDataTypeURIResponse(soap, tag, id, (const struct ns2__getDataTypeURIResponse *)ptr, "ns2:getDataTypeURIResponse");
817  return soap_out_ns2__getJavaLibraryVersion(soap, tag, id, (const struct ns2__getJavaLibraryVersion *)ptr, "ns2:getJavaLibraryVersion");
819  return soap_out_ns2__getJavaLibraryVersionResponse(soap, tag, id, (const struct ns2__getJavaLibraryVersionResponse *)ptr, "ns2:getJavaLibraryVersionResponse");
821  return soap_out_ns2__getServicesVersion(soap, tag, id, (const struct ns2__getServicesVersion *)ptr, "ns2:getServicesVersion");
823  return soap_out_ns2__getServicesVersionResponse(soap, tag, id, (const struct ns2__getServicesVersionResponse *)ptr, "ns2:getServicesVersionResponse");
825  return soap_out_ns2__getServicesInfo(soap, tag, id, (const struct ns2__getServicesInfo *)ptr, "ns2:getServicesInfo");
827  return soap_out_ns2__getServicesInfoResponse(soap, tag, id, (const struct ns2__getServicesInfoResponse *)ptr, "ns2:getServicesInfoResponse");
829  return soap_out_ns2__getDataResources(soap, tag, id, (const struct ns2__getDataResources *)ptr, "ns2:getDataResources");
831  return soap_out_ns2__getDataResourcesResponse(soap, tag, id, (const struct ns2__getDataResourcesResponse *)ptr, "ns2:getDataResourcesResponse");
833  return soap_out_ns2__getURI(soap, tag, id, (const struct ns2__getURI *)ptr, "ns2:getURI");
835  return soap_out_ns2__getURIResponse(soap, tag, id, (const struct ns2__getURIResponse *)ptr, "ns2:getURIResponse");
837  return soap_out_ns2__getLocation(soap, tag, id, (const struct ns2__getLocation *)ptr, "ns2:getLocation");
839  return soap_out_ns2__getLocationResponse(soap, tag, id, (const struct ns2__getLocationResponse *)ptr, "ns2:getLocationResponse");
841  return soap_out_ns2__getName(soap, tag, id, (const struct ns2__getName *)ptr, "ns2:getName");
843  return soap_out_ns2__getNameResponse(soap, tag, id, (const struct ns2__getNameResponse *)ptr, "ns2:getNameResponse");
845  return soap_out_PointerToArrayOf_USCORExsd_USCOREstring(soap, tag, id, (ArrayOf_USCORExsd_USCOREstring *const*)ptr, "xsd:string");
847  return soap_out_PointerTostd__string(soap, tag, id, (std::string *const*)ptr, "xsd:string");
848  case SOAP_TYPE__QName:
849  return soap_out_string(soap, "xsd:QName", id, (char*const*)&ptr, NULL);
850  case SOAP_TYPE_string:
851  return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string");
852  }
853 
854  return SOAP_OK;
855  }
856 
857 #ifdef __cplusplus
858 }
859 #endif
860 #endif
861 
862 #ifndef WITH_NOIDREF
863 
864 #ifdef __cplusplus
865 extern "C"
866 {
867 #endif
868  SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type)
869  {
870  (void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */
871 
872  switch (type)
873  {
875  soap_serialize_std__string(soap, (const std::string *)ptr);
876  break;
878  ((ArrayOf_USCORExsd_USCOREstring *)ptr)->soap_serialize(soap);
879  break;
881  soap_serialize_ns2__checkRegExp(soap, (const struct ns2__checkRegExp *)ptr);
882  break;
885  break;
887  soap_serialize_ns2__getDataTypesId(soap, (const struct ns2__getDataTypesId *)ptr);
888  break;
891  break;
894  break;
897  break;
899  soap_serialize_ns2__getNames(soap, (const struct ns2__getNames *)ptr);
900  break;
903  break;
906  break;
909  break;
912  break;
915  break;
918  break;
921  break;
924  break;
927  break;
930  break;
933  break;
935  soap_serialize_ns2__getMiriamURI(soap, (const struct ns2__getMiriamURI *)ptr);
936  break;
939  break;
942  break;
945  break;
947  soap_serialize_ns2__isDeprecated(soap, (const struct ns2__isDeprecated *)ptr);
948  break;
951  break;
953  soap_serialize_ns2__getLocations_(soap, (const struct ns2__getLocations_ *)ptr);
954  break;
957  break;
959  soap_serialize_ns2__getLocations(soap, (const struct ns2__getLocations *)ptr);
960  break;
963  break;
965  soap_serialize_ns2__getDataTypeDef(soap, (const struct ns2__getDataTypeDef *)ptr);
966  break;
969  break;
972  break;
975  break;
977  soap_serialize_ns2__getDataTypeURI(soap, (const struct ns2__getDataTypeURI *)ptr);
978  break;
981  break;
984  break;
987  break;
990  break;
993  break;
996  break;
999  break;
1002  break;
1005  break;
1006  case SOAP_TYPE_ns2__getURI:
1007  soap_serialize_ns2__getURI(soap, (const struct ns2__getURI *)ptr);
1008  break;
1010  soap_serialize_ns2__getURIResponse(soap, (const struct ns2__getURIResponse *)ptr);
1011  break;
1013  soap_serialize_ns2__getLocation(soap, (const struct ns2__getLocation *)ptr);
1014  break;
1017  break;
1019  soap_serialize_ns2__getName(soap, (const struct ns2__getName *)ptr);
1020  break;
1022  soap_serialize_ns2__getNameResponse(soap, (const struct ns2__getNameResponse *)ptr);
1023  break;
1026  break;
1028  soap_serialize_PointerTostd__string(soap, (std::string *const*)ptr);
1029  break;
1030  case SOAP_TYPE__QName:
1031  soap_serialize_string(soap, (char*const*)&ptr);
1032  break;
1033  case SOAP_TYPE_string:
1034  soap_serialize_string(soap, (char*const*)&ptr);
1035  break;
1036  }
1037  }
1038 
1039 #ifdef __cplusplus
1040 }
1041 #endif
1042 #endif
1043 
1044 SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap *soap, int t, const char *type, const char *arrayType, size_t *n)
1045 {
1046  switch (t)
1047  {
1048  case SOAP_TYPE_std__string:
1049  return (void*)soap_instantiate_std__string(soap, -1, type, arrayType, n);
1051  return (void*)soap_instantiate_ArrayOf_USCORExsd_USCOREstring(soap, -1, type, arrayType, n);
1053  return (void*)soap_instantiate_ns2__getNameResponse(soap, -1, type, arrayType, n);
1055  return (void*)soap_instantiate_ns2__getName(soap, -1, type, arrayType, n);
1057  return (void*)soap_instantiate_ns2__getLocationResponse(soap, -1, type, arrayType, n);
1059  return (void*)soap_instantiate_ns2__getLocation(soap, -1, type, arrayType, n);
1061  return (void*)soap_instantiate_ns2__getURIResponse(soap, -1, type, arrayType, n);
1062  case SOAP_TYPE_ns2__getURI:
1063  return (void*)soap_instantiate_ns2__getURI(soap, -1, type, arrayType, n);
1065  return (void*)soap_instantiate_ns2__getDataResourcesResponse(soap, -1, type, arrayType, n);
1067  return (void*)soap_instantiate_ns2__getDataResources(soap, -1, type, arrayType, n);
1069  return (void*)soap_instantiate_ns2__getServicesInfoResponse(soap, -1, type, arrayType, n);
1071  return (void*)soap_instantiate_ns2__getServicesInfo(soap, -1, type, arrayType, n);
1073  return (void*)soap_instantiate_ns2__getServicesVersionResponse(soap, -1, type, arrayType, n);
1075  return (void*)soap_instantiate_ns2__getServicesVersion(soap, -1, type, arrayType, n);
1077  return (void*)soap_instantiate_ns2__getJavaLibraryVersionResponse(soap, -1, type, arrayType, n);
1079  return (void*)soap_instantiate_ns2__getJavaLibraryVersion(soap, -1, type, arrayType, n);
1081  return (void*)soap_instantiate_ns2__getDataTypeURIResponse(soap, -1, type, arrayType, n);
1083  return (void*)soap_instantiate_ns2__getDataTypeURI(soap, -1, type, arrayType, n);
1085  return (void*)soap_instantiate_ns2__getDataTypeURIsResponse(soap, -1, type, arrayType, n);
1087  return (void*)soap_instantiate_ns2__getDataTypeURIs(soap, -1, type, arrayType, n);
1089  return (void*)soap_instantiate_ns2__getDataTypeDefResponse(soap, -1, type, arrayType, n);
1091  return (void*)soap_instantiate_ns2__getDataTypeDef(soap, -1, type, arrayType, n);
1093  return (void*)soap_instantiate_ns2__getLocationsResponse(soap, -1, type, arrayType, n);
1095  return (void*)soap_instantiate_ns2__getLocations(soap, -1, type, arrayType, n);
1097  return (void*)soap_instantiate_ns2__getLocationsResponse_(soap, -1, type, arrayType, n);
1099  return (void*)soap_instantiate_ns2__getLocations_(soap, -1, type, arrayType, n);
1101  return (void*)soap_instantiate_ns2__isDeprecatedResponse(soap, -1, type, arrayType, n);
1103  return (void*)soap_instantiate_ns2__isDeprecated(soap, -1, type, arrayType, n);
1105  return (void*)soap_instantiate_ns2__getOfficialDataTypeURIResponse(soap, -1, type, arrayType, n);
1107  return (void*)soap_instantiate_ns2__getOfficialDataTypeURI(soap, -1, type, arrayType, n);
1109  return (void*)soap_instantiate_ns2__getMiriamURIResponse(soap, -1, type, arrayType, n);
1111  return (void*)soap_instantiate_ns2__getMiriamURI(soap, -1, type, arrayType, n);
1113  return (void*)soap_instantiate_ns2__getDataTypePatternResponse(soap, -1, type, arrayType, n);
1115  return (void*)soap_instantiate_ns2__getDataTypePattern(soap, -1, type, arrayType, n);
1117  return (void*)soap_instantiate_ns2__getResourceInfoResponse(soap, -1, type, arrayType, n);
1119  return (void*)soap_instantiate_ns2__getResourceInfo(soap, -1, type, arrayType, n);
1121  return (void*)soap_instantiate_ns2__getResourceInstitutionResponse(soap, -1, type, arrayType, n);
1123  return (void*)soap_instantiate_ns2__getResourceInstitution(soap, -1, type, arrayType, n);
1125  return (void*)soap_instantiate_ns2__getResourceLocationResponse(soap, -1, type, arrayType, n);
1127  return (void*)soap_instantiate_ns2__getResourceLocation(soap, -1, type, arrayType, n);
1129  return (void*)soap_instantiate_ns2__getDataTypeSynonymsResponse(soap, -1, type, arrayType, n);
1131  return (void*)soap_instantiate_ns2__getDataTypeSynonyms(soap, -1, type, arrayType, n);
1133  return (void*)soap_instantiate_ns2__getNamesResponse(soap, -1, type, arrayType, n);
1135  return (void*)soap_instantiate_ns2__getNames(soap, -1, type, arrayType, n);
1137  return (void*)soap_instantiate_ns2__getDataTypesNameResponse(soap, -1, type, arrayType, n);
1139  return (void*)soap_instantiate_ns2__getDataTypesName(soap, -1, type, arrayType, n);
1141  return (void*)soap_instantiate_ns2__getDataTypesIdResponse(soap, -1, type, arrayType, n);
1143  return (void*)soap_instantiate_ns2__getDataTypesId(soap, -1, type, arrayType, n);
1145  return (void*)soap_instantiate_ns2__checkRegExpResponse(soap, -1, type, arrayType, n);
1147  return (void*)soap_instantiate_ns2__checkRegExp(soap, -1, type, arrayType, n);
1148 #ifndef WITH_NOGLOBAL
1150  return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n);
1151 #endif
1152 #ifndef WITH_NOGLOBAL
1154  return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n);
1155 #endif
1156 #ifndef WITH_NOGLOBAL
1158  return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n);
1159 #endif
1160 #ifndef WITH_NOGLOBAL
1162  return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n);
1163 #endif
1164 #ifndef WITH_NOGLOBAL
1166  return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n);
1167 #endif
1168  }
1169 
1170  return NULL;
1171 }
1172 
1174 {
1175  switch (p->type)
1176  {
1177  case SOAP_TYPE_std__string:
1178 
1179  if (p->size < 0)
1180  delete(std::string*)p->ptr;
1181  else
1182  delete[](std::string*)p->ptr;
1183 
1184  break;
1186 
1187  if (p->size < 0)
1189  else
1190  delete[](ArrayOf_USCORExsd_USCOREstring*)p->ptr;
1191 
1192  break;
1194 
1195  if (p->size < 0)
1196  delete(struct ns2__getNameResponse*)p->ptr;
1197  else
1198  delete[](struct ns2__getNameResponse*)p->ptr;
1199 
1200  break;
1202 
1203  if (p->size < 0)
1204  delete(struct ns2__getName*)p->ptr;
1205  else
1206  delete[](struct ns2__getName*)p->ptr;
1207 
1208  break;
1210 
1211  if (p->size < 0)
1212  delete(struct ns2__getLocationResponse*)p->ptr;
1213  else
1214  delete[](struct ns2__getLocationResponse*)p->ptr;
1215 
1216  break;
1218 
1219  if (p->size < 0)
1220  delete(struct ns2__getLocation*)p->ptr;
1221  else
1222  delete[](struct ns2__getLocation*)p->ptr;
1223 
1224  break;
1226 
1227  if (p->size < 0)
1228  delete(struct ns2__getURIResponse*)p->ptr;
1229  else
1230  delete[](struct ns2__getURIResponse*)p->ptr;
1231 
1232  break;
1233  case SOAP_TYPE_ns2__getURI:
1234 
1235  if (p->size < 0)
1236  delete(struct ns2__getURI*)p->ptr;
1237  else
1238  delete[](struct ns2__getURI*)p->ptr;
1239 
1240  break;
1242 
1243  if (p->size < 0)
1244  delete(struct ns2__getDataResourcesResponse*)p->ptr;
1245  else
1246  delete[](struct ns2__getDataResourcesResponse*)p->ptr;
1247 
1248  break;
1250 
1251  if (p->size < 0)
1252  delete(struct ns2__getDataResources*)p->ptr;
1253  else
1254  delete[](struct ns2__getDataResources*)p->ptr;
1255 
1256  break;
1258 
1259  if (p->size < 0)
1260  delete(struct ns2__getServicesInfoResponse*)p->ptr;
1261  else
1262  delete[](struct ns2__getServicesInfoResponse*)p->ptr;
1263 
1264  break;
1266 
1267  if (p->size < 0)
1268  delete(struct ns2__getServicesInfo*)p->ptr;
1269  else
1270  delete[](struct ns2__getServicesInfo*)p->ptr;
1271 
1272  break;
1274 
1275  if (p->size < 0)
1276  delete(struct ns2__getServicesVersionResponse*)p->ptr;
1277  else
1278  delete[](struct ns2__getServicesVersionResponse*)p->ptr;
1279 
1280  break;
1282 
1283  if (p->size < 0)
1284  delete(struct ns2__getServicesVersion*)p->ptr;
1285  else
1286  delete[](struct ns2__getServicesVersion*)p->ptr;
1287 
1288  break;
1290 
1291  if (p->size < 0)
1292  delete(struct ns2__getJavaLibraryVersionResponse*)p->ptr;
1293  else
1294  delete[](struct ns2__getJavaLibraryVersionResponse*)p->ptr;
1295 
1296  break;
1298 
1299  if (p->size < 0)
1300  delete(struct ns2__getJavaLibraryVersion*)p->ptr;
1301  else
1302  delete[](struct ns2__getJavaLibraryVersion*)p->ptr;
1303 
1304  break;
1306 
1307  if (p->size < 0)
1308  delete(struct ns2__getDataTypeURIResponse*)p->ptr;
1309  else
1310  delete[](struct ns2__getDataTypeURIResponse*)p->ptr;
1311 
1312  break;
1314 
1315  if (p->size < 0)
1316  delete(struct ns2__getDataTypeURI*)p->ptr;
1317  else
1318  delete[](struct ns2__getDataTypeURI*)p->ptr;
1319 
1320  break;
1322 
1323  if (p->size < 0)
1324  delete(struct ns2__getDataTypeURIsResponse*)p->ptr;
1325  else
1326  delete[](struct ns2__getDataTypeURIsResponse*)p->ptr;
1327 
1328  break;
1330 
1331  if (p->size < 0)
1332  delete(struct ns2__getDataTypeURIs*)p->ptr;
1333  else
1334  delete[](struct ns2__getDataTypeURIs*)p->ptr;
1335 
1336  break;
1338 
1339  if (p->size < 0)
1340  delete(struct ns2__getDataTypeDefResponse*)p->ptr;
1341  else
1342  delete[](struct ns2__getDataTypeDefResponse*)p->ptr;
1343 
1344  break;
1346 
1347  if (p->size < 0)
1348  delete(struct ns2__getDataTypeDef*)p->ptr;
1349  else
1350  delete[](struct ns2__getDataTypeDef*)p->ptr;
1351 
1352  break;
1354 
1355  if (p->size < 0)
1356  delete(struct ns2__getLocationsResponse*)p->ptr;
1357  else
1358  delete[](struct ns2__getLocationsResponse*)p->ptr;
1359 
1360  break;
1362 
1363  if (p->size < 0)
1364  delete(struct ns2__getLocations*)p->ptr;
1365  else
1366  delete[](struct ns2__getLocations*)p->ptr;
1367 
1368  break;
1370 
1371  if (p->size < 0)
1372  delete(struct ns2__getLocationsResponse_*)p->ptr;
1373  else
1374  delete[](struct ns2__getLocationsResponse_*)p->ptr;
1375 
1376  break;
1378 
1379  if (p->size < 0)
1380  delete(struct ns2__getLocations_*)p->ptr;
1381  else
1382  delete[](struct ns2__getLocations_*)p->ptr;
1383 
1384  break;
1386 
1387  if (p->size < 0)
1388  delete(struct ns2__isDeprecatedResponse*)p->ptr;
1389  else
1390  delete[](struct ns2__isDeprecatedResponse*)p->ptr;
1391 
1392  break;
1394 
1395  if (p->size < 0)
1396  delete(struct ns2__isDeprecated*)p->ptr;
1397  else
1398  delete[](struct ns2__isDeprecated*)p->ptr;
1399 
1400  break;
1402 
1403  if (p->size < 0)
1404  delete(struct ns2__getOfficialDataTypeURIResponse*)p->ptr;
1405  else
1406  delete[](struct ns2__getOfficialDataTypeURIResponse*)p->ptr;
1407 
1408  break;
1410 
1411  if (p->size < 0)
1412  delete(struct ns2__getOfficialDataTypeURI*)p->ptr;
1413  else
1414  delete[](struct ns2__getOfficialDataTypeURI*)p->ptr;
1415 
1416  break;
1418 
1419  if (p->size < 0)
1420  delete(struct ns2__getMiriamURIResponse*)p->ptr;
1421  else
1422  delete[](struct ns2__getMiriamURIResponse*)p->ptr;
1423 
1424  break;
1426 
1427  if (p->size < 0)
1428  delete(struct ns2__getMiriamURI*)p->ptr;
1429  else
1430  delete[](struct ns2__getMiriamURI*)p->ptr;
1431 
1432  break;
1434 
1435  if (p->size < 0)
1436  delete(struct ns2__getDataTypePatternResponse*)p->ptr;
1437  else
1438  delete[](struct ns2__getDataTypePatternResponse*)p->ptr;
1439 
1440  break;
1442 
1443  if (p->size < 0)
1444  delete(struct ns2__getDataTypePattern*)p->ptr;
1445  else
1446  delete[](struct ns2__getDataTypePattern*)p->ptr;
1447 
1448  break;
1450 
1451  if (p->size < 0)
1452  delete(struct ns2__getResourceInfoResponse*)p->ptr;
1453  else
1454  delete[](struct ns2__getResourceInfoResponse*)p->ptr;
1455 
1456  break;
1458 
1459  if (p->size < 0)
1460  delete(struct ns2__getResourceInfo*)p->ptr;
1461  else
1462  delete[](struct ns2__getResourceInfo*)p->ptr;
1463 
1464  break;
1466 
1467  if (p->size < 0)
1468  delete(struct ns2__getResourceInstitutionResponse*)p->ptr;
1469  else
1470  delete[](struct ns2__getResourceInstitutionResponse*)p->ptr;
1471 
1472  break;
1474 
1475  if (p->size < 0)
1476  delete(struct ns2__getResourceInstitution*)p->ptr;
1477  else
1478  delete[](struct ns2__getResourceInstitution*)p->ptr;
1479 
1480  break;
1482 
1483  if (p->size < 0)
1484  delete(struct ns2__getResourceLocationResponse*)p->ptr;
1485  else
1486  delete[](struct ns2__getResourceLocationResponse*)p->ptr;
1487 
1488  break;
1490 
1491  if (p->size < 0)
1492  delete(struct ns2__getResourceLocation*)p->ptr;
1493  else
1494  delete[](struct ns2__getResourceLocation*)p->ptr;
1495 
1496  break;
1498 
1499  if (p->size < 0)
1500  delete(struct ns2__getDataTypeSynonymsResponse*)p->ptr;
1501  else
1502  delete[](struct ns2__getDataTypeSynonymsResponse*)p->ptr;
1503 
1504  break;
1506 
1507  if (p->size < 0)
1508  delete(struct ns2__getDataTypeSynonyms*)p->ptr;
1509  else
1510  delete[](struct ns2__getDataTypeSynonyms*)p->ptr;
1511 
1512  break;
1514 
1515  if (p->size < 0)
1516  delete(struct ns2__getNamesResponse*)p->ptr;
1517  else
1518  delete[](struct ns2__getNamesResponse*)p->ptr;
1519 
1520  break;
1522 
1523  if (p->size < 0)
1524  delete(struct ns2__getNames*)p->ptr;
1525  else
1526  delete[](struct ns2__getNames*)p->ptr;
1527 
1528  break;
1530 
1531  if (p->size < 0)
1532  delete(struct ns2__getDataTypesNameResponse*)p->ptr;
1533  else
1534  delete[](struct ns2__getDataTypesNameResponse*)p->ptr;
1535 
1536  break;
1538 
1539  if (p->size < 0)
1540  delete(struct ns2__getDataTypesName*)p->ptr;
1541  else
1542  delete[](struct ns2__getDataTypesName*)p->ptr;
1543 
1544  break;
1546 
1547  if (p->size < 0)
1548  delete(struct ns2__getDataTypesIdResponse*)p->ptr;
1549  else
1550  delete[](struct ns2__getDataTypesIdResponse*)p->ptr;
1551 
1552  break;
1554 
1555  if (p->size < 0)
1556  delete(struct ns2__getDataTypesId*)p->ptr;
1557  else
1558  delete[](struct ns2__getDataTypesId*)p->ptr;
1559 
1560  break;
1562 
1563  if (p->size < 0)
1564  delete(struct ns2__checkRegExpResponse*)p->ptr;
1565  else
1566  delete[](struct ns2__checkRegExpResponse*)p->ptr;
1567 
1568  break;
1570 
1571  if (p->size < 0)
1572  delete(struct ns2__checkRegExp*)p->ptr;
1573  else
1574  delete[](struct ns2__checkRegExp*)p->ptr;
1575 
1576  break;
1578 
1579  if (p->size < 0)
1580  delete(struct SOAP_ENV__Header*)p->ptr;
1581  else
1582  delete[](struct SOAP_ENV__Header*)p->ptr;
1583 
1584  break;
1586 
1587  if (p->size < 0)
1588  delete(struct SOAP_ENV__Code*)p->ptr;
1589  else
1590  delete[](struct SOAP_ENV__Code*)p->ptr;
1591 
1592  break;
1594 
1595  if (p->size < 0)
1596  delete(struct SOAP_ENV__Detail*)p->ptr;
1597  else
1598  delete[](struct SOAP_ENV__Detail*)p->ptr;
1599 
1600  break;
1602 
1603  if (p->size < 0)
1604  delete(struct SOAP_ENV__Reason*)p->ptr;
1605  else
1606  delete[](struct SOAP_ENV__Reason*)p->ptr;
1607 
1608  break;
1610 
1611  if (p->size < 0)
1612  delete(struct SOAP_ENV__Fault*)p->ptr;
1613  else
1614  delete[](struct SOAP_ENV__Fault*)p->ptr;
1615 
1616  break;
1617  default: return SOAP_ERR;
1618  }
1619 
1620  return SOAP_OK;
1621 }
1622 
1623 SOAP_FMAC3 void* SOAP_FMAC4 soap_class_id_enter(struct soap *soap, const char *id, void *p, int t, size_t n, const char *type, const char *arrayType)
1624 {
1625  return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, soap_instantiate);
1626 }
1627 
1629 {
1630  (void)soap; /* appease -Wall -Werror */
1631 #ifdef SOAP_DEFAULT_byte
1632  *a = SOAP_DEFAULT_byte;
1633 #else
1634  *a = (char)0;
1635 #endif
1636 }
1637 
1638 SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type)
1639 {
1640  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_byte);
1641 
1642  if (soap_out_byte(soap, tag, id, a, type))
1643  return soap->error;
1644 
1645  return soap_putindependent(soap);
1646 }
1647 
1648 SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type)
1649 {
1650  return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_byte);
1651 }
1652 
1653 SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type)
1654 {
1655  if ((p = soap_in_byte(soap, tag, p, type)))
1656  if (soap_getindependent(soap))
1657  return NULL;
1658 
1659  return p;
1660 }
1661 
1662 SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type)
1663 {
1664  char *p;
1665  p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte);
1666  return p;
1667 }
1668 
1670 {
1671  (void)soap; /* appease -Wall -Werror */
1672 #ifdef SOAP_DEFAULT_int
1673  *a = SOAP_DEFAULT_int;
1674 #else
1675  *a = (int)0;
1676 #endif
1677 }
1678 
1679 SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type)
1680 {
1681  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_int);
1682 
1683  if (soap_out_int(soap, tag, id, a, type))
1684  return soap->error;
1685 
1686  return soap_putindependent(soap);
1687 }
1688 
1689 SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type)
1690 {
1691  return soap_outint(soap, tag, id, a, type, SOAP_TYPE_int);
1692 }
1693 
1694 SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type)
1695 {
1696  if ((p = soap_in_int(soap, tag, p, type)))
1697  if (soap_getindependent(soap))
1698  return NULL;
1699 
1700  return p;
1701 }
1702 
1703 SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type)
1704 {
1705  int *p;
1706  p = soap_inint(soap, tag, a, type, SOAP_TYPE_int);
1707  return p;
1708 }
1709 
1711 {
1712  (void)soap; /* appease -Wall -Werror */
1713  p->erase();
1714 }
1715 
1716 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_std__string(struct soap *soap, const std::string *p)
1717 {
1718  (void)soap; (void)p; /* appease -Wall -Werror */
1719 }
1720 
1721 SOAP_FMAC3 int SOAP_FMAC4 soap_put_std__string(struct soap *soap, const std::string *a, const char *tag, const char *type)
1722 {
1723  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_std__string);
1724 
1725  if (soap_out_std__string(soap, tag, id, a, type))
1726  return soap->error;
1727 
1728  return soap_putindependent(soap);
1729 }
1730 SOAP_FMAC3 int SOAP_FMAC4 soap_out_std__string(struct soap *soap, const char *tag, int id, const std::string *s, const char *type)
1731 {
1732  if ((soap->mode & SOAP_C_NILSTRING) && s->empty())
1733  return soap_element_null(soap, tag, id, type);
1734 
1735  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, s, SOAP_TYPE_std__string), type) || soap_string_out(soap, s->c_str(), 0) || soap_element_end_out(soap, tag))
1736  return soap->error;
1737 
1738  return SOAP_OK;
1739 }
1740 
1741 SOAP_FMAC3 std::string * SOAP_FMAC4 soap_get_std__string(struct soap *soap, std::string *p, const char *tag, const char *type)
1742 {
1743  if ((p = soap_in_std__string(soap, tag, p, type)))
1744  if (soap_getindependent(soap))
1745  return NULL;
1746 
1747  return p;
1748 }
1749 
1750 SOAP_FMAC1 std::string * SOAP_FMAC2 soap_in_std__string(struct soap *soap, const char *tag, std::string *s, const char *type)
1751 {
1752  if (soap_element_begin_in(soap, tag, 1, NULL))
1753  return NULL;
1754 
1755  if (!s)
1756  s = soap_new_std__string(soap, -1);
1757 
1758  if (soap->null)
1759  if (s)
1760  s->erase();
1761 
1762  if (soap->body && !*soap->href)
1763  {
1764  char *t;
1765  s = (std::string*)soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType);
1766 
1767  if (s)
1768  {
1769  if ((t = soap_string_in(soap, 1, -1, -1)))
1770  {
1771  s->assign(t);
1772  }
1773  else
1774  {
1775  return NULL;
1776  }
1777  }
1778  }
1779  else
1780  s = (std::string*)soap_id_forward(soap, soap->href, soap_class_id_enter(soap, soap->id, s, SOAP_TYPE_std__string, sizeof(std::string), soap->type, soap->arrayType), 0, SOAP_TYPE_std__string, 0, sizeof(std::string), 0, soap_copy_std__string);
1781 
1782  if (soap->body && soap_element_end_in(soap, tag))
1783  return NULL;
1784 
1785  return s;
1786 }
1787 
1788 SOAP_FMAC5 std::string * SOAP_FMAC6 soap_new_std__string(struct soap *soap, int n)
1789 {
1790  return soap_instantiate_std__string(soap, n, NULL, NULL, NULL);
1791 }
1792 
1794 {
1795  soap_delete(soap, p);
1796 }
1797 
1798 SOAP_FMAC3 std::string * SOAP_FMAC4 soap_instantiate_std__string(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1799 {
1800  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_std__string(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
1801  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_std__string, n, soap_fdelete);
1802 
1803  if (!cp)
1804  return NULL;
1805 
1806  if (n < 0)
1807  {
1808  cp->ptr = (void*)new std::string;
1809 
1810  if (size)
1811  *size = sizeof(std::string);
1812  }
1813  else
1814  {
1815  cp->ptr = (void*)new std::string[n];
1816 
1817  if (!cp->ptr)
1818  {
1819  soap->error = SOAP_EOM;
1820  return NULL;
1821  }
1822 
1823  if (size)
1824  *size = n * sizeof(std::string);
1825  }
1826 
1827  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1828  return (std::string*)cp->ptr;
1829 }
1830 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_std__string(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1831 {
1832  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying std::string %p -> %p\n", q, p));
1833  *(std::string*)p = *(std::string*)q;
1834 }
1835 
1837 {
1838  this->soap = soap;
1839  this->__size = 0;
1840  this->__ptr = NULL;
1841 }
1842 
1844 {
1845  if (this->__ptr && !soap_array_reference(soap, this, (struct soap_array*)&this->__ptr, 1, SOAP_TYPE_ArrayOf_USCORExsd_USCOREstring))
1846  for (int i = 0; i < this->__size; i++)
1847  {
1848  soap_embedded(soap, this->__ptr + i, SOAP_TYPE_std__string);
1849  soap_serialize_std__string(soap, this->__ptr + i);
1850  }
1851 }
1852 
1853 int ArrayOf_USCORExsd_USCOREstring::soap_put(struct soap *soap, const char *tag, const char *type) const
1854 {
1855  register int id = soap_embed(soap, (void*)this, (struct soap_array*) & this->__ptr, 1, tag, SOAP_TYPE_ArrayOf_USCORExsd_USCOREstring);
1856 
1857  if (this->soap_out(soap, tag, id, type))
1858  return soap->error;
1859 
1860  return soap_putindependent(soap);
1861 }
1862 
1863 int ArrayOf_USCORExsd_USCOREstring::soap_out(struct soap *soap, const char *tag, int id, const char *type) const
1864 {
1865  return soap_out_ArrayOf_USCORExsd_USCOREstring(soap, tag, id, this, type);
1866 }
1867 
1869 {
1870  int i, n = a->__size;
1871  char *t = a->__ptr ? soap_putsize(soap, "xsd:string", a->__size) : NULL;
1872  id = soap_element_id(soap, tag, id, a, (struct soap_array*) & a->__ptr, 1, type, SOAP_TYPE_ArrayOf_USCORExsd_USCOREstring);
1873 
1874  if (id < 0)
1875  return soap->error;
1876 
1877  if (soap_array_begin_out(soap, tag, id, t, NULL))
1878  return soap->error;
1879 
1880  for (i = 0; i < n; i++)
1881  {
1882  soap->position = 1;
1883  soap->positions[0] = i;
1884  soap_out_std__string(soap, "item", -1, &a->__ptr[i], "");
1885  }
1886 
1887  soap->position = 0;
1888  return soap_element_end_out(soap, tag);
1889 }
1890 
1891 void *ArrayOf_USCORExsd_USCOREstring::soap_get(struct soap *soap, const char *tag, const char *type)
1892 {
1893  return soap_get_ArrayOf_USCORExsd_USCOREstring(soap, this, tag, type);
1894 }
1895 
1897 {
1898  if ((p = soap_in_ArrayOf_USCORExsd_USCOREstring(soap, tag, p, type)))
1899  if (soap_getindependent(soap))
1900  return NULL;
1901 
1902  return p;
1903 }
1904 
1905 void *ArrayOf_USCORExsd_USCOREstring::soap_in(struct soap *soap, const char *tag, const char *type)
1906 {
1907  return soap_in_ArrayOf_USCORExsd_USCOREstring(soap, tag, this, type);
1908 }
1909 
1911 {
1912  int i, j;
1913  std::string *p;
1914 
1915  if (soap_element_begin_in(soap, tag, 1, NULL))
1916  return NULL;
1917 
1918  if (soap_match_array(soap, type))
1919  {
1920  soap->error = SOAP_TYPE;
1921  return NULL;
1922  }
1923 
1925 
1926  if (!a)
1927  return NULL;
1928 
1929  if (soap->alloced)
1930  a->soap_default(soap);
1931 
1932  if (soap->body && !*soap->href)
1933  {
1934  a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j);
1935 
1936  if (a->__size >= 0)
1937  {
1938  a->__ptr = soap_new_std__string(soap, a->__size);
1939 
1940  for (i = 0; i < a->__size; i++)
1941  soap_default_std__string(soap, a->__ptr + i);
1942 
1943  for (i = 0; i < a->__size; i++)
1944  {
1945  soap_peek_element(soap);
1946 
1947  if (soap->position)
1948  {
1949  i = soap->positions[0] - j;
1950 
1951  if (i < 0 || i >= a->__size)
1952  {
1953  soap->error = SOAP_IOB;
1954  return NULL;
1955  }
1956  }
1957 
1958  if (!soap_in_std__string(soap, NULL, a->__ptr + i, "xsd:string"))
1959  {
1960  if (soap->error != SOAP_NO_TAG)
1961  return NULL;
1962 
1963  soap->error = SOAP_OK;
1964  break;
1965  }
1966  }
1967  }
1968  else
1969  {
1970  std::string q;
1971 
1972  if (soap_new_block(soap) == NULL)
1973  return NULL;
1974 
1975  for (a->__size = 0; ; a->__size++)
1976  {
1977  p = (std::string *)soap_push_block(soap, NULL, sizeof(std::string));
1978 
1979  if (!p)
1980  return NULL;
1981 
1982  memcpy(p, &q, sizeof(std::string));
1983  soap_default_std__string(soap, p);
1984 
1985  if (!soap_in_std__string(soap, NULL, p, "xsd:string"))
1986  {
1987  if (soap->error != SOAP_NO_TAG)
1988  return NULL;
1989 
1990  soap->error = SOAP_OK;
1991  break;
1992  }
1993  }
1994 
1995  soap_pop_block(soap, NULL);
1996 
1997  if (soap->blist->size)
1998  a->__ptr = soap_new_std__string(soap, soap->blist->size / sizeof(std::string));
1999  else
2000  a->__ptr = NULL;
2001 
2002  soap_save_block(soap, NULL, (char*)a->__ptr, 1);
2003  }
2004 
2005  if (soap_element_end_in(soap, tag))
2006  return NULL;
2007  }
2008  else
2009  {
2011 
2012  if (soap->body && soap_element_end_in(soap, tag))
2013  return NULL;
2014  }
2015 
2016  return a;
2017 }
2018 
2020 {
2021  return soap_instantiate_ArrayOf_USCORExsd_USCOREstring(soap, n, NULL, NULL, NULL);
2022 }
2023 
2025 {
2026  soap_delete(soap, p);
2027 }
2028 
2030 {
2031  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ArrayOf_USCORExsd_USCOREstring(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2033 
2034  if (!cp)
2035  return NULL;
2036 
2037  if (n < 0)
2038  {
2039  cp->ptr = (void*)new ArrayOf_USCORExsd_USCOREstring;
2040 
2041  if (size)
2042  *size = sizeof(ArrayOf_USCORExsd_USCOREstring);
2043 
2044  ((ArrayOf_USCORExsd_USCOREstring*)cp->ptr)->soap = soap;
2045  }
2046  else
2047  {
2048  cp->ptr = (void*)new ArrayOf_USCORExsd_USCOREstring[n];
2049 
2050  if (!cp->ptr)
2051  {
2052  soap->error = SOAP_EOM;
2053  return NULL;
2054  }
2055 
2056  if (size)
2057  *size = n * sizeof(ArrayOf_USCORExsd_USCOREstring);
2058 
2059  for (int i = 0; i < n; i++)
2060  ((ArrayOf_USCORExsd_USCOREstring*)cp->ptr)[i].soap = soap;
2061  }
2062 
2063  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2064  return (ArrayOf_USCORExsd_USCOREstring*)cp->ptr;
2065 }
2066 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ArrayOf_USCORExsd_USCOREstring(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2067 {
2068  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying ArrayOf_USCORExsd_USCOREstring %p -> %p\n", q, p));
2070 }
2071 
2072 #ifndef WITH_NOGLOBAL
2073 
2075 {
2076  (void)soap; (void)a; /* appease -Wall -Werror */
2077  soap_default__QName(soap, &a->faultcode);
2078  soap_default_string(soap, &a->faultstring);
2079  soap_default_string(soap, &a->faultactor);
2080  a->detail = NULL;
2081  a->SOAP_ENV__Code = NULL;
2082  a->SOAP_ENV__Reason = NULL;
2085  a->SOAP_ENV__Detail = NULL;
2086 }
2087 
2089 {
2090  (void)soap; (void)a; /* appease -Wall -Werror */
2091  soap_serialize__QName(soap, &a->faultcode);
2093  soap_serialize_string(soap, &a->faultactor);
2100 }
2101 
2102 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)
2103 {
2104  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Fault);
2105 
2106  if (soap_out_SOAP_ENV__Fault(soap, tag, id, a, type))
2107  return soap->error;
2108 
2109  return soap_putindependent(soap);
2110 }
2111 
2112 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)
2113 {
2114  const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode);
2115 
2116  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type))
2117  return soap->error;
2118 
2119  if (soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, ""))
2120  return soap->error;
2121 
2122  if (soap_out_string(soap, "faultstring", -1, &a->faultstring, ""))
2123  return soap->error;
2124 
2125  if (soap_out_string(soap, "faultactor", -1, &a->faultactor, ""))
2126  return soap->error;
2127 
2128  if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, ""))
2129  return soap->error;
2130 
2131  if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, ""))
2132  return soap->error;
2133 
2134  if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, ""))
2135  return soap->error;
2136 
2137  if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, ""))
2138  return soap->error;
2139 
2140  if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, ""))
2141  return soap->error;
2142 
2143  if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, ""))
2144  return soap->error;
2145 
2146  return soap_element_end_out(soap, tag);
2147 }
2148 
2149 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)
2150 {
2151  if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type)))
2152  if (soap_getindependent(soap))
2153  return NULL;
2154 
2155  return p;
2156 }
2157 
2158 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)
2159 {
2160  size_t soap_flag_faultcode = 1;
2161  size_t soap_flag_faultstring = 1;
2162  size_t soap_flag_faultactor = 1;
2163  size_t soap_flag_detail = 1;
2164  size_t soap_flag_SOAP_ENV__Code = 1;
2165  size_t soap_flag_SOAP_ENV__Reason = 1;
2166  size_t soap_flag_SOAP_ENV__Node = 1;
2167  size_t soap_flag_SOAP_ENV__Role = 1;
2168  size_t soap_flag_SOAP_ENV__Detail = 1;
2169 
2170  if (soap_element_begin_in(soap, tag, 0, type))
2171  return NULL;
2172 
2173  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);
2174 
2175  if (!a)
2176  return NULL;
2177 
2179 
2180  if (soap->body && !*soap->href)
2181  {
2182  for (;;)
2183  {
2184  soap->error = SOAP_TAG_MISMATCH;
2185 
2186  if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2187  if (soap_in__QName(soap, "faultcode", &a->faultcode, ""))
2188  {
2189  soap_flag_faultcode--;
2190  continue;
2191  }
2192 
2193  if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2194  if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string"))
2195  {
2196  soap_flag_faultstring--;
2197  continue;
2198  }
2199 
2200  if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2201  if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string"))
2202  {
2203  soap_flag_faultactor--;
2204  continue;
2205  }
2206 
2207  if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH)
2208  if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, ""))
2209  {
2210  soap_flag_detail--;
2211  continue;
2212  }
2213 
2214  if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH)
2215  if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, ""))
2216  {
2217  soap_flag_SOAP_ENV__Code--;
2218  continue;
2219  }
2220 
2221  if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH)
2222  if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, ""))
2223  {
2224  soap_flag_SOAP_ENV__Reason--;
2225  continue;
2226  }
2227 
2228  if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2229  if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string"))
2230  {
2231  soap_flag_SOAP_ENV__Node--;
2232  continue;
2233  }
2234 
2235  if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2236  if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string"))
2237  {
2238  soap_flag_SOAP_ENV__Role--;
2239  continue;
2240  }
2241 
2242  if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH)
2243  if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, ""))
2244  {
2245  soap_flag_SOAP_ENV__Detail--;
2246  continue;
2247  }
2248 
2249  if (soap->error == SOAP_TAG_MISMATCH)
2250  soap->error = soap_ignore_element(soap);
2251 
2252  if (soap->error == SOAP_NO_TAG)
2253  break;
2254 
2255  if (soap->error)
2256  return NULL;
2257  }
2258 
2259  if (soap_element_end_in(soap, tag))
2260  return NULL;
2261  }
2262  else
2263  {
2264  a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL);
2265 
2266  if (soap->body && soap_element_end_in(soap, tag))
2267  return NULL;
2268  }
2269 
2270  return a;
2271 }
2272 
2274 {
2275  return soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL);
2276 }
2277 
2279 {
2280  soap_delete(soap, p);
2281 }
2282 
2283 SOAP_FMAC3 struct SOAP_ENV__Fault * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Fault(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2284 {
2285  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2286  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Fault, n, soap_fdelete);
2287 
2288  if (!cp)
2289  return NULL;
2290 
2291  if (n < 0)
2292  {
2293  cp->ptr = (void*)new struct SOAP_ENV__Fault;
2294 
2295  if (size)
2296  *size = sizeof(struct SOAP_ENV__Fault);
2297  }
2298  else
2299  {
2300  cp->ptr = (void*)new struct SOAP_ENV__Fault[n];
2301 
2302  if (!cp->ptr)
2303  {
2304  soap->error = SOAP_EOM;
2305  return NULL;
2306  }
2307 
2308  if (size)
2309  *size = n * sizeof(struct SOAP_ENV__Fault);
2310  }
2311 
2312  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2313  return (struct SOAP_ENV__Fault*)cp->ptr;
2314 }
2315 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Fault(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2316 {
2317  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p));
2318  *(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q;
2319 }
2320 
2321 #endif
2322 
2323 #ifndef WITH_NOGLOBAL
2324 
2326 {
2327  (void)soap; (void)a; /* appease -Wall -Werror */
2329 }
2330 
2332 {
2333  (void)soap; (void)a; /* appease -Wall -Werror */
2335 }
2336 
2337 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)
2338 {
2339  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Reason);
2340 
2341  if (soap_out_SOAP_ENV__Reason(soap, tag, id, a, type))
2342  return soap->error;
2343 
2344  return soap_putindependent(soap);
2345 }
2346 
2347 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)
2348 {
2349  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type))
2350  return soap->error;
2351 
2352  if (soap->lang)
2353  soap_set_attr(soap, "xml:lang", soap->lang);
2354 
2355  if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, ""))
2356  return soap->error;
2357 
2358  return soap_element_end_out(soap, tag);
2359 }
2360 
2361 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)
2362 {
2363  if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type)))
2364  if (soap_getindependent(soap))
2365  return NULL;
2366 
2367  return p;
2368 }
2369 
2370 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)
2371 {
2372  size_t soap_flag_SOAP_ENV__Text = 1;
2373 
2374  if (soap_element_begin_in(soap, tag, 0, type))
2375  return NULL;
2376 
2377  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);
2378 
2379  if (!a)
2380  return NULL;
2381 
2383 
2384  if (soap->body && !*soap->href)
2385  {
2386  for (;;)
2387  {
2388  soap->error = SOAP_TAG_MISMATCH;
2389 
2390  if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2391  if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string"))
2392  {
2393  soap_flag_SOAP_ENV__Text--;
2394  continue;
2395  }
2396 
2397  if (soap->error == SOAP_TAG_MISMATCH)
2398  soap->error = soap_ignore_element(soap);
2399 
2400  if (soap->error == SOAP_NO_TAG)
2401  break;
2402 
2403  if (soap->error)
2404  return NULL;
2405  }
2406 
2407  if (soap_element_end_in(soap, tag))
2408  return NULL;
2409  }
2410  else
2411  {
2412  a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL);
2413 
2414  if (soap->body && soap_element_end_in(soap, tag))
2415  return NULL;
2416  }
2417 
2418  return a;
2419 }
2420 
2422 {
2423  return soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL);
2424 }
2425 
2427 {
2428  soap_delete(soap, p);
2429 }
2430 
2431 SOAP_FMAC3 struct SOAP_ENV__Reason * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Reason(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2432 {
2433  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2434  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Reason, n, soap_fdelete);
2435 
2436  if (!cp)
2437  return NULL;
2438 
2439  if (n < 0)
2440  {
2441  cp->ptr = (void*)new struct SOAP_ENV__Reason;
2442 
2443  if (size)
2444  *size = sizeof(struct SOAP_ENV__Reason);
2445  }
2446  else
2447  {
2448  cp->ptr = (void*)new struct SOAP_ENV__Reason[n];
2449 
2450  if (!cp->ptr)
2451  {
2452  soap->error = SOAP_EOM;
2453  return NULL;
2454  }
2455 
2456  if (size)
2457  *size = n * sizeof(struct SOAP_ENV__Reason);
2458  }
2459 
2460  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2461  return (struct SOAP_ENV__Reason*)cp->ptr;
2462 }
2463 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Reason(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2464 {
2465  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p));
2466  *(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q;
2467 }
2468 
2469 #endif
2470 
2471 #ifndef WITH_NOGLOBAL
2472 
2474 {
2475  (void)soap; (void)a; /* appease -Wall -Werror */
2476  a->__type = 0;
2477  a->fault = NULL;
2478  a->__any = NULL;
2479 }
2480 
2482 {
2483  (void)soap; (void)a; /* appease -Wall -Werror */
2484  soap_markelement(soap, a->fault, a->__type);
2485 }
2486 
2487 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)
2488 {
2489  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Detail);
2490 
2491  if (soap_out_SOAP_ENV__Detail(soap, tag, id, a, type))
2492  return soap->error;
2493 
2494  return soap_putindependent(soap);
2495 }
2496 
2497 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)
2498 {
2499  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type))
2500  return soap->error;
2501 
2502  if (soap_putelement(soap, a->fault, "fault", -1, a->__type))
2503  return soap->error;
2504 
2505  soap_outliteral(soap, "-any", &a->__any, NULL);
2506  return soap_element_end_out(soap, tag);
2507 }
2508 
2509 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)
2510 {
2511  if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type)))
2512  if (soap_getindependent(soap))
2513  return NULL;
2514 
2515  return p;
2516 }
2517 
2518 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)
2519 {
2520  size_t soap_flag_fault = 1;
2521  size_t soap_flag___any = 1;
2522 
2523  if (soap_element_begin_in(soap, tag, 0, type))
2524  return NULL;
2525 
2526  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);
2527 
2528  if (!a)
2529  return NULL;
2530 
2532 
2533  if (soap->body && !*soap->href)
2534  {
2535  for (;;)
2536  {
2537  soap->error = SOAP_TAG_MISMATCH;
2538 
2539  if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH)
2540  if ((a->fault = soap_getelement(soap, &a->__type)))
2541  {
2542  soap_flag_fault = 0;
2543  continue;
2544  }
2545 
2546  if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2547  if (soap_inliteral(soap, "-any", &a->__any))
2548  {
2549  soap_flag___any--;
2550  continue;
2551  }
2552 
2553  if (soap->error == SOAP_TAG_MISMATCH)
2554  soap->error = soap_ignore_element(soap);
2555 
2556  if (soap->error == SOAP_NO_TAG)
2557  break;
2558 
2559  if (soap->error)
2560  return NULL;
2561  }
2562 
2563  if (soap_element_end_in(soap, tag))
2564  return NULL;
2565  }
2566  else
2567  {
2568  a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL);
2569 
2570  if (soap->body && soap_element_end_in(soap, tag))
2571  return NULL;
2572  }
2573 
2574  return a;
2575 }
2576 
2578 {
2579  return soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL);
2580 }
2581 
2583 {
2584  soap_delete(soap, p);
2585 }
2586 
2587 SOAP_FMAC3 struct SOAP_ENV__Detail * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Detail(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2588 {
2589  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2590  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Detail, n, soap_fdelete);
2591 
2592  if (!cp)
2593  return NULL;
2594 
2595  if (n < 0)
2596  {
2597  cp->ptr = (void*)new struct SOAP_ENV__Detail;
2598 
2599  if (size)
2600  *size = sizeof(struct SOAP_ENV__Detail);
2601  }
2602  else
2603  {
2604  cp->ptr = (void*)new struct SOAP_ENV__Detail[n];
2605 
2606  if (!cp->ptr)
2607  {
2608  soap->error = SOAP_EOM;
2609  return NULL;
2610  }
2611 
2612  if (size)
2613  *size = n * sizeof(struct SOAP_ENV__Detail);
2614  }
2615 
2616  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2617  return (struct SOAP_ENV__Detail*)cp->ptr;
2618 }
2619 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Detail(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2620 {
2621  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p));
2622  *(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q;
2623 }
2624 
2625 #endif
2626 
2627 #ifndef WITH_NOGLOBAL
2628 
2630 {
2631  (void)soap; (void)a; /* appease -Wall -Werror */
2633  a->SOAP_ENV__Subcode = NULL;
2634 }
2635 
2637 {
2638  (void)soap; (void)a; /* appease -Wall -Werror */
2641 }
2642 
2643 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)
2644 {
2645  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Code);
2646 
2647  if (soap_out_SOAP_ENV__Code(soap, tag, id, a, type))
2648  return soap->error;
2649 
2650  return soap_putindependent(soap);
2651 }
2652 
2653 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)
2654 {
2655  const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value);
2656 
2657  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type))
2658  return soap->error;
2659 
2660  if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, ""))
2661  return soap->error;
2662 
2663  if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, ""))
2664  return soap->error;
2665 
2666  return soap_element_end_out(soap, tag);
2667 }
2668 
2669 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)
2670 {
2671  if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type)))
2672  if (soap_getindependent(soap))
2673  return NULL;
2674 
2675  return p;
2676 }
2677 
2678 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)
2679 {
2680  size_t soap_flag_SOAP_ENV__Value = 1;
2681  size_t soap_flag_SOAP_ENV__Subcode = 1;
2682 
2683  if (soap_element_begin_in(soap, tag, 0, type))
2684  return NULL;
2685 
2686  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);
2687 
2688  if (!a)
2689  return NULL;
2690 
2691  soap_default_SOAP_ENV__Code(soap, a);
2692 
2693  if (soap->body && !*soap->href)
2694  {
2695  for (;;)
2696  {
2697  soap->error = SOAP_TAG_MISMATCH;
2698 
2699  if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2700  if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, ""))
2701  {
2702  soap_flag_SOAP_ENV__Value--;
2703  continue;
2704  }
2705 
2706  if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH)
2707  if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, ""))
2708  {
2709  soap_flag_SOAP_ENV__Subcode--;
2710  continue;
2711  }
2712 
2713  if (soap->error == SOAP_TAG_MISMATCH)
2714  soap->error = soap_ignore_element(soap);
2715 
2716  if (soap->error == SOAP_NO_TAG)
2717  break;
2718 
2719  if (soap->error)
2720  return NULL;
2721  }
2722 
2723  if (soap_element_end_in(soap, tag))
2724  return NULL;
2725  }
2726  else
2727  {
2728  a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL);
2729 
2730  if (soap->body && soap_element_end_in(soap, tag))
2731  return NULL;
2732  }
2733 
2734  return a;
2735 }
2736 
2738 {
2739  return soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL);
2740 }
2741 
2743 {
2744  soap_delete(soap, p);
2745 }
2746 
2747 SOAP_FMAC3 struct SOAP_ENV__Code * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Code(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2748 {
2749  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2750  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Code, n, soap_fdelete);
2751 
2752  if (!cp)
2753  return NULL;
2754 
2755  if (n < 0)
2756  {
2757  cp->ptr = (void*)new struct SOAP_ENV__Code;
2758 
2759  if (size)
2760  *size = sizeof(struct SOAP_ENV__Code);
2761  }
2762  else
2763  {
2764  cp->ptr = (void*)new struct SOAP_ENV__Code[n];
2765 
2766  if (!cp->ptr)
2767  {
2768  soap->error = SOAP_EOM;
2769  return NULL;
2770  }
2771 
2772  if (size)
2773  *size = n * sizeof(struct SOAP_ENV__Code);
2774  }
2775 
2776  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2777  return (struct SOAP_ENV__Code*)cp->ptr;
2778 }
2779 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Code(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2780 {
2781  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p));
2782  *(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q;
2783 }
2784 
2785 #endif
2786 
2787 #ifndef WITH_NOGLOBAL
2788 
2790 {
2791  (void)soap; (void)a; /* appease -Wall -Werror */
2792 }
2793 
2795 {
2796  (void)soap; (void)a; /* appease -Wall -Werror */
2797 }
2798 
2799 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)
2800 {
2801  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Header);
2802 
2803  if (soap_out_SOAP_ENV__Header(soap, tag, id, a, type))
2804  return soap->error;
2805 
2806  return soap_putindependent(soap);
2807 }
2808 
2809 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)
2810 {
2811  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type))
2812  return soap->error;
2813 
2814  return soap_element_end_out(soap, tag);
2815 }
2816 
2817 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)
2818 {
2819  if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type)))
2820  if (soap_getindependent(soap))
2821  return NULL;
2822 
2823  return p;
2824 }
2825 
2826 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)
2827 {
2828  if (soap_element_begin_in(soap, tag, 0, type))
2829  return NULL;
2830 
2831  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);
2832 
2833  if (!a)
2834  return NULL;
2835 
2837 
2838  if (soap->body && !*soap->href)
2839  {
2840  for (;;)
2841  {
2842  soap->error = SOAP_TAG_MISMATCH;
2843 
2844  if (soap->error == SOAP_TAG_MISMATCH)
2845  soap->error = soap_ignore_element(soap);
2846 
2847  if (soap->error == SOAP_NO_TAG)
2848  break;
2849 
2850  if (soap->error)
2851  return NULL;
2852  }
2853 
2854  if (soap_element_end_in(soap, tag))
2855  return NULL;
2856  }
2857  else
2858  {
2859  a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL);
2860 
2861  if (soap->body && soap_element_end_in(soap, tag))
2862  return NULL;
2863  }
2864 
2865  return a;
2866 }
2867 
2869 {
2870  return soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL);
2871 }
2872 
2874 {
2875  soap_delete(soap, p);
2876 }
2877 
2878 SOAP_FMAC3 struct SOAP_ENV__Header * SOAP_FMAC4 soap_instantiate_SOAP_ENV__Header(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2879 {
2880  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
2881  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Header, n, soap_fdelete);
2882 
2883  if (!cp)
2884  return NULL;
2885 
2886  if (n < 0)
2887  {
2888  cp->ptr = (void*)new struct SOAP_ENV__Header;
2889 
2890  if (size)
2891  *size = sizeof(struct SOAP_ENV__Header);
2892  }
2893  else
2894  {
2895  cp->ptr = (void*)new struct SOAP_ENV__Header[n];
2896 
2897  if (!cp->ptr)
2898  {
2899  soap->error = SOAP_EOM;
2900  return NULL;
2901  }
2902 
2903  if (size)
2904  *size = n * sizeof(struct SOAP_ENV__Header);
2905  }
2906 
2907  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2908  return (struct SOAP_ENV__Header*)cp->ptr;
2909 }
2910 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_SOAP_ENV__Header(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2911 {
2912  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p));
2913  *(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q;
2914 }
2915 
2916 #endif
2917 
2919 {
2920  (void)soap; (void)a; /* appease -Wall -Werror */
2923 }
2924 
2926 {
2927  (void)soap; (void)a; /* appease -Wall -Werror */
2932 }
2933 
2934 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__checkRegExp(struct soap *soap, const struct ns2__checkRegExp *a, const char *tag, const char *type)
2935 {
2936  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__checkRegExp);
2937 
2938  if (soap_out_ns2__checkRegExp(soap, tag, id, a, type))
2939  return soap->error;
2940 
2941  return soap_putindependent(soap);
2942 }
2943 
2944 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__checkRegExp(struct soap *soap, const char *tag, int id, const struct ns2__checkRegExp *a, const char *type)
2945 {
2946  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__checkRegExp), type))
2947  return soap->error;
2948 
2949  if (soap_out_std__string(soap, "identifier", -1, &a->_identifier, ""))
2950  return soap->error;
2951 
2952  if (soap_out_std__string(soap, "datatype", -1, &a->_datatype, ""))
2953  return soap->error;
2954 
2955  return soap_element_end_out(soap, tag);
2956 }
2957 
2958 SOAP_FMAC3 struct ns2__checkRegExp * SOAP_FMAC4 soap_get_ns2__checkRegExp(struct soap *soap, struct ns2__checkRegExp *p, const char *tag, const char *type)
2959 {
2960  if ((p = soap_in_ns2__checkRegExp(soap, tag, p, type)))
2961  if (soap_getindependent(soap))
2962  return NULL;
2963 
2964  return p;
2965 }
2966 
2967 SOAP_FMAC3 struct ns2__checkRegExp * SOAP_FMAC4 soap_in_ns2__checkRegExp(struct soap *soap, const char *tag, struct ns2__checkRegExp *a, const char *type)
2968 {
2969  size_t soap_flag__identifier = 1;
2970  size_t soap_flag__datatype = 1;
2971 
2972  if (soap_element_begin_in(soap, tag, 0, type))
2973  return NULL;
2974 
2975  a = (struct ns2__checkRegExp *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__checkRegExp, sizeof(struct ns2__checkRegExp), soap->type, soap->arrayType);
2976 
2977  if (!a)
2978  return NULL;
2979 
2981 
2982  if (soap->body && !*soap->href)
2983  {
2984  for (;;)
2985  {
2986  soap->error = SOAP_TAG_MISMATCH;
2987 
2988  if (soap_flag__identifier && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2989  if (soap_in_std__string(soap, NULL, &a->_identifier, "xsd:string"))
2990  {
2991  soap_flag__identifier--;
2992  continue;
2993  }
2994 
2995  if (soap_flag__datatype && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2996  if (soap_in_std__string(soap, NULL, &a->_datatype, "xsd:string"))
2997  {
2998  soap_flag__datatype--;
2999  continue;
3000  }
3001 
3002  if (soap->error == SOAP_TAG_MISMATCH)
3003  soap->error = soap_ignore_element(soap);
3004 
3005  if (soap->error == SOAP_NO_TAG)
3006  break;
3007 
3008  if (soap->error)
3009  return NULL;
3010  }
3011 
3012  if (soap_element_end_in(soap, tag))
3013  return NULL;
3014  }
3015  else
3016  {
3017  a = (struct ns2__checkRegExp *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__checkRegExp, 0, sizeof(struct ns2__checkRegExp), 0, soap_copy_ns2__checkRegExp);
3018 
3019  if (soap->body && soap_element_end_in(soap, tag))
3020  return NULL;
3021  }
3022 
3023  if ((soap->mode & SOAP_XML_STRICT) && (soap_flag__identifier > 0 || soap_flag__datatype > 0))
3024  {
3025  soap->error = SOAP_OCCURS;
3026  return NULL;
3027  }
3028 
3029  return a;
3030 }
3031 
3033 {
3034  return soap_instantiate_ns2__checkRegExp(soap, n, NULL, NULL, NULL);
3035 }
3036 
3038 {
3039  soap_delete(soap, p);
3040 }
3041 
3042 SOAP_FMAC3 struct ns2__checkRegExp * SOAP_FMAC4 soap_instantiate_ns2__checkRegExp(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3043 {
3044  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__checkRegExp(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3045  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns2__checkRegExp, n, soap_fdelete);
3046 
3047  if (!cp)
3048  return NULL;
3049 
3050  if (n < 0)
3051  {
3052  cp->ptr = (void*)new struct ns2__checkRegExp;
3053 
3054  if (size)
3055  *size = sizeof(struct ns2__checkRegExp);
3056  }
3057  else
3058  {
3059  cp->ptr = (void*)new struct ns2__checkRegExp[n];
3060 
3061  if (!cp->ptr)
3062  {
3063  soap->error = SOAP_EOM;
3064  return NULL;
3065  }
3066 
3067  if (size)
3068  *size = n * sizeof(struct ns2__checkRegExp);
3069  }
3070 
3071  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3072  return (struct ns2__checkRegExp*)cp->ptr;
3073 }
3074 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__checkRegExp(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3075 {
3076  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__checkRegExp %p -> %p\n", q, p));
3077  *(struct ns2__checkRegExp*)p = *(struct ns2__checkRegExp*)q;
3078 }
3079 
3081 {
3082  (void)soap; (void)a; /* appease -Wall -Werror */
3084 }
3085 
3087 {
3088  (void)soap; (void)a; /* appease -Wall -Werror */
3091 }
3092 
3093 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__checkRegExpResponse(struct soap *soap, const struct ns2__checkRegExpResponse *a, const char *tag, const char *type)
3094 {
3095  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__checkRegExpResponse);
3096 
3097  if (soap_out_ns2__checkRegExpResponse(soap, tag, id, a, type))
3098  return soap->error;
3099 
3100  return soap_putindependent(soap);
3101 }
3102 
3103 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__checkRegExpResponse(struct soap *soap, const char *tag, int id, const struct ns2__checkRegExpResponse *a, const char *type)
3104 {
3106  return soap->error;
3107 
3108  if (soap_out_std__string(soap, "checkRegExpReturn", -1, &a->_checkRegExpReturn, ""))
3109  return soap->error;
3110 
3111  return soap_element_end_out(soap, tag);
3112 }
3113 
3115 {
3116  if ((p = soap_in_ns2__checkRegExpResponse(soap, tag, p, type)))
3117  if (soap_getindependent(soap))
3118  return NULL;
3119 
3120  return p;
3121 }
3122 
3124 {
3125  size_t soap_flag__checkRegExpReturn = 1;
3126 
3127  if (soap_element_begin_in(soap, tag, 0, type))
3128  return NULL;
3129 
3131 
3132  if (!a)
3133  return NULL;
3134 
3136 
3137  if (soap->body && !*soap->href)
3138  {
3139  for (;;)
3140  {
3141  soap->error = SOAP_TAG_MISMATCH;
3142 
3143  if (soap_flag__checkRegExpReturn && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
3144  if (soap_in_std__string(soap, NULL, &a->_checkRegExpReturn, "xsd:string"))
3145  {
3146  soap_flag__checkRegExpReturn--;
3147  continue;
3148  }
3149 
3150  if (soap->error == SOAP_TAG_MISMATCH)
3151  soap->error = soap_ignore_element(soap);
3152 
3153  if (soap->error == SOAP_NO_TAG)
3154  break;
3155 
3156  if (soap->error)
3157  return NULL;
3158  }
3159 
3160  if (soap_element_end_in(soap, tag))
3161  return NULL;
3162  }
3163  else
3164  {
3165  a = (struct ns2__checkRegExpResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__checkRegExpResponse, 0, sizeof(struct ns2__checkRegExpResponse), 0, soap_copy_ns2__checkRegExpResponse);
3166 
3167  if (soap->body && soap_element_end_in(soap, tag))
3168  return NULL;
3169  }
3170 
3171  if ((soap->mode & SOAP_XML_STRICT) && (soap_flag__checkRegExpReturn > 0))
3172  {
3173  soap->error = SOAP_OCCURS;
3174  return NULL;
3175  }
3176 
3177  return a;
3178 }
3179 
3181 {
3182  return soap_instantiate_ns2__checkRegExpResponse(soap, n, NULL, NULL, NULL);
3183 }
3184 
3186 {
3187  soap_delete(soap, p);
3188 }
3189 
3190 SOAP_FMAC3 struct ns2__checkRegExpResponse * SOAP_FMAC4 soap_instantiate_ns2__checkRegExpResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3191 {
3192  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__checkRegExpResponse(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3194 
3195  if (!cp)
3196  return NULL;
3197 
3198  if (n < 0)
3199  {
3200  cp->ptr = (void*)new struct ns2__checkRegExpResponse;
3201 
3202  if (size)
3203  *size = sizeof(struct ns2__checkRegExpResponse);
3204  }
3205  else
3206  {
3207  cp->ptr = (void*)new struct ns2__checkRegExpResponse[n];
3208 
3209  if (!cp->ptr)
3210  {
3211  soap->error = SOAP_EOM;
3212  return NULL;
3213  }
3214 
3215  if (size)
3216  *size = n * sizeof(struct ns2__checkRegExpResponse);
3217  }
3218 
3219  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3220  return (struct ns2__checkRegExpResponse*)cp->ptr;
3221 }
3222 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__checkRegExpResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3223 {
3224  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__checkRegExpResponse %p -> %p\n", q, p));
3225  *(struct ns2__checkRegExpResponse*)p = *(struct ns2__checkRegExpResponse*)q;
3226 }
3227 
3229 {
3230  (void)soap; (void)a; /* appease -Wall -Werror */
3231 }
3232 
3234 {
3235  (void)soap; (void)a; /* appease -Wall -Werror */
3236 }
3237 
3238 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypesId(struct soap *soap, const struct ns2__getDataTypesId *a, const char *tag, const char *type)
3239 {
3240  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypesId);
3241 
3242  if (soap_out_ns2__getDataTypesId(soap, tag, id, a, type))
3243  return soap->error;
3244 
3245  return soap_putindependent(soap);
3246 }
3247 
3248 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypesId(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypesId *a, const char *type)
3249 {
3250  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__getDataTypesId), type))
3251  return soap->error;
3252 
3253  return soap_element_end_out(soap, tag);
3254 }
3255 
3256 SOAP_FMAC3 struct ns2__getDataTypesId * SOAP_FMAC4 soap_get_ns2__getDataTypesId(struct soap *soap, struct ns2__getDataTypesId *p, const char *tag, const char *type)
3257 {
3258  if ((p = soap_in_ns2__getDataTypesId(soap, tag, p, type)))
3259  if (soap_getindependent(soap))
3260  return NULL;
3261 
3262  return p;
3263 }
3264 
3265 SOAP_FMAC3 struct ns2__getDataTypesId * SOAP_FMAC4 soap_in_ns2__getDataTypesId(struct soap *soap, const char *tag, struct ns2__getDataTypesId *a, const char *type)
3266 {
3267  if (soap_element_begin_in(soap, tag, 0, type))
3268  return NULL;
3269 
3270  a = (struct ns2__getDataTypesId *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getDataTypesId, sizeof(struct ns2__getDataTypesId), 0, NULL, NULL, NULL);
3271 
3272  if (!a)
3273  return NULL;
3274 
3276 
3277  if (soap->body && !*soap->href)
3278  {
3279  for (;;)
3280  {
3281  soap->error = SOAP_TAG_MISMATCH;
3282 
3283  if (soap->error == SOAP_TAG_MISMATCH)
3284  soap->error = soap_ignore_element(soap);
3285 
3286  if (soap->error == SOAP_NO_TAG)
3287  break;
3288 
3289  if (soap->error)
3290  return NULL;
3291  }
3292 
3293  if (soap_element_end_in(soap, tag))
3294  return NULL;
3295  }
3296  else
3297  {
3298  a = (struct ns2__getDataTypesId *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getDataTypesId, 0, sizeof(struct ns2__getDataTypesId), 0, NULL);
3299 
3300  if (soap->body && soap_element_end_in(soap, tag))
3301  return NULL;
3302  }
3303 
3304  return a;
3305 }
3306 
3308 {
3309  return soap_instantiate_ns2__getDataTypesId(soap, n, NULL, NULL, NULL);
3310 }
3311 
3313 {
3314  soap_delete(soap, p);
3315 }
3316 
3317 SOAP_FMAC3 struct ns2__getDataTypesId * SOAP_FMAC4 soap_instantiate_ns2__getDataTypesId(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3318 {
3319  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypesId(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3320  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns2__getDataTypesId, n, soap_fdelete);
3321 
3322  if (!cp)
3323  return NULL;
3324 
3325  if (n < 0)
3326  {
3327  cp->ptr = (void*)new struct ns2__getDataTypesId;
3328 
3329  if (size)
3330  *size = sizeof(struct ns2__getDataTypesId);
3331  }
3332  else
3333  {
3334  cp->ptr = (void*)new struct ns2__getDataTypesId[n];
3335 
3336  if (!cp->ptr)
3337  {
3338  soap->error = SOAP_EOM;
3339  return NULL;
3340  }
3341 
3342  if (size)
3343  *size = n * sizeof(struct ns2__getDataTypesId);
3344  }
3345 
3346  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3347  return (struct ns2__getDataTypesId*)cp->ptr;
3348 }
3349 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypesId(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3350 {
3351  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypesId %p -> %p\n", q, p));
3352  *(struct ns2__getDataTypesId*)p = *(struct ns2__getDataTypesId*)q;
3353 }
3354 
3356 {
3357  (void)soap; (void)a; /* appease -Wall -Werror */
3358  a->getDataTypesIdReturn = NULL;
3359 }
3360 
3362 {
3363  (void)soap; (void)a; /* appease -Wall -Werror */
3365 }
3366 
3367 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypesIdResponse(struct soap *soap, const struct ns2__getDataTypesIdResponse *a, const char *tag, const char *type)
3368 {
3369  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypesIdResponse);
3370 
3371  if (soap_out_ns2__getDataTypesIdResponse(soap, tag, id, a, type))
3372  return soap->error;
3373 
3374  return soap_putindependent(soap);
3375 }
3376 
3377 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypesIdResponse(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypesIdResponse *a, const char *type)
3378 {
3380  return soap->error;
3381 
3382  if (soap_out_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getDataTypesIdReturn", -1, &a->getDataTypesIdReturn, ""))
3383  return soap->error;
3384 
3385  return soap_element_end_out(soap, tag);
3386 }
3387 
3389 {
3390  if ((p = soap_in_ns2__getDataTypesIdResponse(soap, tag, p, type)))
3391  if (soap_getindependent(soap))
3392  return NULL;
3393 
3394  return p;
3395 }
3396 
3398 {
3399  size_t soap_flag_getDataTypesIdReturn = 1;
3400 
3401  if (soap_element_begin_in(soap, tag, 0, type))
3402  return NULL;
3403 
3404  a = (struct ns2__getDataTypesIdResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getDataTypesIdResponse, sizeof(struct ns2__getDataTypesIdResponse), 0, NULL, NULL, NULL);
3405 
3406  if (!a)
3407  return NULL;
3408 
3410 
3411  if (soap->body && !*soap->href)
3412  {
3413  for (;;)
3414  {
3415  soap->error = SOAP_TAG_MISMATCH;
3416 
3417  if (soap_flag_getDataTypesIdReturn && soap->error == SOAP_TAG_MISMATCH)
3418  if (soap_in_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getDataTypesIdReturn", &a->getDataTypesIdReturn, "xsd:string"))
3419  {
3420  soap_flag_getDataTypesIdReturn--;
3421  continue;
3422  }
3423 
3424  if (soap->error == SOAP_TAG_MISMATCH)
3425  soap->error = soap_ignore_element(soap);
3426 
3427  if (soap->error == SOAP_NO_TAG)
3428  break;
3429 
3430  if (soap->error)
3431  return NULL;
3432  }
3433 
3434  if (soap_element_end_in(soap, tag))
3435  return NULL;
3436  }
3437  else
3438  {
3439  a = (struct ns2__getDataTypesIdResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getDataTypesIdResponse, 0, sizeof(struct ns2__getDataTypesIdResponse), 0, NULL);
3440 
3441  if (soap->body && soap_element_end_in(soap, tag))
3442  return NULL;
3443  }
3444 
3445  return a;
3446 }
3447 
3449 {
3450  return soap_instantiate_ns2__getDataTypesIdResponse(soap, n, NULL, NULL, NULL);
3451 }
3452 
3454 {
3455  soap_delete(soap, p);
3456 }
3457 
3458 SOAP_FMAC3 struct ns2__getDataTypesIdResponse * SOAP_FMAC4 soap_instantiate_ns2__getDataTypesIdResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3459 {
3460  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypesIdResponse(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3462 
3463  if (!cp)
3464  return NULL;
3465 
3466  if (n < 0)
3467  {
3468  cp->ptr = (void*)new struct ns2__getDataTypesIdResponse;
3469 
3470  if (size)
3471  *size = sizeof(struct ns2__getDataTypesIdResponse);
3472  }
3473  else
3474  {
3475  cp->ptr = (void*)new struct ns2__getDataTypesIdResponse[n];
3476 
3477  if (!cp->ptr)
3478  {
3479  soap->error = SOAP_EOM;
3480  return NULL;
3481  }
3482 
3483  if (size)
3484  *size = n * sizeof(struct ns2__getDataTypesIdResponse);
3485  }
3486 
3487  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3488  return (struct ns2__getDataTypesIdResponse*)cp->ptr;
3489 }
3490 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypesIdResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3491 {
3492  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypesIdResponse %p -> %p\n", q, p));
3493  *(struct ns2__getDataTypesIdResponse*)p = *(struct ns2__getDataTypesIdResponse*)q;
3494 }
3495 
3497 {
3498  (void)soap; (void)a; /* appease -Wall -Werror */
3499 }
3500 
3502 {
3503  (void)soap; (void)a; /* appease -Wall -Werror */
3504 }
3505 
3506 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypesName(struct soap *soap, const struct ns2__getDataTypesName *a, const char *tag, const char *type)
3507 {
3508  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypesName);
3509 
3510  if (soap_out_ns2__getDataTypesName(soap, tag, id, a, type))
3511  return soap->error;
3512 
3513  return soap_putindependent(soap);
3514 }
3515 
3516 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypesName(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypesName *a, const char *type)
3517 {
3518  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__getDataTypesName), type))
3519  return soap->error;
3520 
3521  return soap_element_end_out(soap, tag);
3522 }
3523 
3524 SOAP_FMAC3 struct ns2__getDataTypesName * SOAP_FMAC4 soap_get_ns2__getDataTypesName(struct soap *soap, struct ns2__getDataTypesName *p, const char *tag, const char *type)
3525 {
3526  if ((p = soap_in_ns2__getDataTypesName(soap, tag, p, type)))
3527  if (soap_getindependent(soap))
3528  return NULL;
3529 
3530  return p;
3531 }
3532 
3533 SOAP_FMAC3 struct ns2__getDataTypesName * SOAP_FMAC4 soap_in_ns2__getDataTypesName(struct soap *soap, const char *tag, struct ns2__getDataTypesName *a, const char *type)
3534 {
3535  if (soap_element_begin_in(soap, tag, 0, type))
3536  return NULL;
3537 
3538  a = (struct ns2__getDataTypesName *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getDataTypesName, sizeof(struct ns2__getDataTypesName), 0, NULL, NULL, NULL);
3539 
3540  if (!a)
3541  return NULL;
3542 
3544 
3545  if (soap->body && !*soap->href)
3546  {
3547  for (;;)
3548  {
3549  soap->error = SOAP_TAG_MISMATCH;
3550 
3551  if (soap->error == SOAP_TAG_MISMATCH)
3552  soap->error = soap_ignore_element(soap);
3553 
3554  if (soap->error == SOAP_NO_TAG)
3555  break;
3556 
3557  if (soap->error)
3558  return NULL;
3559  }
3560 
3561  if (soap_element_end_in(soap, tag))
3562  return NULL;
3563  }
3564  else
3565  {
3566  a = (struct ns2__getDataTypesName *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getDataTypesName, 0, sizeof(struct ns2__getDataTypesName), 0, NULL);
3567 
3568  if (soap->body && soap_element_end_in(soap, tag))
3569  return NULL;
3570  }
3571 
3572  return a;
3573 }
3574 
3576 {
3577  return soap_instantiate_ns2__getDataTypesName(soap, n, NULL, NULL, NULL);
3578 }
3579 
3581 {
3582  soap_delete(soap, p);
3583 }
3584 
3585 SOAP_FMAC3 struct ns2__getDataTypesName * SOAP_FMAC4 soap_instantiate_ns2__getDataTypesName(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3586 {
3587  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypesName(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3588  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns2__getDataTypesName, n, soap_fdelete);
3589 
3590  if (!cp)
3591  return NULL;
3592 
3593  if (n < 0)
3594  {
3595  cp->ptr = (void*)new struct ns2__getDataTypesName;
3596 
3597  if (size)
3598  *size = sizeof(struct ns2__getDataTypesName);
3599  }
3600  else
3601  {
3602  cp->ptr = (void*)new struct ns2__getDataTypesName[n];
3603 
3604  if (!cp->ptr)
3605  {
3606  soap->error = SOAP_EOM;
3607  return NULL;
3608  }
3609 
3610  if (size)
3611  *size = n * sizeof(struct ns2__getDataTypesName);
3612  }
3613 
3614  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3615  return (struct ns2__getDataTypesName*)cp->ptr;
3616 }
3617 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypesName(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3618 {
3619  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypesName %p -> %p\n", q, p));
3620  *(struct ns2__getDataTypesName*)p = *(struct ns2__getDataTypesName*)q;
3621 }
3622 
3624 {
3625  (void)soap; (void)a; /* appease -Wall -Werror */
3626  a->getDataTypesNameReturn = NULL;
3627 }
3628 
3630 {
3631  (void)soap; (void)a; /* appease -Wall -Werror */
3633 }
3634 
3635 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypesNameResponse(struct soap *soap, const struct ns2__getDataTypesNameResponse *a, const char *tag, const char *type)
3636 {
3637  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypesNameResponse);
3638 
3639  if (soap_out_ns2__getDataTypesNameResponse(soap, tag, id, a, type))
3640  return soap->error;
3641 
3642  return soap_putindependent(soap);
3643 }
3644 
3645 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypesNameResponse(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypesNameResponse *a, const char *type)
3646 {
3648  return soap->error;
3649 
3650  if (soap_out_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getDataTypesNameReturn", -1, &a->getDataTypesNameReturn, ""))
3651  return soap->error;
3652 
3653  return soap_element_end_out(soap, tag);
3654 }
3655 
3657 {
3658  if ((p = soap_in_ns2__getDataTypesNameResponse(soap, tag, p, type)))
3659  if (soap_getindependent(soap))
3660  return NULL;
3661 
3662  return p;
3663 }
3664 
3666 {
3667  size_t soap_flag_getDataTypesNameReturn = 1;
3668 
3669  if (soap_element_begin_in(soap, tag, 0, type))
3670  return NULL;
3671 
3672  a = (struct ns2__getDataTypesNameResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getDataTypesNameResponse, sizeof(struct ns2__getDataTypesNameResponse), 0, NULL, NULL, NULL);
3673 
3674  if (!a)
3675  return NULL;
3676 
3678 
3679  if (soap->body && !*soap->href)
3680  {
3681  for (;;)
3682  {
3683  soap->error = SOAP_TAG_MISMATCH;
3684 
3685  if (soap_flag_getDataTypesNameReturn && soap->error == SOAP_TAG_MISMATCH)
3686  if (soap_in_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getDataTypesNameReturn", &a->getDataTypesNameReturn, "xsd:string"))
3687  {
3688  soap_flag_getDataTypesNameReturn--;
3689  continue;
3690  }
3691 
3692  if (soap->error == SOAP_TAG_MISMATCH)
3693  soap->error = soap_ignore_element(soap);
3694 
3695  if (soap->error == SOAP_NO_TAG)
3696  break;
3697 
3698  if (soap->error)
3699  return NULL;
3700  }
3701 
3702  if (soap_element_end_in(soap, tag))
3703  return NULL;
3704  }
3705  else
3706  {
3707  a = (struct ns2__getDataTypesNameResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getDataTypesNameResponse, 0, sizeof(struct ns2__getDataTypesNameResponse), 0, NULL);
3708 
3709  if (soap->body && soap_element_end_in(soap, tag))
3710  return NULL;
3711  }
3712 
3713  return a;
3714 }
3715 
3717 {
3718  return soap_instantiate_ns2__getDataTypesNameResponse(soap, n, NULL, NULL, NULL);
3719 }
3720 
3722 {
3723  soap_delete(soap, p);
3724 }
3725 
3726 SOAP_FMAC3 struct ns2__getDataTypesNameResponse * SOAP_FMAC4 soap_instantiate_ns2__getDataTypesNameResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3727 {
3728  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypesNameResponse(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3730 
3731  if (!cp)
3732  return NULL;
3733 
3734  if (n < 0)
3735  {
3736  cp->ptr = (void*)new struct ns2__getDataTypesNameResponse;
3737 
3738  if (size)
3739  *size = sizeof(struct ns2__getDataTypesNameResponse);
3740  }
3741  else
3742  {
3743  cp->ptr = (void*)new struct ns2__getDataTypesNameResponse[n];
3744 
3745  if (!cp->ptr)
3746  {
3747  soap->error = SOAP_EOM;
3748  return NULL;
3749  }
3750 
3751  if (size)
3752  *size = n * sizeof(struct ns2__getDataTypesNameResponse);
3753  }
3754 
3755  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3756  return (struct ns2__getDataTypesNameResponse*)cp->ptr;
3757 }
3758 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypesNameResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3759 {
3760  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypesNameResponse %p -> %p\n", q, p));
3762 }
3763 
3765 {
3766  (void)soap; (void)a; /* appease -Wall -Werror */
3767  soap_default_std__string(soap, &a->_uri);
3768 }
3769 
3771 {
3772  (void)soap; (void)a; /* appease -Wall -Werror */
3774  soap_serialize_std__string(soap, &a->_uri);
3775 }
3776 
3777 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getNames(struct soap *soap, const struct ns2__getNames *a, const char *tag, const char *type)
3778 {
3779  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getNames);
3780 
3781  if (soap_out_ns2__getNames(soap, tag, id, a, type))
3782  return soap->error;
3783 
3784  return soap_putindependent(soap);
3785 }
3786 
3787 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getNames(struct soap *soap, const char *tag, int id, const struct ns2__getNames *a, const char *type)
3788 {
3789  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__getNames), type))
3790  return soap->error;
3791 
3792  if (soap_out_std__string(soap, "uri", -1, &a->_uri, ""))
3793  return soap->error;
3794 
3795  return soap_element_end_out(soap, tag);
3796 }
3797 
3798 SOAP_FMAC3 struct ns2__getNames * SOAP_FMAC4 soap_get_ns2__getNames(struct soap *soap, struct ns2__getNames *p, const char *tag, const char *type)
3799 {
3800  if ((p = soap_in_ns2__getNames(soap, tag, p, type)))
3801  if (soap_getindependent(soap))
3802  return NULL;
3803 
3804  return p;
3805 }
3806 
3807 SOAP_FMAC3 struct ns2__getNames * SOAP_FMAC4 soap_in_ns2__getNames(struct soap *soap, const char *tag, struct ns2__getNames *a, const char *type)
3808 {
3809  size_t soap_flag__uri = 1;
3810 
3811  if (soap_element_begin_in(soap, tag, 0, type))
3812  return NULL;
3813 
3814  a = (struct ns2__getNames *)soap_class_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getNames, sizeof(struct ns2__getNames), soap->type, soap->arrayType);
3815 
3816  if (!a)
3817  return NULL;
3818 
3819  soap_default_ns2__getNames(soap, a);
3820 
3821  if (soap->body && !*soap->href)
3822  {
3823  for (;;)
3824  {
3825  soap->error = SOAP_TAG_MISMATCH;
3826 
3827  if (soap_flag__uri && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
3828  if (soap_in_std__string(soap, NULL, &a->_uri, "xsd:string"))
3829  {
3830  soap_flag__uri--;
3831  continue;
3832  }
3833 
3834  if (soap->error == SOAP_TAG_MISMATCH)
3835  soap->error = soap_ignore_element(soap);
3836 
3837  if (soap->error == SOAP_NO_TAG)
3838  break;
3839 
3840  if (soap->error)
3841  return NULL;
3842  }
3843 
3844  if (soap_element_end_in(soap, tag))
3845  return NULL;
3846  }
3847  else
3848  {
3849  a = (struct ns2__getNames *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getNames, 0, sizeof(struct ns2__getNames), 0, soap_copy_ns2__getNames);
3850 
3851  if (soap->body && soap_element_end_in(soap, tag))
3852  return NULL;
3853  }
3854 
3855  if ((soap->mode & SOAP_XML_STRICT) && (soap_flag__uri > 0))
3856  {
3857  soap->error = SOAP_OCCURS;
3858  return NULL;
3859  }
3860 
3861  return a;
3862 }
3863 
3865 {
3866  return soap_instantiate_ns2__getNames(soap, n, NULL, NULL, NULL);
3867 }
3868 
3870 {
3871  soap_delete(soap, p);
3872 }
3873 
3874 SOAP_FMAC3 struct ns2__getNames * SOAP_FMAC4 soap_instantiate_ns2__getNames(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
3875 {
3876  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getNames(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
3877  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns2__getNames, n, soap_fdelete);
3878 
3879  if (!cp)
3880  return NULL;
3881 
3882  if (n < 0)
3883  {
3884  cp->ptr = (void*)new struct ns2__getNames;
3885 
3886  if (size)
3887  *size = sizeof(struct ns2__getNames);
3888  }
3889  else
3890  {
3891  cp->ptr = (void*)new struct ns2__getNames[n];
3892 
3893  if (!cp->ptr)
3894  {
3895  soap->error = SOAP_EOM;
3896  return NULL;
3897  }
3898 
3899  if (size)
3900  *size = n * sizeof(struct ns2__getNames);
3901  }
3902 
3903  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
3904  return (struct ns2__getNames*)cp->ptr;
3905 }
3906 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getNames(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
3907 {
3908  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getNames %p -> %p\n", q, p));
3909  *(struct ns2__getNames*)p = *(struct ns2__getNames*)q;
3910 }
3911 
3913 {
3914  (void)soap; (void)a; /* appease -Wall -Werror */
3915  a->_getNamesReturn = NULL;
3916 }
3917 
3919 {
3920  (void)soap; (void)a; /* appease -Wall -Werror */
3922 }
3923 
3924 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getNamesResponse(struct soap *soap, const struct ns2__getNamesResponse *a, const char *tag, const char *type)
3925 {
3926  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getNamesResponse);
3927 
3928  if (soap_out_ns2__getNamesResponse(soap, tag, id, a, type))
3929  return soap->error;
3930 
3931  return soap_putindependent(soap);
3932 }
3933 
3934 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getNamesResponse(struct soap *soap, const char *tag, int id, const struct ns2__getNamesResponse *a, const char *type)
3935 {
3936  if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns2__getNamesResponse), type))
3937  return soap->error;
3938 
3939  if (soap_out_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getNamesReturn", -1, &a->_getNamesReturn, ""))
3940  return soap->error;
3941 
3942  return soap_element_end_out(soap, tag);
3943 }
3944 
3945 SOAP_FMAC3 struct ns2__getNamesResponse * SOAP_FMAC4 soap_get_ns2__getNamesResponse(struct soap *soap, struct ns2__getNamesResponse *p, const char *tag, const char *type)
3946 {
3947  if ((p = soap_in_ns2__getNamesResponse(soap, tag, p, type)))
3948  if (soap_getindependent(soap))
3949  return NULL;
3950 
3951  return p;
3952 }
3953 
3954 SOAP_FMAC3 struct ns2__getNamesResponse * SOAP_FMAC4 soap_in_ns2__getNamesResponse(struct soap *soap, const char *tag, struct ns2__getNamesResponse *a, const char *type)
3955 {
3956  size_t soap_flag__getNamesReturn = 1;
3957 
3958  if (soap_element_begin_in(soap, tag, 0, type))
3959  return NULL;
3960 
3961  a = (struct ns2__getNamesResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getNamesResponse, sizeof(struct ns2__getNamesResponse), 0, NULL, NULL, NULL);
3962 
3963  if (!a)
3964  return NULL;
3965 
3967 
3968  if (soap->body && !*soap->href)
3969  {
3970  for (;;)
3971  {
3972  soap->error = SOAP_TAG_MISMATCH;
3973 
3974  if (soap_flag__getNamesReturn && soap->error == SOAP_TAG_MISMATCH)
3975  if (soap_in_PointerToArrayOf_USCORExsd_USCOREstring(soap, NULL, &a->_getNamesReturn, "xsd:string"))
3976  {
3977  soap_flag__getNamesReturn--;
3978  continue;
3979  }
3980 
3981  if (soap->error == SOAP_TAG_MISMATCH)
3982  soap->error = soap_ignore_element(soap);
3983 
3984  if (soap->error == SOAP_NO_TAG)
3985  break;
3986 
3987  if (soap->error)
3988  return NULL;
3989  }
3990 
3991  if (soap_element_end_in(soap, tag))
3992  return NULL;
3993  }
3994  else
3995  {
3996  a = (struct ns2__getNamesResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getNamesResponse, 0, sizeof(struct ns2__getNamesResponse), 0, NULL);
3997 
3998  if (soap->body && soap_element_end_in(soap, tag))
3999  return NULL;
4000  }
4001 
4002  return a;
4003 }
4004 
4006 {
4007  return soap_instantiate_ns2__getNamesResponse(soap, n, NULL, NULL, NULL);
4008 }
4009 
4011 {
4012  soap_delete(soap, p);
4013 }
4014 
4015 SOAP_FMAC3 struct ns2__getNamesResponse * SOAP_FMAC4 soap_instantiate_ns2__getNamesResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
4016 {
4017  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getNamesResponse(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
4018  struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns2__getNamesResponse, n, soap_fdelete);
4019 
4020  if (!cp)
4021  return NULL;
4022 
4023  if (n < 0)
4024  {
4025  cp->ptr = (void*)new struct ns2__getNamesResponse;
4026 
4027  if (size)
4028  *size = sizeof(struct ns2__getNamesResponse);
4029  }
4030  else
4031  {
4032  cp->ptr = (void*)new struct ns2__getNamesResponse[n];
4033 
4034  if (!cp->ptr)
4035  {
4036  soap->error = SOAP_EOM;
4037  return NULL;
4038  }
4039 
4040  if (size)
4041  *size = n * sizeof(struct ns2__getNamesResponse);
4042  }
4043 
4044  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
4045  return (struct ns2__getNamesResponse*)cp->ptr;
4046 }
4047 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getNamesResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
4048 {
4049  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getNamesResponse %p -> %p\n", q, p));
4050  *(struct ns2__getNamesResponse*)p = *(struct ns2__getNamesResponse*)q;
4051 }
4052 
4054 {
4055  (void)soap; (void)a; /* appease -Wall -Werror */
4056  soap_default_std__string(soap, &a->_name);
4057 }
4058 
4060 {
4061  (void)soap; (void)a; /* appease -Wall -Werror */
4063  soap_serialize_std__string(soap, &a->_name);
4064 }
4065 
4066 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypeSynonyms(struct soap *soap, const struct ns2__getDataTypeSynonyms *a, const char *tag, const char *type)
4067 {
4068  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypeSynonyms);
4069 
4070  if (soap_out_ns2__getDataTypeSynonyms(soap, tag, id, a, type))
4071  return soap->error;
4072 
4073  return soap_putindependent(soap);
4074 }
4075 
4076 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypeSynonyms(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypeSynonyms *a, const char *type)
4077 {
4079  return soap->error;
4080 
4081  if (soap_out_std__string(soap, "name", -1, &a->_name, ""))
4082  return soap->error;
4083 
4084  return soap_element_end_out(soap, tag);
4085 }
4086 
4088 {
4089  if ((p = soap_in_ns2__getDataTypeSynonyms(soap, tag, p, type)))
4090  if (soap_getindependent(soap))
4091  return NULL;
4092 
4093  return p;
4094 }
4095 
4097 {
4098  size_t soap_flag__name = 1;
4099 
4100  if (soap_element_begin_in(soap, tag, 0, type))
4101  return NULL;
4102 
4104 
4105  if (!a)
4106  return NULL;
4107 
4109 
4110  if (soap->body && !*soap->href)
4111  {
4112  for (;;)
4113  {
4114  soap->error = SOAP_TAG_MISMATCH;
4115 
4116  if (soap_flag__name && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
4117  if (soap_in_std__string(soap, NULL, &a->_name, "xsd:string"))
4118  {
4119  soap_flag__name--;
4120  continue;
4121  }
4122 
4123  if (soap->error == SOAP_TAG_MISMATCH)
4124  soap->error = soap_ignore_element(soap);
4125 
4126  if (soap->error == SOAP_NO_TAG)
4127  break;
4128 
4129  if (soap->error)
4130  return NULL;
4131  }
4132 
4133  if (soap_element_end_in(soap, tag))
4134  return NULL;
4135  }
4136  else
4137  {
4138  a = (struct ns2__getDataTypeSynonyms *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns2__getDataTypeSynonyms, 0, sizeof(struct ns2__getDataTypeSynonyms), 0, soap_copy_ns2__getDataTypeSynonyms);
4139 
4140  if (soap->body && soap_element_end_in(soap, tag))
4141  return NULL;
4142  }
4143 
4144  if ((soap->mode & SOAP_XML_STRICT) && (soap_flag__name > 0))
4145  {
4146  soap->error = SOAP_OCCURS;
4147  return NULL;
4148  }
4149 
4150  return a;
4151 }
4152 
4154 {
4155  return soap_instantiate_ns2__getDataTypeSynonyms(soap, n, NULL, NULL, NULL);
4156 }
4157 
4159 {
4160  soap_delete(soap, p);
4161 }
4162 
4163 SOAP_FMAC3 struct ns2__getDataTypeSynonyms * SOAP_FMAC4 soap_instantiate_ns2__getDataTypeSynonyms(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
4164 {
4165  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypeSynonyms(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
4167 
4168  if (!cp)
4169  return NULL;
4170 
4171  if (n < 0)
4172  {
4173  cp->ptr = (void*)new struct ns2__getDataTypeSynonyms;
4174 
4175  if (size)
4176  *size = sizeof(struct ns2__getDataTypeSynonyms);
4177  }
4178  else
4179  {
4180  cp->ptr = (void*)new struct ns2__getDataTypeSynonyms[n];
4181 
4182  if (!cp->ptr)
4183  {
4184  soap->error = SOAP_EOM;
4185  return NULL;
4186  }
4187 
4188  if (size)
4189  *size = n * sizeof(struct ns2__getDataTypeSynonyms);
4190  }
4191 
4192  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
4193  return (struct ns2__getDataTypeSynonyms*)cp->ptr;
4194 }
4195 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypeSynonyms(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
4196 {
4197  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypeSynonyms %p -> %p\n", q, p));
4198  *(struct ns2__getDataTypeSynonyms*)p = *(struct ns2__getDataTypeSynonyms*)q;
4199 }
4200 
4202 {
4203  (void)soap; (void)a; /* appease -Wall -Werror */
4204  a->_getDataTypeSynonymsReturn = NULL;
4205 }
4206 
4208 {
4209  (void)soap; (void)a; /* appease -Wall -Werror */
4211 }
4212 
4213 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getDataTypeSynonymsResponse(struct soap *soap, const struct ns2__getDataTypeSynonymsResponse *a, const char *tag, const char *type)
4214 {
4215  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getDataTypeSynonymsResponse);
4216 
4217  if (soap_out_ns2__getDataTypeSynonymsResponse(soap, tag, id, a, type))
4218  return soap->error;
4219 
4220  return soap_putindependent(soap);
4221 }
4222 
4223 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getDataTypeSynonymsResponse(struct soap *soap, const char *tag, int id, const struct ns2__getDataTypeSynonymsResponse *a, const char *type)
4224 {
4226  return soap->error;
4227 
4228  if (soap_out_PointerToArrayOf_USCORExsd_USCOREstring(soap, "getDataTypeSynonymsReturn", -1, &a->_getDataTypeSynonymsReturn, ""))
4229  return soap->error;
4230 
4231  return soap_element_end_out(soap, tag);
4232 }
4233 
4235 {
4236  if ((p = soap_in_ns2__getDataTypeSynonymsResponse(soap, tag, p, type)))
4237  if (soap_getindependent(soap))
4238  return NULL;
4239 
4240  return p;
4241 }
4242 
4244 {
4245  size_t soap_flag__getDataTypeSynonymsReturn = 1;
4246 
4247  if (soap_element_begin_in(soap, tag, 0, type))
4248  return NULL;
4249 
4250  a = (struct ns2__getDataTypeSynonymsResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns2__getDataTypeSynonymsResponse, sizeof(struct ns2__getDataTypeSynonymsResponse), 0, NULL, NULL, NULL);
4251 
4252  if (!a)
4253  return NULL;
4254 
4256 
4257  if (soap->body && !*soap->href)
4258  {
4259  for (;;)
4260  {
4261  soap->error = SOAP_TAG_MISMATCH;
4262 
4263  if (soap_flag__getDataTypeSynonymsReturn && soap->error == SOAP_TAG_MISMATCH)
4265  {
4266  soap_flag__getDataTypeSynonymsReturn--;
4267  continue;
4268  }
4269 
4270  if (soap->error == SOAP_TAG_MISMATCH)
4271  soap->error = soap_ignore_element(soap);
4272 
4273  if (soap->error == SOAP_NO_TAG)
4274  break;
4275 
4276  if (soap->error)
4277  return NULL;
4278  }
4279 
4280  if (soap_element_end_in(soap, tag))
4281  return NULL;
4282  }
4283  else
4284  {
4286 
4287  if (soap->body && soap_element_end_in(soap, tag))
4288  return NULL;
4289  }
4290 
4291  return a;
4292 }
4293 
4295 {
4296  return soap_instantiate_ns2__getDataTypeSynonymsResponse(soap, n, NULL, NULL, NULL);
4297 }
4298 
4300 {
4301  soap_delete(soap, p);
4302 }
4303 
4304 SOAP_FMAC3 struct ns2__getDataTypeSynonymsResponse * SOAP_FMAC4 soap_instantiate_ns2__getDataTypeSynonymsResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
4305 {
4306  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns2__getDataTypeSynonymsResponse(%d, %s, %s)\n", n, type ? type : "", arrayType ? arrayType : ""));
4308 
4309  if (!cp)
4310  return NULL;
4311 
4312  if (n < 0)
4313  {
4314  cp->ptr = (void*)new struct ns2__getDataTypeSynonymsResponse;
4315 
4316  if (size)
4317  *size = sizeof(struct ns2__getDataTypeSynonymsResponse);
4318  }
4319  else
4320  {
4321  cp->ptr = (void*)new struct ns2__getDataTypeSynonymsResponse[n];
4322 
4323  if (!cp->ptr)
4324  {
4325  soap->error = SOAP_EOM;
4326  return NULL;
4327  }
4328 
4329  if (size)
4330  *size = n * sizeof(struct ns2__getDataTypeSynonymsResponse);
4331  }
4332 
4333  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
4334  return (struct ns2__getDataTypeSynonymsResponse*)cp->ptr;
4335 }
4336 SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns2__getDataTypeSynonymsResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
4337 {
4338  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns2__getDataTypeSynonymsResponse %p -> %p\n", q, p));
4340 }
4341 
4343 {
4344  (void)soap; (void)a; /* appease -Wall -Werror */
4345  soap_default_std__string(soap, &a->_id);
4346 }
4347 
4349 {
4350  (void)soap; (void)a; /* appease -Wall -Werror */
4352  soap_serialize_std__string(soap, &a->_id);
4353 }
4354 
4355 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns2__getResourceLocation(struct soap *soap, const struct ns2__getResourceLocation *a, const char *tag, const char *type)
4356 {
4357  register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns2__getResourceLocation);
4358 
4359  if (soap_out_ns2__getResourceLocation(soap, tag, id, a, type))
4360  return soap->error;
4361 
4362  return soap_putindependent(soap);
4363 }
4364 
4365 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns2__getResourceLocation(struct soap *soap, const char *tag, int id, const struct ns2__getResourceLocation *a, const char *type)
4366 {
4368  return soap->error;
4369 
4370  if (soap_out_std__string(soap, "id", -1, &a->_id, ""))
4371  return soap->error;
4372 
4373  return soap_element_end_out(soap, tag);
4374 }
4375 
4377 {
4378  if ((p = soap_in_ns2__getResourceLocation(soap, tag, p, type)))
4379  if (soap_getindependent(soap))
4380  return NULL;
4381 
4382  return p;
4383 }
4384 
4386 {
4387  size_t soap_flag__id = 1;
4388 
4389  if (soap_element_begin_in(soap, tag, 0, type))
4390  return NULL;
4391 
4393 
4394  if (!a)
4395  return NULL;
4396 
4398 
4399  if (soap->body && !*soap->href)
4400  {
4401  for (;;)
4402  {
4403  soap->error = SOAP_TAG_MISMATCH;
4404 
4405  if (soap_flag__id && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
4406  if (soap_in_std__string(soap, NULL, &a->_id, "xsd:string"))
4407  {
4408  soap_flag__id--;
4409  continue;
4410  }
4411 
4412  if (soap->error == SOAP_TAG_MISMATCH)
4413  soap->