4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
27 Generated by gSOAP 2.7.17 from ../gsoapStubs/Env/env.h
28 Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
29 This part of the software is released under one of the following licenses:
30 GPL, the gSOAP public license, or Genivia's license for commercial use.
33 #if defined(__BORLANDC__)
34 #pragma option push -w-8060
35 #pragma option push -w-8004
40 SOAP_SOURCE_STAMP("@(#) envC.cpp ver 2.7.17 2010-06-08 19:16:38 GMT")
45 SOAP_FMAC3
void SOAP_FMAC4
soap_serializeheader(struct soap
*soap
)
48 soap_serialize_SOAP_ENV__Header(soap
, soap
->header
);
51 SOAP_FMAC3
int SOAP_FMAC4
soap_putheader(struct soap
*soap
)
54 { soap
->part
= SOAP_IN_HEADER
;
55 if (soap_out_SOAP_ENV__Header(soap
, "SOAP-ENV:Header", 0, soap
->header
, NULL
))
57 soap
->part
= SOAP_END_HEADER
;
62 SOAP_FMAC3
int SOAP_FMAC4
soap_getheader(struct soap
*soap
)
64 soap
->part
= SOAP_IN_HEADER
;
65 soap
->header
= soap_in_SOAP_ENV__Header(soap
, "SOAP-ENV:Header", NULL
, NULL
);
66 soap
->part
= SOAP_END_HEADER
;
67 return soap
->header
== NULL
;
70 SOAP_FMAC3
void SOAP_FMAC4
soap_header(struct soap
*soap
)
73 { if ((soap
->header
= soap_new_SOAP_ENV__Header(soap
, -1)))
74 soap_default_SOAP_ENV__Header(soap
, soap
->header
);
78 SOAP_FMAC3
void SOAP_FMAC4
soap_fault(struct soap
*soap
)
81 { soap
->fault
= soap_new_SOAP_ENV__Fault(soap
, -1);
84 soap_default_SOAP_ENV__Fault(soap
, soap
->fault
);
86 if (soap
->version
== 2 && !soap
->fault
->SOAP_ENV__Code
)
87 { soap
->fault
->SOAP_ENV__Code
= soap_new_SOAP_ENV__Code(soap
, -1);
88 soap_default_SOAP_ENV__Code(soap
, soap
->fault
->SOAP_ENV__Code
);
90 if (soap
->version
== 2 && !soap
->fault
->SOAP_ENV__Reason
)
91 { soap
->fault
->SOAP_ENV__Reason
= soap_new_SOAP_ENV__Reason(soap
, -1);
92 soap_default_SOAP_ENV__Reason(soap
, soap
->fault
->SOAP_ENV__Reason
);
96 SOAP_FMAC3
void SOAP_FMAC4
soap_serializefault(struct soap
*soap
)
100 soap_serialize_SOAP_ENV__Fault(soap
, soap
->fault
);
103 SOAP_FMAC3
int SOAP_FMAC4
soap_putfault(struct soap
*soap
)
106 return soap_put_SOAP_ENV__Fault(soap
, soap
->fault
, "SOAP-ENV:Fault", NULL
);
110 SOAP_FMAC3
int SOAP_FMAC4
soap_getfault(struct soap
*soap
)
112 return (soap
->fault
= soap_get_SOAP_ENV__Fault(soap
, NULL
, "SOAP-ENV:Fault", NULL
)) == NULL
;
115 SOAP_FMAC3
const char ** SOAP_FMAC4
soap_faultcode(struct soap
*soap
)
118 if (soap
->version
== 2)
119 return (const char**)&soap
->fault
->SOAP_ENV__Code
->SOAP_ENV__Value
;
120 return (const char**)&soap
->fault
->faultcode
;
123 SOAP_FMAC3
const char ** SOAP_FMAC4
soap_faultsubcode(struct soap
*soap
)
126 if (soap
->version
== 2)
127 { if (!soap
->fault
->SOAP_ENV__Code
->SOAP_ENV__Subcode
)
128 { soap
->fault
->SOAP_ENV__Code
->SOAP_ENV__Subcode
= soap_new_SOAP_ENV__Code(soap
, -1);
129 soap_default_SOAP_ENV__Code(soap
, soap
->fault
->SOAP_ENV__Code
->SOAP_ENV__Subcode
);
131 return (const char**)&soap
->fault
->SOAP_ENV__Code
->SOAP_ENV__Subcode
->SOAP_ENV__Value
;
133 return (const char**)&soap
->fault
->faultcode
;
136 SOAP_FMAC3
const char ** SOAP_FMAC4
soap_faultstring(struct soap
*soap
)
139 if (soap
->version
== 2)
140 return (const char**)&soap
->fault
->SOAP_ENV__Reason
->SOAP_ENV__Text
;
141 return (const char**)&soap
->fault
->faultstring
;
144 SOAP_FMAC3
const char ** SOAP_FMAC4
soap_faultdetail(struct soap
*soap
)
147 if (soap
->version
== 1)
148 { if (!soap
->fault
->detail
)
149 { soap
->fault
->detail
= (struct SOAP_ENV__Detail
*)soap_malloc(soap
, sizeof(struct SOAP_ENV__Detail
));
150 soap_default_SOAP_ENV__Detail(soap
, soap
->fault
->detail
);
152 return (const char**)&soap
->fault
->detail
->__any
;
154 if (!soap
->fault
->SOAP_ENV__Detail
)
155 { soap
->fault
->SOAP_ENV__Detail
= soap_new_SOAP_ENV__Detail(soap
, -1);
156 soap_default_SOAP_ENV__Detail(soap
, soap
->fault
->SOAP_ENV__Detail
);
158 return (const char**)&soap
->fault
->SOAP_ENV__Detail
->__any
;
164 SOAP_FMAC3
int SOAP_FMAC4
soap_getindependent(struct soap
*soap
)
167 if (soap
->version
== 1)
169 { if (!soap_getelement(soap
, &t
))
170 if (soap
->error
|| soap_ignore_element(soap
))
174 if (soap
->error
== SOAP_NO_TAG
|| soap
->error
== SOAP_EOF
)
175 soap
->error
= SOAP_OK
;
185 SOAP_FMAC3
void * SOAP_FMAC4
soap_getelement(struct soap
*soap
, int *type
)
187 if (soap_peek_element(soap
))
189 if (!*soap
->id
|| !(*type
= soap_lookup_type(soap
, soap
->id
)))
190 *type
= soap_lookup_type(soap
, soap
->href
);
194 return soap_in_byte(soap
, NULL
, NULL
, "xsd:byte");
196 return soap_in_int(soap
, NULL
, NULL
, "xsd:int");
197 case SOAP_TYPE__QName
:
199 s
= soap_in__QName(soap
, NULL
, NULL
, "xsd:QName");
200 return s
? *s
: NULL
;
202 case SOAP_TYPE_string
:
204 s
= soap_in_string(soap
, NULL
, NULL
, "xsd:string");
205 return s
? *s
: NULL
;
208 { const char *t
= soap
->type
;
211 if (!soap_match_tag(soap
, t
, "xsd:byte"))
212 { *type
= SOAP_TYPE_byte
;
213 return soap_in_byte(soap
, NULL
, NULL
, NULL
);
215 if (!soap_match_tag(soap
, t
, "xsd:int"))
216 { *type
= SOAP_TYPE_int
;
217 return soap_in_int(soap
, NULL
, NULL
, NULL
);
219 if (!soap_match_tag(soap
, t
, "xsd:QName"))
221 *type
= SOAP_TYPE__QName
;
222 s
= soap_in__QName(soap
, NULL
, NULL
, NULL
);
223 return s
? *s
: NULL
;
225 if (!soap_match_tag(soap
, t
, "xsd:string"))
227 *type
= SOAP_TYPE_string
;
228 s
= soap_in_string(soap
, NULL
, NULL
, NULL
);
229 return s
? *s
: NULL
;
234 soap
->error
= SOAP_TAG_MISMATCH
;
243 SOAP_FMAC3
int SOAP_FMAC4
soap_ignore_element(struct soap
*soap
)
245 if (!soap_peek_element(soap
))
247 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Unexpected element '%s' in input (level=%u, %d)\n", soap
->tag
, soap
->level
, soap
->body
));
248 if (soap
->mustUnderstand
&& !soap
->other
)
249 return soap
->error
= SOAP_MUSTUNDERSTAND
;
250 if (((soap
->mode
& SOAP_XML_STRICT
) && soap
->part
!= SOAP_IN_HEADER
) || !soap_match_tag(soap
, soap
->tag
, "SOAP-ENV:"))
251 { DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "REJECTING element '%s'\n", soap
->tag
));
252 return soap
->error
= SOAP_TAG_MISMATCH
;
254 if (!*soap
->id
|| !soap_getelement(soap
, &t
))
257 soap
->error
= soap
->fignore(soap
, soap
->tag
);
259 soap
->error
= SOAP_OK
;
260 DBGLOG(TEST
, if (!soap
->error
) SOAP_MESSAGE(fdebug
, "IGNORING element '%s'\n", soap
->tag
));
261 if (!soap
->error
&& soap
->body
)
263 while (!soap_ignore_element(soap
))
265 if (soap
->error
== SOAP_NO_TAG
)
266 soap
->error
= soap_element_end_in(soap
, NULL
);
274 SOAP_FMAC3
int SOAP_FMAC4
soap_putindependent(struct soap
*soap
)
277 struct soap_plist
*pp
;
278 if (soap
->version
== 1 && soap
->encodingStyle
&& !(soap
->mode
& (SOAP_XML_TREE
| SOAP_XML_GRAPH
)))
279 for (i
= 0; i
< SOAP_PTRHASH
; i
++)
280 for (pp
= soap
->pht
[i
]; pp
; pp
= pp
->next
)
281 if (pp
->mark1
== 2 || pp
->mark2
== 2)
282 if (soap_putelement(soap
, pp
->ptr
, "id", pp
->id
, pp
->type
))
293 SOAP_FMAC3
int SOAP_FMAC4
soap_putelement(struct soap
*soap
, const void *ptr
, const char *tag
, int id
, int type
)
298 return soap_out_byte(soap
, tag
, id
, (const char *)ptr
, "xsd:byte");
300 return soap_out_int(soap
, tag
, id
, (const int *)ptr
, "xsd:int");
301 case SOAP_TYPE__QName
:
302 return soap_out_string(soap
, tag
, id
, (char*const*)&ptr
, "xsd:QName");
303 case SOAP_TYPE_string
:
304 return soap_out_string(soap
, tag
, id
, (char*const*)&ptr
, "xsd:string");
319 SOAP_FMAC3
void SOAP_FMAC4
soap_markelement(struct soap
*soap
, const void *ptr
, int type
)
321 (void)soap
; (void)ptr
; (void)type
; /* appease -Wall -Werror */
324 case SOAP_TYPE__QName
:
325 soap_serialize_string(soap
, (char*const*)&ptr
);
327 case SOAP_TYPE_string
:
328 soap_serialize_string(soap
, (char*const*)&ptr
);
338 SOAP_FMAC3
void * SOAP_FMAC4
soap_instantiate(struct soap
*soap
, int t
, const char *type
, const char *arrayType
, size_t *n
)
342 #ifndef WITH_NOGLOBAL
343 case SOAP_TYPE_SOAP_ENV__Header
:
344 return (void*)soap_instantiate_SOAP_ENV__Header(soap
, -1, type
, arrayType
, n
);
346 #ifndef WITH_NOGLOBAL
347 case SOAP_TYPE_SOAP_ENV__Code
:
348 return (void*)soap_instantiate_SOAP_ENV__Code(soap
, -1, type
, arrayType
, n
);
350 #ifndef WITH_NOGLOBAL
351 case SOAP_TYPE_SOAP_ENV__Detail
:
352 return (void*)soap_instantiate_SOAP_ENV__Detail(soap
, -1, type
, arrayType
, n
);
354 #ifndef WITH_NOGLOBAL
355 case SOAP_TYPE_SOAP_ENV__Reason
:
356 return (void*)soap_instantiate_SOAP_ENV__Reason(soap
, -1, type
, arrayType
, n
);
358 #ifndef WITH_NOGLOBAL
359 case SOAP_TYPE_SOAP_ENV__Fault
:
360 return (void*)soap_instantiate_SOAP_ENV__Fault(soap
, -1, type
, arrayType
, n
);
366 SOAP_FMAC3
int SOAP_FMAC4
soap_fdelete(struct soap_clist
*p
)
369 case SOAP_TYPE_SOAP_ENV__Header
:
371 SOAP_DELETE((struct SOAP_ENV__Header
*)p
->ptr
);
373 SOAP_DELETE_ARRAY((struct SOAP_ENV__Header
*)p
->ptr
);
375 case SOAP_TYPE_SOAP_ENV__Code
:
377 SOAP_DELETE((struct SOAP_ENV__Code
*)p
->ptr
);
379 SOAP_DELETE_ARRAY((struct SOAP_ENV__Code
*)p
->ptr
);
381 case SOAP_TYPE_SOAP_ENV__Detail
:
383 SOAP_DELETE((struct SOAP_ENV__Detail
*)p
->ptr
);
385 SOAP_DELETE_ARRAY((struct SOAP_ENV__Detail
*)p
->ptr
);
387 case SOAP_TYPE_SOAP_ENV__Reason
:
389 SOAP_DELETE((struct SOAP_ENV__Reason
*)p
->ptr
);
391 SOAP_DELETE_ARRAY((struct SOAP_ENV__Reason
*)p
->ptr
);
393 case SOAP_TYPE_SOAP_ENV__Fault
:
395 SOAP_DELETE((struct SOAP_ENV__Fault
*)p
->ptr
);
397 SOAP_DELETE_ARRAY((struct SOAP_ENV__Fault
*)p
->ptr
);
399 default: return SOAP_ERR
;
404 SOAP_FMAC3
void* SOAP_FMAC4
soap_class_id_enter(struct soap
*soap
, const char *id
, void *p
, int t
, size_t n
, const char *type
, const char *arrayType
)
405 { return soap_id_enter(soap
, id
, p
, t
, n
, 0, type
, arrayType
, soap_instantiate
);
408 SOAP_FMAC3
void SOAP_FMAC4
soap_default_byte(struct soap
*soap
, char *a
)
410 (void)soap
; /* appease -Wall -Werror */
411 #ifdef SOAP_DEFAULT_byte
412 *a
= SOAP_DEFAULT_byte
;
418 SOAP_FMAC3
int SOAP_FMAC4
soap_out_byte(struct soap
*soap
, const char *tag
, int id
, const char *a
, const char *type
)
420 return soap_outbyte(soap
, tag
, id
, a
, type
, SOAP_TYPE_byte
);
423 SOAP_FMAC3
char * SOAP_FMAC4
soap_in_byte(struct soap
*soap
, const char *tag
, char *a
, const char *type
)
425 p
= soap_inbyte(soap
, tag
, a
, type
, SOAP_TYPE_byte
);
429 SOAP_FMAC3
int SOAP_FMAC4
soap_put_byte(struct soap
*soap
, const char *a
, const char *tag
, const char *type
)
431 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_byte
);
432 if (soap_out_byte(soap
, tag
?tag
:"byte", id
, a
, type
))
434 return soap_putindependent(soap
);
437 SOAP_FMAC3
char * SOAP_FMAC4
soap_get_byte(struct soap
*soap
, char *p
, const char *tag
, const char *type
)
439 if ((p
= soap_in_byte(soap
, tag
, p
, type
)))
440 if (soap_getindependent(soap
))
445 SOAP_FMAC3
void SOAP_FMAC4
soap_default_int(struct soap
*soap
, int *a
)
447 (void)soap
; /* appease -Wall -Werror */
448 #ifdef SOAP_DEFAULT_int
449 *a
= SOAP_DEFAULT_int
;
455 SOAP_FMAC3
int SOAP_FMAC4
soap_out_int(struct soap
*soap
, const char *tag
, int id
, const int *a
, const char *type
)
457 return soap_outint(soap
, tag
, id
, a
, type
, SOAP_TYPE_int
);
460 SOAP_FMAC3
int * SOAP_FMAC4
soap_in_int(struct soap
*soap
, const char *tag
, int *a
, const char *type
)
462 p
= soap_inint(soap
, tag
, a
, type
, SOAP_TYPE_int
);
466 SOAP_FMAC3
int SOAP_FMAC4
soap_put_int(struct soap
*soap
, const int *a
, const char *tag
, const char *type
)
468 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_int
);
469 if (soap_out_int(soap
, tag
?tag
:"int", id
, a
, type
))
471 return soap_putindependent(soap
);
474 SOAP_FMAC3
int * SOAP_FMAC4
soap_get_int(struct soap
*soap
, int *p
, const char *tag
, const char *type
)
476 if ((p
= soap_in_int(soap
, tag
, p
, type
)))
477 if (soap_getindependent(soap
))
482 #ifndef WITH_NOGLOBAL
484 SOAP_FMAC3
void SOAP_FMAC4
soap_default_SOAP_ENV__Fault(struct soap
*soap
, struct SOAP_ENV__Fault
*a
)
486 (void)soap
; (void)a
; /* appease -Wall -Werror */
487 soap_default__QName(soap
, &a
->faultcode
);
488 soap_default_string(soap
, &a
->faultstring
);
489 soap_default_string(soap
, &a
->faultactor
);
491 a
->SOAP_ENV__Code
= NULL
;
492 a
->SOAP_ENV__Reason
= NULL
;
493 soap_default_string(soap
, &a
->SOAP_ENV__Node
);
494 soap_default_string(soap
, &a
->SOAP_ENV__Role
);
495 a
->SOAP_ENV__Detail
= NULL
;
498 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_SOAP_ENV__Fault(struct soap
*soap
, const struct SOAP_ENV__Fault
*a
)
500 (void)soap
; (void)a
; /* appease -Wall -Werror */
501 soap_serialize__QName(soap
, &a
->faultcode
);
502 soap_serialize_string(soap
, &a
->faultstring
);
503 soap_serialize_string(soap
, &a
->faultactor
);
504 soap_serialize_PointerToSOAP_ENV__Detail(soap
, &a
->detail
);
505 soap_serialize_PointerToSOAP_ENV__Code(soap
, &a
->SOAP_ENV__Code
);
506 soap_serialize_PointerToSOAP_ENV__Reason(soap
, &a
->SOAP_ENV__Reason
);
507 soap_serialize_string(soap
, &a
->SOAP_ENV__Node
);
508 soap_serialize_string(soap
, &a
->SOAP_ENV__Role
);
509 soap_serialize_PointerToSOAP_ENV__Detail(soap
, &a
->SOAP_ENV__Detail
);
512 SOAP_FMAC3
int SOAP_FMAC4
soap_out_SOAP_ENV__Fault(struct soap
*soap
, const char *tag
, int id
, const struct SOAP_ENV__Fault
*a
, const char *type
)
514 const char *soap_tmp_faultcode
= soap_QName2s(soap
, a
->faultcode
);
515 if (soap_element_begin_out(soap
, tag
, soap_embedded_id(soap
, id
, a
, SOAP_TYPE_SOAP_ENV__Fault
), type
))
517 if (soap_out__QName(soap
, "faultcode", -1, (char*const*)&soap_tmp_faultcode
, ""))
519 if (soap_out_string(soap
, "faultstring", -1, &a
->faultstring
, ""))
521 if (soap_out_string(soap
, "faultactor", -1, &a
->faultactor
, ""))
523 if (soap_out_PointerToSOAP_ENV__Detail(soap
, "detail", -1, &a
->detail
, ""))
525 if (soap_out_PointerToSOAP_ENV__Code(soap
, "SOAP-ENV:Code", -1, &a
->SOAP_ENV__Code
, ""))
527 if (soap_out_PointerToSOAP_ENV__Reason(soap
, "SOAP-ENV:Reason", -1, &a
->SOAP_ENV__Reason
, ""))
529 if (soap_out_string(soap
, "SOAP-ENV:Node", -1, &a
->SOAP_ENV__Node
, ""))
531 if (soap_out_string(soap
, "SOAP-ENV:Role", -1, &a
->SOAP_ENV__Role
, ""))
533 if (soap_out_PointerToSOAP_ENV__Detail(soap
, "SOAP-ENV:Detail", -1, &a
->SOAP_ENV__Detail
, ""))
535 return soap_element_end_out(soap
, tag
);
538 SOAP_FMAC3
struct SOAP_ENV__Fault
* SOAP_FMAC4
soap_in_SOAP_ENV__Fault(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Fault
*a
, const char *type
)
540 size_t soap_flag_faultcode
= 1;
541 size_t soap_flag_faultstring
= 1;
542 size_t soap_flag_faultactor
= 1;
543 size_t soap_flag_detail
= 1;
544 size_t soap_flag_SOAP_ENV__Code
= 1;
545 size_t soap_flag_SOAP_ENV__Reason
= 1;
546 size_t soap_flag_SOAP_ENV__Node
= 1;
547 size_t soap_flag_SOAP_ENV__Role
= 1;
548 size_t soap_flag_SOAP_ENV__Detail
= 1;
549 if (soap_element_begin_in(soap
, tag
, 0, type
))
551 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
);
554 soap_default_SOAP_ENV__Fault(soap
, a
);
555 if (soap
->body
&& !*soap
->href
)
558 { soap
->error
= SOAP_TAG_MISMATCH
;
559 if (soap_flag_faultcode
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
560 if (soap_in__QName(soap
, "faultcode", &a
->faultcode
, ""))
561 { soap_flag_faultcode
--;
564 if (soap_flag_faultstring
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
565 if (soap_in_string(soap
, "faultstring", &a
->faultstring
, "xsd:string"))
566 { soap_flag_faultstring
--;
569 if (soap_flag_faultactor
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
570 if (soap_in_string(soap
, "faultactor", &a
->faultactor
, "xsd:string"))
571 { soap_flag_faultactor
--;
574 if (soap_flag_detail
&& soap
->error
== SOAP_TAG_MISMATCH
)
575 if (soap_in_PointerToSOAP_ENV__Detail(soap
, "detail", &a
->detail
, ""))
576 { soap_flag_detail
--;
579 if (soap_flag_SOAP_ENV__Code
&& soap
->error
== SOAP_TAG_MISMATCH
)
580 if (soap_in_PointerToSOAP_ENV__Code(soap
, "SOAP-ENV:Code", &a
->SOAP_ENV__Code
, ""))
581 { soap_flag_SOAP_ENV__Code
--;
584 if (soap_flag_SOAP_ENV__Reason
&& soap
->error
== SOAP_TAG_MISMATCH
)
585 if (soap_in_PointerToSOAP_ENV__Reason(soap
, "SOAP-ENV:Reason", &a
->SOAP_ENV__Reason
, ""))
586 { soap_flag_SOAP_ENV__Reason
--;
589 if (soap_flag_SOAP_ENV__Node
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
590 if (soap_in_string(soap
, "SOAP-ENV:Node", &a
->SOAP_ENV__Node
, "xsd:string"))
591 { soap_flag_SOAP_ENV__Node
--;
594 if (soap_flag_SOAP_ENV__Role
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
595 if (soap_in_string(soap
, "SOAP-ENV:Role", &a
->SOAP_ENV__Role
, "xsd:string"))
596 { soap_flag_SOAP_ENV__Role
--;
599 if (soap_flag_SOAP_ENV__Detail
&& soap
->error
== SOAP_TAG_MISMATCH
)
600 if (soap_in_PointerToSOAP_ENV__Detail(soap
, "SOAP-ENV:Detail", &a
->SOAP_ENV__Detail
, ""))
601 { soap_flag_SOAP_ENV__Detail
--;
604 if (soap
->error
== SOAP_TAG_MISMATCH
)
605 soap
->error
= soap_ignore_element(soap
);
606 if (soap
->error
== SOAP_NO_TAG
)
611 if (soap_element_end_in(soap
, tag
))
615 { 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
);
616 if (soap
->body
&& soap_element_end_in(soap
, tag
))
622 SOAP_FMAC3
int SOAP_FMAC4
soap_put_SOAP_ENV__Fault(struct soap
*soap
, const struct SOAP_ENV__Fault
*a
, const char *tag
, const char *type
)
624 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_SOAP_ENV__Fault
);
625 if (soap_out_SOAP_ENV__Fault(soap
, tag
?tag
:"SOAP-ENV:Fault", id
, a
, type
))
627 return soap_putindependent(soap
);
630 SOAP_FMAC3
struct SOAP_ENV__Fault
* SOAP_FMAC4
soap_get_SOAP_ENV__Fault(struct soap
*soap
, struct SOAP_ENV__Fault
*p
, const char *tag
, const char *type
)
632 if ((p
= soap_in_SOAP_ENV__Fault(soap
, tag
, p
, type
)))
633 if (soap_getindependent(soap
))
638 SOAP_FMAC1
struct SOAP_ENV__Fault
* SOAP_FMAC2
soap_instantiate_SOAP_ENV__Fault(struct soap
*soap
, int n
, const char *type
, const char *arrayType
, size_t *size
)
640 (void)type
; (void)arrayType
; /* appease -Wall -Werror */
641 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n
, type
?type
:"", arrayType
?arrayType
:""));
642 struct soap_clist
*cp
= soap_link(soap
, NULL
, SOAP_TYPE_SOAP_ENV__Fault
, n
, soap_fdelete
);
646 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Fault
);
648 *size
= sizeof(struct SOAP_ENV__Fault
);
651 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Fault
[n
]);
653 { soap
->error
= SOAP_EOM
;
657 *size
= n
* sizeof(struct SOAP_ENV__Fault
);
659 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Instantiated location=%p\n", cp
->ptr
));
660 return (struct SOAP_ENV__Fault
*)cp
->ptr
;
663 SOAP_FMAC3
void SOAP_FMAC4
soap_copy_SOAP_ENV__Fault(struct soap
*soap
, int st
, int tt
, void *p
, size_t len
, const void *q
, size_t n
)
665 (void)soap
; (void)st
; (void)len
; (void)n
; /* appease -Wall -Werror */
666 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Copying struct SOAP_ENV__Fault %p -> %p\n", q
, p
));
667 *(struct SOAP_ENV__Fault
*)p
= *(struct SOAP_ENV__Fault
*)q
;
672 #ifndef WITH_NOGLOBAL
674 SOAP_FMAC3
void SOAP_FMAC4
soap_default_SOAP_ENV__Reason(struct soap
*soap
, struct SOAP_ENV__Reason
*a
)
676 (void)soap
; (void)a
; /* appease -Wall -Werror */
677 soap_default_string(soap
, &a
->SOAP_ENV__Text
);
680 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_SOAP_ENV__Reason(struct soap
*soap
, const struct SOAP_ENV__Reason
*a
)
682 (void)soap
; (void)a
; /* appease -Wall -Werror */
683 soap_serialize_string(soap
, &a
->SOAP_ENV__Text
);
686 SOAP_FMAC3
int SOAP_FMAC4
soap_out_SOAP_ENV__Reason(struct soap
*soap
, const char *tag
, int id
, const struct SOAP_ENV__Reason
*a
, const char *type
)
688 if (soap_element_begin_out(soap
, tag
, soap_embedded_id(soap
, id
, a
, SOAP_TYPE_SOAP_ENV__Reason
), type
))
691 soap_set_attr(soap
, "xml:lang", soap
->lang
, 1);
692 if (soap_out_string(soap
, "SOAP-ENV:Text", -1, &a
->SOAP_ENV__Text
, ""))
694 return soap_element_end_out(soap
, tag
);
697 SOAP_FMAC3
struct SOAP_ENV__Reason
* SOAP_FMAC4
soap_in_SOAP_ENV__Reason(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Reason
*a
, const char *type
)
699 size_t soap_flag_SOAP_ENV__Text
= 1;
700 if (soap_element_begin_in(soap
, tag
, 0, type
))
702 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
);
705 soap_default_SOAP_ENV__Reason(soap
, a
);
706 if (soap
->body
&& !*soap
->href
)
709 { soap
->error
= SOAP_TAG_MISMATCH
;
710 if (soap_flag_SOAP_ENV__Text
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
711 if (soap_in_string(soap
, "SOAP-ENV:Text", &a
->SOAP_ENV__Text
, "xsd:string"))
712 { soap_flag_SOAP_ENV__Text
--;
715 if (soap
->error
== SOAP_TAG_MISMATCH
)
716 soap
->error
= soap_ignore_element(soap
);
717 if (soap
->error
== SOAP_NO_TAG
)
722 if (soap_element_end_in(soap
, tag
))
726 { 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
);
727 if (soap
->body
&& soap_element_end_in(soap
, tag
))
733 SOAP_FMAC3
int SOAP_FMAC4
soap_put_SOAP_ENV__Reason(struct soap
*soap
, const struct SOAP_ENV__Reason
*a
, const char *tag
, const char *type
)
735 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_SOAP_ENV__Reason
);
736 if (soap_out_SOAP_ENV__Reason(soap
, tag
?tag
:"SOAP-ENV:Reason", id
, a
, type
))
738 return soap_putindependent(soap
);
741 SOAP_FMAC3
struct SOAP_ENV__Reason
* SOAP_FMAC4
soap_get_SOAP_ENV__Reason(struct soap
*soap
, struct SOAP_ENV__Reason
*p
, const char *tag
, const char *type
)
743 if ((p
= soap_in_SOAP_ENV__Reason(soap
, tag
, p
, type
)))
744 if (soap_getindependent(soap
))
749 SOAP_FMAC1
struct SOAP_ENV__Reason
* SOAP_FMAC2
soap_instantiate_SOAP_ENV__Reason(struct soap
*soap
, int n
, const char *type
, const char *arrayType
, size_t *size
)
751 (void)type
; (void)arrayType
; /* appease -Wall -Werror */
752 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n
, type
?type
:"", arrayType
?arrayType
:""));
753 struct soap_clist
*cp
= soap_link(soap
, NULL
, SOAP_TYPE_SOAP_ENV__Reason
, n
, soap_fdelete
);
757 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Reason
);
759 *size
= sizeof(struct SOAP_ENV__Reason
);
762 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Reason
[n
]);
764 { soap
->error
= SOAP_EOM
;
768 *size
= n
* sizeof(struct SOAP_ENV__Reason
);
770 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Instantiated location=%p\n", cp
->ptr
));
771 return (struct SOAP_ENV__Reason
*)cp
->ptr
;
774 SOAP_FMAC3
void SOAP_FMAC4
soap_copy_SOAP_ENV__Reason(struct soap
*soap
, int st
, int tt
, void *p
, size_t len
, const void *q
, size_t n
)
776 (void)soap
; (void)st
; (void)len
; (void)n
; /* appease -Wall -Werror */
777 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Copying struct SOAP_ENV__Reason %p -> %p\n", q
, p
));
778 *(struct SOAP_ENV__Reason
*)p
= *(struct SOAP_ENV__Reason
*)q
;
783 #ifndef WITH_NOGLOBAL
785 SOAP_FMAC3
void SOAP_FMAC4
soap_default_SOAP_ENV__Detail(struct soap
*soap
, struct SOAP_ENV__Detail
*a
)
787 (void)soap
; (void)a
; /* appease -Wall -Werror */
793 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_SOAP_ENV__Detail(struct soap
*soap
, const struct SOAP_ENV__Detail
*a
)
795 (void)soap
; (void)a
; /* appease -Wall -Werror */
796 soap_markelement(soap
, a
->fault
, a
->__type
);
799 SOAP_FMAC3
int SOAP_FMAC4
soap_out_SOAP_ENV__Detail(struct soap
*soap
, const char *tag
, int id
, const struct SOAP_ENV__Detail
*a
, const char *type
)
801 if (soap_element_begin_out(soap
, tag
, soap_embedded_id(soap
, id
, a
, SOAP_TYPE_SOAP_ENV__Detail
), type
))
803 if (soap_putelement(soap
, a
->fault
, "fault", -1, a
->__type
))
805 soap_outliteral(soap
, "-any", &a
->__any
, NULL
);
806 return soap_element_end_out(soap
, tag
);
809 SOAP_FMAC3
struct SOAP_ENV__Detail
* SOAP_FMAC4
soap_in_SOAP_ENV__Detail(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Detail
*a
, const char *type
)
811 size_t soap_flag_fault
= 1;
812 size_t soap_flag___any
= 1;
813 if (soap_element_begin_in(soap
, tag
, 0, type
))
815 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
);
818 soap_default_SOAP_ENV__Detail(soap
, a
);
819 if (soap
->body
&& !*soap
->href
)
822 { soap
->error
= SOAP_TAG_MISMATCH
;
823 if (soap_flag_fault
&& soap
->error
== SOAP_TAG_MISMATCH
)
824 if ((a
->fault
= soap_getelement(soap
, &a
->__type
)))
825 { soap_flag_fault
= 0;
828 if (soap_flag___any
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
829 if (soap_inliteral(soap
, "-any", &a
->__any
))
833 if (soap
->error
== SOAP_TAG_MISMATCH
)
834 soap
->error
= soap_ignore_element(soap
);
835 if (soap
->error
== SOAP_NO_TAG
)
840 if (soap_element_end_in(soap
, tag
))
844 { 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
);
845 if (soap
->body
&& soap_element_end_in(soap
, tag
))
851 SOAP_FMAC3
int SOAP_FMAC4
soap_put_SOAP_ENV__Detail(struct soap
*soap
, const struct SOAP_ENV__Detail
*a
, const char *tag
, const char *type
)
853 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_SOAP_ENV__Detail
);
854 if (soap_out_SOAP_ENV__Detail(soap
, tag
?tag
:"SOAP-ENV:Detail", id
, a
, type
))
856 return soap_putindependent(soap
);
859 SOAP_FMAC3
struct SOAP_ENV__Detail
* SOAP_FMAC4
soap_get_SOAP_ENV__Detail(struct soap
*soap
, struct SOAP_ENV__Detail
*p
, const char *tag
, const char *type
)
861 if ((p
= soap_in_SOAP_ENV__Detail(soap
, tag
, p
, type
)))
862 if (soap_getindependent(soap
))
867 SOAP_FMAC1
struct SOAP_ENV__Detail
* SOAP_FMAC2
soap_instantiate_SOAP_ENV__Detail(struct soap
*soap
, int n
, const char *type
, const char *arrayType
, size_t *size
)
869 (void)type
; (void)arrayType
; /* appease -Wall -Werror */
870 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n
, type
?type
:"", arrayType
?arrayType
:""));
871 struct soap_clist
*cp
= soap_link(soap
, NULL
, SOAP_TYPE_SOAP_ENV__Detail
, n
, soap_fdelete
);
875 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Detail
);
877 *size
= sizeof(struct SOAP_ENV__Detail
);
880 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Detail
[n
]);
882 { soap
->error
= SOAP_EOM
;
886 *size
= n
* sizeof(struct SOAP_ENV__Detail
);
888 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Instantiated location=%p\n", cp
->ptr
));
889 return (struct SOAP_ENV__Detail
*)cp
->ptr
;
892 SOAP_FMAC3
void SOAP_FMAC4
soap_copy_SOAP_ENV__Detail(struct soap
*soap
, int st
, int tt
, void *p
, size_t len
, const void *q
, size_t n
)
894 (void)soap
; (void)st
; (void)len
; (void)n
; /* appease -Wall -Werror */
895 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Copying struct SOAP_ENV__Detail %p -> %p\n", q
, p
));
896 *(struct SOAP_ENV__Detail
*)p
= *(struct SOAP_ENV__Detail
*)q
;
901 #ifndef WITH_NOGLOBAL
903 SOAP_FMAC3
void SOAP_FMAC4
soap_default_SOAP_ENV__Code(struct soap
*soap
, struct SOAP_ENV__Code
*a
)
905 (void)soap
; (void)a
; /* appease -Wall -Werror */
906 soap_default__QName(soap
, &a
->SOAP_ENV__Value
);
907 a
->SOAP_ENV__Subcode
= NULL
;
910 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_SOAP_ENV__Code(struct soap
*soap
, const struct SOAP_ENV__Code
*a
)
912 (void)soap
; (void)a
; /* appease -Wall -Werror */
913 soap_serialize__QName(soap
, &a
->SOAP_ENV__Value
);
914 soap_serialize_PointerToSOAP_ENV__Code(soap
, &a
->SOAP_ENV__Subcode
);
917 SOAP_FMAC3
int SOAP_FMAC4
soap_out_SOAP_ENV__Code(struct soap
*soap
, const char *tag
, int id
, const struct SOAP_ENV__Code
*a
, const char *type
)
919 const char *soap_tmp_SOAP_ENV__Value
= soap_QName2s(soap
, a
->SOAP_ENV__Value
);
920 if (soap_element_begin_out(soap
, tag
, soap_embedded_id(soap
, id
, a
, SOAP_TYPE_SOAP_ENV__Code
), type
))
922 if (soap_out__QName(soap
, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value
, ""))
924 if (soap_out_PointerToSOAP_ENV__Code(soap
, "SOAP-ENV:Subcode", -1, &a
->SOAP_ENV__Subcode
, ""))
926 return soap_element_end_out(soap
, tag
);
929 SOAP_FMAC3
struct SOAP_ENV__Code
* SOAP_FMAC4
soap_in_SOAP_ENV__Code(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Code
*a
, const char *type
)
931 size_t soap_flag_SOAP_ENV__Value
= 1;
932 size_t soap_flag_SOAP_ENV__Subcode
= 1;
933 if (soap_element_begin_in(soap
, tag
, 0, type
))
935 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
);
938 soap_default_SOAP_ENV__Code(soap
, a
);
939 if (soap
->body
&& !*soap
->href
)
942 { soap
->error
= SOAP_TAG_MISMATCH
;
943 if (soap_flag_SOAP_ENV__Value
&& (soap
->error
== SOAP_TAG_MISMATCH
|| soap
->error
== SOAP_NO_TAG
))
944 if (soap_in__QName(soap
, "SOAP-ENV:Value", &a
->SOAP_ENV__Value
, ""))
945 { soap_flag_SOAP_ENV__Value
--;
948 if (soap_flag_SOAP_ENV__Subcode
&& soap
->error
== SOAP_TAG_MISMATCH
)
949 if (soap_in_PointerToSOAP_ENV__Code(soap
, "SOAP-ENV:Subcode", &a
->SOAP_ENV__Subcode
, ""))
950 { soap_flag_SOAP_ENV__Subcode
--;
953 if (soap
->error
== SOAP_TAG_MISMATCH
)
954 soap
->error
= soap_ignore_element(soap
);
955 if (soap
->error
== SOAP_NO_TAG
)
960 if (soap_element_end_in(soap
, tag
))
964 { 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
);
965 if (soap
->body
&& soap_element_end_in(soap
, tag
))
971 SOAP_FMAC3
int SOAP_FMAC4
soap_put_SOAP_ENV__Code(struct soap
*soap
, const struct SOAP_ENV__Code
*a
, const char *tag
, const char *type
)
973 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_SOAP_ENV__Code
);
974 if (soap_out_SOAP_ENV__Code(soap
, tag
?tag
:"SOAP-ENV:Code", id
, a
, type
))
976 return soap_putindependent(soap
);
979 SOAP_FMAC3
struct SOAP_ENV__Code
* SOAP_FMAC4
soap_get_SOAP_ENV__Code(struct soap
*soap
, struct SOAP_ENV__Code
*p
, const char *tag
, const char *type
)
981 if ((p
= soap_in_SOAP_ENV__Code(soap
, tag
, p
, type
)))
982 if (soap_getindependent(soap
))
987 SOAP_FMAC1
struct SOAP_ENV__Code
* SOAP_FMAC2
soap_instantiate_SOAP_ENV__Code(struct soap
*soap
, int n
, const char *type
, const char *arrayType
, size_t *size
)
989 (void)type
; (void)arrayType
; /* appease -Wall -Werror */
990 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n
, type
?type
:"", arrayType
?arrayType
:""));
991 struct soap_clist
*cp
= soap_link(soap
, NULL
, SOAP_TYPE_SOAP_ENV__Code
, n
, soap_fdelete
);
995 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Code
);
997 *size
= sizeof(struct SOAP_ENV__Code
);
1000 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Code
[n
]);
1002 { soap
->error
= SOAP_EOM
;
1006 *size
= n
* sizeof(struct SOAP_ENV__Code
);
1008 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Instantiated location=%p\n", cp
->ptr
));
1009 return (struct SOAP_ENV__Code
*)cp
->ptr
;
1012 SOAP_FMAC3
void SOAP_FMAC4
soap_copy_SOAP_ENV__Code(struct soap
*soap
, int st
, int tt
, void *p
, size_t len
, const void *q
, size_t n
)
1014 (void)soap
; (void)st
; (void)len
; (void)n
; /* appease -Wall -Werror */
1015 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Copying struct SOAP_ENV__Code %p -> %p\n", q
, p
));
1016 *(struct SOAP_ENV__Code
*)p
= *(struct SOAP_ENV__Code
*)q
;
1021 #ifndef WITH_NOGLOBAL
1023 SOAP_FMAC3
void SOAP_FMAC4
soap_default_SOAP_ENV__Header(struct soap
*soap
, struct SOAP_ENV__Header
*a
)
1025 (void)soap
; (void)a
; /* appease -Wall -Werror */
1028 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_SOAP_ENV__Header(struct soap
*soap
, const struct SOAP_ENV__Header
*a
)
1030 (void)soap
; (void)a
; /* appease -Wall -Werror */
1033 SOAP_FMAC3
int SOAP_FMAC4
soap_out_SOAP_ENV__Header(struct soap
*soap
, const char *tag
, int id
, const struct SOAP_ENV__Header
*a
, const char *type
)
1035 if (soap_element_begin_out(soap
, tag
, soap_embedded_id(soap
, id
, a
, SOAP_TYPE_SOAP_ENV__Header
), type
))
1037 return soap_element_end_out(soap
, tag
);
1040 SOAP_FMAC3
struct SOAP_ENV__Header
* SOAP_FMAC4
soap_in_SOAP_ENV__Header(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Header
*a
, const char *type
)
1042 if (soap_element_begin_in(soap
, tag
, 0, type
))
1044 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
);
1047 soap_default_SOAP_ENV__Header(soap
, a
);
1048 if (soap
->body
&& !*soap
->href
)
1051 { soap
->error
= SOAP_TAG_MISMATCH
;
1052 if (soap
->error
== SOAP_TAG_MISMATCH
)
1053 soap
->error
= soap_ignore_element(soap
);
1054 if (soap
->error
== SOAP_NO_TAG
)
1059 if (soap_element_end_in(soap
, tag
))
1063 { 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
);
1064 if (soap
->body
&& soap_element_end_in(soap
, tag
))
1070 SOAP_FMAC3
int SOAP_FMAC4
soap_put_SOAP_ENV__Header(struct soap
*soap
, const struct SOAP_ENV__Header
*a
, const char *tag
, const char *type
)
1072 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_SOAP_ENV__Header
);
1073 if (soap_out_SOAP_ENV__Header(soap
, tag
?tag
:"SOAP-ENV:Header", id
, a
, type
))
1075 return soap_putindependent(soap
);
1078 SOAP_FMAC3
struct SOAP_ENV__Header
* SOAP_FMAC4
soap_get_SOAP_ENV__Header(struct soap
*soap
, struct SOAP_ENV__Header
*p
, const char *tag
, const char *type
)
1080 if ((p
= soap_in_SOAP_ENV__Header(soap
, tag
, p
, type
)))
1081 if (soap_getindependent(soap
))
1086 SOAP_FMAC1
struct SOAP_ENV__Header
* SOAP_FMAC2
soap_instantiate_SOAP_ENV__Header(struct soap
*soap
, int n
, const char *type
, const char *arrayType
, size_t *size
)
1088 (void)type
; (void)arrayType
; /* appease -Wall -Werror */
1089 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n
, type
?type
:"", arrayType
?arrayType
:""));
1090 struct soap_clist
*cp
= soap_link(soap
, NULL
, SOAP_TYPE_SOAP_ENV__Header
, n
, soap_fdelete
);
1094 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Header
);
1096 *size
= sizeof(struct SOAP_ENV__Header
);
1099 { cp
->ptr
= (void*)SOAP_NEW(struct SOAP_ENV__Header
[n
]);
1101 { soap
->error
= SOAP_EOM
;
1105 *size
= n
* sizeof(struct SOAP_ENV__Header
);
1107 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Instantiated location=%p\n", cp
->ptr
));
1108 return (struct SOAP_ENV__Header
*)cp
->ptr
;
1111 SOAP_FMAC3
void SOAP_FMAC4
soap_copy_SOAP_ENV__Header(struct soap
*soap
, int st
, int tt
, void *p
, size_t len
, const void *q
, size_t n
)
1113 (void)soap
; (void)st
; (void)len
; (void)n
; /* appease -Wall -Werror */
1114 DBGLOG(TEST
, SOAP_MESSAGE(fdebug
, "Copying struct SOAP_ENV__Header %p -> %p\n", q
, p
));
1115 *(struct SOAP_ENV__Header
*)p
= *(struct SOAP_ENV__Header
*)q
;
1120 #ifndef WITH_NOGLOBAL
1122 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_PointerToSOAP_ENV__Reason(struct soap
*soap
, struct SOAP_ENV__Reason
*const*a
)
1124 if (!soap_reference(soap
, *a
, SOAP_TYPE_SOAP_ENV__Reason
))
1125 soap_serialize_SOAP_ENV__Reason(soap
, *a
);
1128 SOAP_FMAC3
int SOAP_FMAC4
soap_out_PointerToSOAP_ENV__Reason(struct soap
*soap
, const char *tag
, int id
, struct SOAP_ENV__Reason
*const*a
, const char *type
)
1130 id
= soap_element_id(soap
, tag
, id
, *a
, NULL
, 0, type
, SOAP_TYPE_SOAP_ENV__Reason
);
1133 return soap_out_SOAP_ENV__Reason(soap
, tag
, id
, *a
, type
);
1136 SOAP_FMAC3
struct SOAP_ENV__Reason
** SOAP_FMAC4
soap_in_PointerToSOAP_ENV__Reason(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Reason
**a
, const char *type
)
1138 if (soap_element_begin_in(soap
, tag
, 1, NULL
))
1141 if (!(a
= (struct SOAP_ENV__Reason
**)soap_malloc(soap
, sizeof(struct SOAP_ENV__Reason
*))))
1144 if (!soap
->null
&& *soap
->href
!= '#')
1145 { soap_revert(soap
);
1146 if (!(*a
= soap_in_SOAP_ENV__Reason(soap
, tag
, *a
, type
)))
1150 { a
= (struct SOAP_ENV__Reason
**)soap_id_lookup(soap
, soap
->href
, (void**)a
, SOAP_TYPE_SOAP_ENV__Reason
, sizeof(struct SOAP_ENV__Reason
), 0);
1151 if (soap
->body
&& soap_element_end_in(soap
, tag
))
1157 SOAP_FMAC3
int SOAP_FMAC4
soap_put_PointerToSOAP_ENV__Reason(struct soap
*soap
, struct SOAP_ENV__Reason
*const*a
, const char *tag
, const char *type
)
1159 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_PointerToSOAP_ENV__Reason
);
1160 if (soap_out_PointerToSOAP_ENV__Reason(soap
, tag
?tag
:"SOAP-ENV:Reason", id
, a
, type
))
1162 return soap_putindependent(soap
);
1165 SOAP_FMAC3
struct SOAP_ENV__Reason
** SOAP_FMAC4
soap_get_PointerToSOAP_ENV__Reason(struct soap
*soap
, struct SOAP_ENV__Reason
**p
, const char *tag
, const char *type
)
1167 if ((p
= soap_in_PointerToSOAP_ENV__Reason(soap
, tag
, p
, type
)))
1168 if (soap_getindependent(soap
))
1175 #ifndef WITH_NOGLOBAL
1177 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_PointerToSOAP_ENV__Detail(struct soap
*soap
, struct SOAP_ENV__Detail
*const*a
)
1179 if (!soap_reference(soap
, *a
, SOAP_TYPE_SOAP_ENV__Detail
))
1180 soap_serialize_SOAP_ENV__Detail(soap
, *a
);
1183 SOAP_FMAC3
int SOAP_FMAC4
soap_out_PointerToSOAP_ENV__Detail(struct soap
*soap
, const char *tag
, int id
, struct SOAP_ENV__Detail
*const*a
, const char *type
)
1185 id
= soap_element_id(soap
, tag
, id
, *a
, NULL
, 0, type
, SOAP_TYPE_SOAP_ENV__Detail
);
1188 return soap_out_SOAP_ENV__Detail(soap
, tag
, id
, *a
, type
);
1191 SOAP_FMAC3
struct SOAP_ENV__Detail
** SOAP_FMAC4
soap_in_PointerToSOAP_ENV__Detail(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Detail
**a
, const char *type
)
1193 if (soap_element_begin_in(soap
, tag
, 1, NULL
))
1196 if (!(a
= (struct SOAP_ENV__Detail
**)soap_malloc(soap
, sizeof(struct SOAP_ENV__Detail
*))))
1199 if (!soap
->null
&& *soap
->href
!= '#')
1200 { soap_revert(soap
);
1201 if (!(*a
= soap_in_SOAP_ENV__Detail(soap
, tag
, *a
, type
)))
1205 { a
= (struct SOAP_ENV__Detail
**)soap_id_lookup(soap
, soap
->href
, (void**)a
, SOAP_TYPE_SOAP_ENV__Detail
, sizeof(struct SOAP_ENV__Detail
), 0);
1206 if (soap
->body
&& soap_element_end_in(soap
, tag
))
1212 SOAP_FMAC3
int SOAP_FMAC4
soap_put_PointerToSOAP_ENV__Detail(struct soap
*soap
, struct SOAP_ENV__Detail
*const*a
, const char *tag
, const char *type
)
1214 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_PointerToSOAP_ENV__Detail
);
1215 if (soap_out_PointerToSOAP_ENV__Detail(soap
, tag
?tag
:"SOAP-ENV:Detail", id
, a
, type
))
1217 return soap_putindependent(soap
);
1220 SOAP_FMAC3
struct SOAP_ENV__Detail
** SOAP_FMAC4
soap_get_PointerToSOAP_ENV__Detail(struct soap
*soap
, struct SOAP_ENV__Detail
**p
, const char *tag
, const char *type
)
1222 if ((p
= soap_in_PointerToSOAP_ENV__Detail(soap
, tag
, p
, type
)))
1223 if (soap_getindependent(soap
))
1230 #ifndef WITH_NOGLOBAL
1232 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_PointerToSOAP_ENV__Code(struct soap
*soap
, struct SOAP_ENV__Code
*const*a
)
1234 if (!soap_reference(soap
, *a
, SOAP_TYPE_SOAP_ENV__Code
))
1235 soap_serialize_SOAP_ENV__Code(soap
, *a
);
1238 SOAP_FMAC3
int SOAP_FMAC4
soap_out_PointerToSOAP_ENV__Code(struct soap
*soap
, const char *tag
, int id
, struct SOAP_ENV__Code
*const*a
, const char *type
)
1240 id
= soap_element_id(soap
, tag
, id
, *a
, NULL
, 0, type
, SOAP_TYPE_SOAP_ENV__Code
);
1243 return soap_out_SOAP_ENV__Code(soap
, tag
, id
, *a
, type
);
1246 SOAP_FMAC3
struct SOAP_ENV__Code
** SOAP_FMAC4
soap_in_PointerToSOAP_ENV__Code(struct soap
*soap
, const char *tag
, struct SOAP_ENV__Code
**a
, const char *type
)
1248 if (soap_element_begin_in(soap
, tag
, 1, NULL
))
1251 if (!(a
= (struct SOAP_ENV__Code
**)soap_malloc(soap
, sizeof(struct SOAP_ENV__Code
*))))
1254 if (!soap
->null
&& *soap
->href
!= '#')
1255 { soap_revert(soap
);
1256 if (!(*a
= soap_in_SOAP_ENV__Code(soap
, tag
, *a
, type
)))
1260 { a
= (struct SOAP_ENV__Code
**)soap_id_lookup(soap
, soap
->href
, (void**)a
, SOAP_TYPE_SOAP_ENV__Code
, sizeof(struct SOAP_ENV__Code
), 0);
1261 if (soap
->body
&& soap_element_end_in(soap
, tag
))
1267 SOAP_FMAC3
int SOAP_FMAC4
soap_put_PointerToSOAP_ENV__Code(struct soap
*soap
, struct SOAP_ENV__Code
*const*a
, const char *tag
, const char *type
)
1269 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_PointerToSOAP_ENV__Code
);
1270 if (soap_out_PointerToSOAP_ENV__Code(soap
, tag
?tag
:"SOAP-ENV:Code", id
, a
, type
))
1272 return soap_putindependent(soap
);
1275 SOAP_FMAC3
struct SOAP_ENV__Code
** SOAP_FMAC4
soap_get_PointerToSOAP_ENV__Code(struct soap
*soap
, struct SOAP_ENV__Code
**p
, const char *tag
, const char *type
)
1277 if ((p
= soap_in_PointerToSOAP_ENV__Code(soap
, tag
, p
, type
)))
1278 if (soap_getindependent(soap
))
1285 SOAP_FMAC3
int SOAP_FMAC4
soap_out__QName(struct soap
*soap
, const char *tag
, int id
, char *const*a
, const char *type
)
1287 return soap_outstring(soap
, tag
, id
, a
, type
, SOAP_TYPE__QName
);
1290 SOAP_FMAC3
char * * SOAP_FMAC4
soap_in__QName(struct soap
*soap
, const char *tag
, char **a
, const char *type
)
1292 p
= soap_instring(soap
, tag
, a
, type
, SOAP_TYPE__QName
, 2, -1, -1);
1296 SOAP_FMAC3
int SOAP_FMAC4
soap_put__QName(struct soap
*soap
, char *const*a
, const char *tag
, const char *type
)
1298 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE__QName
);
1299 if (soap_out__QName(soap
, tag
?tag
:"byte", id
, a
, type
))
1301 return soap_putindependent(soap
);
1304 SOAP_FMAC3
char ** SOAP_FMAC4
soap_get__QName(struct soap
*soap
, char **p
, const char *tag
, const char *type
)
1306 if ((p
= soap_in__QName(soap
, tag
, p
, type
)))
1307 if (soap_getindependent(soap
))
1312 SOAP_FMAC3
void SOAP_FMAC4
soap_default_string(struct soap
*soap
, char **a
)
1314 (void)soap
; /* appease -Wall -Werror */
1315 #ifdef SOAP_DEFAULT_string
1316 *a
= SOAP_DEFAULT_string
;
1322 SOAP_FMAC3
void SOAP_FMAC4
soap_serialize_string(struct soap
*soap
, char *const*a
)
1324 soap_reference(soap
, *a
, SOAP_TYPE_string
);
1327 SOAP_FMAC3
int SOAP_FMAC4
soap_out_string(struct soap
*soap
, const char *tag
, int id
, char *const*a
, const char *type
)
1329 return soap_outstring(soap
, tag
, id
, a
, type
, SOAP_TYPE_string
);
1332 SOAP_FMAC3
char * * SOAP_FMAC4
soap_in_string(struct soap
*soap
, const char *tag
, char **a
, const char *type
)
1334 p
= soap_instring(soap
, tag
, a
, type
, SOAP_TYPE_string
, 1, -1, -1);
1338 SOAP_FMAC3
int SOAP_FMAC4
soap_put_string(struct soap
*soap
, char *const*a
, const char *tag
, const char *type
)
1340 register int id
= soap_embed(soap
, (void*)a
, NULL
, 0, tag
, SOAP_TYPE_string
);
1341 if (soap_out_string(soap
, tag
?tag
:"byte", id
, a
, type
))
1343 return soap_putindependent(soap
);
1346 SOAP_FMAC3
char ** SOAP_FMAC4
soap_get_string(struct soap
*soap
, char **p
, const char *tag
, const char *type
)
1348 if ((p
= soap_in_string(soap
, tag
, p
, type
)))
1349 if (soap_getindependent(soap
))
1354 #if defined(__BORLANDC__)
1359 /* End of envC.cpp */