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