• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/gsoap/source_build_platform/gsoap/samples/calc_xcode/
1/* soapC.cpp
2   Generated by gSOAP 2.7.11 from calc.h
3   Copyright(C) 2000-2008, Robert van Engelen, Genivia Inc. All Rights Reserved.
4   This part of the software is released under one of the following licenses:
5   GPL, the gSOAP public license, or Genivia's license for commercial use.
6*/
7
8#include "soapH.h"
9
10SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.7.11 2008-07-25 19:54:28 GMT")
11
12
13#ifndef WITH_NOGLOBAL
14
15SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap)
16{
17	if (soap->header)
18		soap_serialize_SOAP_ENV__Header(soap, soap->header);
19}
20
21SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap)
22{
23	if (soap->header)
24	{	soap->part = SOAP_IN_HEADER;
25		if (soap_out_SOAP_ENV__Header(soap, "SOAP-ENV:Header", 0, soap->header, NULL))
26			return soap->error;
27		soap->part = SOAP_END_HEADER;
28	}
29	return SOAP_OK;
30}
31
32SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap)
33{
34	soap->part = SOAP_IN_HEADER;
35	soap->header = soap_in_SOAP_ENV__Header(soap, "SOAP-ENV:Header", NULL, NULL);
36	soap->part = SOAP_END_HEADER;
37	return soap->header == NULL;
38}
39
40SOAP_FMAC3 void SOAP_FMAC4 soap_header(struct soap *soap)
41{
42	if (!soap->header)
43	{	soap->header = soap_new_SOAP_ENV__Header(soap, -1);
44		soap_default_SOAP_ENV__Header(soap, soap->header);
45	}
46}
47
48SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap)
49{
50	if (!soap->fault)
51	{	soap->fault = soap_new_SOAP_ENV__Fault(soap, -1);
52		if (!soap->fault)
53			return;
54		soap_default_SOAP_ENV__Fault(soap, soap->fault);
55	}
56	if (soap->version == 2 && !soap->fault->SOAP_ENV__Code)
57	{	soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap, -1);
58		soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code);
59	}
60	if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason)
61	{	soap->fault->SOAP_ENV__Reason = soap_new_SOAP_ENV__Reason(soap, -1);
62		soap_default_SOAP_ENV__Reason(soap, soap->fault->SOAP_ENV__Reason);
63	}
64}
65
66SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap)
67{
68	soap_fault(soap);
69	if (soap->fault)
70		soap_serialize_SOAP_ENV__Fault(soap, soap->fault);
71}
72
73SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap)
74{
75	if (soap->fault)
76		return soap_put_SOAP_ENV__Fault(soap, soap->fault, "SOAP-ENV:Fault", NULL);
77	return SOAP_OK;
78}
79
80SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap)
81{
82	return (soap->fault = soap_get_SOAP_ENV__Fault(soap, NULL, "SOAP-ENV:Fault", NULL)) == NULL;
83}
84
85SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap)
86{
87	soap_fault(soap);
88	if (soap->version == 2)
89		return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value;
90	return (const char**)&soap->fault->faultcode;
91}
92
93SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultsubcode(struct soap *soap)
94{
95	soap_fault(soap);
96	if (soap->version == 2)
97	{	if (!soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode)
98		{	soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode = soap_new_SOAP_ENV__Code(soap, -1);
99			soap_default_SOAP_ENV__Code(soap, soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode);
100		}
101		return (const char**)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Subcode->SOAP_ENV__Value;
102	}
103	return (const char**)&soap->fault->faultcode;
104}
105
106SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultstring(struct soap *soap)
107{
108	soap_fault(soap);
109	if (soap->version == 2)
110		return (const char**)&soap->fault->SOAP_ENV__Reason->SOAP_ENV__Text;
111	return (const char**)&soap->fault->faultstring;
112}
113
114SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultdetail(struct soap *soap)
115{
116	soap_fault(soap);
117	if (soap->version == 1)
118	{	if (!soap->fault->detail)
119		{	soap->fault->detail = (struct SOAP_ENV__Detail*)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail));
120			soap_default_SOAP_ENV__Detail(soap, soap->fault->detail);
121		}
122		return (const char**)&soap->fault->detail->__any;
123	}
124	if (!soap->fault->SOAP_ENV__Detail)
125	{	soap->fault->SOAP_ENV__Detail = soap_new_SOAP_ENV__Detail(soap, -1);
126		soap_default_SOAP_ENV__Detail(soap, soap->fault->SOAP_ENV__Detail);
127	}
128	return (const char**)&soap->fault->SOAP_ENV__Detail->__any;
129}
130
131#endif
132
133#ifndef WITH_NOIDREF
134SOAP_FMAC3 int SOAP_FMAC4 soap_getindependent(struct soap *soap)
135{
136	int t;
137	for (;;)
138		if (!soap_getelement(soap, &t))
139			if (soap->error || soap_ignore_element(soap))
140				break;
141	if (soap->error == SOAP_NO_TAG || soap->error == SOAP_EOF)
142		soap->error = SOAP_OK;
143	return soap->error;
144}
145#endif
146
147#ifndef WITH_NOIDREF
148
149#ifdef __cplusplus
150extern "C" {
151#endif
152SOAP_FMAC3 void * SOAP_FMAC4 soap_getelement(struct soap *soap, int *type)
153{
154	if (soap_peek_element(soap))
155		return NULL;
156	if (!*soap->id || !(*type = soap_lookup_type(soap, soap->id)))
157		*type = soap_lookup_type(soap, soap->href);
158	switch (*type)
159	{
160	case SOAP_TYPE_byte:
161		return soap_in_byte(soap, NULL, NULL, "xsd:byte");
162	case SOAP_TYPE_int:
163		return soap_in_int(soap, NULL, NULL, "xsd:int");
164	case SOAP_TYPE_double:
165		return soap_in_double(soap, NULL, NULL, "xsd:double");
166	case SOAP_TYPE_ns__pow:
167		return soap_in_ns__pow(soap, NULL, NULL, "ns:pow");
168	case SOAP_TYPE_ns__powResponse:
169		return soap_in_ns__powResponse(soap, NULL, NULL, "ns:powResponse");
170	case SOAP_TYPE_ns__div:
171		return soap_in_ns__div(soap, NULL, NULL, "ns:div");
172	case SOAP_TYPE_ns__divResponse:
173		return soap_in_ns__divResponse(soap, NULL, NULL, "ns:divResponse");
174	case SOAP_TYPE_ns__mul:
175		return soap_in_ns__mul(soap, NULL, NULL, "ns:mul");
176	case SOAP_TYPE_ns__mulResponse:
177		return soap_in_ns__mulResponse(soap, NULL, NULL, "ns:mulResponse");
178	case SOAP_TYPE_ns__sub:
179		return soap_in_ns__sub(soap, NULL, NULL, "ns:sub");
180	case SOAP_TYPE_ns__subResponse:
181		return soap_in_ns__subResponse(soap, NULL, NULL, "ns:subResponse");
182	case SOAP_TYPE_ns__add:
183		return soap_in_ns__add(soap, NULL, NULL, "ns:add");
184	case SOAP_TYPE_ns__addResponse:
185		return soap_in_ns__addResponse(soap, NULL, NULL, "ns:addResponse");
186	case SOAP_TYPE_PointerTodouble:
187		return soap_in_PointerTodouble(soap, NULL, NULL, "xsd:double");
188	case SOAP_TYPE_string:
189	{	char **s;
190		s = soap_in_string(soap, NULL, NULL, "xsd:string");
191		return s ? *s : NULL;
192	}
193	default:
194	{	const char *t = soap->type;
195		if (!*t)
196			t = soap->tag;
197		if (!soap_match_tag(soap, t, "xsd:byte"))
198		{	*type = SOAP_TYPE_byte;
199			return soap_in_byte(soap, NULL, NULL, NULL);
200		}
201		if (!soap_match_tag(soap, t, "xsd:int"))
202		{	*type = SOAP_TYPE_int;
203			return soap_in_int(soap, NULL, NULL, NULL);
204		}
205		if (!soap_match_tag(soap, t, "xsd:double"))
206		{	*type = SOAP_TYPE_double;
207			return soap_in_double(soap, NULL, NULL, NULL);
208		}
209		if (!soap_match_tag(soap, t, "ns:pow"))
210		{	*type = SOAP_TYPE_ns__pow;
211			return soap_in_ns__pow(soap, NULL, NULL, NULL);
212		}
213		if (!soap_match_tag(soap, t, "ns:powResponse"))
214		{	*type = SOAP_TYPE_ns__powResponse;
215			return soap_in_ns__powResponse(soap, NULL, NULL, NULL);
216		}
217		if (!soap_match_tag(soap, t, "ns:div"))
218		{	*type = SOAP_TYPE_ns__div;
219			return soap_in_ns__div(soap, NULL, NULL, NULL);
220		}
221		if (!soap_match_tag(soap, t, "ns:divResponse"))
222		{	*type = SOAP_TYPE_ns__divResponse;
223			return soap_in_ns__divResponse(soap, NULL, NULL, NULL);
224		}
225		if (!soap_match_tag(soap, t, "ns:mul"))
226		{	*type = SOAP_TYPE_ns__mul;
227			return soap_in_ns__mul(soap, NULL, NULL, NULL);
228		}
229		if (!soap_match_tag(soap, t, "ns:mulResponse"))
230		{	*type = SOAP_TYPE_ns__mulResponse;
231			return soap_in_ns__mulResponse(soap, NULL, NULL, NULL);
232		}
233		if (!soap_match_tag(soap, t, "ns:sub"))
234		{	*type = SOAP_TYPE_ns__sub;
235			return soap_in_ns__sub(soap, NULL, NULL, NULL);
236		}
237		if (!soap_match_tag(soap, t, "ns:subResponse"))
238		{	*type = SOAP_TYPE_ns__subResponse;
239			return soap_in_ns__subResponse(soap, NULL, NULL, NULL);
240		}
241		if (!soap_match_tag(soap, t, "ns:add"))
242		{	*type = SOAP_TYPE_ns__add;
243			return soap_in_ns__add(soap, NULL, NULL, NULL);
244		}
245		if (!soap_match_tag(soap, t, "ns:addResponse"))
246		{	*type = SOAP_TYPE_ns__addResponse;
247			return soap_in_ns__addResponse(soap, NULL, NULL, NULL);
248		}
249		if (!soap_match_tag(soap, t, "xsd:string"))
250		{	char **s;
251			*type = SOAP_TYPE_string;
252			s = soap_in_string(soap, NULL, NULL, NULL);
253			return s ? *s : NULL;
254		}
255		t = soap->tag;
256		if (!soap_match_tag(soap, t, "xsd:QName"))
257		{	char **s;
258			*type = SOAP_TYPE__QName;
259			s = soap_in__QName(soap, NULL, NULL, NULL);
260			return s ? *s : NULL;
261		}
262	}
263	}
264	soap->error = SOAP_TAG_MISMATCH;
265	return NULL;
266}
267
268#ifdef __cplusplus
269}
270#endif
271#endif
272
273SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap)
274{
275	if (!soap_peek_element(soap))
276	{	int t;
277		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level=%u, %d)\n", soap->tag, soap->level, soap->body));
278		if (soap->mustUnderstand && !soap->other)
279			return soap->error = SOAP_MUSTUNDERSTAND;
280		if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:"))
281		{	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag));
282			return soap->error = SOAP_TAG_MISMATCH;
283		}
284		if (!*soap->id || !soap_getelement(soap, &t))
285		{	soap->peeked = 0;
286			if (soap->fignore)
287				soap->error = soap->fignore(soap, soap->tag);
288			else
289				soap->error = SOAP_OK;
290			DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag));
291			if (!soap->error && soap->body)
292			{	soap->level++;
293				while (!soap_ignore_element(soap))
294					;
295				if (soap->error == SOAP_NO_TAG)
296					soap->error = soap_element_end_in(soap, NULL);
297			}
298		}
299	}
300	return soap->error;
301}
302
303#ifndef WITH_NOIDREF
304SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap)
305{
306	int i;
307	struct soap_plist *pp;
308	if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH)))
309		for (i = 0; i < SOAP_PTRHASH; i++)
310			for (pp = soap->pht[i]; pp; pp = pp->next)
311				if (pp->mark1 == 2 || pp->mark2 == 2)
312					if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type))
313						return soap->error;
314	return SOAP_OK;
315}
316#endif
317
318#ifndef WITH_NOIDREF
319
320#ifdef __cplusplus
321extern "C" {
322#endif
323SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type)
324{
325	switch (type)
326	{
327	case SOAP_TYPE_byte:
328		return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte");
329	case SOAP_TYPE_int:
330		return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
331	case SOAP_TYPE_double:
332		return soap_out_double(soap, tag, id, (const double *)ptr, "xsd:double");
333	case SOAP_TYPE_ns__pow:
334		return soap_out_ns__pow(soap, tag, id, (const struct ns__pow *)ptr, "ns:pow");
335	case SOAP_TYPE_ns__powResponse:
336		return soap_out_ns__powResponse(soap, tag, id, (const struct ns__powResponse *)ptr, "ns:powResponse");
337	case SOAP_TYPE_ns__div:
338		return soap_out_ns__div(soap, tag, id, (const struct ns__div *)ptr, "ns:div");
339	case SOAP_TYPE_ns__divResponse:
340		return soap_out_ns__divResponse(soap, tag, id, (const struct ns__divResponse *)ptr, "ns:divResponse");
341	case SOAP_TYPE_ns__mul:
342		return soap_out_ns__mul(soap, tag, id, (const struct ns__mul *)ptr, "ns:mul");
343	case SOAP_TYPE_ns__mulResponse:
344		return soap_out_ns__mulResponse(soap, tag, id, (const struct ns__mulResponse *)ptr, "ns:mulResponse");
345	case SOAP_TYPE_ns__sub:
346		return soap_out_ns__sub(soap, tag, id, (const struct ns__sub *)ptr, "ns:sub");
347	case SOAP_TYPE_ns__subResponse:
348		return soap_out_ns__subResponse(soap, tag, id, (const struct ns__subResponse *)ptr, "ns:subResponse");
349	case SOAP_TYPE_ns__add:
350		return soap_out_ns__add(soap, tag, id, (const struct ns__add *)ptr, "ns:add");
351	case SOAP_TYPE_ns__addResponse:
352		return soap_out_ns__addResponse(soap, tag, id, (const struct ns__addResponse *)ptr, "ns:addResponse");
353	case SOAP_TYPE_PointerTodouble:
354		return soap_out_PointerTodouble(soap, tag, id, (double *const*)ptr, "xsd:double");
355	case SOAP_TYPE__QName:
356		return soap_out_string(soap, "xsd:QName", id, (char*const*)&ptr, NULL);
357	case SOAP_TYPE_string:
358		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string");
359	}
360	return SOAP_OK;
361}
362
363#ifdef __cplusplus
364}
365#endif
366#endif
367
368#ifndef WITH_NOIDREF
369
370#ifdef __cplusplus
371extern "C" {
372#endif
373SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type)
374{
375	(void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */
376	switch (type)
377	{
378	case SOAP_TYPE_ns__pow:
379		soap_serialize_ns__pow(soap, (const struct ns__pow *)ptr);
380		break;
381	case SOAP_TYPE_ns__powResponse:
382		soap_serialize_ns__powResponse(soap, (const struct ns__powResponse *)ptr);
383		break;
384	case SOAP_TYPE_ns__div:
385		soap_serialize_ns__div(soap, (const struct ns__div *)ptr);
386		break;
387	case SOAP_TYPE_ns__divResponse:
388		soap_serialize_ns__divResponse(soap, (const struct ns__divResponse *)ptr);
389		break;
390	case SOAP_TYPE_ns__mul:
391		soap_serialize_ns__mul(soap, (const struct ns__mul *)ptr);
392		break;
393	case SOAP_TYPE_ns__mulResponse:
394		soap_serialize_ns__mulResponse(soap, (const struct ns__mulResponse *)ptr);
395		break;
396	case SOAP_TYPE_ns__sub:
397		soap_serialize_ns__sub(soap, (const struct ns__sub *)ptr);
398		break;
399	case SOAP_TYPE_ns__subResponse:
400		soap_serialize_ns__subResponse(soap, (const struct ns__subResponse *)ptr);
401		break;
402	case SOAP_TYPE_ns__add:
403		soap_serialize_ns__add(soap, (const struct ns__add *)ptr);
404		break;
405	case SOAP_TYPE_ns__addResponse:
406		soap_serialize_ns__addResponse(soap, (const struct ns__addResponse *)ptr);
407		break;
408	case SOAP_TYPE_PointerTodouble:
409		soap_serialize_PointerTodouble(soap, (double *const*)ptr);
410		break;
411	case SOAP_TYPE__QName:
412		soap_serialize_string(soap, (char*const*)&ptr);
413		break;
414	case SOAP_TYPE_string:
415		soap_serialize_string(soap, (char*const*)&ptr);
416		break;
417	}
418}
419
420#ifdef __cplusplus
421}
422#endif
423#endif
424
425SOAP_FMAC3 void * SOAP_FMAC4 soap_instantiate(struct soap *soap, int t, const char *type, const char *arrayType, size_t *n)
426{
427	switch (t)
428	{
429	case SOAP_TYPE_ns__addResponse:
430		return (void*)soap_instantiate_ns__addResponse(soap, -1, type, arrayType, n);
431	case SOAP_TYPE_ns__add:
432		return (void*)soap_instantiate_ns__add(soap, -1, type, arrayType, n);
433	case SOAP_TYPE_ns__subResponse:
434		return (void*)soap_instantiate_ns__subResponse(soap, -1, type, arrayType, n);
435	case SOAP_TYPE_ns__sub:
436		return (void*)soap_instantiate_ns__sub(soap, -1, type, arrayType, n);
437	case SOAP_TYPE_ns__mulResponse:
438		return (void*)soap_instantiate_ns__mulResponse(soap, -1, type, arrayType, n);
439	case SOAP_TYPE_ns__mul:
440		return (void*)soap_instantiate_ns__mul(soap, -1, type, arrayType, n);
441	case SOAP_TYPE_ns__divResponse:
442		return (void*)soap_instantiate_ns__divResponse(soap, -1, type, arrayType, n);
443	case SOAP_TYPE_ns__div:
444		return (void*)soap_instantiate_ns__div(soap, -1, type, arrayType, n);
445	case SOAP_TYPE_ns__powResponse:
446		return (void*)soap_instantiate_ns__powResponse(soap, -1, type, arrayType, n);
447	case SOAP_TYPE_ns__pow:
448		return (void*)soap_instantiate_ns__pow(soap, -1, type, arrayType, n);
449#ifndef WITH_NOGLOBAL
450	case SOAP_TYPE_SOAP_ENV__Header:
451		return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n);
452#endif
453#ifndef WITH_NOGLOBAL
454	case SOAP_TYPE_SOAP_ENV__Code:
455		return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n);
456#endif
457#ifndef WITH_NOGLOBAL
458	case SOAP_TYPE_SOAP_ENV__Detail:
459		return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n);
460#endif
461#ifndef WITH_NOGLOBAL
462	case SOAP_TYPE_SOAP_ENV__Reason:
463		return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n);
464#endif
465#ifndef WITH_NOGLOBAL
466	case SOAP_TYPE_SOAP_ENV__Fault:
467		return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n);
468#endif
469	}
470	return NULL;
471}
472
473SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p)
474{	switch (p->type)
475	{
476	case SOAP_TYPE_ns__addResponse:
477		if (p->size < 0)
478			delete (struct ns__addResponse*)p->ptr;
479		else
480			delete[] (struct ns__addResponse*)p->ptr;
481		break;
482	case SOAP_TYPE_ns__add:
483		if (p->size < 0)
484			delete (struct ns__add*)p->ptr;
485		else
486			delete[] (struct ns__add*)p->ptr;
487		break;
488	case SOAP_TYPE_ns__subResponse:
489		if (p->size < 0)
490			delete (struct ns__subResponse*)p->ptr;
491		else
492			delete[] (struct ns__subResponse*)p->ptr;
493		break;
494	case SOAP_TYPE_ns__sub:
495		if (p->size < 0)
496			delete (struct ns__sub*)p->ptr;
497		else
498			delete[] (struct ns__sub*)p->ptr;
499		break;
500	case SOAP_TYPE_ns__mulResponse:
501		if (p->size < 0)
502			delete (struct ns__mulResponse*)p->ptr;
503		else
504			delete[] (struct ns__mulResponse*)p->ptr;
505		break;
506	case SOAP_TYPE_ns__mul:
507		if (p->size < 0)
508			delete (struct ns__mul*)p->ptr;
509		else
510			delete[] (struct ns__mul*)p->ptr;
511		break;
512	case SOAP_TYPE_ns__divResponse:
513		if (p->size < 0)
514			delete (struct ns__divResponse*)p->ptr;
515		else
516			delete[] (struct ns__divResponse*)p->ptr;
517		break;
518	case SOAP_TYPE_ns__div:
519		if (p->size < 0)
520			delete (struct ns__div*)p->ptr;
521		else
522			delete[] (struct ns__div*)p->ptr;
523		break;
524	case SOAP_TYPE_ns__powResponse:
525		if (p->size < 0)
526			delete (struct ns__powResponse*)p->ptr;
527		else
528			delete[] (struct ns__powResponse*)p->ptr;
529		break;
530	case SOAP_TYPE_ns__pow:
531		if (p->size < 0)
532			delete (struct ns__pow*)p->ptr;
533		else
534			delete[] (struct ns__pow*)p->ptr;
535		break;
536	case SOAP_TYPE_SOAP_ENV__Header:
537		if (p->size < 0)
538			delete (struct SOAP_ENV__Header*)p->ptr;
539		else
540			delete[] (struct SOAP_ENV__Header*)p->ptr;
541		break;
542	case SOAP_TYPE_SOAP_ENV__Code:
543		if (p->size < 0)
544			delete (struct SOAP_ENV__Code*)p->ptr;
545		else
546			delete[] (struct SOAP_ENV__Code*)p->ptr;
547		break;
548	case SOAP_TYPE_SOAP_ENV__Detail:
549		if (p->size < 0)
550			delete (struct SOAP_ENV__Detail*)p->ptr;
551		else
552			delete[] (struct SOAP_ENV__Detail*)p->ptr;
553		break;
554	case SOAP_TYPE_SOAP_ENV__Reason:
555		if (p->size < 0)
556			delete (struct SOAP_ENV__Reason*)p->ptr;
557		else
558			delete[] (struct SOAP_ENV__Reason*)p->ptr;
559		break;
560	case SOAP_TYPE_SOAP_ENV__Fault:
561		if (p->size < 0)
562			delete (struct SOAP_ENV__Fault*)p->ptr;
563		else
564			delete[] (struct SOAP_ENV__Fault*)p->ptr;
565		break;
566	default:	return SOAP_ERR;
567	}
568	return SOAP_OK;
569}
570
571SOAP_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)
572{	return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, soap_instantiate);
573}
574
575SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a)
576{	(void)soap; /* appease -Wall -Werror */
577#ifdef SOAP_DEFAULT_byte
578	*a = SOAP_DEFAULT_byte;
579#else
580	*a = (char)0;
581#endif
582}
583
584SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type)
585{
586	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_byte);
587	if (soap_out_byte(soap, tag, id, a, type))
588		return soap->error;
589	return soap_putindependent(soap);
590}
591
592SOAP_FMAC3 int SOAP_FMAC4 soap_out_byte(struct soap *soap, const char *tag, int id, const char *a, const char *type)
593{
594	return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_byte);
595}
596
597SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type)
598{
599	if ((p = soap_in_byte(soap, tag, p, type)))
600		if (soap_getindependent(soap))
601			return NULL;
602	return p;
603}
604
605SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type)
606{
607	return soap_inbyte(soap, tag, a, type, SOAP_TYPE_byte);
608}
609
610SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a)
611{	(void)soap; /* appease -Wall -Werror */
612#ifdef SOAP_DEFAULT_int
613	*a = SOAP_DEFAULT_int;
614#else
615	*a = (int)0;
616#endif
617}
618
619SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type)
620{
621	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_int);
622	if (soap_out_int(soap, tag, id, a, type))
623		return soap->error;
624	return soap_putindependent(soap);
625}
626
627SOAP_FMAC3 int SOAP_FMAC4 soap_out_int(struct soap *soap, const char *tag, int id, const int *a, const char *type)
628{
629	return soap_outint(soap, tag, id, a, type, SOAP_TYPE_int);
630}
631
632SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type)
633{
634	if ((p = soap_in_int(soap, tag, p, type)))
635		if (soap_getindependent(soap))
636			return NULL;
637	return p;
638}
639
640SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type)
641{
642	return soap_inint(soap, tag, a, type, SOAP_TYPE_int);
643}
644
645SOAP_FMAC3 void SOAP_FMAC4 soap_default_double(struct soap *soap, double *a)
646{	(void)soap; /* appease -Wall -Werror */
647#ifdef SOAP_DEFAULT_double
648	*a = SOAP_DEFAULT_double;
649#else
650	*a = (double)0;
651#endif
652}
653
654SOAP_FMAC3 int SOAP_FMAC4 soap_put_double(struct soap *soap, const double *a, const char *tag, const char *type)
655{
656	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_double);
657	if (soap_out_double(soap, tag, id, a, type))
658		return soap->error;
659	return soap_putindependent(soap);
660}
661
662SOAP_FMAC3 int SOAP_FMAC4 soap_out_double(struct soap *soap, const char *tag, int id, const double *a, const char *type)
663{
664	return soap_outdouble(soap, tag, id, a, type, SOAP_TYPE_double);
665}
666
667SOAP_FMAC3 double * SOAP_FMAC4 soap_get_double(struct soap *soap, double *p, const char *tag, const char *type)
668{
669	if ((p = soap_in_double(soap, tag, p, type)))
670		if (soap_getindependent(soap))
671			return NULL;
672	return p;
673}
674
675SOAP_FMAC3 double * SOAP_FMAC4 soap_in_double(struct soap *soap, const char *tag, double *a, const char *type)
676{
677	return soap_indouble(soap, tag, a, type, SOAP_TYPE_double);
678}
679
680#ifndef WITH_NOGLOBAL
681
682SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a)
683{
684	(void)soap; (void)a; /* appease -Wall -Werror */
685	soap_default__QName(soap, &a->faultcode);
686	soap_default_string(soap, &a->faultstring);
687	soap_default_string(soap, &a->faultactor);
688	a->detail = NULL;
689	a->SOAP_ENV__Code = NULL;
690	a->SOAP_ENV__Reason = NULL;
691	soap_default_string(soap, &a->SOAP_ENV__Node);
692	soap_default_string(soap, &a->SOAP_ENV__Role);
693	a->SOAP_ENV__Detail = NULL;
694}
695
696SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a)
697{
698	(void)soap; (void)a; /* appease -Wall -Werror */
699	soap_serialize__QName(soap, &a->faultcode);
700	soap_serialize_string(soap, &a->faultstring);
701	soap_serialize_string(soap, &a->faultactor);
702	soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail);
703	soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code);
704	soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason);
705	soap_serialize_string(soap, &a->SOAP_ENV__Node);
706	soap_serialize_string(soap, &a->SOAP_ENV__Role);
707	soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail);
708}
709
710SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a, const char *tag, const char *type)
711{
712	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Fault);
713	if (soap_out_SOAP_ENV__Fault(soap, tag, id, a, type))
714		return soap->error;
715	return soap_putindependent(soap);
716}
717
718SOAP_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)
719{
720	const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode);
721	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Fault), type))
722		return soap->error;
723	if (soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, ""))
724		return soap->error;
725	if (soap_out_string(soap, "faultstring", -1, &a->faultstring, ""))
726		return soap->error;
727	if (soap_out_string(soap, "faultactor", -1, &a->faultactor, ""))
728		return soap->error;
729	if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, ""))
730		return soap->error;
731	if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, ""))
732		return soap->error;
733	if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, ""))
734		return soap->error;
735	if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, ""))
736		return soap->error;
737	if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, ""))
738		return soap->error;
739	if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, ""))
740		return soap->error;
741	return soap_element_end_out(soap, tag);
742}
743
744SOAP_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)
745{
746	if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type)))
747		if (soap_getindependent(soap))
748			return NULL;
749	return p;
750}
751
752SOAP_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)
753{
754	size_t soap_flag_faultcode = 1;
755	size_t soap_flag_faultstring = 1;
756	size_t soap_flag_faultactor = 1;
757	size_t soap_flag_detail = 1;
758	size_t soap_flag_SOAP_ENV__Code = 1;
759	size_t soap_flag_SOAP_ENV__Reason = 1;
760	size_t soap_flag_SOAP_ENV__Node = 1;
761	size_t soap_flag_SOAP_ENV__Role = 1;
762	size_t soap_flag_SOAP_ENV__Detail = 1;
763	if (soap_element_begin_in(soap, tag, 0, type))
764		return NULL;
765	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);
766	if (!a)
767		return NULL;
768	soap_default_SOAP_ENV__Fault(soap, a);
769	if (soap->body && !*soap->href)
770	{
771		for (;;)
772		{	soap->error = SOAP_TAG_MISMATCH;
773			if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
774				if (soap_in__QName(soap, "faultcode", &a->faultcode, ""))
775				{	soap_flag_faultcode--;
776					continue;
777				}
778			if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
779				if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string"))
780				{	soap_flag_faultstring--;
781					continue;
782				}
783			if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
784				if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string"))
785				{	soap_flag_faultactor--;
786					continue;
787				}
788			if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH)
789				if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, ""))
790				{	soap_flag_detail--;
791					continue;
792				}
793			if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH)
794				if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, ""))
795				{	soap_flag_SOAP_ENV__Code--;
796					continue;
797				}
798			if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH)
799				if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, ""))
800				{	soap_flag_SOAP_ENV__Reason--;
801					continue;
802				}
803			if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
804				if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string"))
805				{	soap_flag_SOAP_ENV__Node--;
806					continue;
807				}
808			if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
809				if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string"))
810				{	soap_flag_SOAP_ENV__Role--;
811					continue;
812				}
813			if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH)
814				if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, ""))
815				{	soap_flag_SOAP_ENV__Detail--;
816					continue;
817				}
818			if (soap->error == SOAP_TAG_MISMATCH)
819				soap->error = soap_ignore_element(soap);
820			if (soap->error == SOAP_NO_TAG)
821				break;
822			if (soap->error)
823				return NULL;
824		}
825		if (soap_element_end_in(soap, tag))
826			return NULL;
827	}
828	else
829	{	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);
830		if (soap->body && soap_element_end_in(soap, tag))
831			return NULL;
832	}
833	return a;
834}
835
836SOAP_FMAC5 struct SOAP_ENV__Fault * SOAP_FMAC6 soap_new_SOAP_ENV__Fault(struct soap *soap, int n)
837{	return soap_instantiate_SOAP_ENV__Fault(soap, n, NULL, NULL, NULL);
838}
839
840SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *p)
841{	soap_delete(soap, p);
842}
843
844SOAP_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)
845{
846	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
847	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Fault, n, soap_fdelete);
848	if (!cp)
849		return NULL;
850	if (n < 0)
851	{	cp->ptr = (void*)new struct SOAP_ENV__Fault;
852		if (size)
853			*size = sizeof(struct SOAP_ENV__Fault);
854	}
855	else
856	{	cp->ptr = (void*)new struct SOAP_ENV__Fault[n];
857		if (!cp->ptr)
858		{	soap->error = SOAP_EOM;
859			return NULL;
860		}
861		if (size)
862			*size = n * sizeof(struct SOAP_ENV__Fault);
863	}
864		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
865	return (struct SOAP_ENV__Fault*)cp->ptr;
866}
867SOAP_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)
868{
869	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p));
870	*(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q;
871}
872
873#endif
874
875#ifndef WITH_NOGLOBAL
876
877SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a)
878{
879	(void)soap; (void)a; /* appease -Wall -Werror */
880	soap_default_string(soap, &a->SOAP_ENV__Text);
881}
882
883SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a)
884{
885	(void)soap; (void)a; /* appease -Wall -Werror */
886	soap_serialize_string(soap, &a->SOAP_ENV__Text);
887}
888
889SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a, const char *tag, const char *type)
890{
891	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Reason);
892	if (soap_out_SOAP_ENV__Reason(soap, tag, id, a, type))
893		return soap->error;
894	return soap_putindependent(soap);
895}
896
897SOAP_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)
898{
899	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Reason), type))
900		return soap->error;
901	if (soap->lang)
902		soap_set_attr(soap, "xml:lang", soap->lang);
903	if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, ""))
904		return soap->error;
905	return soap_element_end_out(soap, tag);
906}
907
908SOAP_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)
909{
910	if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type)))
911		if (soap_getindependent(soap))
912			return NULL;
913	return p;
914}
915
916SOAP_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)
917{
918	size_t soap_flag_SOAP_ENV__Text = 1;
919	if (soap_element_begin_in(soap, tag, 0, type))
920		return NULL;
921	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);
922	if (!a)
923		return NULL;
924	soap_default_SOAP_ENV__Reason(soap, a);
925	if (soap->body && !*soap->href)
926	{
927		for (;;)
928		{	soap->error = SOAP_TAG_MISMATCH;
929			if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
930				if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string"))
931				{	soap_flag_SOAP_ENV__Text--;
932					continue;
933				}
934			if (soap->error == SOAP_TAG_MISMATCH)
935				soap->error = soap_ignore_element(soap);
936			if (soap->error == SOAP_NO_TAG)
937				break;
938			if (soap->error)
939				return NULL;
940		}
941		if (soap_element_end_in(soap, tag))
942			return NULL;
943	}
944	else
945	{	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);
946		if (soap->body && soap_element_end_in(soap, tag))
947			return NULL;
948	}
949	return a;
950}
951
952SOAP_FMAC5 struct SOAP_ENV__Reason * SOAP_FMAC6 soap_new_SOAP_ENV__Reason(struct soap *soap, int n)
953{	return soap_instantiate_SOAP_ENV__Reason(soap, n, NULL, NULL, NULL);
954}
955
956SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *p)
957{	soap_delete(soap, p);
958}
959
960SOAP_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)
961{
962	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
963	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Reason, n, soap_fdelete);
964	if (!cp)
965		return NULL;
966	if (n < 0)
967	{	cp->ptr = (void*)new struct SOAP_ENV__Reason;
968		if (size)
969			*size = sizeof(struct SOAP_ENV__Reason);
970	}
971	else
972	{	cp->ptr = (void*)new struct SOAP_ENV__Reason[n];
973		if (!cp->ptr)
974		{	soap->error = SOAP_EOM;
975			return NULL;
976		}
977		if (size)
978			*size = n * sizeof(struct SOAP_ENV__Reason);
979	}
980		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
981	return (struct SOAP_ENV__Reason*)cp->ptr;
982}
983SOAP_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)
984{
985	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p));
986	*(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q;
987}
988
989#endif
990
991#ifndef WITH_NOGLOBAL
992
993SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a)
994{
995	(void)soap; (void)a; /* appease -Wall -Werror */
996	a->__type = 0;
997	a->fault = NULL;
998	a->__any = NULL;
999}
1000
1001SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a)
1002{
1003	(void)soap; (void)a; /* appease -Wall -Werror */
1004	soap_markelement(soap, a->fault, a->__type);
1005}
1006
1007SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a, const char *tag, const char *type)
1008{
1009	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Detail);
1010	if (soap_out_SOAP_ENV__Detail(soap, tag, id, a, type))
1011		return soap->error;
1012	return soap_putindependent(soap);
1013}
1014
1015SOAP_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)
1016{
1017	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Detail), type))
1018		return soap->error;
1019	if (soap_putelement(soap, a->fault, "fault", -1, a->__type))
1020		return soap->error;
1021	soap_outliteral(soap, "-any", &a->__any, NULL);
1022	return soap_element_end_out(soap, tag);
1023}
1024
1025SOAP_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)
1026{
1027	if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type)))
1028		if (soap_getindependent(soap))
1029			return NULL;
1030	return p;
1031}
1032
1033SOAP_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)
1034{
1035	size_t soap_flag_fault = 1;
1036	size_t soap_flag___any = 1;
1037	if (soap_element_begin_in(soap, tag, 0, type))
1038		return NULL;
1039	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);
1040	if (!a)
1041		return NULL;
1042	soap_default_SOAP_ENV__Detail(soap, a);
1043	if (soap->body && !*soap->href)
1044	{
1045		for (;;)
1046		{	soap->error = SOAP_TAG_MISMATCH;
1047			if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH)
1048				if ((a->fault = soap_getelement(soap, &a->__type)))
1049				{	soap_flag_fault = 0;
1050					continue;
1051				}
1052			if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1053				if (soap_inliteral(soap, "-any", &a->__any))
1054				{	soap_flag___any--;
1055					continue;
1056				}
1057			if (soap->error == SOAP_TAG_MISMATCH)
1058				soap->error = soap_ignore_element(soap);
1059			if (soap->error == SOAP_NO_TAG)
1060				break;
1061			if (soap->error)
1062				return NULL;
1063		}
1064		if (soap_element_end_in(soap, tag))
1065			return NULL;
1066	}
1067	else
1068	{	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);
1069		if (soap->body && soap_element_end_in(soap, tag))
1070			return NULL;
1071	}
1072	return a;
1073}
1074
1075SOAP_FMAC5 struct SOAP_ENV__Detail * SOAP_FMAC6 soap_new_SOAP_ENV__Detail(struct soap *soap, int n)
1076{	return soap_instantiate_SOAP_ENV__Detail(soap, n, NULL, NULL, NULL);
1077}
1078
1079SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *p)
1080{	soap_delete(soap, p);
1081}
1082
1083SOAP_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)
1084{
1085	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1086	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Detail, n, soap_fdelete);
1087	if (!cp)
1088		return NULL;
1089	if (n < 0)
1090	{	cp->ptr = (void*)new struct SOAP_ENV__Detail;
1091		if (size)
1092			*size = sizeof(struct SOAP_ENV__Detail);
1093	}
1094	else
1095	{	cp->ptr = (void*)new struct SOAP_ENV__Detail[n];
1096		if (!cp->ptr)
1097		{	soap->error = SOAP_EOM;
1098			return NULL;
1099		}
1100		if (size)
1101			*size = n * sizeof(struct SOAP_ENV__Detail);
1102	}
1103		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1104	return (struct SOAP_ENV__Detail*)cp->ptr;
1105}
1106SOAP_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)
1107{
1108	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p));
1109	*(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q;
1110}
1111
1112#endif
1113
1114#ifndef WITH_NOGLOBAL
1115
1116SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a)
1117{
1118	(void)soap; (void)a; /* appease -Wall -Werror */
1119	soap_default__QName(soap, &a->SOAP_ENV__Value);
1120	a->SOAP_ENV__Subcode = NULL;
1121}
1122
1123SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a)
1124{
1125	(void)soap; (void)a; /* appease -Wall -Werror */
1126	soap_serialize__QName(soap, &a->SOAP_ENV__Value);
1127	soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode);
1128}
1129
1130SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a, const char *tag, const char *type)
1131{
1132	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Code);
1133	if (soap_out_SOAP_ENV__Code(soap, tag, id, a, type))
1134		return soap->error;
1135	return soap_putindependent(soap);
1136}
1137
1138SOAP_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)
1139{
1140	const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value);
1141	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Code), type))
1142		return soap->error;
1143	if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, ""))
1144		return soap->error;
1145	if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, ""))
1146		return soap->error;
1147	return soap_element_end_out(soap, tag);
1148}
1149
1150SOAP_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)
1151{
1152	if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type)))
1153		if (soap_getindependent(soap))
1154			return NULL;
1155	return p;
1156}
1157
1158SOAP_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)
1159{
1160	size_t soap_flag_SOAP_ENV__Value = 1;
1161	size_t soap_flag_SOAP_ENV__Subcode = 1;
1162	if (soap_element_begin_in(soap, tag, 0, type))
1163		return NULL;
1164	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);
1165	if (!a)
1166		return NULL;
1167	soap_default_SOAP_ENV__Code(soap, a);
1168	if (soap->body && !*soap->href)
1169	{
1170		for (;;)
1171		{	soap->error = SOAP_TAG_MISMATCH;
1172			if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1173				if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, ""))
1174				{	soap_flag_SOAP_ENV__Value--;
1175					continue;
1176				}
1177			if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH)
1178				if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, ""))
1179				{	soap_flag_SOAP_ENV__Subcode--;
1180					continue;
1181				}
1182			if (soap->error == SOAP_TAG_MISMATCH)
1183				soap->error = soap_ignore_element(soap);
1184			if (soap->error == SOAP_NO_TAG)
1185				break;
1186			if (soap->error)
1187				return NULL;
1188		}
1189		if (soap_element_end_in(soap, tag))
1190			return NULL;
1191	}
1192	else
1193	{	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);
1194		if (soap->body && soap_element_end_in(soap, tag))
1195			return NULL;
1196	}
1197	return a;
1198}
1199
1200SOAP_FMAC5 struct SOAP_ENV__Code * SOAP_FMAC6 soap_new_SOAP_ENV__Code(struct soap *soap, int n)
1201{	return soap_instantiate_SOAP_ENV__Code(soap, n, NULL, NULL, NULL);
1202}
1203
1204SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *p)
1205{	soap_delete(soap, p);
1206}
1207
1208SOAP_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)
1209{
1210	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1211	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Code, n, soap_fdelete);
1212	if (!cp)
1213		return NULL;
1214	if (n < 0)
1215	{	cp->ptr = (void*)new struct SOAP_ENV__Code;
1216		if (size)
1217			*size = sizeof(struct SOAP_ENV__Code);
1218	}
1219	else
1220	{	cp->ptr = (void*)new struct SOAP_ENV__Code[n];
1221		if (!cp->ptr)
1222		{	soap->error = SOAP_EOM;
1223			return NULL;
1224		}
1225		if (size)
1226			*size = n * sizeof(struct SOAP_ENV__Code);
1227	}
1228		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1229	return (struct SOAP_ENV__Code*)cp->ptr;
1230}
1231SOAP_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)
1232{
1233	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p));
1234	*(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q;
1235}
1236
1237#endif
1238
1239#ifndef WITH_NOGLOBAL
1240
1241SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a)
1242{
1243	(void)soap; (void)a; /* appease -Wall -Werror */
1244}
1245
1246SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a)
1247{
1248	(void)soap; (void)a; /* appease -Wall -Werror */
1249}
1250
1251SOAP_FMAC3 int SOAP_FMAC4 soap_put_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a, const char *tag, const char *type)
1252{
1253	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_SOAP_ENV__Header);
1254	if (soap_out_SOAP_ENV__Header(soap, tag, id, a, type))
1255		return soap->error;
1256	return soap_putindependent(soap);
1257}
1258
1259SOAP_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)
1260{
1261	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_SOAP_ENV__Header), type))
1262		return soap->error;
1263	return soap_element_end_out(soap, tag);
1264}
1265
1266SOAP_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)
1267{
1268	if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type)))
1269		if (soap_getindependent(soap))
1270			return NULL;
1271	return p;
1272}
1273
1274SOAP_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)
1275{
1276	if (soap_element_begin_in(soap, tag, 0, type))
1277		return NULL;
1278	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);
1279	if (!a)
1280		return NULL;
1281	soap_default_SOAP_ENV__Header(soap, a);
1282	if (soap->body && !*soap->href)
1283	{
1284		for (;;)
1285		{	soap->error = SOAP_TAG_MISMATCH;
1286			if (soap->error == SOAP_TAG_MISMATCH)
1287				soap->error = soap_ignore_element(soap);
1288			if (soap->error == SOAP_NO_TAG)
1289				break;
1290			if (soap->error)
1291				return NULL;
1292		}
1293		if (soap_element_end_in(soap, tag))
1294			return NULL;
1295	}
1296	else
1297	{	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);
1298		if (soap->body && soap_element_end_in(soap, tag))
1299			return NULL;
1300	}
1301	return a;
1302}
1303
1304SOAP_FMAC5 struct SOAP_ENV__Header * SOAP_FMAC6 soap_new_SOAP_ENV__Header(struct soap *soap, int n)
1305{	return soap_instantiate_SOAP_ENV__Header(soap, n, NULL, NULL, NULL);
1306}
1307
1308SOAP_FMAC5 void SOAP_FMAC6 soap_delete_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *p)
1309{	soap_delete(soap, p);
1310}
1311
1312SOAP_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)
1313{
1314	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1315	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_SOAP_ENV__Header, n, soap_fdelete);
1316	if (!cp)
1317		return NULL;
1318	if (n < 0)
1319	{	cp->ptr = (void*)new struct SOAP_ENV__Header;
1320		if (size)
1321			*size = sizeof(struct SOAP_ENV__Header);
1322	}
1323	else
1324	{	cp->ptr = (void*)new struct SOAP_ENV__Header[n];
1325		if (!cp->ptr)
1326		{	soap->error = SOAP_EOM;
1327			return NULL;
1328		}
1329		if (size)
1330			*size = n * sizeof(struct SOAP_ENV__Header);
1331	}
1332		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1333	return (struct SOAP_ENV__Header*)cp->ptr;
1334}
1335SOAP_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)
1336{
1337	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p));
1338	*(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q;
1339}
1340
1341#endif
1342
1343SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__pow(struct soap *soap, struct ns__pow *a)
1344{
1345	(void)soap; (void)a; /* appease -Wall -Werror */
1346	soap_default_double(soap, &a->a);
1347	soap_default_double(soap, &a->b);
1348}
1349
1350SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__pow(struct soap *soap, const struct ns__pow *a)
1351{
1352	(void)soap; (void)a; /* appease -Wall -Werror */
1353	soap_embedded(soap, &a->a, SOAP_TYPE_double);
1354	soap_embedded(soap, &a->b, SOAP_TYPE_double);
1355}
1356
1357SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__pow(struct soap *soap, const struct ns__pow *a, const char *tag, const char *type)
1358{
1359	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__pow);
1360	if (soap_out_ns__pow(soap, tag, id, a, type))
1361		return soap->error;
1362	return soap_putindependent(soap);
1363}
1364
1365SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__pow(struct soap *soap, const char *tag, int id, const struct ns__pow *a, const char *type)
1366{
1367	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__pow), type))
1368		return soap->error;
1369	if (soap_out_double(soap, "a", -1, &a->a, ""))
1370		return soap->error;
1371	if (soap_out_double(soap, "b", -1, &a->b, ""))
1372		return soap->error;
1373	return soap_element_end_out(soap, tag);
1374}
1375
1376SOAP_FMAC3 struct ns__pow * SOAP_FMAC4 soap_get_ns__pow(struct soap *soap, struct ns__pow *p, const char *tag, const char *type)
1377{
1378	if ((p = soap_in_ns__pow(soap, tag, p, type)))
1379		if (soap_getindependent(soap))
1380			return NULL;
1381	return p;
1382}
1383
1384SOAP_FMAC3 struct ns__pow * SOAP_FMAC4 soap_in_ns__pow(struct soap *soap, const char *tag, struct ns__pow *a, const char *type)
1385{
1386	size_t soap_flag_a = 1;
1387	size_t soap_flag_b = 1;
1388	if (soap_element_begin_in(soap, tag, 0, type))
1389		return NULL;
1390	a = (struct ns__pow *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__pow, sizeof(struct ns__pow), 0, NULL, NULL, NULL);
1391	if (!a)
1392		return NULL;
1393	soap_default_ns__pow(soap, a);
1394	if (soap->body && !*soap->href)
1395	{
1396		for (;;)
1397		{	soap->error = SOAP_TAG_MISMATCH;
1398			if (soap_flag_a && soap->error == SOAP_TAG_MISMATCH)
1399				if (soap_in_double(soap, "a", &a->a, "xsd:double"))
1400				{	soap_flag_a--;
1401					continue;
1402				}
1403			if (soap_flag_b && soap->error == SOAP_TAG_MISMATCH)
1404				if (soap_in_double(soap, "b", &a->b, "xsd:double"))
1405				{	soap_flag_b--;
1406					continue;
1407				}
1408			if (soap->error == SOAP_TAG_MISMATCH)
1409				soap->error = soap_ignore_element(soap);
1410			if (soap->error == SOAP_NO_TAG)
1411				break;
1412			if (soap->error)
1413				return NULL;
1414		}
1415		if (soap_element_end_in(soap, tag))
1416			return NULL;
1417	}
1418	else
1419	{	a = (struct ns__pow *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__pow, 0, sizeof(struct ns__pow), 0, NULL);
1420		if (soap->body && soap_element_end_in(soap, tag))
1421			return NULL;
1422	}
1423	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_a > 0 || soap_flag_b > 0))
1424	{	soap->error = SOAP_OCCURS;
1425		return NULL;
1426	}
1427	return a;
1428}
1429
1430SOAP_FMAC5 struct ns__pow * SOAP_FMAC6 soap_new_ns__pow(struct soap *soap, int n)
1431{	return soap_instantiate_ns__pow(soap, n, NULL, NULL, NULL);
1432}
1433
1434SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__pow(struct soap *soap, struct ns__pow *p)
1435{	soap_delete(soap, p);
1436}
1437
1438SOAP_FMAC3 struct ns__pow * SOAP_FMAC4 soap_instantiate_ns__pow(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1439{
1440	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__pow(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1441	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__pow, n, soap_fdelete);
1442	if (!cp)
1443		return NULL;
1444	if (n < 0)
1445	{	cp->ptr = (void*)new struct ns__pow;
1446		if (size)
1447			*size = sizeof(struct ns__pow);
1448	}
1449	else
1450	{	cp->ptr = (void*)new struct ns__pow[n];
1451		if (!cp->ptr)
1452		{	soap->error = SOAP_EOM;
1453			return NULL;
1454		}
1455		if (size)
1456			*size = n * sizeof(struct ns__pow);
1457	}
1458		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1459	return (struct ns__pow*)cp->ptr;
1460}
1461SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__pow(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1462{
1463	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__pow %p -> %p\n", q, p));
1464	*(struct ns__pow*)p = *(struct ns__pow*)q;
1465}
1466
1467SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__powResponse(struct soap *soap, struct ns__powResponse *a)
1468{
1469	(void)soap; (void)a; /* appease -Wall -Werror */
1470	a->result = NULL;
1471}
1472
1473SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__powResponse(struct soap *soap, const struct ns__powResponse *a)
1474{
1475	(void)soap; (void)a; /* appease -Wall -Werror */
1476	soap_serialize_PointerTodouble(soap, &a->result);
1477}
1478
1479SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__powResponse(struct soap *soap, const struct ns__powResponse *a, const char *tag, const char *type)
1480{
1481	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__powResponse);
1482	if (soap_out_ns__powResponse(soap, tag, id, a, type))
1483		return soap->error;
1484	return soap_putindependent(soap);
1485}
1486
1487SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__powResponse(struct soap *soap, const char *tag, int id, const struct ns__powResponse *a, const char *type)
1488{
1489	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__powResponse), type))
1490		return soap->error;
1491	if (soap_out_PointerTodouble(soap, "result", -1, &a->result, ""))
1492		return soap->error;
1493	return soap_element_end_out(soap, tag);
1494}
1495
1496SOAP_FMAC3 struct ns__powResponse * SOAP_FMAC4 soap_get_ns__powResponse(struct soap *soap, struct ns__powResponse *p, const char *tag, const char *type)
1497{
1498	if ((p = soap_in_ns__powResponse(soap, tag, p, type)))
1499		if (soap_getindependent(soap))
1500			return NULL;
1501	return p;
1502}
1503
1504SOAP_FMAC3 struct ns__powResponse * SOAP_FMAC4 soap_in_ns__powResponse(struct soap *soap, const char *tag, struct ns__powResponse *a, const char *type)
1505{
1506	size_t soap_flag_result = 1;
1507	if (soap_element_begin_in(soap, tag, 0, type))
1508		return NULL;
1509	a = (struct ns__powResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__powResponse, sizeof(struct ns__powResponse), 0, NULL, NULL, NULL);
1510	if (!a)
1511		return NULL;
1512	soap_default_ns__powResponse(soap, a);
1513	if (soap->body && !*soap->href)
1514	{
1515		for (;;)
1516		{	soap->error = SOAP_TAG_MISMATCH;
1517			if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
1518				if (soap_in_PointerTodouble(soap, "result", &a->result, "xsd:double"))
1519				{	soap_flag_result--;
1520					continue;
1521				}
1522			if (soap->error == SOAP_TAG_MISMATCH)
1523				soap->error = soap_ignore_element(soap);
1524			if (soap->error == SOAP_NO_TAG)
1525				break;
1526			if (soap->error)
1527				return NULL;
1528		}
1529		if (soap_element_end_in(soap, tag))
1530			return NULL;
1531	}
1532	else
1533	{	a = (struct ns__powResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__powResponse, 0, sizeof(struct ns__powResponse), 0, NULL);
1534		if (soap->body && soap_element_end_in(soap, tag))
1535			return NULL;
1536	}
1537	return a;
1538}
1539
1540SOAP_FMAC5 struct ns__powResponse * SOAP_FMAC6 soap_new_ns__powResponse(struct soap *soap, int n)
1541{	return soap_instantiate_ns__powResponse(soap, n, NULL, NULL, NULL);
1542}
1543
1544SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__powResponse(struct soap *soap, struct ns__powResponse *p)
1545{	soap_delete(soap, p);
1546}
1547
1548SOAP_FMAC3 struct ns__powResponse * SOAP_FMAC4 soap_instantiate_ns__powResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1549{
1550	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__powResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1551	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__powResponse, n, soap_fdelete);
1552	if (!cp)
1553		return NULL;
1554	if (n < 0)
1555	{	cp->ptr = (void*)new struct ns__powResponse;
1556		if (size)
1557			*size = sizeof(struct ns__powResponse);
1558	}
1559	else
1560	{	cp->ptr = (void*)new struct ns__powResponse[n];
1561		if (!cp->ptr)
1562		{	soap->error = SOAP_EOM;
1563			return NULL;
1564		}
1565		if (size)
1566			*size = n * sizeof(struct ns__powResponse);
1567	}
1568		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1569	return (struct ns__powResponse*)cp->ptr;
1570}
1571SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__powResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1572{
1573	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__powResponse %p -> %p\n", q, p));
1574	*(struct ns__powResponse*)p = *(struct ns__powResponse*)q;
1575}
1576
1577SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__div(struct soap *soap, struct ns__div *a)
1578{
1579	(void)soap; (void)a; /* appease -Wall -Werror */
1580	soap_default_double(soap, &a->a);
1581	soap_default_double(soap, &a->b);
1582}
1583
1584SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__div(struct soap *soap, const struct ns__div *a)
1585{
1586	(void)soap; (void)a; /* appease -Wall -Werror */
1587	soap_embedded(soap, &a->a, SOAP_TYPE_double);
1588	soap_embedded(soap, &a->b, SOAP_TYPE_double);
1589}
1590
1591SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__div(struct soap *soap, const struct ns__div *a, const char *tag, const char *type)
1592{
1593	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__div);
1594	if (soap_out_ns__div(soap, tag, id, a, type))
1595		return soap->error;
1596	return soap_putindependent(soap);
1597}
1598
1599SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__div(struct soap *soap, const char *tag, int id, const struct ns__div *a, const char *type)
1600{
1601	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__div), type))
1602		return soap->error;
1603	if (soap_out_double(soap, "a", -1, &a->a, ""))
1604		return soap->error;
1605	if (soap_out_double(soap, "b", -1, &a->b, ""))
1606		return soap->error;
1607	return soap_element_end_out(soap, tag);
1608}
1609
1610SOAP_FMAC3 struct ns__div * SOAP_FMAC4 soap_get_ns__div(struct soap *soap, struct ns__div *p, const char *tag, const char *type)
1611{
1612	if ((p = soap_in_ns__div(soap, tag, p, type)))
1613		if (soap_getindependent(soap))
1614			return NULL;
1615	return p;
1616}
1617
1618SOAP_FMAC3 struct ns__div * SOAP_FMAC4 soap_in_ns__div(struct soap *soap, const char *tag, struct ns__div *a, const char *type)
1619{
1620	size_t soap_flag_a = 1;
1621	size_t soap_flag_b = 1;
1622	if (soap_element_begin_in(soap, tag, 0, type))
1623		return NULL;
1624	a = (struct ns__div *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__div, sizeof(struct ns__div), 0, NULL, NULL, NULL);
1625	if (!a)
1626		return NULL;
1627	soap_default_ns__div(soap, a);
1628	if (soap->body && !*soap->href)
1629	{
1630		for (;;)
1631		{	soap->error = SOAP_TAG_MISMATCH;
1632			if (soap_flag_a && soap->error == SOAP_TAG_MISMATCH)
1633				if (soap_in_double(soap, "a", &a->a, "xsd:double"))
1634				{	soap_flag_a--;
1635					continue;
1636				}
1637			if (soap_flag_b && soap->error == SOAP_TAG_MISMATCH)
1638				if (soap_in_double(soap, "b", &a->b, "xsd:double"))
1639				{	soap_flag_b--;
1640					continue;
1641				}
1642			if (soap->error == SOAP_TAG_MISMATCH)
1643				soap->error = soap_ignore_element(soap);
1644			if (soap->error == SOAP_NO_TAG)
1645				break;
1646			if (soap->error)
1647				return NULL;
1648		}
1649		if (soap_element_end_in(soap, tag))
1650			return NULL;
1651	}
1652	else
1653	{	a = (struct ns__div *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__div, 0, sizeof(struct ns__div), 0, NULL);
1654		if (soap->body && soap_element_end_in(soap, tag))
1655			return NULL;
1656	}
1657	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_a > 0 || soap_flag_b > 0))
1658	{	soap->error = SOAP_OCCURS;
1659		return NULL;
1660	}
1661	return a;
1662}
1663
1664SOAP_FMAC5 struct ns__div * SOAP_FMAC6 soap_new_ns__div(struct soap *soap, int n)
1665{	return soap_instantiate_ns__div(soap, n, NULL, NULL, NULL);
1666}
1667
1668SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__div(struct soap *soap, struct ns__div *p)
1669{	soap_delete(soap, p);
1670}
1671
1672SOAP_FMAC3 struct ns__div * SOAP_FMAC4 soap_instantiate_ns__div(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1673{
1674	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__div(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1675	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__div, n, soap_fdelete);
1676	if (!cp)
1677		return NULL;
1678	if (n < 0)
1679	{	cp->ptr = (void*)new struct ns__div;
1680		if (size)
1681			*size = sizeof(struct ns__div);
1682	}
1683	else
1684	{	cp->ptr = (void*)new struct ns__div[n];
1685		if (!cp->ptr)
1686		{	soap->error = SOAP_EOM;
1687			return NULL;
1688		}
1689		if (size)
1690			*size = n * sizeof(struct ns__div);
1691	}
1692		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1693	return (struct ns__div*)cp->ptr;
1694}
1695SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__div(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1696{
1697	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__div %p -> %p\n", q, p));
1698	*(struct ns__div*)p = *(struct ns__div*)q;
1699}
1700
1701SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__divResponse(struct soap *soap, struct ns__divResponse *a)
1702{
1703	(void)soap; (void)a; /* appease -Wall -Werror */
1704	a->result = NULL;
1705}
1706
1707SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__divResponse(struct soap *soap, const struct ns__divResponse *a)
1708{
1709	(void)soap; (void)a; /* appease -Wall -Werror */
1710	soap_serialize_PointerTodouble(soap, &a->result);
1711}
1712
1713SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__divResponse(struct soap *soap, const struct ns__divResponse *a, const char *tag, const char *type)
1714{
1715	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__divResponse);
1716	if (soap_out_ns__divResponse(soap, tag, id, a, type))
1717		return soap->error;
1718	return soap_putindependent(soap);
1719}
1720
1721SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__divResponse(struct soap *soap, const char *tag, int id, const struct ns__divResponse *a, const char *type)
1722{
1723	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__divResponse), type))
1724		return soap->error;
1725	if (soap_out_PointerTodouble(soap, "result", -1, &a->result, ""))
1726		return soap->error;
1727	return soap_element_end_out(soap, tag);
1728}
1729
1730SOAP_FMAC3 struct ns__divResponse * SOAP_FMAC4 soap_get_ns__divResponse(struct soap *soap, struct ns__divResponse *p, const char *tag, const char *type)
1731{
1732	if ((p = soap_in_ns__divResponse(soap, tag, p, type)))
1733		if (soap_getindependent(soap))
1734			return NULL;
1735	return p;
1736}
1737
1738SOAP_FMAC3 struct ns__divResponse * SOAP_FMAC4 soap_in_ns__divResponse(struct soap *soap, const char *tag, struct ns__divResponse *a, const char *type)
1739{
1740	size_t soap_flag_result = 1;
1741	if (soap_element_begin_in(soap, tag, 0, type))
1742		return NULL;
1743	a = (struct ns__divResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__divResponse, sizeof(struct ns__divResponse), 0, NULL, NULL, NULL);
1744	if (!a)
1745		return NULL;
1746	soap_default_ns__divResponse(soap, a);
1747	if (soap->body && !*soap->href)
1748	{
1749		for (;;)
1750		{	soap->error = SOAP_TAG_MISMATCH;
1751			if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
1752				if (soap_in_PointerTodouble(soap, "result", &a->result, "xsd:double"))
1753				{	soap_flag_result--;
1754					continue;
1755				}
1756			if (soap->error == SOAP_TAG_MISMATCH)
1757				soap->error = soap_ignore_element(soap);
1758			if (soap->error == SOAP_NO_TAG)
1759				break;
1760			if (soap->error)
1761				return NULL;
1762		}
1763		if (soap_element_end_in(soap, tag))
1764			return NULL;
1765	}
1766	else
1767	{	a = (struct ns__divResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__divResponse, 0, sizeof(struct ns__divResponse), 0, NULL);
1768		if (soap->body && soap_element_end_in(soap, tag))
1769			return NULL;
1770	}
1771	return a;
1772}
1773
1774SOAP_FMAC5 struct ns__divResponse * SOAP_FMAC6 soap_new_ns__divResponse(struct soap *soap, int n)
1775{	return soap_instantiate_ns__divResponse(soap, n, NULL, NULL, NULL);
1776}
1777
1778SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__divResponse(struct soap *soap, struct ns__divResponse *p)
1779{	soap_delete(soap, p);
1780}
1781
1782SOAP_FMAC3 struct ns__divResponse * SOAP_FMAC4 soap_instantiate_ns__divResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1783{
1784	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__divResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1785	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__divResponse, n, soap_fdelete);
1786	if (!cp)
1787		return NULL;
1788	if (n < 0)
1789	{	cp->ptr = (void*)new struct ns__divResponse;
1790		if (size)
1791			*size = sizeof(struct ns__divResponse);
1792	}
1793	else
1794	{	cp->ptr = (void*)new struct ns__divResponse[n];
1795		if (!cp->ptr)
1796		{	soap->error = SOAP_EOM;
1797			return NULL;
1798		}
1799		if (size)
1800			*size = n * sizeof(struct ns__divResponse);
1801	}
1802		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1803	return (struct ns__divResponse*)cp->ptr;
1804}
1805SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__divResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1806{
1807	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__divResponse %p -> %p\n", q, p));
1808	*(struct ns__divResponse*)p = *(struct ns__divResponse*)q;
1809}
1810
1811SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__mul(struct soap *soap, struct ns__mul *a)
1812{
1813	(void)soap; (void)a; /* appease -Wall -Werror */
1814	soap_default_double(soap, &a->a);
1815	soap_default_double(soap, &a->b);
1816}
1817
1818SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__mul(struct soap *soap, const struct ns__mul *a)
1819{
1820	(void)soap; (void)a; /* appease -Wall -Werror */
1821	soap_embedded(soap, &a->a, SOAP_TYPE_double);
1822	soap_embedded(soap, &a->b, SOAP_TYPE_double);
1823}
1824
1825SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__mul(struct soap *soap, const struct ns__mul *a, const char *tag, const char *type)
1826{
1827	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__mul);
1828	if (soap_out_ns__mul(soap, tag, id, a, type))
1829		return soap->error;
1830	return soap_putindependent(soap);
1831}
1832
1833SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__mul(struct soap *soap, const char *tag, int id, const struct ns__mul *a, const char *type)
1834{
1835	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__mul), type))
1836		return soap->error;
1837	if (soap_out_double(soap, "a", -1, &a->a, ""))
1838		return soap->error;
1839	if (soap_out_double(soap, "b", -1, &a->b, ""))
1840		return soap->error;
1841	return soap_element_end_out(soap, tag);
1842}
1843
1844SOAP_FMAC3 struct ns__mul * SOAP_FMAC4 soap_get_ns__mul(struct soap *soap, struct ns__mul *p, const char *tag, const char *type)
1845{
1846	if ((p = soap_in_ns__mul(soap, tag, p, type)))
1847		if (soap_getindependent(soap))
1848			return NULL;
1849	return p;
1850}
1851
1852SOAP_FMAC3 struct ns__mul * SOAP_FMAC4 soap_in_ns__mul(struct soap *soap, const char *tag, struct ns__mul *a, const char *type)
1853{
1854	size_t soap_flag_a = 1;
1855	size_t soap_flag_b = 1;
1856	if (soap_element_begin_in(soap, tag, 0, type))
1857		return NULL;
1858	a = (struct ns__mul *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__mul, sizeof(struct ns__mul), 0, NULL, NULL, NULL);
1859	if (!a)
1860		return NULL;
1861	soap_default_ns__mul(soap, a);
1862	if (soap->body && !*soap->href)
1863	{
1864		for (;;)
1865		{	soap->error = SOAP_TAG_MISMATCH;
1866			if (soap_flag_a && soap->error == SOAP_TAG_MISMATCH)
1867				if (soap_in_double(soap, "a", &a->a, "xsd:double"))
1868				{	soap_flag_a--;
1869					continue;
1870				}
1871			if (soap_flag_b && soap->error == SOAP_TAG_MISMATCH)
1872				if (soap_in_double(soap, "b", &a->b, "xsd:double"))
1873				{	soap_flag_b--;
1874					continue;
1875				}
1876			if (soap->error == SOAP_TAG_MISMATCH)
1877				soap->error = soap_ignore_element(soap);
1878			if (soap->error == SOAP_NO_TAG)
1879				break;
1880			if (soap->error)
1881				return NULL;
1882		}
1883		if (soap_element_end_in(soap, tag))
1884			return NULL;
1885	}
1886	else
1887	{	a = (struct ns__mul *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__mul, 0, sizeof(struct ns__mul), 0, NULL);
1888		if (soap->body && soap_element_end_in(soap, tag))
1889			return NULL;
1890	}
1891	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_a > 0 || soap_flag_b > 0))
1892	{	soap->error = SOAP_OCCURS;
1893		return NULL;
1894	}
1895	return a;
1896}
1897
1898SOAP_FMAC5 struct ns__mul * SOAP_FMAC6 soap_new_ns__mul(struct soap *soap, int n)
1899{	return soap_instantiate_ns__mul(soap, n, NULL, NULL, NULL);
1900}
1901
1902SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__mul(struct soap *soap, struct ns__mul *p)
1903{	soap_delete(soap, p);
1904}
1905
1906SOAP_FMAC3 struct ns__mul * SOAP_FMAC4 soap_instantiate_ns__mul(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1907{
1908	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__mul(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1909	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__mul, n, soap_fdelete);
1910	if (!cp)
1911		return NULL;
1912	if (n < 0)
1913	{	cp->ptr = (void*)new struct ns__mul;
1914		if (size)
1915			*size = sizeof(struct ns__mul);
1916	}
1917	else
1918	{	cp->ptr = (void*)new struct ns__mul[n];
1919		if (!cp->ptr)
1920		{	soap->error = SOAP_EOM;
1921			return NULL;
1922		}
1923		if (size)
1924			*size = n * sizeof(struct ns__mul);
1925	}
1926		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1927	return (struct ns__mul*)cp->ptr;
1928}
1929SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__mul(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1930{
1931	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__mul %p -> %p\n", q, p));
1932	*(struct ns__mul*)p = *(struct ns__mul*)q;
1933}
1934
1935SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__mulResponse(struct soap *soap, struct ns__mulResponse *a)
1936{
1937	(void)soap; (void)a; /* appease -Wall -Werror */
1938	a->result = NULL;
1939}
1940
1941SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__mulResponse(struct soap *soap, const struct ns__mulResponse *a)
1942{
1943	(void)soap; (void)a; /* appease -Wall -Werror */
1944	soap_serialize_PointerTodouble(soap, &a->result);
1945}
1946
1947SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__mulResponse(struct soap *soap, const struct ns__mulResponse *a, const char *tag, const char *type)
1948{
1949	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__mulResponse);
1950	if (soap_out_ns__mulResponse(soap, tag, id, a, type))
1951		return soap->error;
1952	return soap_putindependent(soap);
1953}
1954
1955SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__mulResponse(struct soap *soap, const char *tag, int id, const struct ns__mulResponse *a, const char *type)
1956{
1957	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__mulResponse), type))
1958		return soap->error;
1959	if (soap_out_PointerTodouble(soap, "result", -1, &a->result, ""))
1960		return soap->error;
1961	return soap_element_end_out(soap, tag);
1962}
1963
1964SOAP_FMAC3 struct ns__mulResponse * SOAP_FMAC4 soap_get_ns__mulResponse(struct soap *soap, struct ns__mulResponse *p, const char *tag, const char *type)
1965{
1966	if ((p = soap_in_ns__mulResponse(soap, tag, p, type)))
1967		if (soap_getindependent(soap))
1968			return NULL;
1969	return p;
1970}
1971
1972SOAP_FMAC3 struct ns__mulResponse * SOAP_FMAC4 soap_in_ns__mulResponse(struct soap *soap, const char *tag, struct ns__mulResponse *a, const char *type)
1973{
1974	size_t soap_flag_result = 1;
1975	if (soap_element_begin_in(soap, tag, 0, type))
1976		return NULL;
1977	a = (struct ns__mulResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__mulResponse, sizeof(struct ns__mulResponse), 0, NULL, NULL, NULL);
1978	if (!a)
1979		return NULL;
1980	soap_default_ns__mulResponse(soap, a);
1981	if (soap->body && !*soap->href)
1982	{
1983		for (;;)
1984		{	soap->error = SOAP_TAG_MISMATCH;
1985			if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
1986				if (soap_in_PointerTodouble(soap, "result", &a->result, "xsd:double"))
1987				{	soap_flag_result--;
1988					continue;
1989				}
1990			if (soap->error == SOAP_TAG_MISMATCH)
1991				soap->error = soap_ignore_element(soap);
1992			if (soap->error == SOAP_NO_TAG)
1993				break;
1994			if (soap->error)
1995				return NULL;
1996		}
1997		if (soap_element_end_in(soap, tag))
1998			return NULL;
1999	}
2000	else
2001	{	a = (struct ns__mulResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__mulResponse, 0, sizeof(struct ns__mulResponse), 0, NULL);
2002		if (soap->body && soap_element_end_in(soap, tag))
2003			return NULL;
2004	}
2005	return a;
2006}
2007
2008SOAP_FMAC5 struct ns__mulResponse * SOAP_FMAC6 soap_new_ns__mulResponse(struct soap *soap, int n)
2009{	return soap_instantiate_ns__mulResponse(soap, n, NULL, NULL, NULL);
2010}
2011
2012SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__mulResponse(struct soap *soap, struct ns__mulResponse *p)
2013{	soap_delete(soap, p);
2014}
2015
2016SOAP_FMAC3 struct ns__mulResponse * SOAP_FMAC4 soap_instantiate_ns__mulResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2017{
2018	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__mulResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2019	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__mulResponse, n, soap_fdelete);
2020	if (!cp)
2021		return NULL;
2022	if (n < 0)
2023	{	cp->ptr = (void*)new struct ns__mulResponse;
2024		if (size)
2025			*size = sizeof(struct ns__mulResponse);
2026	}
2027	else
2028	{	cp->ptr = (void*)new struct ns__mulResponse[n];
2029		if (!cp->ptr)
2030		{	soap->error = SOAP_EOM;
2031			return NULL;
2032		}
2033		if (size)
2034			*size = n * sizeof(struct ns__mulResponse);
2035	}
2036		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2037	return (struct ns__mulResponse*)cp->ptr;
2038}
2039SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__mulResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2040{
2041	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__mulResponse %p -> %p\n", q, p));
2042	*(struct ns__mulResponse*)p = *(struct ns__mulResponse*)q;
2043}
2044
2045SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__sub(struct soap *soap, struct ns__sub *a)
2046{
2047	(void)soap; (void)a; /* appease -Wall -Werror */
2048	soap_default_double(soap, &a->a);
2049	soap_default_double(soap, &a->b);
2050}
2051
2052SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__sub(struct soap *soap, const struct ns__sub *a)
2053{
2054	(void)soap; (void)a; /* appease -Wall -Werror */
2055	soap_embedded(soap, &a->a, SOAP_TYPE_double);
2056	soap_embedded(soap, &a->b, SOAP_TYPE_double);
2057}
2058
2059SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__sub(struct soap *soap, const struct ns__sub *a, const char *tag, const char *type)
2060{
2061	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__sub);
2062	if (soap_out_ns__sub(soap, tag, id, a, type))
2063		return soap->error;
2064	return soap_putindependent(soap);
2065}
2066
2067SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__sub(struct soap *soap, const char *tag, int id, const struct ns__sub *a, const char *type)
2068{
2069	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__sub), type))
2070		return soap->error;
2071	if (soap_out_double(soap, "a", -1, &a->a, ""))
2072		return soap->error;
2073	if (soap_out_double(soap, "b", -1, &a->b, ""))
2074		return soap->error;
2075	return soap_element_end_out(soap, tag);
2076}
2077
2078SOAP_FMAC3 struct ns__sub * SOAP_FMAC4 soap_get_ns__sub(struct soap *soap, struct ns__sub *p, const char *tag, const char *type)
2079{
2080	if ((p = soap_in_ns__sub(soap, tag, p, type)))
2081		if (soap_getindependent(soap))
2082			return NULL;
2083	return p;
2084}
2085
2086SOAP_FMAC3 struct ns__sub * SOAP_FMAC4 soap_in_ns__sub(struct soap *soap, const char *tag, struct ns__sub *a, const char *type)
2087{
2088	size_t soap_flag_a = 1;
2089	size_t soap_flag_b = 1;
2090	if (soap_element_begin_in(soap, tag, 0, type))
2091		return NULL;
2092	a = (struct ns__sub *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__sub, sizeof(struct ns__sub), 0, NULL, NULL, NULL);
2093	if (!a)
2094		return NULL;
2095	soap_default_ns__sub(soap, a);
2096	if (soap->body && !*soap->href)
2097	{
2098		for (;;)
2099		{	soap->error = SOAP_TAG_MISMATCH;
2100			if (soap_flag_a && soap->error == SOAP_TAG_MISMATCH)
2101				if (soap_in_double(soap, "a", &a->a, "xsd:double"))
2102				{	soap_flag_a--;
2103					continue;
2104				}
2105			if (soap_flag_b && soap->error == SOAP_TAG_MISMATCH)
2106				if (soap_in_double(soap, "b", &a->b, "xsd:double"))
2107				{	soap_flag_b--;
2108					continue;
2109				}
2110			if (soap->error == SOAP_TAG_MISMATCH)
2111				soap->error = soap_ignore_element(soap);
2112			if (soap->error == SOAP_NO_TAG)
2113				break;
2114			if (soap->error)
2115				return NULL;
2116		}
2117		if (soap_element_end_in(soap, tag))
2118			return NULL;
2119	}
2120	else
2121	{	a = (struct ns__sub *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__sub, 0, sizeof(struct ns__sub), 0, NULL);
2122		if (soap->body && soap_element_end_in(soap, tag))
2123			return NULL;
2124	}
2125	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_a > 0 || soap_flag_b > 0))
2126	{	soap->error = SOAP_OCCURS;
2127		return NULL;
2128	}
2129	return a;
2130}
2131
2132SOAP_FMAC5 struct ns__sub * SOAP_FMAC6 soap_new_ns__sub(struct soap *soap, int n)
2133{	return soap_instantiate_ns__sub(soap, n, NULL, NULL, NULL);
2134}
2135
2136SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__sub(struct soap *soap, struct ns__sub *p)
2137{	soap_delete(soap, p);
2138}
2139
2140SOAP_FMAC3 struct ns__sub * SOAP_FMAC4 soap_instantiate_ns__sub(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2141{
2142	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__sub(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2143	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__sub, n, soap_fdelete);
2144	if (!cp)
2145		return NULL;
2146	if (n < 0)
2147	{	cp->ptr = (void*)new struct ns__sub;
2148		if (size)
2149			*size = sizeof(struct ns__sub);
2150	}
2151	else
2152	{	cp->ptr = (void*)new struct ns__sub[n];
2153		if (!cp->ptr)
2154		{	soap->error = SOAP_EOM;
2155			return NULL;
2156		}
2157		if (size)
2158			*size = n * sizeof(struct ns__sub);
2159	}
2160		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2161	return (struct ns__sub*)cp->ptr;
2162}
2163SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__sub(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2164{
2165	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__sub %p -> %p\n", q, p));
2166	*(struct ns__sub*)p = *(struct ns__sub*)q;
2167}
2168
2169SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__subResponse(struct soap *soap, struct ns__subResponse *a)
2170{
2171	(void)soap; (void)a; /* appease -Wall -Werror */
2172	a->result = NULL;
2173}
2174
2175SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__subResponse(struct soap *soap, const struct ns__subResponse *a)
2176{
2177	(void)soap; (void)a; /* appease -Wall -Werror */
2178	soap_serialize_PointerTodouble(soap, &a->result);
2179}
2180
2181SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__subResponse(struct soap *soap, const struct ns__subResponse *a, const char *tag, const char *type)
2182{
2183	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__subResponse);
2184	if (soap_out_ns__subResponse(soap, tag, id, a, type))
2185		return soap->error;
2186	return soap_putindependent(soap);
2187}
2188
2189SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__subResponse(struct soap *soap, const char *tag, int id, const struct ns__subResponse *a, const char *type)
2190{
2191	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__subResponse), type))
2192		return soap->error;
2193	if (soap_out_PointerTodouble(soap, "result", -1, &a->result, ""))
2194		return soap->error;
2195	return soap_element_end_out(soap, tag);
2196}
2197
2198SOAP_FMAC3 struct ns__subResponse * SOAP_FMAC4 soap_get_ns__subResponse(struct soap *soap, struct ns__subResponse *p, const char *tag, const char *type)
2199{
2200	if ((p = soap_in_ns__subResponse(soap, tag, p, type)))
2201		if (soap_getindependent(soap))
2202			return NULL;
2203	return p;
2204}
2205
2206SOAP_FMAC3 struct ns__subResponse * SOAP_FMAC4 soap_in_ns__subResponse(struct soap *soap, const char *tag, struct ns__subResponse *a, const char *type)
2207{
2208	size_t soap_flag_result = 1;
2209	if (soap_element_begin_in(soap, tag, 0, type))
2210		return NULL;
2211	a = (struct ns__subResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__subResponse, sizeof(struct ns__subResponse), 0, NULL, NULL, NULL);
2212	if (!a)
2213		return NULL;
2214	soap_default_ns__subResponse(soap, a);
2215	if (soap->body && !*soap->href)
2216	{
2217		for (;;)
2218		{	soap->error = SOAP_TAG_MISMATCH;
2219			if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
2220				if (soap_in_PointerTodouble(soap, "result", &a->result, "xsd:double"))
2221				{	soap_flag_result--;
2222					continue;
2223				}
2224			if (soap->error == SOAP_TAG_MISMATCH)
2225				soap->error = soap_ignore_element(soap);
2226			if (soap->error == SOAP_NO_TAG)
2227				break;
2228			if (soap->error)
2229				return NULL;
2230		}
2231		if (soap_element_end_in(soap, tag))
2232			return NULL;
2233	}
2234	else
2235	{	a = (struct ns__subResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__subResponse, 0, sizeof(struct ns__subResponse), 0, NULL);
2236		if (soap->body && soap_element_end_in(soap, tag))
2237			return NULL;
2238	}
2239	return a;
2240}
2241
2242SOAP_FMAC5 struct ns__subResponse * SOAP_FMAC6 soap_new_ns__subResponse(struct soap *soap, int n)
2243{	return soap_instantiate_ns__subResponse(soap, n, NULL, NULL, NULL);
2244}
2245
2246SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__subResponse(struct soap *soap, struct ns__subResponse *p)
2247{	soap_delete(soap, p);
2248}
2249
2250SOAP_FMAC3 struct ns__subResponse * SOAP_FMAC4 soap_instantiate_ns__subResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2251{
2252	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__subResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2253	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__subResponse, n, soap_fdelete);
2254	if (!cp)
2255		return NULL;
2256	if (n < 0)
2257	{	cp->ptr = (void*)new struct ns__subResponse;
2258		if (size)
2259			*size = sizeof(struct ns__subResponse);
2260	}
2261	else
2262	{	cp->ptr = (void*)new struct ns__subResponse[n];
2263		if (!cp->ptr)
2264		{	soap->error = SOAP_EOM;
2265			return NULL;
2266		}
2267		if (size)
2268			*size = n * sizeof(struct ns__subResponse);
2269	}
2270		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2271	return (struct ns__subResponse*)cp->ptr;
2272}
2273SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__subResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2274{
2275	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__subResponse %p -> %p\n", q, p));
2276	*(struct ns__subResponse*)p = *(struct ns__subResponse*)q;
2277}
2278
2279SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__add(struct soap *soap, struct ns__add *a)
2280{
2281	(void)soap; (void)a; /* appease -Wall -Werror */
2282	soap_default_double(soap, &a->a);
2283	soap_default_double(soap, &a->b);
2284}
2285
2286SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__add(struct soap *soap, const struct ns__add *a)
2287{
2288	(void)soap; (void)a; /* appease -Wall -Werror */
2289	soap_embedded(soap, &a->a, SOAP_TYPE_double);
2290	soap_embedded(soap, &a->b, SOAP_TYPE_double);
2291}
2292
2293SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__add(struct soap *soap, const struct ns__add *a, const char *tag, const char *type)
2294{
2295	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__add);
2296	if (soap_out_ns__add(soap, tag, id, a, type))
2297		return soap->error;
2298	return soap_putindependent(soap);
2299}
2300
2301SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__add(struct soap *soap, const char *tag, int id, const struct ns__add *a, const char *type)
2302{
2303	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__add), type))
2304		return soap->error;
2305	if (soap_out_double(soap, "a", -1, &a->a, ""))
2306		return soap->error;
2307	if (soap_out_double(soap, "b", -1, &a->b, ""))
2308		return soap->error;
2309	return soap_element_end_out(soap, tag);
2310}
2311
2312SOAP_FMAC3 struct ns__add * SOAP_FMAC4 soap_get_ns__add(struct soap *soap, struct ns__add *p, const char *tag, const char *type)
2313{
2314	if ((p = soap_in_ns__add(soap, tag, p, type)))
2315		if (soap_getindependent(soap))
2316			return NULL;
2317	return p;
2318}
2319
2320SOAP_FMAC3 struct ns__add * SOAP_FMAC4 soap_in_ns__add(struct soap *soap, const char *tag, struct ns__add *a, const char *type)
2321{
2322	size_t soap_flag_a = 1;
2323	size_t soap_flag_b = 1;
2324	if (soap_element_begin_in(soap, tag, 0, type))
2325		return NULL;
2326	a = (struct ns__add *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__add, sizeof(struct ns__add), 0, NULL, NULL, NULL);
2327	if (!a)
2328		return NULL;
2329	soap_default_ns__add(soap, a);
2330	if (soap->body && !*soap->href)
2331	{
2332		for (;;)
2333		{	soap->error = SOAP_TAG_MISMATCH;
2334			if (soap_flag_a && soap->error == SOAP_TAG_MISMATCH)
2335				if (soap_in_double(soap, "a", &a->a, "xsd:double"))
2336				{	soap_flag_a--;
2337					continue;
2338				}
2339			if (soap_flag_b && soap->error == SOAP_TAG_MISMATCH)
2340				if (soap_in_double(soap, "b", &a->b, "xsd:double"))
2341				{	soap_flag_b--;
2342					continue;
2343				}
2344			if (soap->error == SOAP_TAG_MISMATCH)
2345				soap->error = soap_ignore_element(soap);
2346			if (soap->error == SOAP_NO_TAG)
2347				break;
2348			if (soap->error)
2349				return NULL;
2350		}
2351		if (soap_element_end_in(soap, tag))
2352			return NULL;
2353	}
2354	else
2355	{	a = (struct ns__add *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__add, 0, sizeof(struct ns__add), 0, NULL);
2356		if (soap->body && soap_element_end_in(soap, tag))
2357			return NULL;
2358	}
2359	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_a > 0 || soap_flag_b > 0))
2360	{	soap->error = SOAP_OCCURS;
2361		return NULL;
2362	}
2363	return a;
2364}
2365
2366SOAP_FMAC5 struct ns__add * SOAP_FMAC6 soap_new_ns__add(struct soap *soap, int n)
2367{	return soap_instantiate_ns__add(soap, n, NULL, NULL, NULL);
2368}
2369
2370SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__add(struct soap *soap, struct ns__add *p)
2371{	soap_delete(soap, p);
2372}
2373
2374SOAP_FMAC3 struct ns__add * SOAP_FMAC4 soap_instantiate_ns__add(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2375{
2376	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__add(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2377	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__add, n, soap_fdelete);
2378	if (!cp)
2379		return NULL;
2380	if (n < 0)
2381	{	cp->ptr = (void*)new struct ns__add;
2382		if (size)
2383			*size = sizeof(struct ns__add);
2384	}
2385	else
2386	{	cp->ptr = (void*)new struct ns__add[n];
2387		if (!cp->ptr)
2388		{	soap->error = SOAP_EOM;
2389			return NULL;
2390		}
2391		if (size)
2392			*size = n * sizeof(struct ns__add);
2393	}
2394		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2395	return (struct ns__add*)cp->ptr;
2396}
2397SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__add(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2398{
2399	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__add %p -> %p\n", q, p));
2400	*(struct ns__add*)p = *(struct ns__add*)q;
2401}
2402
2403SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns__addResponse(struct soap *soap, struct ns__addResponse *a)
2404{
2405	(void)soap; (void)a; /* appease -Wall -Werror */
2406	a->result = NULL;
2407}
2408
2409SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns__addResponse(struct soap *soap, const struct ns__addResponse *a)
2410{
2411	(void)soap; (void)a; /* appease -Wall -Werror */
2412	soap_serialize_PointerTodouble(soap, &a->result);
2413}
2414
2415SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns__addResponse(struct soap *soap, const struct ns__addResponse *a, const char *tag, const char *type)
2416{
2417	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns__addResponse);
2418	if (soap_out_ns__addResponse(soap, tag, id, a, type))
2419		return soap->error;
2420	return soap_putindependent(soap);
2421}
2422
2423SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns__addResponse(struct soap *soap, const char *tag, int id, const struct ns__addResponse *a, const char *type)
2424{
2425	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns__addResponse), type))
2426		return soap->error;
2427	if (soap_out_PointerTodouble(soap, "result", -1, &a->result, ""))
2428		return soap->error;
2429	return soap_element_end_out(soap, tag);
2430}
2431
2432SOAP_FMAC3 struct ns__addResponse * SOAP_FMAC4 soap_get_ns__addResponse(struct soap *soap, struct ns__addResponse *p, const char *tag, const char *type)
2433{
2434	if ((p = soap_in_ns__addResponse(soap, tag, p, type)))
2435		if (soap_getindependent(soap))
2436			return NULL;
2437	return p;
2438}
2439
2440SOAP_FMAC3 struct ns__addResponse * SOAP_FMAC4 soap_in_ns__addResponse(struct soap *soap, const char *tag, struct ns__addResponse *a, const char *type)
2441{
2442	size_t soap_flag_result = 1;
2443	if (soap_element_begin_in(soap, tag, 0, type))
2444		return NULL;
2445	a = (struct ns__addResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns__addResponse, sizeof(struct ns__addResponse), 0, NULL, NULL, NULL);
2446	if (!a)
2447		return NULL;
2448	soap_default_ns__addResponse(soap, a);
2449	if (soap->body && !*soap->href)
2450	{
2451		for (;;)
2452		{	soap->error = SOAP_TAG_MISMATCH;
2453			if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
2454				if (soap_in_PointerTodouble(soap, "result", &a->result, "xsd:double"))
2455				{	soap_flag_result--;
2456					continue;
2457				}
2458			if (soap->error == SOAP_TAG_MISMATCH)
2459				soap->error = soap_ignore_element(soap);
2460			if (soap->error == SOAP_NO_TAG)
2461				break;
2462			if (soap->error)
2463				return NULL;
2464		}
2465		if (soap_element_end_in(soap, tag))
2466			return NULL;
2467	}
2468	else
2469	{	a = (struct ns__addResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns__addResponse, 0, sizeof(struct ns__addResponse), 0, NULL);
2470		if (soap->body && soap_element_end_in(soap, tag))
2471			return NULL;
2472	}
2473	return a;
2474}
2475
2476SOAP_FMAC5 struct ns__addResponse * SOAP_FMAC6 soap_new_ns__addResponse(struct soap *soap, int n)
2477{	return soap_instantiate_ns__addResponse(soap, n, NULL, NULL, NULL);
2478}
2479
2480SOAP_FMAC5 void SOAP_FMAC6 soap_delete_ns__addResponse(struct soap *soap, struct ns__addResponse *p)
2481{	soap_delete(soap, p);
2482}
2483
2484SOAP_FMAC3 struct ns__addResponse * SOAP_FMAC4 soap_instantiate_ns__addResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2485{
2486	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_ns__addResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2487	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_ns__addResponse, n, soap_fdelete);
2488	if (!cp)
2489		return NULL;
2490	if (n < 0)
2491	{	cp->ptr = (void*)new struct ns__addResponse;
2492		if (size)
2493			*size = sizeof(struct ns__addResponse);
2494	}
2495	else
2496	{	cp->ptr = (void*)new struct ns__addResponse[n];
2497		if (!cp->ptr)
2498		{	soap->error = SOAP_EOM;
2499			return NULL;
2500		}
2501		if (size)
2502			*size = n * sizeof(struct ns__addResponse);
2503	}
2504		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2505	return (struct ns__addResponse*)cp->ptr;
2506}
2507SOAP_FMAC3 void SOAP_FMAC4 soap_copy_ns__addResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2508{
2509	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct ns__addResponse %p -> %p\n", q, p));
2510	*(struct ns__addResponse*)p = *(struct ns__addResponse*)q;
2511}
2512
2513#ifndef WITH_NOGLOBAL
2514
2515SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a)
2516{
2517	if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Reason))
2518		soap_serialize_SOAP_ENV__Reason(soap, *a);
2519}
2520
2521SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a, const char *tag, const char *type)
2522{
2523	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Reason);
2524	if (soap_out_PointerToSOAP_ENV__Reason(soap, tag, id, a, type))
2525		return soap->error;
2526	return soap_putindependent(soap);
2527}
2528
2529SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Reason *const*a, const char *type)
2530{
2531	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Reason);
2532	if (id < 0)
2533		return soap->error;
2534	return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type);
2535}
2536
2537SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason **p, const char *tag, const char *type)
2538{
2539	if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type)))
2540		if (soap_getindependent(soap))
2541			return NULL;
2542	return p;
2543}
2544
2545SOAP_FMAC3 struct SOAP_ENV__Reason ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Reason(struct soap *soap, const char *tag, struct SOAP_ENV__Reason **a, const char *type)
2546{
2547	if (soap_element_begin_in(soap, tag, 1, NULL))
2548		return NULL;
2549	if (!a)
2550		if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *))))
2551			return NULL;
2552	*a = NULL;
2553	if (!soap->null && *soap->href != '#')
2554	{	soap_revert(soap);
2555		if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type)))
2556			return NULL;
2557	}
2558	else
2559	{	a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0);
2560		if (soap->body && soap_element_end_in(soap, tag))
2561			return NULL;
2562	}
2563	return a;
2564}
2565
2566#endif
2567
2568#ifndef WITH_NOGLOBAL
2569
2570SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a)
2571{
2572	if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Detail))
2573		soap_serialize_SOAP_ENV__Detail(soap, *a);
2574}
2575
2576SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a, const char *tag, const char *type)
2577{
2578	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Detail);
2579	if (soap_out_PointerToSOAP_ENV__Detail(soap, tag, id, a, type))
2580		return soap->error;
2581	return soap_putindependent(soap);
2582}
2583
2584SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Detail *const*a, const char *type)
2585{
2586	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Detail);
2587	if (id < 0)
2588		return soap->error;
2589	return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type);
2590}
2591
2592SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail **p, const char *tag, const char *type)
2593{
2594	if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type)))
2595		if (soap_getindependent(soap))
2596			return NULL;
2597	return p;
2598}
2599
2600SOAP_FMAC3 struct SOAP_ENV__Detail ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Detail(struct soap *soap, const char *tag, struct SOAP_ENV__Detail **a, const char *type)
2601{
2602	if (soap_element_begin_in(soap, tag, 1, NULL))
2603		return NULL;
2604	if (!a)
2605		if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *))))
2606			return NULL;
2607	*a = NULL;
2608	if (!soap->null && *soap->href != '#')
2609	{	soap_revert(soap);
2610		if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type)))
2611			return NULL;
2612	}
2613	else
2614	{	a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0);
2615		if (soap->body && soap_element_end_in(soap, tag))
2616			return NULL;
2617	}
2618	return a;
2619}
2620
2621#endif
2622
2623#ifndef WITH_NOGLOBAL
2624
2625SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a)
2626{
2627	if (!soap_reference(soap, *a, SOAP_TYPE_SOAP_ENV__Code))
2628		soap_serialize_SOAP_ENV__Code(soap, *a);
2629}
2630
2631SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a, const char *tag, const char *type)
2632{
2633	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerToSOAP_ENV__Code);
2634	if (soap_out_PointerToSOAP_ENV__Code(soap, tag, id, a, type))
2635		return soap->error;
2636	return soap_putindependent(soap);
2637}
2638
2639SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, int id, struct SOAP_ENV__Code *const*a, const char *type)
2640{
2641	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_SOAP_ENV__Code);
2642	if (id < 0)
2643		return soap->error;
2644	return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type);
2645}
2646
2647SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_get_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code **p, const char *tag, const char *type)
2648{
2649	if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type)))
2650		if (soap_getindependent(soap))
2651			return NULL;
2652	return p;
2653}
2654
2655SOAP_FMAC3 struct SOAP_ENV__Code ** SOAP_FMAC4 soap_in_PointerToSOAP_ENV__Code(struct soap *soap, const char *tag, struct SOAP_ENV__Code **a, const char *type)
2656{
2657	if (soap_element_begin_in(soap, tag, 1, NULL))
2658		return NULL;
2659	if (!a)
2660		if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *))))
2661			return NULL;
2662	*a = NULL;
2663	if (!soap->null && *soap->href != '#')
2664	{	soap_revert(soap);
2665		if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type)))
2666			return NULL;
2667	}
2668	else
2669	{	a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0);
2670		if (soap->body && soap_element_end_in(soap, tag))
2671			return NULL;
2672	}
2673	return a;
2674}
2675
2676#endif
2677
2678SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTodouble(struct soap *soap, double *const*a)
2679{
2680	soap_reference(soap, *a, SOAP_TYPE_double);
2681}
2682
2683SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTodouble(struct soap *soap, double *const*a, const char *tag, const char *type)
2684{
2685	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTodouble);
2686	if (soap_out_PointerTodouble(soap, tag, id, a, type))
2687		return soap->error;
2688	return soap_putindependent(soap);
2689}
2690
2691SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTodouble(struct soap *soap, const char *tag, int id, double *const*a, const char *type)
2692{
2693	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_double);
2694	if (id < 0)
2695		return soap->error;
2696	return soap_out_double(soap, tag, id, *a, type);
2697}
2698
2699SOAP_FMAC3 double ** SOAP_FMAC4 soap_get_PointerTodouble(struct soap *soap, double **p, const char *tag, const char *type)
2700{
2701	if ((p = soap_in_PointerTodouble(soap, tag, p, type)))
2702		if (soap_getindependent(soap))
2703			return NULL;
2704	return p;
2705}
2706
2707SOAP_FMAC3 double ** SOAP_FMAC4 soap_in_PointerTodouble(struct soap *soap, const char *tag, double **a, const char *type)
2708{
2709	if (soap_element_begin_in(soap, tag, 1, NULL))
2710		return NULL;
2711	if (!a)
2712		if (!(a = (double **)soap_malloc(soap, sizeof(double *))))
2713			return NULL;
2714	*a = NULL;
2715	if (!soap->null && *soap->href != '#')
2716	{	soap_revert(soap);
2717		if (!(*a = soap_in_double(soap, tag, *a, type)))
2718			return NULL;
2719	}
2720	else
2721	{	a = (double **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_double, sizeof(double), 0);
2722		if (soap->body && soap_element_end_in(soap, tag))
2723			return NULL;
2724	}
2725	return a;
2726}
2727
2728SOAP_FMAC3 void SOAP_FMAC4 soap_default__QName(struct soap *soap, char **a)
2729{	soap_default_string(soap, a);
2730}
2731
2732SOAP_FMAC3 void SOAP_FMAC4 soap_serialize__QName(struct soap *soap, char *const*a)
2733{	soap_serialize_string(soap, a);
2734}
2735
2736SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type)
2737{
2738	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE__QName);
2739	if (soap_out__QName(soap, tag, id, a, type))
2740		return soap->error;
2741	return soap_putindependent(soap);
2742}
2743
2744SOAP_FMAC3 int SOAP_FMAC4 soap_out__QName(struct soap *soap, const char *tag, int id, char *const*a, const char *type)
2745{
2746	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE__QName);
2747}
2748
2749SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type)
2750{
2751	if ((p = soap_in__QName(soap, tag, p, type)))
2752		if (soap_getindependent(soap))
2753			return NULL;
2754	return p;
2755}
2756
2757SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type)
2758{
2759	return soap_instring(soap, tag, a, type, SOAP_TYPE__QName, 2, -1, -1);
2760}
2761
2762SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a)
2763{	(void)soap; /* appease -Wall -Werror */
2764#ifdef SOAP_DEFAULT_string
2765	*a = SOAP_DEFAULT_string;
2766#else
2767	*a = (char *)0;
2768#endif
2769}
2770
2771SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a)
2772{
2773	soap_reference(soap, *a, SOAP_TYPE_string);
2774}
2775
2776SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type)
2777{
2778	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_string);
2779	if (soap_out_string(soap, tag, id, a, type))
2780		return soap->error;
2781	return soap_putindependent(soap);
2782}
2783
2784SOAP_FMAC3 int SOAP_FMAC4 soap_out_string(struct soap *soap, const char *tag, int id, char *const*a, const char *type)
2785{
2786	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_string);
2787}
2788
2789SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type)
2790{
2791	if ((p = soap_in_string(soap, tag, p, type)))
2792		if (soap_getindependent(soap))
2793			return NULL;
2794	return p;
2795}
2796
2797SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type)
2798{
2799	return soap_instring(soap, tag, a, type, SOAP_TYPE_string, 1, -1, -1);
2800}
2801
2802/* End of soapC.cpp */
2803