xref: /onnv-gate/usr/src/lib/libkmsagent/common/SOAP/KMS_DiscoveryC.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_DiscoveryC.cpp
27*12720SWyllys.Ingersoll@Sun.COM    Generated by gSOAP 2.7.17 from ../gsoapStubs/DiscoveryService/KMS_Discovery_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_DiscoveryH.h"
39*12720SWyllys.Ingersoll@Sun.COM 
40*12720SWyllys.Ingersoll@Sun.COM namespace KMS_Discovery {
41*12720SWyllys.Ingersoll@Sun.COM 
42*12720SWyllys.Ingersoll@Sun.COM SOAP_SOURCE_STAMP("@(#) KMS_DiscoveryC.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_Discovery_byte:
192*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_byte(soap, NULL, NULL, "xsd:byte");
193*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_int:
194*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_int(soap, NULL, NULL, "xsd:int");
195*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_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_Discovery_long:
198*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_long(soap, NULL, NULL, "xsd:long");
199*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_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_Discovery_LONG64:
202*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_LONG64(soap, NULL, NULL, "xsd:long");
203*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_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_Discovery_float:
206*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_float(soap, NULL, NULL, "xsd:float");
207*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_unsignedByte:
208*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_unsignedByte(soap, NULL, NULL, "xsd:unsignedByte");
209*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_unsignedInt:
210*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_unsignedInt(soap, NULL, NULL, "xsd:unsignedInt");
211*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_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_Discovery_bool:
214*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_bool(soap, NULL, NULL, "xsd:boolean");
215*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster:
216*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_KMS_Discovery__DiscoverCluster(soap, NULL, NULL, "KMS-Discovery:DiscoverCluster");
217*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse:
218*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_KMS_Discovery__DiscoverClusterResponse(soap, NULL, NULL, "KMS-Discovery:DiscoverClusterResponse");
219*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers:
220*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_KMS_Discovery__ArrayOfClusterMembers(soap, NULL, NULL, "KMS-Discovery:ArrayOfClusterMembers");
221*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember:
222*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_KMS_Discovery_ClusterMember(soap, NULL, NULL, "KMS-Discovery-ClusterMember");
223*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_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_Discovery_PointerToKMS_Discovery_ClusterMember:
226*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_PointerToKMS_Discovery_ClusterMember(soap, NULL, NULL, "KMS-Discovery-ClusterMember");
227*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_PointerTounsignedByte:
228*12720SWyllys.Ingersoll@Sun.COM 		return soap_in_PointerTounsignedByte(soap, NULL, NULL, "xsd:unsignedByte");
229*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__networkAddress:
230*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
231*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_xsd__networkAddress(soap, NULL, NULL, "xsd:networkAddress");
232*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
233*12720SWyllys.Ingersoll@Sun.COM 	}
234*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__kmaVersion:
235*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
236*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_xsd__kmaVersion(soap, NULL, NULL, "xsd:kmaVersion");
237*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
238*12720SWyllys.Ingersoll@Sun.COM 	}
239*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__duration:
240*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
241*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_xsd__duration(soap, NULL, NULL, "xsd:duration");
242*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
243*12720SWyllys.Ingersoll@Sun.COM 	}
244*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__dateTime:
245*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
246*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_xsd__dateTime(soap, NULL, NULL, "xsd:dateTime");
247*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
248*12720SWyllys.Ingersoll@Sun.COM 	}
249*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__string:
250*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
251*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_xsd__string(soap, NULL, NULL, "xsd:string");
252*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
253*12720SWyllys.Ingersoll@Sun.COM 	}
254*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery__QName:
255*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
256*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in__QName(soap, NULL, NULL, "xsd:QName");
257*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
258*12720SWyllys.Ingersoll@Sun.COM 	}
259*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_string:
260*12720SWyllys.Ingersoll@Sun.COM 	{	char **s;
261*12720SWyllys.Ingersoll@Sun.COM 		s = soap_in_string(soap, NULL, NULL, "xsd:string");
262*12720SWyllys.Ingersoll@Sun.COM 		return s ? *s : NULL;
263*12720SWyllys.Ingersoll@Sun.COM 	}
264*12720SWyllys.Ingersoll@Sun.COM 	default:
265*12720SWyllys.Ingersoll@Sun.COM 	{	const char *t = soap->type;
266*12720SWyllys.Ingersoll@Sun.COM 		if (!*t)
267*12720SWyllys.Ingersoll@Sun.COM 			t = soap->tag;
268*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:byte"))
269*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_byte;
270*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_byte(soap, NULL, NULL, NULL);
271*12720SWyllys.Ingersoll@Sun.COM 		}
272*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:int"))
273*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_int;
274*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_int(soap, NULL, NULL, NULL);
275*12720SWyllys.Ingersoll@Sun.COM 		}
276*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:int"))
277*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_xsd__int;
278*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_xsd__int(soap, NULL, NULL, NULL);
279*12720SWyllys.Ingersoll@Sun.COM 		}
280*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:long"))
281*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_long;
282*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_long(soap, NULL, NULL, NULL);
283*12720SWyllys.Ingersoll@Sun.COM 		}
284*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:long"))
285*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_xsd__long;
286*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_xsd__long(soap, NULL, NULL, NULL);
287*12720SWyllys.Ingersoll@Sun.COM 		}
288*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:long"))
289*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_LONG64;
290*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_LONG64(soap, NULL, NULL, NULL);
291*12720SWyllys.Ingersoll@Sun.COM 		}
292*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:float"))
293*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_xsd__float;
294*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_xsd__float(soap, NULL, NULL, NULL);
295*12720SWyllys.Ingersoll@Sun.COM 		}
296*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:float"))
297*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_float;
298*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_float(soap, NULL, NULL, NULL);
299*12720SWyllys.Ingersoll@Sun.COM 		}
300*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:unsignedByte"))
301*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_unsignedByte;
302*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_unsignedByte(soap, NULL, NULL, NULL);
303*12720SWyllys.Ingersoll@Sun.COM 		}
304*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:unsignedInt"))
305*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_unsignedInt;
306*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_unsignedInt(soap, NULL, NULL, NULL);
307*12720SWyllys.Ingersoll@Sun.COM 		}
308*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:boolean"))
309*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_xsd__boolean;
310*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_xsd__boolean(soap, NULL, NULL, NULL);
311*12720SWyllys.Ingersoll@Sun.COM 		}
312*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:boolean"))
313*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_bool;
314*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_bool(soap, NULL, NULL, NULL);
315*12720SWyllys.Ingersoll@Sun.COM 		}
316*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "KMS-Discovery:DiscoverCluster"))
317*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster;
318*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_KMS_Discovery__DiscoverCluster(soap, NULL, NULL, NULL);
319*12720SWyllys.Ingersoll@Sun.COM 		}
320*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "KMS-Discovery:DiscoverClusterResponse"))
321*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse;
322*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_KMS_Discovery__DiscoverClusterResponse(soap, NULL, NULL, NULL);
323*12720SWyllys.Ingersoll@Sun.COM 		}
324*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "KMS-Discovery:ArrayOfClusterMembers"))
325*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers;
326*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_KMS_Discovery__ArrayOfClusterMembers(soap, NULL, NULL, NULL);
327*12720SWyllys.Ingersoll@Sun.COM 		}
328*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "KMS-Discovery-ClusterMember"))
329*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember;
330*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_KMS_Discovery_ClusterMember(soap, NULL, NULL, NULL);
331*12720SWyllys.Ingersoll@Sun.COM 		}
332*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:hexBinary"))
333*12720SWyllys.Ingersoll@Sun.COM 		{	*type = SOAP_TYPE_KMS_Discovery_xsd__hexBinary;
334*12720SWyllys.Ingersoll@Sun.COM 			return soap_in_xsd__hexBinary(soap, NULL, NULL, NULL);
335*12720SWyllys.Ingersoll@Sun.COM 		}
336*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:networkAddress"))
337*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
338*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_xsd__networkAddress;
339*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_xsd__networkAddress(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:kmaVersion"))
343*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
344*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_xsd__kmaVersion;
345*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_xsd__kmaVersion(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:duration"))
349*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
350*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_xsd__duration;
351*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_xsd__duration(soap, NULL, NULL, NULL);
352*12720SWyllys.Ingersoll@Sun.COM 			return s ? *s : NULL;
353*12720SWyllys.Ingersoll@Sun.COM 		}
354*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:dateTime"))
355*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
356*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_xsd__dateTime;
357*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_xsd__dateTime(soap, NULL, NULL, NULL);
358*12720SWyllys.Ingersoll@Sun.COM 			return s ? *s : NULL;
359*12720SWyllys.Ingersoll@Sun.COM 		}
360*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:string"))
361*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
362*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_xsd__string;
363*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_xsd__string(soap, NULL, NULL, NULL);
364*12720SWyllys.Ingersoll@Sun.COM 			return s ? *s : NULL;
365*12720SWyllys.Ingersoll@Sun.COM 		}
366*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:QName"))
367*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
368*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery__QName;
369*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in__QName(soap, NULL, NULL, NULL);
370*12720SWyllys.Ingersoll@Sun.COM 			return s ? *s : NULL;
371*12720SWyllys.Ingersoll@Sun.COM 		}
372*12720SWyllys.Ingersoll@Sun.COM 		if (!soap_match_tag(soap, t, "xsd:string"))
373*12720SWyllys.Ingersoll@Sun.COM 		{	char **s;
374*12720SWyllys.Ingersoll@Sun.COM 			*type = SOAP_TYPE_KMS_Discovery_string;
375*12720SWyllys.Ingersoll@Sun.COM 			s = soap_in_string(soap, NULL, NULL, NULL);
376*12720SWyllys.Ingersoll@Sun.COM 			return s ? *s : NULL;
377*12720SWyllys.Ingersoll@Sun.COM 		}
378*12720SWyllys.Ingersoll@Sun.COM 		t = soap->tag;
379*12720SWyllys.Ingersoll@Sun.COM 	}
380*12720SWyllys.Ingersoll@Sun.COM 	}
381*12720SWyllys.Ingersoll@Sun.COM 	soap->error = SOAP_TAG_MISMATCH;
382*12720SWyllys.Ingersoll@Sun.COM 	return NULL;
383*12720SWyllys.Ingersoll@Sun.COM }
384*12720SWyllys.Ingersoll@Sun.COM #endif
385*12720SWyllys.Ingersoll@Sun.COM 
soap_ignore_element(struct soap * soap)386*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_ignore_element(struct soap *soap)
387*12720SWyllys.Ingersoll@Sun.COM {
388*12720SWyllys.Ingersoll@Sun.COM 	if (!soap_peek_element(soap))
389*12720SWyllys.Ingersoll@Sun.COM 	{	int t;
390*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Unexpected element '%s' in input (level=%u, %d)\n", soap->tag, soap->level, soap->body));
391*12720SWyllys.Ingersoll@Sun.COM 		if (soap->mustUnderstand && !soap->other)
392*12720SWyllys.Ingersoll@Sun.COM 			return soap->error = SOAP_MUSTUNDERSTAND;
393*12720SWyllys.Ingersoll@Sun.COM 		if (((soap->mode & SOAP_XML_STRICT) && soap->part != SOAP_IN_HEADER) || !soap_match_tag(soap, soap->tag, "SOAP-ENV:"))
394*12720SWyllys.Ingersoll@Sun.COM 		{	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "REJECTING element '%s'\n", soap->tag));
395*12720SWyllys.Ingersoll@Sun.COM 			return soap->error = SOAP_TAG_MISMATCH;
396*12720SWyllys.Ingersoll@Sun.COM 		}
397*12720SWyllys.Ingersoll@Sun.COM 		if (!*soap->id || !soap_getelement(soap, &t))
398*12720SWyllys.Ingersoll@Sun.COM 		{	soap->peeked = 0;
399*12720SWyllys.Ingersoll@Sun.COM 			if (soap->fignore)
400*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap->fignore(soap, soap->tag);
401*12720SWyllys.Ingersoll@Sun.COM 			else
402*12720SWyllys.Ingersoll@Sun.COM 				soap->error = SOAP_OK;
403*12720SWyllys.Ingersoll@Sun.COM 			DBGLOG(TEST, if (!soap->error) SOAP_MESSAGE(fdebug, "IGNORING element '%s'\n", soap->tag));
404*12720SWyllys.Ingersoll@Sun.COM 			if (!soap->error && soap->body)
405*12720SWyllys.Ingersoll@Sun.COM 			{	soap->level++;
406*12720SWyllys.Ingersoll@Sun.COM 				while (!soap_ignore_element(soap))
407*12720SWyllys.Ingersoll@Sun.COM 					;
408*12720SWyllys.Ingersoll@Sun.COM 				if (soap->error == SOAP_NO_TAG)
409*12720SWyllys.Ingersoll@Sun.COM 					soap->error = soap_element_end_in(soap, NULL);
410*12720SWyllys.Ingersoll@Sun.COM 			}
411*12720SWyllys.Ingersoll@Sun.COM 		}
412*12720SWyllys.Ingersoll@Sun.COM 	}
413*12720SWyllys.Ingersoll@Sun.COM 	return soap->error;
414*12720SWyllys.Ingersoll@Sun.COM }
415*12720SWyllys.Ingersoll@Sun.COM 
416*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOIDREF
soap_putindependent(struct soap * soap)417*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_putindependent(struct soap *soap)
418*12720SWyllys.Ingersoll@Sun.COM {
419*12720SWyllys.Ingersoll@Sun.COM 	int i;
420*12720SWyllys.Ingersoll@Sun.COM 	struct soap_plist *pp;
421*12720SWyllys.Ingersoll@Sun.COM 	if (soap->version == 1 && soap->encodingStyle && !(soap->mode & (SOAP_XML_TREE | SOAP_XML_GRAPH)))
422*12720SWyllys.Ingersoll@Sun.COM 		for (i = 0; i < SOAP_PTRHASH; i++)
423*12720SWyllys.Ingersoll@Sun.COM 			for (pp = soap->pht[i]; pp; pp = pp->next)
424*12720SWyllys.Ingersoll@Sun.COM 				if (pp->mark1 == 2 || pp->mark2 == 2)
425*12720SWyllys.Ingersoll@Sun.COM 					if (soap_putelement(soap, pp->ptr, "id", pp->id, pp->type))
426*12720SWyllys.Ingersoll@Sun.COM 						return soap->error;
427*12720SWyllys.Ingersoll@Sun.COM 	return SOAP_OK;
428*12720SWyllys.Ingersoll@Sun.COM }
429*12720SWyllys.Ingersoll@Sun.COM #endif
430*12720SWyllys.Ingersoll@Sun.COM 
431*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOIDREF
soap_putelement(struct soap * soap,const void * ptr,const char * tag,int id,int type)432*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_putelement(struct soap *soap, const void *ptr, const char *tag, int id, int type)
433*12720SWyllys.Ingersoll@Sun.COM {
434*12720SWyllys.Ingersoll@Sun.COM 	switch (type)
435*12720SWyllys.Ingersoll@Sun.COM 	{
436*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_byte:
437*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_byte(soap, tag, id, (const char *)ptr, "xsd:byte");
438*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_int:
439*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
440*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__int:
441*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_xsd__int(soap, tag, id, (const long *)ptr, "xsd:int");
442*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_long:
443*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_long(soap, tag, id, (const long *)ptr, "xsd:long");
444*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__long:
445*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_xsd__long(soap, tag, id, (const LONG64 *)ptr, "xsd:long");
446*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_LONG64:
447*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_LONG64(soap, tag, id, (const LONG64 *)ptr, "xsd:long");
448*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__float:
449*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_xsd__float(soap, tag, id, (const float *)ptr, "xsd:float");
450*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_float:
451*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_float(soap, tag, id, (const float *)ptr, "xsd:float");
452*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_unsignedByte:
453*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_unsignedByte(soap, tag, id, (const unsigned char *)ptr, "xsd:unsignedByte");
454*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_unsignedInt:
455*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_unsignedInt(soap, tag, id, (const unsigned int *)ptr, "xsd:unsignedInt");
456*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__boolean:
457*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_xsd__boolean(soap, tag, id, (const bool *)ptr, "xsd:boolean");
458*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_bool:
459*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_bool(soap, tag, id, (const bool *)ptr, "xsd:boolean");
460*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster:
461*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_KMS_Discovery__DiscoverCluster(soap, tag, id, (const struct KMS_Discovery__DiscoverCluster *)ptr, "KMS-Discovery:DiscoverCluster");
462*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse:
463*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_KMS_Discovery__DiscoverClusterResponse(soap, tag, id, (const struct KMS_Discovery__DiscoverClusterResponse *)ptr, "KMS-Discovery:DiscoverClusterResponse");
464*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers:
465*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_KMS_Discovery__ArrayOfClusterMembers(soap, tag, id, (const struct KMS_Discovery__ArrayOfClusterMembers *)ptr, "KMS-Discovery:ArrayOfClusterMembers");
466*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember:
467*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_KMS_Discovery_ClusterMember(soap, tag, id, (const struct KMS_Discovery_ClusterMember *)ptr, "KMS-Discovery-ClusterMember");
468*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__hexBinary:
469*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_xsd__hexBinary(soap, tag, id, (const struct xsd__hexBinary *)ptr, "xsd:hexBinary");
470*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_PointerToKMS_Discovery_ClusterMember:
471*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_PointerToKMS_Discovery_ClusterMember(soap, tag, id, (struct KMS_Discovery_ClusterMember *const*)ptr, "KMS-Discovery-ClusterMember");
472*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_PointerTounsignedByte:
473*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_PointerTounsignedByte(soap, tag, id, (unsigned char *const*)ptr, "xsd:unsignedByte");
474*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__networkAddress:
475*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:networkAddress");
476*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__kmaVersion:
477*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:kmaVersion");
478*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__duration:
479*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:duration");
480*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__dateTime:
481*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:dateTime");
482*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__string:
483*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string");
484*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery__QName:
485*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:QName");
486*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_string:
487*12720SWyllys.Ingersoll@Sun.COM 		return soap_out_string(soap, tag, id, (char*const*)&ptr, "xsd:string");
488*12720SWyllys.Ingersoll@Sun.COM 	}
489*12720SWyllys.Ingersoll@Sun.COM 	return SOAP_OK;
490*12720SWyllys.Ingersoll@Sun.COM }
491*12720SWyllys.Ingersoll@Sun.COM #endif
492*12720SWyllys.Ingersoll@Sun.COM 
493*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOIDREF
soap_markelement(struct soap * soap,const void * ptr,int type)494*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_markelement(struct soap *soap, const void *ptr, int type)
495*12720SWyllys.Ingersoll@Sun.COM {
496*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)ptr; (void)type; /* appease -Wall -Werror */
497*12720SWyllys.Ingersoll@Sun.COM 	switch (type)
498*12720SWyllys.Ingersoll@Sun.COM 	{
499*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster:
500*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_KMS_Discovery__DiscoverCluster(soap, (const struct KMS_Discovery__DiscoverCluster *)ptr);
501*12720SWyllys.Ingersoll@Sun.COM 		break;
502*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse:
503*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_KMS_Discovery__DiscoverClusterResponse(soap, (const struct KMS_Discovery__DiscoverClusterResponse *)ptr);
504*12720SWyllys.Ingersoll@Sun.COM 		break;
505*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers:
506*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_KMS_Discovery__ArrayOfClusterMembers(soap, (const struct KMS_Discovery__ArrayOfClusterMembers *)ptr);
507*12720SWyllys.Ingersoll@Sun.COM 		break;
508*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember:
509*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_KMS_Discovery_ClusterMember(soap, (const struct KMS_Discovery_ClusterMember *)ptr);
510*12720SWyllys.Ingersoll@Sun.COM 		break;
511*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__hexBinary:
512*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_xsd__hexBinary(soap, (const struct xsd__hexBinary *)ptr);
513*12720SWyllys.Ingersoll@Sun.COM 		break;
514*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_PointerToKMS_Discovery_ClusterMember:
515*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_PointerToKMS_Discovery_ClusterMember(soap, (struct KMS_Discovery_ClusterMember *const*)ptr);
516*12720SWyllys.Ingersoll@Sun.COM 		break;
517*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_PointerTounsignedByte:
518*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_PointerTounsignedByte(soap, (unsigned char *const*)ptr);
519*12720SWyllys.Ingersoll@Sun.COM 		break;
520*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__networkAddress:
521*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
522*12720SWyllys.Ingersoll@Sun.COM 		break;
523*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__kmaVersion:
524*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
525*12720SWyllys.Ingersoll@Sun.COM 		break;
526*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__duration:
527*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
528*12720SWyllys.Ingersoll@Sun.COM 		break;
529*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__dateTime:
530*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
531*12720SWyllys.Ingersoll@Sun.COM 		break;
532*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__string:
533*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
534*12720SWyllys.Ingersoll@Sun.COM 		break;
535*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery__QName:
536*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
537*12720SWyllys.Ingersoll@Sun.COM 		break;
538*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_string:
539*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_string(soap, (char*const*)&ptr);
540*12720SWyllys.Ingersoll@Sun.COM 		break;
541*12720SWyllys.Ingersoll@Sun.COM 	}
542*12720SWyllys.Ingersoll@Sun.COM }
543*12720SWyllys.Ingersoll@Sun.COM #endif
544*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate(struct soap * soap,int t,const char * type,const char * arrayType,size_t * n)545*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)
546*12720SWyllys.Ingersoll@Sun.COM {
547*12720SWyllys.Ingersoll@Sun.COM 	switch (t)
548*12720SWyllys.Ingersoll@Sun.COM 	{
549*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__hexBinary:
550*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_xsd__hexBinary(soap, -1, type, arrayType, n);
551*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember:
552*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_KMS_Discovery_ClusterMember(soap, -1, type, arrayType, n);
553*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers:
554*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_KMS_Discovery__ArrayOfClusterMembers(soap, -1, type, arrayType, n);
555*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse:
556*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_KMS_Discovery__DiscoverClusterResponse(soap, -1, type, arrayType, n);
557*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster:
558*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_KMS_Discovery__DiscoverCluster(soap, -1, type, arrayType, n);
559*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
560*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header:
561*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_SOAP_ENV__Header(soap, -1, type, arrayType, n);
562*12720SWyllys.Ingersoll@Sun.COM #endif
563*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
564*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code:
565*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_SOAP_ENV__Code(soap, -1, type, arrayType, n);
566*12720SWyllys.Ingersoll@Sun.COM #endif
567*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
568*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail:
569*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_SOAP_ENV__Detail(soap, -1, type, arrayType, n);
570*12720SWyllys.Ingersoll@Sun.COM #endif
571*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
572*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason:
573*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_SOAP_ENV__Reason(soap, -1, type, arrayType, n);
574*12720SWyllys.Ingersoll@Sun.COM #endif
575*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
576*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault:
577*12720SWyllys.Ingersoll@Sun.COM 		return (void*)soap_instantiate_SOAP_ENV__Fault(soap, -1, type, arrayType, n);
578*12720SWyllys.Ingersoll@Sun.COM #endif
579*12720SWyllys.Ingersoll@Sun.COM 	}
580*12720SWyllys.Ingersoll@Sun.COM 	return NULL;
581*12720SWyllys.Ingersoll@Sun.COM }
582*12720SWyllys.Ingersoll@Sun.COM 
soap_fdelete(struct soap_clist * p)583*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_fdelete(struct soap_clist *p)
584*12720SWyllys.Ingersoll@Sun.COM {	switch (p->type)
585*12720SWyllys.Ingersoll@Sun.COM 	{
586*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_xsd__hexBinary:
587*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
588*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct xsd__hexBinary*)p->ptr);
589*12720SWyllys.Ingersoll@Sun.COM 		else
590*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct xsd__hexBinary*)p->ptr);
591*12720SWyllys.Ingersoll@Sun.COM 		break;
592*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember:
593*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
594*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct KMS_Discovery_ClusterMember*)p->ptr);
595*12720SWyllys.Ingersoll@Sun.COM 		else
596*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct KMS_Discovery_ClusterMember*)p->ptr);
597*12720SWyllys.Ingersoll@Sun.COM 		break;
598*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers:
599*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
600*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct KMS_Discovery__ArrayOfClusterMembers*)p->ptr);
601*12720SWyllys.Ingersoll@Sun.COM 		else
602*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct KMS_Discovery__ArrayOfClusterMembers*)p->ptr);
603*12720SWyllys.Ingersoll@Sun.COM 		break;
604*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse:
605*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
606*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct KMS_Discovery__DiscoverClusterResponse*)p->ptr);
607*12720SWyllys.Ingersoll@Sun.COM 		else
608*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct KMS_Discovery__DiscoverClusterResponse*)p->ptr);
609*12720SWyllys.Ingersoll@Sun.COM 		break;
610*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster:
611*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
612*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct KMS_Discovery__DiscoverCluster*)p->ptr);
613*12720SWyllys.Ingersoll@Sun.COM 		else
614*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct KMS_Discovery__DiscoverCluster*)p->ptr);
615*12720SWyllys.Ingersoll@Sun.COM 		break;
616*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header:
617*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
618*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct SOAP_ENV__Header*)p->ptr);
619*12720SWyllys.Ingersoll@Sun.COM 		else
620*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct SOAP_ENV__Header*)p->ptr);
621*12720SWyllys.Ingersoll@Sun.COM 		break;
622*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code:
623*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
624*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct SOAP_ENV__Code*)p->ptr);
625*12720SWyllys.Ingersoll@Sun.COM 		else
626*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct SOAP_ENV__Code*)p->ptr);
627*12720SWyllys.Ingersoll@Sun.COM 		break;
628*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail:
629*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
630*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct SOAP_ENV__Detail*)p->ptr);
631*12720SWyllys.Ingersoll@Sun.COM 		else
632*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct SOAP_ENV__Detail*)p->ptr);
633*12720SWyllys.Ingersoll@Sun.COM 		break;
634*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason:
635*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
636*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct SOAP_ENV__Reason*)p->ptr);
637*12720SWyllys.Ingersoll@Sun.COM 		else
638*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct SOAP_ENV__Reason*)p->ptr);
639*12720SWyllys.Ingersoll@Sun.COM 		break;
640*12720SWyllys.Ingersoll@Sun.COM 	case SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault:
641*12720SWyllys.Ingersoll@Sun.COM 		if (p->size < 0)
642*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE((struct SOAP_ENV__Fault*)p->ptr);
643*12720SWyllys.Ingersoll@Sun.COM 		else
644*12720SWyllys.Ingersoll@Sun.COM 			SOAP_DELETE_ARRAY((struct SOAP_ENV__Fault*)p->ptr);
645*12720SWyllys.Ingersoll@Sun.COM 		break;
646*12720SWyllys.Ingersoll@Sun.COM 	default:	return SOAP_ERR;
647*12720SWyllys.Ingersoll@Sun.COM 	}
648*12720SWyllys.Ingersoll@Sun.COM 	return SOAP_OK;
649*12720SWyllys.Ingersoll@Sun.COM }
650*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)651*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)
652*12720SWyllys.Ingersoll@Sun.COM {	return soap_id_enter(soap, id, p, t, n, 0, type, arrayType, soap_instantiate);
653*12720SWyllys.Ingersoll@Sun.COM }
654*12720SWyllys.Ingersoll@Sun.COM 
soap_default_byte(struct soap * soap,char * a)655*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_byte(struct soap *soap, char *a)
656*12720SWyllys.Ingersoll@Sun.COM {
657*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
658*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_byte
659*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_byte;
660*12720SWyllys.Ingersoll@Sun.COM #else
661*12720SWyllys.Ingersoll@Sun.COM 	*a = (char)0;
662*12720SWyllys.Ingersoll@Sun.COM #endif
663*12720SWyllys.Ingersoll@Sun.COM }
664*12720SWyllys.Ingersoll@Sun.COM 
soap_out_byte(struct soap * soap,const char * tag,int id,const char * a,const char * type)665*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)
666*12720SWyllys.Ingersoll@Sun.COM {
667*12720SWyllys.Ingersoll@Sun.COM 	return soap_outbyte(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_byte);
668*12720SWyllys.Ingersoll@Sun.COM }
669*12720SWyllys.Ingersoll@Sun.COM 
soap_in_byte(struct soap * soap,const char * tag,char * a,const char * type)670*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * SOAP_FMAC4 soap_in_byte(struct soap *soap, const char *tag, char *a, const char *type)
671*12720SWyllys.Ingersoll@Sun.COM {	char *p;
672*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inbyte(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_byte);
673*12720SWyllys.Ingersoll@Sun.COM 	return p;
674*12720SWyllys.Ingersoll@Sun.COM }
675*12720SWyllys.Ingersoll@Sun.COM 
soap_put_byte(struct soap * soap,const char * a,const char * tag,const char * type)676*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_byte(struct soap *soap, const char *a, const char *tag, const char *type)
677*12720SWyllys.Ingersoll@Sun.COM {
678*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_byte);
679*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_byte(soap, tag?tag:"byte", id, a, type))
680*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
681*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
682*12720SWyllys.Ingersoll@Sun.COM }
683*12720SWyllys.Ingersoll@Sun.COM 
soap_get_byte(struct soap * soap,char * p,const char * tag,const char * type)684*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * SOAP_FMAC4 soap_get_byte(struct soap *soap, char *p, const char *tag, const char *type)
685*12720SWyllys.Ingersoll@Sun.COM {
686*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_byte(soap, tag, p, type)))
687*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
688*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
689*12720SWyllys.Ingersoll@Sun.COM 	return p;
690*12720SWyllys.Ingersoll@Sun.COM }
691*12720SWyllys.Ingersoll@Sun.COM 
soap_default_int(struct soap * soap,int * a)692*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_int(struct soap *soap, int *a)
693*12720SWyllys.Ingersoll@Sun.COM {
694*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
695*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_int
696*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_int;
697*12720SWyllys.Ingersoll@Sun.COM #else
698*12720SWyllys.Ingersoll@Sun.COM 	*a = (int)0;
699*12720SWyllys.Ingersoll@Sun.COM #endif
700*12720SWyllys.Ingersoll@Sun.COM }
701*12720SWyllys.Ingersoll@Sun.COM 
soap_out_int(struct soap * soap,const char * tag,int id,const int * a,const char * type)702*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)
703*12720SWyllys.Ingersoll@Sun.COM {
704*12720SWyllys.Ingersoll@Sun.COM 	return soap_outint(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_int);
705*12720SWyllys.Ingersoll@Sun.COM }
706*12720SWyllys.Ingersoll@Sun.COM 
soap_in_int(struct soap * soap,const char * tag,int * a,const char * type)707*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int * SOAP_FMAC4 soap_in_int(struct soap *soap, const char *tag, int *a, const char *type)
708*12720SWyllys.Ingersoll@Sun.COM {	int *p;
709*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inint(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_int);
710*12720SWyllys.Ingersoll@Sun.COM 	return p;
711*12720SWyllys.Ingersoll@Sun.COM }
712*12720SWyllys.Ingersoll@Sun.COM 
soap_put_int(struct soap * soap,const int * a,const char * tag,const char * type)713*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_int(struct soap *soap, const int *a, const char *tag, const char *type)
714*12720SWyllys.Ingersoll@Sun.COM {
715*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_int);
716*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_int(soap, tag?tag:"int", id, a, type))
717*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
718*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
719*12720SWyllys.Ingersoll@Sun.COM }
720*12720SWyllys.Ingersoll@Sun.COM 
soap_get_int(struct soap * soap,int * p,const char * tag,const char * type)721*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int * SOAP_FMAC4 soap_get_int(struct soap *soap, int *p, const char *tag, const char *type)
722*12720SWyllys.Ingersoll@Sun.COM {
723*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_int(soap, tag, p, type)))
724*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
725*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
726*12720SWyllys.Ingersoll@Sun.COM 	return p;
727*12720SWyllys.Ingersoll@Sun.COM }
728*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__int(struct soap * soap,const char * tag,int id,const long * a,const char * type)729*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)
730*12720SWyllys.Ingersoll@Sun.COM {
731*12720SWyllys.Ingersoll@Sun.COM 	return soap_outlong(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__int);
732*12720SWyllys.Ingersoll@Sun.COM }
733*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__int(struct soap * soap,const char * tag,long * a,const char * type)734*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 long * SOAP_FMAC4 soap_in_xsd__int(struct soap *soap, const char *tag, long *a, const char *type)
735*12720SWyllys.Ingersoll@Sun.COM {	long *p;
736*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inlong(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__int);
737*12720SWyllys.Ingersoll@Sun.COM 	return p;
738*12720SWyllys.Ingersoll@Sun.COM }
739*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__int(struct soap * soap,const long * a,const char * tag,const char * type)740*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)
741*12720SWyllys.Ingersoll@Sun.COM {
742*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__int);
743*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__int(soap, tag?tag:"xsd:int", id, a, type))
744*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
745*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
746*12720SWyllys.Ingersoll@Sun.COM }
747*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__int(struct soap * soap,long * p,const char * tag,const char * type)748*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 long * SOAP_FMAC4 soap_get_xsd__int(struct soap *soap, long *p, const char *tag, const char *type)
749*12720SWyllys.Ingersoll@Sun.COM {
750*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__int(soap, tag, p, type)))
751*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
752*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
753*12720SWyllys.Ingersoll@Sun.COM 	return p;
754*12720SWyllys.Ingersoll@Sun.COM }
755*12720SWyllys.Ingersoll@Sun.COM 
soap_default_long(struct soap * soap,long * a)756*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_long(struct soap *soap, long *a)
757*12720SWyllys.Ingersoll@Sun.COM {
758*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
759*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_long
760*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_long;
761*12720SWyllys.Ingersoll@Sun.COM #else
762*12720SWyllys.Ingersoll@Sun.COM 	*a = (long)0;
763*12720SWyllys.Ingersoll@Sun.COM #endif
764*12720SWyllys.Ingersoll@Sun.COM }
765*12720SWyllys.Ingersoll@Sun.COM 
soap_out_long(struct soap * soap,const char * tag,int id,const long * a,const char * type)766*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)
767*12720SWyllys.Ingersoll@Sun.COM {
768*12720SWyllys.Ingersoll@Sun.COM 	return soap_outlong(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_long);
769*12720SWyllys.Ingersoll@Sun.COM }
770*12720SWyllys.Ingersoll@Sun.COM 
soap_in_long(struct soap * soap,const char * tag,long * a,const char * type)771*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 long * SOAP_FMAC4 soap_in_long(struct soap *soap, const char *tag, long *a, const char *type)
772*12720SWyllys.Ingersoll@Sun.COM {	long *p;
773*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inlong(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_long);
774*12720SWyllys.Ingersoll@Sun.COM 	return p;
775*12720SWyllys.Ingersoll@Sun.COM }
776*12720SWyllys.Ingersoll@Sun.COM 
soap_put_long(struct soap * soap,const long * a,const char * tag,const char * type)777*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_long(struct soap *soap, const long *a, const char *tag, const char *type)
778*12720SWyllys.Ingersoll@Sun.COM {
779*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_long);
780*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_long(soap, tag?tag:"long", id, a, type))
781*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
782*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
783*12720SWyllys.Ingersoll@Sun.COM }
784*12720SWyllys.Ingersoll@Sun.COM 
soap_get_long(struct soap * soap,long * p,const char * tag,const char * type)785*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 long * SOAP_FMAC4 soap_get_long(struct soap *soap, long *p, const char *tag, const char *type)
786*12720SWyllys.Ingersoll@Sun.COM {
787*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_long(soap, tag, p, type)))
788*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
789*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
790*12720SWyllys.Ingersoll@Sun.COM 	return p;
791*12720SWyllys.Ingersoll@Sun.COM }
792*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__long(struct soap * soap,const char * tag,int id,const LONG64 * a,const char * type)793*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)
794*12720SWyllys.Ingersoll@Sun.COM {
795*12720SWyllys.Ingersoll@Sun.COM 	return soap_outLONG64(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__long);
796*12720SWyllys.Ingersoll@Sun.COM }
797*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__long(struct soap * soap,const char * tag,LONG64 * a,const char * type)798*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_in_xsd__long(struct soap *soap, const char *tag, LONG64 *a, const char *type)
799*12720SWyllys.Ingersoll@Sun.COM {	LONG64 *p;
800*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inLONG64(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__long);
801*12720SWyllys.Ingersoll@Sun.COM 	return p;
802*12720SWyllys.Ingersoll@Sun.COM }
803*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__long(struct soap * soap,const LONG64 * a,const char * tag,const char * type)804*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)
805*12720SWyllys.Ingersoll@Sun.COM {
806*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__long);
807*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__long(soap, tag?tag:"xsd:long", id, a, type))
808*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
809*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
810*12720SWyllys.Ingersoll@Sun.COM }
811*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__long(struct soap * soap,LONG64 * p,const char * tag,const char * type)812*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_get_xsd__long(struct soap *soap, LONG64 *p, const char *tag, const char *type)
813*12720SWyllys.Ingersoll@Sun.COM {
814*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__long(soap, tag, p, type)))
815*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
816*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
817*12720SWyllys.Ingersoll@Sun.COM 	return p;
818*12720SWyllys.Ingersoll@Sun.COM }
819*12720SWyllys.Ingersoll@Sun.COM 
soap_default_LONG64(struct soap * soap,LONG64 * a)820*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_LONG64(struct soap *soap, LONG64 *a)
821*12720SWyllys.Ingersoll@Sun.COM {
822*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
823*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_LONG64
824*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_LONG64;
825*12720SWyllys.Ingersoll@Sun.COM #else
826*12720SWyllys.Ingersoll@Sun.COM 	*a = (LONG64)0;
827*12720SWyllys.Ingersoll@Sun.COM #endif
828*12720SWyllys.Ingersoll@Sun.COM }
829*12720SWyllys.Ingersoll@Sun.COM 
soap_out_LONG64(struct soap * soap,const char * tag,int id,const LONG64 * a,const char * type)830*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)
831*12720SWyllys.Ingersoll@Sun.COM {
832*12720SWyllys.Ingersoll@Sun.COM 	return soap_outLONG64(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_LONG64);
833*12720SWyllys.Ingersoll@Sun.COM }
834*12720SWyllys.Ingersoll@Sun.COM 
soap_in_LONG64(struct soap * soap,const char * tag,LONG64 * a,const char * type)835*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_in_LONG64(struct soap *soap, const char *tag, LONG64 *a, const char *type)
836*12720SWyllys.Ingersoll@Sun.COM {	LONG64 *p;
837*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inLONG64(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_LONG64);
838*12720SWyllys.Ingersoll@Sun.COM 	return p;
839*12720SWyllys.Ingersoll@Sun.COM }
840*12720SWyllys.Ingersoll@Sun.COM 
soap_put_LONG64(struct soap * soap,const LONG64 * a,const char * tag,const char * type)841*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_LONG64(struct soap *soap, const LONG64 *a, const char *tag, const char *type)
842*12720SWyllys.Ingersoll@Sun.COM {
843*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_LONG64);
844*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_LONG64(soap, tag?tag:"long", id, a, type))
845*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
846*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
847*12720SWyllys.Ingersoll@Sun.COM }
848*12720SWyllys.Ingersoll@Sun.COM 
soap_get_LONG64(struct soap * soap,LONG64 * p,const char * tag,const char * type)849*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 LONG64 * SOAP_FMAC4 soap_get_LONG64(struct soap *soap, LONG64 *p, const char *tag, const char *type)
850*12720SWyllys.Ingersoll@Sun.COM {
851*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_LONG64(soap, tag, p, type)))
852*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
853*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
854*12720SWyllys.Ingersoll@Sun.COM 	return p;
855*12720SWyllys.Ingersoll@Sun.COM }
856*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__float(struct soap * soap,const char * tag,int id,const float * a,const char * type)857*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)
858*12720SWyllys.Ingersoll@Sun.COM {
859*12720SWyllys.Ingersoll@Sun.COM 	return soap_outfloat(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__float);
860*12720SWyllys.Ingersoll@Sun.COM }
861*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__float(struct soap * soap,const char * tag,float * a,const char * type)862*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 float * SOAP_FMAC4 soap_in_xsd__float(struct soap *soap, const char *tag, float *a, const char *type)
863*12720SWyllys.Ingersoll@Sun.COM {	float *p;
864*12720SWyllys.Ingersoll@Sun.COM 	p = soap_infloat(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__float);
865*12720SWyllys.Ingersoll@Sun.COM 	return p;
866*12720SWyllys.Ingersoll@Sun.COM }
867*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__float(struct soap * soap,const float * a,const char * tag,const char * type)868*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)
869*12720SWyllys.Ingersoll@Sun.COM {
870*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__float);
871*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__float(soap, tag?tag:"xsd:float", id, a, type))
872*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
873*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
874*12720SWyllys.Ingersoll@Sun.COM }
875*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__float(struct soap * soap,float * p,const char * tag,const char * type)876*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 float * SOAP_FMAC4 soap_get_xsd__float(struct soap *soap, float *p, const char *tag, const char *type)
877*12720SWyllys.Ingersoll@Sun.COM {
878*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__float(soap, tag, p, type)))
879*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
880*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
881*12720SWyllys.Ingersoll@Sun.COM 	return p;
882*12720SWyllys.Ingersoll@Sun.COM }
883*12720SWyllys.Ingersoll@Sun.COM 
soap_default_float(struct soap * soap,float * a)884*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_float(struct soap *soap, float *a)
885*12720SWyllys.Ingersoll@Sun.COM {
886*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
887*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_float
888*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_float;
889*12720SWyllys.Ingersoll@Sun.COM #else
890*12720SWyllys.Ingersoll@Sun.COM 	*a = (float)0;
891*12720SWyllys.Ingersoll@Sun.COM #endif
892*12720SWyllys.Ingersoll@Sun.COM }
893*12720SWyllys.Ingersoll@Sun.COM 
soap_out_float(struct soap * soap,const char * tag,int id,const float * a,const char * type)894*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)
895*12720SWyllys.Ingersoll@Sun.COM {
896*12720SWyllys.Ingersoll@Sun.COM 	return soap_outfloat(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_float);
897*12720SWyllys.Ingersoll@Sun.COM }
898*12720SWyllys.Ingersoll@Sun.COM 
soap_in_float(struct soap * soap,const char * tag,float * a,const char * type)899*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 float * SOAP_FMAC4 soap_in_float(struct soap *soap, const char *tag, float *a, const char *type)
900*12720SWyllys.Ingersoll@Sun.COM {	float *p;
901*12720SWyllys.Ingersoll@Sun.COM 	p = soap_infloat(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_float);
902*12720SWyllys.Ingersoll@Sun.COM 	return p;
903*12720SWyllys.Ingersoll@Sun.COM }
904*12720SWyllys.Ingersoll@Sun.COM 
soap_put_float(struct soap * soap,const float * a,const char * tag,const char * type)905*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_float(struct soap *soap, const float *a, const char *tag, const char *type)
906*12720SWyllys.Ingersoll@Sun.COM {
907*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_float);
908*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_float(soap, tag?tag:"float", id, a, type))
909*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
910*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
911*12720SWyllys.Ingersoll@Sun.COM }
912*12720SWyllys.Ingersoll@Sun.COM 
soap_get_float(struct soap * soap,float * p,const char * tag,const char * type)913*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 float * SOAP_FMAC4 soap_get_float(struct soap *soap, float *p, const char *tag, const char *type)
914*12720SWyllys.Ingersoll@Sun.COM {
915*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_float(soap, tag, p, type)))
916*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
917*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
918*12720SWyllys.Ingersoll@Sun.COM 	return p;
919*12720SWyllys.Ingersoll@Sun.COM }
920*12720SWyllys.Ingersoll@Sun.COM 
soap_default_unsignedByte(struct soap * soap,unsigned char * a)921*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedByte(struct soap *soap, unsigned char *a)
922*12720SWyllys.Ingersoll@Sun.COM {
923*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
924*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_unsignedByte
925*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_unsignedByte;
926*12720SWyllys.Ingersoll@Sun.COM #else
927*12720SWyllys.Ingersoll@Sun.COM 	*a = (unsigned char)0;
928*12720SWyllys.Ingersoll@Sun.COM #endif
929*12720SWyllys.Ingersoll@Sun.COM }
930*12720SWyllys.Ingersoll@Sun.COM 
soap_out_unsignedByte(struct soap * soap,const char * tag,int id,const unsigned char * a,const char * type)931*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)
932*12720SWyllys.Ingersoll@Sun.COM {
933*12720SWyllys.Ingersoll@Sun.COM 	return soap_outunsignedByte(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_unsignedByte);
934*12720SWyllys.Ingersoll@Sun.COM }
935*12720SWyllys.Ingersoll@Sun.COM 
soap_in_unsignedByte(struct soap * soap,const char * tag,unsigned char * a,const char * type)936*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)
937*12720SWyllys.Ingersoll@Sun.COM {	unsigned char *p;
938*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inunsignedByte(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_unsignedByte);
939*12720SWyllys.Ingersoll@Sun.COM 	return p;
940*12720SWyllys.Ingersoll@Sun.COM }
941*12720SWyllys.Ingersoll@Sun.COM 
soap_put_unsignedByte(struct soap * soap,const unsigned char * a,const char * tag,const char * type)942*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)
943*12720SWyllys.Ingersoll@Sun.COM {
944*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_unsignedByte);
945*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_unsignedByte(soap, tag?tag:"unsignedByte", id, a, type))
946*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
947*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
948*12720SWyllys.Ingersoll@Sun.COM }
949*12720SWyllys.Ingersoll@Sun.COM 
soap_get_unsignedByte(struct soap * soap,unsigned char * p,const char * tag,const char * type)950*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)
951*12720SWyllys.Ingersoll@Sun.COM {
952*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_unsignedByte(soap, tag, p, type)))
953*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
954*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
955*12720SWyllys.Ingersoll@Sun.COM 	return p;
956*12720SWyllys.Ingersoll@Sun.COM }
957*12720SWyllys.Ingersoll@Sun.COM 
soap_default_unsignedInt(struct soap * soap,unsigned int * a)958*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_unsignedInt(struct soap *soap, unsigned int *a)
959*12720SWyllys.Ingersoll@Sun.COM {
960*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
961*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_unsignedInt
962*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_unsignedInt;
963*12720SWyllys.Ingersoll@Sun.COM #else
964*12720SWyllys.Ingersoll@Sun.COM 	*a = (unsigned int)0;
965*12720SWyllys.Ingersoll@Sun.COM #endif
966*12720SWyllys.Ingersoll@Sun.COM }
967*12720SWyllys.Ingersoll@Sun.COM 
soap_out_unsignedInt(struct soap * soap,const char * tag,int id,const unsigned int * a,const char * type)968*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)
969*12720SWyllys.Ingersoll@Sun.COM {
970*12720SWyllys.Ingersoll@Sun.COM 	return soap_outunsignedInt(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_unsignedInt);
971*12720SWyllys.Ingersoll@Sun.COM }
972*12720SWyllys.Ingersoll@Sun.COM 
soap_in_unsignedInt(struct soap * soap,const char * tag,unsigned int * a,const char * type)973*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)
974*12720SWyllys.Ingersoll@Sun.COM {	unsigned int *p;
975*12720SWyllys.Ingersoll@Sun.COM 	p = soap_inunsignedInt(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_unsignedInt);
976*12720SWyllys.Ingersoll@Sun.COM 	return p;
977*12720SWyllys.Ingersoll@Sun.COM }
978*12720SWyllys.Ingersoll@Sun.COM 
soap_put_unsignedInt(struct soap * soap,const unsigned int * a,const char * tag,const char * type)979*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)
980*12720SWyllys.Ingersoll@Sun.COM {
981*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_unsignedInt);
982*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_unsignedInt(soap, tag?tag:"unsignedInt", id, a, type))
983*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
984*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
985*12720SWyllys.Ingersoll@Sun.COM }
986*12720SWyllys.Ingersoll@Sun.COM 
soap_get_unsignedInt(struct soap * soap,unsigned int * p,const char * tag,const char * type)987*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)
988*12720SWyllys.Ingersoll@Sun.COM {
989*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_unsignedInt(soap, tag, p, type)))
990*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
991*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
992*12720SWyllys.Ingersoll@Sun.COM 	return p;
993*12720SWyllys.Ingersoll@Sun.COM }
994*12720SWyllys.Ingersoll@Sun.COM 
soap_xsd__boolean2s(struct soap * soap,bool n)995*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3S const char* SOAP_FMAC4S soap_xsd__boolean2s(struct soap *soap, bool n)
996*12720SWyllys.Ingersoll@Sun.COM {	return soap_bool2s(soap, n);
997*12720SWyllys.Ingersoll@Sun.COM }
998*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__boolean(struct soap * soap,const char * tag,int id,const bool * a,const char * type)999*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)
1000*12720SWyllys.Ingersoll@Sun.COM {	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_xsd__boolean), type) || soap_send(soap, soap_xsd__boolean2s(soap, *a)))
1001*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1002*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1003*12720SWyllys.Ingersoll@Sun.COM }
1004*12720SWyllys.Ingersoll@Sun.COM 
soap_s2xsd__boolean(struct soap * soap,const char * s,bool * a)1005*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3S int SOAP_FMAC4S soap_s2xsd__boolean(struct soap *soap, const char *s, bool *a)
1006*12720SWyllys.Ingersoll@Sun.COM {
1007*12720SWyllys.Ingersoll@Sun.COM 	return soap_s2bool(soap, s, a);
1008*12720SWyllys.Ingersoll@Sun.COM }
1009*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__boolean(struct soap * soap,const char * tag,bool * a,const char * type)1010*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 bool * SOAP_FMAC4 soap_in_xsd__boolean(struct soap *soap, const char *tag, bool *a, const char *type)
1011*12720SWyllys.Ingersoll@Sun.COM {
1012*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, NULL))
1013*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1014*12720SWyllys.Ingersoll@Sun.COM 	if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":boolean"))
1015*12720SWyllys.Ingersoll@Sun.COM 	{	soap->error = SOAP_TYPE;
1016*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1017*12720SWyllys.Ingersoll@Sun.COM 	}
1018*12720SWyllys.Ingersoll@Sun.COM 	a = (bool *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_xsd__boolean, sizeof(bool), 0, NULL, NULL, NULL);
1019*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1020*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1021*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1022*12720SWyllys.Ingersoll@Sun.COM 	{	if (!a || soap_s2xsd__boolean(soap, soap_value(soap), a) || soap_element_end_in(soap, tag))
1023*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1024*12720SWyllys.Ingersoll@Sun.COM 	}
1025*12720SWyllys.Ingersoll@Sun.COM 	else
1026*12720SWyllys.Ingersoll@Sun.COM 	{	a = (bool *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_xsd__boolean, 0, sizeof(bool), 0, NULL);
1027*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1028*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1029*12720SWyllys.Ingersoll@Sun.COM 	}
1030*12720SWyllys.Ingersoll@Sun.COM 	return a;
1031*12720SWyllys.Ingersoll@Sun.COM }
1032*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__boolean(struct soap * soap,const bool * a,const char * tag,const char * type)1033*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)
1034*12720SWyllys.Ingersoll@Sun.COM {
1035*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__boolean);
1036*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__boolean(soap, tag?tag:"xsd:boolean", id, a, type))
1037*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1038*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1039*12720SWyllys.Ingersoll@Sun.COM }
1040*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__boolean(struct soap * soap,bool * p,const char * tag,const char * type)1041*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 bool * SOAP_FMAC4 soap_get_xsd__boolean(struct soap *soap, bool *p, const char *tag, const char *type)
1042*12720SWyllys.Ingersoll@Sun.COM {
1043*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__boolean(soap, tag, p, type)))
1044*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1045*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1046*12720SWyllys.Ingersoll@Sun.COM 	return p;
1047*12720SWyllys.Ingersoll@Sun.COM }
1048*12720SWyllys.Ingersoll@Sun.COM 
soap_default_bool(struct soap * soap,bool * a)1049*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_bool(struct soap *soap, bool *a)
1050*12720SWyllys.Ingersoll@Sun.COM {
1051*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
1052*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_bool
1053*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_bool;
1054*12720SWyllys.Ingersoll@Sun.COM #else
1055*12720SWyllys.Ingersoll@Sun.COM 	*a = (bool)0;
1056*12720SWyllys.Ingersoll@Sun.COM #endif
1057*12720SWyllys.Ingersoll@Sun.COM }
1058*12720SWyllys.Ingersoll@Sun.COM 
1059*12720SWyllys.Ingersoll@Sun.COM static const struct soap_code_map soap_codes_bool[] =
1060*12720SWyllys.Ingersoll@Sun.COM {	{ (long)false, "false" },
1061*12720SWyllys.Ingersoll@Sun.COM 	{ (long)true, "true" },
1062*12720SWyllys.Ingersoll@Sun.COM 	{ 0, NULL }
1063*12720SWyllys.Ingersoll@Sun.COM };
1064*12720SWyllys.Ingersoll@Sun.COM 
soap_bool2s(struct soap * soap,bool n)1065*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3S const char* SOAP_FMAC4S soap_bool2s(struct soap *soap, bool n)
1066*12720SWyllys.Ingersoll@Sun.COM {
1067*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
1068*12720SWyllys.Ingersoll@Sun.COM return soap_code_str(soap_codes_bool, n!=0);
1069*12720SWyllys.Ingersoll@Sun.COM }
1070*12720SWyllys.Ingersoll@Sun.COM 
soap_out_bool(struct soap * soap,const char * tag,int id,const bool * a,const char * type)1071*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)
1072*12720SWyllys.Ingersoll@Sun.COM {	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_bool), type) || soap_send(soap, soap_bool2s(soap, *a)))
1073*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1074*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1075*12720SWyllys.Ingersoll@Sun.COM }
1076*12720SWyllys.Ingersoll@Sun.COM 
soap_s2bool(struct soap * soap,const char * s,bool * a)1077*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3S int SOAP_FMAC4S soap_s2bool(struct soap *soap, const char *s, bool *a)
1078*12720SWyllys.Ingersoll@Sun.COM {
1079*12720SWyllys.Ingersoll@Sun.COM 	const struct soap_code_map *map;
1080*12720SWyllys.Ingersoll@Sun.COM 	if (!s)
1081*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1082*12720SWyllys.Ingersoll@Sun.COM 	map = soap_code(soap_codes_bool, s);
1083*12720SWyllys.Ingersoll@Sun.COM 	if (map)
1084*12720SWyllys.Ingersoll@Sun.COM 		*a = (bool)(map->code != 0);
1085*12720SWyllys.Ingersoll@Sun.COM 	else
1086*12720SWyllys.Ingersoll@Sun.COM 	{	long n;
1087*12720SWyllys.Ingersoll@Sun.COM 		if (soap_s2long(soap, s, &n) || n < 0 || n > 1)
1088*12720SWyllys.Ingersoll@Sun.COM 			return soap->error = SOAP_TYPE;
1089*12720SWyllys.Ingersoll@Sun.COM 		*a = (bool)(n != 0);
1090*12720SWyllys.Ingersoll@Sun.COM 	}
1091*12720SWyllys.Ingersoll@Sun.COM 	return SOAP_OK;
1092*12720SWyllys.Ingersoll@Sun.COM }
1093*12720SWyllys.Ingersoll@Sun.COM 
soap_in_bool(struct soap * soap,const char * tag,bool * a,const char * type)1094*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 bool * SOAP_FMAC4 soap_in_bool(struct soap *soap, const char *tag, bool *a, const char *type)
1095*12720SWyllys.Ingersoll@Sun.COM {
1096*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, NULL))
1097*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1098*12720SWyllys.Ingersoll@Sun.COM 	if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":boolean"))
1099*12720SWyllys.Ingersoll@Sun.COM 	{	soap->error = SOAP_TYPE;
1100*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1101*12720SWyllys.Ingersoll@Sun.COM 	}
1102*12720SWyllys.Ingersoll@Sun.COM 	a = (bool *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_bool, sizeof(bool), 0, NULL, NULL, NULL);
1103*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1104*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1105*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1106*12720SWyllys.Ingersoll@Sun.COM 	{	if (!a || soap_s2bool(soap, soap_value(soap), a) || soap_element_end_in(soap, tag))
1107*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1108*12720SWyllys.Ingersoll@Sun.COM 	}
1109*12720SWyllys.Ingersoll@Sun.COM 	else
1110*12720SWyllys.Ingersoll@Sun.COM 	{	a = (bool *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_bool, 0, sizeof(bool), 0, NULL);
1111*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1112*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1113*12720SWyllys.Ingersoll@Sun.COM 	}
1114*12720SWyllys.Ingersoll@Sun.COM 	return a;
1115*12720SWyllys.Ingersoll@Sun.COM }
1116*12720SWyllys.Ingersoll@Sun.COM 
soap_put_bool(struct soap * soap,const bool * a,const char * tag,const char * type)1117*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_bool(struct soap *soap, const bool *a, const char *tag, const char *type)
1118*12720SWyllys.Ingersoll@Sun.COM {
1119*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_bool);
1120*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_bool(soap, tag?tag:"boolean", id, a, type))
1121*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1122*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1123*12720SWyllys.Ingersoll@Sun.COM }
1124*12720SWyllys.Ingersoll@Sun.COM 
soap_get_bool(struct soap * soap,bool * p,const char * tag,const char * type)1125*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 bool * SOAP_FMAC4 soap_get_bool(struct soap *soap, bool *p, const char *tag, const char *type)
1126*12720SWyllys.Ingersoll@Sun.COM {
1127*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_bool(soap, tag, p, type)))
1128*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1129*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1130*12720SWyllys.Ingersoll@Sun.COM 	return p;
1131*12720SWyllys.Ingersoll@Sun.COM }
1132*12720SWyllys.Ingersoll@Sun.COM 
1133*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
1134*12720SWyllys.Ingersoll@Sun.COM 
soap_default_SOAP_ENV__Fault(struct soap * soap,struct SOAP_ENV__Fault * a)1135*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap *soap, struct SOAP_ENV__Fault *a)
1136*12720SWyllys.Ingersoll@Sun.COM {
1137*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1138*12720SWyllys.Ingersoll@Sun.COM 	soap_default__QName(soap, &a->faultcode);
1139*12720SWyllys.Ingersoll@Sun.COM 	soap_default_string(soap, &a->faultstring);
1140*12720SWyllys.Ingersoll@Sun.COM 	soap_default_string(soap, &a->faultactor);
1141*12720SWyllys.Ingersoll@Sun.COM 	a->detail = NULL;
1142*12720SWyllys.Ingersoll@Sun.COM 	a->SOAP_ENV__Code = NULL;
1143*12720SWyllys.Ingersoll@Sun.COM 	a->SOAP_ENV__Reason = NULL;
1144*12720SWyllys.Ingersoll@Sun.COM 	soap_default_string(soap, &a->SOAP_ENV__Node);
1145*12720SWyllys.Ingersoll@Sun.COM 	soap_default_string(soap, &a->SOAP_ENV__Role);
1146*12720SWyllys.Ingersoll@Sun.COM 	a->SOAP_ENV__Detail = NULL;
1147*12720SWyllys.Ingersoll@Sun.COM }
1148*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_SOAP_ENV__Fault(struct soap * soap,const struct SOAP_ENV__Fault * a)1149*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Fault(struct soap *soap, const struct SOAP_ENV__Fault *a)
1150*12720SWyllys.Ingersoll@Sun.COM {
1151*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1152*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize__QName(soap, &a->faultcode);
1153*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_string(soap, &a->faultstring);
1154*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_string(soap, &a->faultactor);
1155*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->detail);
1156*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Code);
1157*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_PointerToSOAP_ENV__Reason(soap, &a->SOAP_ENV__Reason);
1158*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_string(soap, &a->SOAP_ENV__Node);
1159*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_string(soap, &a->SOAP_ENV__Role);
1160*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_PointerToSOAP_ENV__Detail(soap, &a->SOAP_ENV__Detail);
1161*12720SWyllys.Ingersoll@Sun.COM }
1162*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)1163*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)
1164*12720SWyllys.Ingersoll@Sun.COM {
1165*12720SWyllys.Ingersoll@Sun.COM 	const char *soap_tmp_faultcode = soap_QName2s(soap, a->faultcode);
1166*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault), type))
1167*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1168*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out__QName(soap, "faultcode", -1, (char*const*)&soap_tmp_faultcode, ""))
1169*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1170*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, "faultstring", -1, &a->faultstring, "xsd:string"))
1171*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1172*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, "faultactor", -1, &a->faultactor, "xsd:string"))
1173*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1174*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Detail(soap, "detail", -1, &a->detail, ""))
1175*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1176*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", -1, &a->SOAP_ENV__Code, ""))
1177*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1178*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", -1, &a->SOAP_ENV__Reason, ""))
1179*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1180*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, "SOAP-ENV:Node", -1, &a->SOAP_ENV__Node, ""))
1181*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1182*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, "SOAP-ENV:Role", -1, &a->SOAP_ENV__Role, ""))
1183*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1184*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", -1, &a->SOAP_ENV__Detail, ""))
1185*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1186*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1187*12720SWyllys.Ingersoll@Sun.COM }
1188*12720SWyllys.Ingersoll@Sun.COM 
soap_in_SOAP_ENV__Fault(struct soap * soap,const char * tag,struct SOAP_ENV__Fault * a,const char * type)1189*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)
1190*12720SWyllys.Ingersoll@Sun.COM {
1191*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_faultcode = 1;
1192*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_faultstring = 1;
1193*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_faultactor = 1;
1194*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_detail = 1;
1195*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Code = 1;
1196*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Reason = 1;
1197*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Node = 1;
1198*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Role = 1;
1199*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Detail = 1;
1200*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1201*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1202*12720SWyllys.Ingersoll@Sun.COM 	a = (struct SOAP_ENV__Fault *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault, sizeof(struct SOAP_ENV__Fault), 0, NULL, NULL, NULL);
1203*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1204*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1205*12720SWyllys.Ingersoll@Sun.COM 	soap_default_SOAP_ENV__Fault(soap, a);
1206*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1207*12720SWyllys.Ingersoll@Sun.COM 	{
1208*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1209*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1210*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_faultcode && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1211*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in__QName(soap, "faultcode", &a->faultcode, ""))
1212*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_faultcode--;
1213*12720SWyllys.Ingersoll@Sun.COM 					continue;
1214*12720SWyllys.Ingersoll@Sun.COM 				}
1215*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_faultstring && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1216*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_string(soap, "faultstring", &a->faultstring, "xsd:string"))
1217*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_faultstring--;
1218*12720SWyllys.Ingersoll@Sun.COM 					continue;
1219*12720SWyllys.Ingersoll@Sun.COM 				}
1220*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_faultactor && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1221*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_string(soap, "faultactor", &a->faultactor, "xsd:string"))
1222*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_faultactor--;
1223*12720SWyllys.Ingersoll@Sun.COM 					continue;
1224*12720SWyllys.Ingersoll@Sun.COM 				}
1225*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_detail && soap->error == SOAP_TAG_MISMATCH)
1226*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_PointerToSOAP_ENV__Detail(soap, "detail", &a->detail, ""))
1227*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_detail--;
1228*12720SWyllys.Ingersoll@Sun.COM 					continue;
1229*12720SWyllys.Ingersoll@Sun.COM 				}
1230*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Code && soap->error == SOAP_TAG_MISMATCH)
1231*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Code", &a->SOAP_ENV__Code, ""))
1232*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Code--;
1233*12720SWyllys.Ingersoll@Sun.COM 					continue;
1234*12720SWyllys.Ingersoll@Sun.COM 				}
1235*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Reason && soap->error == SOAP_TAG_MISMATCH)
1236*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_PointerToSOAP_ENV__Reason(soap, "SOAP-ENV:Reason", &a->SOAP_ENV__Reason, ""))
1237*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Reason--;
1238*12720SWyllys.Ingersoll@Sun.COM 					continue;
1239*12720SWyllys.Ingersoll@Sun.COM 				}
1240*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Node && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1241*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_string(soap, "SOAP-ENV:Node", &a->SOAP_ENV__Node, "xsd:string"))
1242*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Node--;
1243*12720SWyllys.Ingersoll@Sun.COM 					continue;
1244*12720SWyllys.Ingersoll@Sun.COM 				}
1245*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Role && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1246*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_string(soap, "SOAP-ENV:Role", &a->SOAP_ENV__Role, "xsd:string"))
1247*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Role--;
1248*12720SWyllys.Ingersoll@Sun.COM 					continue;
1249*12720SWyllys.Ingersoll@Sun.COM 				}
1250*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Detail && soap->error == SOAP_TAG_MISMATCH)
1251*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_PointerToSOAP_ENV__Detail(soap, "SOAP-ENV:Detail", &a->SOAP_ENV__Detail, ""))
1252*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Detail--;
1253*12720SWyllys.Ingersoll@Sun.COM 					continue;
1254*12720SWyllys.Ingersoll@Sun.COM 				}
1255*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1256*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1257*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1258*12720SWyllys.Ingersoll@Sun.COM 				break;
1259*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1260*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1261*12720SWyllys.Ingersoll@Sun.COM 		}
1262*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1263*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1264*12720SWyllys.Ingersoll@Sun.COM 	}
1265*12720SWyllys.Ingersoll@Sun.COM 	else
1266*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Fault *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault, 0, sizeof(struct SOAP_ENV__Fault), 0, NULL);
1267*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1268*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1269*12720SWyllys.Ingersoll@Sun.COM 	}
1270*12720SWyllys.Ingersoll@Sun.COM 	return a;
1271*12720SWyllys.Ingersoll@Sun.COM }
1272*12720SWyllys.Ingersoll@Sun.COM 
soap_put_SOAP_ENV__Fault(struct soap * soap,const struct SOAP_ENV__Fault * a,const char * tag,const char * type)1273*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)
1274*12720SWyllys.Ingersoll@Sun.COM {
1275*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault);
1276*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_SOAP_ENV__Fault(soap, tag?tag:"SOAP-ENV:Fault", id, a, type))
1277*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1278*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1279*12720SWyllys.Ingersoll@Sun.COM }
1280*12720SWyllys.Ingersoll@Sun.COM 
soap_get_SOAP_ENV__Fault(struct soap * soap,struct SOAP_ENV__Fault * p,const char * tag,const char * type)1281*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)
1282*12720SWyllys.Ingersoll@Sun.COM {
1283*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_SOAP_ENV__Fault(soap, tag, p, type)))
1284*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1285*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1286*12720SWyllys.Ingersoll@Sun.COM 	return p;
1287*12720SWyllys.Ingersoll@Sun.COM }
1288*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_SOAP_ENV__Fault(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1289*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)
1290*12720SWyllys.Ingersoll@Sun.COM {
1291*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1292*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Fault(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1293*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Fault, n, soap_fdelete);
1294*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1295*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1296*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1297*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Fault);
1298*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1299*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct SOAP_ENV__Fault);
1300*12720SWyllys.Ingersoll@Sun.COM 	}
1301*12720SWyllys.Ingersoll@Sun.COM 	else
1302*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Fault[n]);
1303*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1304*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1305*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1306*12720SWyllys.Ingersoll@Sun.COM 		}
1307*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1308*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct SOAP_ENV__Fault);
1309*12720SWyllys.Ingersoll@Sun.COM 	}
1310*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1311*12720SWyllys.Ingersoll@Sun.COM 	return (struct SOAP_ENV__Fault*)cp->ptr;
1312*12720SWyllys.Ingersoll@Sun.COM }
1313*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)1314*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)
1315*12720SWyllys.Ingersoll@Sun.COM {
1316*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1317*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Fault %p -> %p\n", q, p));
1318*12720SWyllys.Ingersoll@Sun.COM 	*(struct SOAP_ENV__Fault*)p = *(struct SOAP_ENV__Fault*)q;
1319*12720SWyllys.Ingersoll@Sun.COM }
1320*12720SWyllys.Ingersoll@Sun.COM 
1321*12720SWyllys.Ingersoll@Sun.COM #endif
1322*12720SWyllys.Ingersoll@Sun.COM 
1323*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
1324*12720SWyllys.Ingersoll@Sun.COM 
soap_default_SOAP_ENV__Reason(struct soap * soap,struct SOAP_ENV__Reason * a)1325*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *a)
1326*12720SWyllys.Ingersoll@Sun.COM {
1327*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1328*12720SWyllys.Ingersoll@Sun.COM 	soap_default_string(soap, &a->SOAP_ENV__Text);
1329*12720SWyllys.Ingersoll@Sun.COM }
1330*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_SOAP_ENV__Reason(struct soap * soap,const struct SOAP_ENV__Reason * a)1331*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Reason(struct soap *soap, const struct SOAP_ENV__Reason *a)
1332*12720SWyllys.Ingersoll@Sun.COM {
1333*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1334*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_string(soap, &a->SOAP_ENV__Text);
1335*12720SWyllys.Ingersoll@Sun.COM }
1336*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)1337*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)
1338*12720SWyllys.Ingersoll@Sun.COM {
1339*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason), type))
1340*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1341*12720SWyllys.Ingersoll@Sun.COM 	if (soap->lang)
1342*12720SWyllys.Ingersoll@Sun.COM 		soap_set_attr(soap, "xml:lang", soap->lang, 1);
1343*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, "SOAP-ENV:Text", -1, &a->SOAP_ENV__Text, ""))
1344*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1345*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1346*12720SWyllys.Ingersoll@Sun.COM }
1347*12720SWyllys.Ingersoll@Sun.COM 
soap_in_SOAP_ENV__Reason(struct soap * soap,const char * tag,struct SOAP_ENV__Reason * a,const char * type)1348*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)
1349*12720SWyllys.Ingersoll@Sun.COM {
1350*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Text = 1;
1351*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1352*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1353*12720SWyllys.Ingersoll@Sun.COM 	a = (struct SOAP_ENV__Reason *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0, NULL, NULL, NULL);
1354*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1355*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1356*12720SWyllys.Ingersoll@Sun.COM 	soap_default_SOAP_ENV__Reason(soap, a);
1357*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1358*12720SWyllys.Ingersoll@Sun.COM 	{
1359*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1360*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1361*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Text && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1362*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_string(soap, "SOAP-ENV:Text", &a->SOAP_ENV__Text, "xsd:string"))
1363*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Text--;
1364*12720SWyllys.Ingersoll@Sun.COM 					continue;
1365*12720SWyllys.Ingersoll@Sun.COM 				}
1366*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1367*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1368*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1369*12720SWyllys.Ingersoll@Sun.COM 				break;
1370*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1371*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1372*12720SWyllys.Ingersoll@Sun.COM 		}
1373*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1374*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1375*12720SWyllys.Ingersoll@Sun.COM 	}
1376*12720SWyllys.Ingersoll@Sun.COM 	else
1377*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Reason *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason, 0, sizeof(struct SOAP_ENV__Reason), 0, NULL);
1378*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1379*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1380*12720SWyllys.Ingersoll@Sun.COM 	}
1381*12720SWyllys.Ingersoll@Sun.COM 	return a;
1382*12720SWyllys.Ingersoll@Sun.COM }
1383*12720SWyllys.Ingersoll@Sun.COM 
soap_put_SOAP_ENV__Reason(struct soap * soap,const struct SOAP_ENV__Reason * a,const char * tag,const char * type)1384*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)
1385*12720SWyllys.Ingersoll@Sun.COM {
1386*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason);
1387*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_SOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type))
1388*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1389*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1390*12720SWyllys.Ingersoll@Sun.COM }
1391*12720SWyllys.Ingersoll@Sun.COM 
soap_get_SOAP_ENV__Reason(struct soap * soap,struct SOAP_ENV__Reason * p,const char * tag,const char * type)1392*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)
1393*12720SWyllys.Ingersoll@Sun.COM {
1394*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_SOAP_ENV__Reason(soap, tag, p, type)))
1395*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1396*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1397*12720SWyllys.Ingersoll@Sun.COM 	return p;
1398*12720SWyllys.Ingersoll@Sun.COM }
1399*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_SOAP_ENV__Reason(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1400*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)
1401*12720SWyllys.Ingersoll@Sun.COM {
1402*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1403*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Reason(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1404*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason, n, soap_fdelete);
1405*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1406*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1407*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1408*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Reason);
1409*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1410*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct SOAP_ENV__Reason);
1411*12720SWyllys.Ingersoll@Sun.COM 	}
1412*12720SWyllys.Ingersoll@Sun.COM 	else
1413*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Reason[n]);
1414*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1415*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1416*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1417*12720SWyllys.Ingersoll@Sun.COM 		}
1418*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1419*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct SOAP_ENV__Reason);
1420*12720SWyllys.Ingersoll@Sun.COM 	}
1421*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1422*12720SWyllys.Ingersoll@Sun.COM 	return (struct SOAP_ENV__Reason*)cp->ptr;
1423*12720SWyllys.Ingersoll@Sun.COM }
1424*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)1425*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)
1426*12720SWyllys.Ingersoll@Sun.COM {
1427*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1428*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Reason %p -> %p\n", q, p));
1429*12720SWyllys.Ingersoll@Sun.COM 	*(struct SOAP_ENV__Reason*)p = *(struct SOAP_ENV__Reason*)q;
1430*12720SWyllys.Ingersoll@Sun.COM }
1431*12720SWyllys.Ingersoll@Sun.COM 
1432*12720SWyllys.Ingersoll@Sun.COM #endif
1433*12720SWyllys.Ingersoll@Sun.COM 
1434*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
1435*12720SWyllys.Ingersoll@Sun.COM 
soap_default_SOAP_ENV__Detail(struct soap * soap,struct SOAP_ENV__Detail * a)1436*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *a)
1437*12720SWyllys.Ingersoll@Sun.COM {
1438*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1439*12720SWyllys.Ingersoll@Sun.COM 	a->__type = 0;
1440*12720SWyllys.Ingersoll@Sun.COM 	a->fault = NULL;
1441*12720SWyllys.Ingersoll@Sun.COM 	a->__any = NULL;
1442*12720SWyllys.Ingersoll@Sun.COM }
1443*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_SOAP_ENV__Detail(struct soap * soap,const struct SOAP_ENV__Detail * a)1444*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Detail(struct soap *soap, const struct SOAP_ENV__Detail *a)
1445*12720SWyllys.Ingersoll@Sun.COM {
1446*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1447*12720SWyllys.Ingersoll@Sun.COM 	soap_markelement(soap, a->fault, a->__type);
1448*12720SWyllys.Ingersoll@Sun.COM }
1449*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)1450*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)
1451*12720SWyllys.Ingersoll@Sun.COM {
1452*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail), type))
1453*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1454*12720SWyllys.Ingersoll@Sun.COM 	if (soap_putelement(soap, a->fault, "fault", -1, a->__type))
1455*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1456*12720SWyllys.Ingersoll@Sun.COM 	soap_outliteral(soap, "-any", &a->__any, NULL);
1457*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1458*12720SWyllys.Ingersoll@Sun.COM }
1459*12720SWyllys.Ingersoll@Sun.COM 
soap_in_SOAP_ENV__Detail(struct soap * soap,const char * tag,struct SOAP_ENV__Detail * a,const char * type)1460*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)
1461*12720SWyllys.Ingersoll@Sun.COM {
1462*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_fault = 1;
1463*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag___any = 1;
1464*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1465*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1466*12720SWyllys.Ingersoll@Sun.COM 	a = (struct SOAP_ENV__Detail *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0, NULL, NULL, NULL);
1467*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1468*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1469*12720SWyllys.Ingersoll@Sun.COM 	soap_default_SOAP_ENV__Detail(soap, a);
1470*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1471*12720SWyllys.Ingersoll@Sun.COM 	{
1472*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1473*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1474*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_fault && soap->error == SOAP_TAG_MISMATCH)
1475*12720SWyllys.Ingersoll@Sun.COM 				if ((a->fault = soap_getelement(soap, &a->__type)))
1476*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_fault = 0;
1477*12720SWyllys.Ingersoll@Sun.COM 					continue;
1478*12720SWyllys.Ingersoll@Sun.COM 				}
1479*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag___any && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1480*12720SWyllys.Ingersoll@Sun.COM 				if (soap_inliteral(soap, "-any", &a->__any))
1481*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag___any--;
1482*12720SWyllys.Ingersoll@Sun.COM 					continue;
1483*12720SWyllys.Ingersoll@Sun.COM 				}
1484*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1485*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1486*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1487*12720SWyllys.Ingersoll@Sun.COM 				break;
1488*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1489*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1490*12720SWyllys.Ingersoll@Sun.COM 		}
1491*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1492*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1493*12720SWyllys.Ingersoll@Sun.COM 	}
1494*12720SWyllys.Ingersoll@Sun.COM 	else
1495*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Detail *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail, 0, sizeof(struct SOAP_ENV__Detail), 0, NULL);
1496*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1497*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1498*12720SWyllys.Ingersoll@Sun.COM 	}
1499*12720SWyllys.Ingersoll@Sun.COM 	return a;
1500*12720SWyllys.Ingersoll@Sun.COM }
1501*12720SWyllys.Ingersoll@Sun.COM 
soap_put_SOAP_ENV__Detail(struct soap * soap,const struct SOAP_ENV__Detail * a,const char * tag,const char * type)1502*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)
1503*12720SWyllys.Ingersoll@Sun.COM {
1504*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail);
1505*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_SOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type))
1506*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1507*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1508*12720SWyllys.Ingersoll@Sun.COM }
1509*12720SWyllys.Ingersoll@Sun.COM 
soap_get_SOAP_ENV__Detail(struct soap * soap,struct SOAP_ENV__Detail * p,const char * tag,const char * type)1510*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)
1511*12720SWyllys.Ingersoll@Sun.COM {
1512*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_SOAP_ENV__Detail(soap, tag, p, type)))
1513*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1514*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1515*12720SWyllys.Ingersoll@Sun.COM 	return p;
1516*12720SWyllys.Ingersoll@Sun.COM }
1517*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_SOAP_ENV__Detail(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1518*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)
1519*12720SWyllys.Ingersoll@Sun.COM {
1520*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1521*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Detail(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1522*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail, n, soap_fdelete);
1523*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1524*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1525*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1526*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Detail);
1527*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1528*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct SOAP_ENV__Detail);
1529*12720SWyllys.Ingersoll@Sun.COM 	}
1530*12720SWyllys.Ingersoll@Sun.COM 	else
1531*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Detail[n]);
1532*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1533*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1534*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1535*12720SWyllys.Ingersoll@Sun.COM 		}
1536*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1537*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct SOAP_ENV__Detail);
1538*12720SWyllys.Ingersoll@Sun.COM 	}
1539*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1540*12720SWyllys.Ingersoll@Sun.COM 	return (struct SOAP_ENV__Detail*)cp->ptr;
1541*12720SWyllys.Ingersoll@Sun.COM }
1542*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)1543*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)
1544*12720SWyllys.Ingersoll@Sun.COM {
1545*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1546*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Detail %p -> %p\n", q, p));
1547*12720SWyllys.Ingersoll@Sun.COM 	*(struct SOAP_ENV__Detail*)p = *(struct SOAP_ENV__Detail*)q;
1548*12720SWyllys.Ingersoll@Sun.COM }
1549*12720SWyllys.Ingersoll@Sun.COM 
1550*12720SWyllys.Ingersoll@Sun.COM #endif
1551*12720SWyllys.Ingersoll@Sun.COM 
1552*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
1553*12720SWyllys.Ingersoll@Sun.COM 
soap_default_SOAP_ENV__Code(struct soap * soap,struct SOAP_ENV__Code * a)1554*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *a)
1555*12720SWyllys.Ingersoll@Sun.COM {
1556*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1557*12720SWyllys.Ingersoll@Sun.COM 	soap_default__QName(soap, &a->SOAP_ENV__Value);
1558*12720SWyllys.Ingersoll@Sun.COM 	a->SOAP_ENV__Subcode = NULL;
1559*12720SWyllys.Ingersoll@Sun.COM }
1560*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_SOAP_ENV__Code(struct soap * soap,const struct SOAP_ENV__Code * a)1561*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Code(struct soap *soap, const struct SOAP_ENV__Code *a)
1562*12720SWyllys.Ingersoll@Sun.COM {
1563*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1564*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize__QName(soap, &a->SOAP_ENV__Value);
1565*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_PointerToSOAP_ENV__Code(soap, &a->SOAP_ENV__Subcode);
1566*12720SWyllys.Ingersoll@Sun.COM }
1567*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)1568*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)
1569*12720SWyllys.Ingersoll@Sun.COM {
1570*12720SWyllys.Ingersoll@Sun.COM 	const char *soap_tmp_SOAP_ENV__Value = soap_QName2s(soap, a->SOAP_ENV__Value);
1571*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code), type))
1572*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1573*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out__QName(soap, "SOAP-ENV:Value", -1, (char*const*)&soap_tmp_SOAP_ENV__Value, ""))
1574*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1575*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", -1, &a->SOAP_ENV__Subcode, ""))
1576*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1577*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1578*12720SWyllys.Ingersoll@Sun.COM }
1579*12720SWyllys.Ingersoll@Sun.COM 
soap_in_SOAP_ENV__Code(struct soap * soap,const char * tag,struct SOAP_ENV__Code * a,const char * type)1580*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)
1581*12720SWyllys.Ingersoll@Sun.COM {
1582*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Value = 1;
1583*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_SOAP_ENV__Subcode = 1;
1584*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1585*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1586*12720SWyllys.Ingersoll@Sun.COM 	a = (struct SOAP_ENV__Code *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0, NULL, NULL, NULL);
1587*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1588*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1589*12720SWyllys.Ingersoll@Sun.COM 	soap_default_SOAP_ENV__Code(soap, a);
1590*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1591*12720SWyllys.Ingersoll@Sun.COM 	{
1592*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1593*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1594*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1595*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in__QName(soap, "SOAP-ENV:Value", &a->SOAP_ENV__Value, ""))
1596*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Value--;
1597*12720SWyllys.Ingersoll@Sun.COM 					continue;
1598*12720SWyllys.Ingersoll@Sun.COM 				}
1599*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_SOAP_ENV__Subcode && soap->error == SOAP_TAG_MISMATCH)
1600*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_PointerToSOAP_ENV__Code(soap, "SOAP-ENV:Subcode", &a->SOAP_ENV__Subcode, ""))
1601*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_SOAP_ENV__Subcode--;
1602*12720SWyllys.Ingersoll@Sun.COM 					continue;
1603*12720SWyllys.Ingersoll@Sun.COM 				}
1604*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1605*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1606*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1607*12720SWyllys.Ingersoll@Sun.COM 				break;
1608*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1609*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1610*12720SWyllys.Ingersoll@Sun.COM 		}
1611*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1612*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1613*12720SWyllys.Ingersoll@Sun.COM 	}
1614*12720SWyllys.Ingersoll@Sun.COM 	else
1615*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Code *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code, 0, sizeof(struct SOAP_ENV__Code), 0, NULL);
1616*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1617*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1618*12720SWyllys.Ingersoll@Sun.COM 	}
1619*12720SWyllys.Ingersoll@Sun.COM 	return a;
1620*12720SWyllys.Ingersoll@Sun.COM }
1621*12720SWyllys.Ingersoll@Sun.COM 
soap_put_SOAP_ENV__Code(struct soap * soap,const struct SOAP_ENV__Code * a,const char * tag,const char * type)1622*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)
1623*12720SWyllys.Ingersoll@Sun.COM {
1624*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code);
1625*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_SOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type))
1626*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1627*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1628*12720SWyllys.Ingersoll@Sun.COM }
1629*12720SWyllys.Ingersoll@Sun.COM 
soap_get_SOAP_ENV__Code(struct soap * soap,struct SOAP_ENV__Code * p,const char * tag,const char * type)1630*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)
1631*12720SWyllys.Ingersoll@Sun.COM {
1632*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_SOAP_ENV__Code(soap, tag, p, type)))
1633*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1634*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1635*12720SWyllys.Ingersoll@Sun.COM 	return p;
1636*12720SWyllys.Ingersoll@Sun.COM }
1637*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_SOAP_ENV__Code(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1638*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)
1639*12720SWyllys.Ingersoll@Sun.COM {
1640*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1641*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Code(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1642*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code, n, soap_fdelete);
1643*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1644*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1645*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1646*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Code);
1647*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1648*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct SOAP_ENV__Code);
1649*12720SWyllys.Ingersoll@Sun.COM 	}
1650*12720SWyllys.Ingersoll@Sun.COM 	else
1651*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Code[n]);
1652*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1653*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1654*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1655*12720SWyllys.Ingersoll@Sun.COM 		}
1656*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1657*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct SOAP_ENV__Code);
1658*12720SWyllys.Ingersoll@Sun.COM 	}
1659*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1660*12720SWyllys.Ingersoll@Sun.COM 	return (struct SOAP_ENV__Code*)cp->ptr;
1661*12720SWyllys.Ingersoll@Sun.COM }
1662*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)1663*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)
1664*12720SWyllys.Ingersoll@Sun.COM {
1665*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1666*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Code %p -> %p\n", q, p));
1667*12720SWyllys.Ingersoll@Sun.COM 	*(struct SOAP_ENV__Code*)p = *(struct SOAP_ENV__Code*)q;
1668*12720SWyllys.Ingersoll@Sun.COM }
1669*12720SWyllys.Ingersoll@Sun.COM 
1670*12720SWyllys.Ingersoll@Sun.COM #endif
1671*12720SWyllys.Ingersoll@Sun.COM 
1672*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
1673*12720SWyllys.Ingersoll@Sun.COM 
soap_default_SOAP_ENV__Header(struct soap * soap,struct SOAP_ENV__Header * a)1674*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap *soap, struct SOAP_ENV__Header *a)
1675*12720SWyllys.Ingersoll@Sun.COM {
1676*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1677*12720SWyllys.Ingersoll@Sun.COM }
1678*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_SOAP_ENV__Header(struct soap * soap,const struct SOAP_ENV__Header * a)1679*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_SOAP_ENV__Header(struct soap *soap, const struct SOAP_ENV__Header *a)
1680*12720SWyllys.Ingersoll@Sun.COM {
1681*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1682*12720SWyllys.Ingersoll@Sun.COM }
1683*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)1684*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)
1685*12720SWyllys.Ingersoll@Sun.COM {
1686*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header), type))
1687*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1688*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1689*12720SWyllys.Ingersoll@Sun.COM }
1690*12720SWyllys.Ingersoll@Sun.COM 
soap_in_SOAP_ENV__Header(struct soap * soap,const char * tag,struct SOAP_ENV__Header * a,const char * type)1691*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)
1692*12720SWyllys.Ingersoll@Sun.COM {
1693*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1694*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1695*12720SWyllys.Ingersoll@Sun.COM 	a = (struct SOAP_ENV__Header *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header, sizeof(struct SOAP_ENV__Header), 0, NULL, NULL, NULL);
1696*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1697*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1698*12720SWyllys.Ingersoll@Sun.COM 	soap_default_SOAP_ENV__Header(soap, a);
1699*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1700*12720SWyllys.Ingersoll@Sun.COM 	{
1701*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1702*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1703*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1704*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1705*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1706*12720SWyllys.Ingersoll@Sun.COM 				break;
1707*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1708*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1709*12720SWyllys.Ingersoll@Sun.COM 		}
1710*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1711*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1712*12720SWyllys.Ingersoll@Sun.COM 	}
1713*12720SWyllys.Ingersoll@Sun.COM 	else
1714*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Header *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header, 0, sizeof(struct SOAP_ENV__Header), 0, NULL);
1715*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1716*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1717*12720SWyllys.Ingersoll@Sun.COM 	}
1718*12720SWyllys.Ingersoll@Sun.COM 	return a;
1719*12720SWyllys.Ingersoll@Sun.COM }
1720*12720SWyllys.Ingersoll@Sun.COM 
soap_put_SOAP_ENV__Header(struct soap * soap,const struct SOAP_ENV__Header * a,const char * tag,const char * type)1721*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)
1722*12720SWyllys.Ingersoll@Sun.COM {
1723*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header);
1724*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_SOAP_ENV__Header(soap, tag?tag:"SOAP-ENV:Header", id, a, type))
1725*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1726*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1727*12720SWyllys.Ingersoll@Sun.COM }
1728*12720SWyllys.Ingersoll@Sun.COM 
soap_get_SOAP_ENV__Header(struct soap * soap,struct SOAP_ENV__Header * p,const char * tag,const char * type)1729*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)
1730*12720SWyllys.Ingersoll@Sun.COM {
1731*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_SOAP_ENV__Header(soap, tag, p, type)))
1732*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1733*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1734*12720SWyllys.Ingersoll@Sun.COM 	return p;
1735*12720SWyllys.Ingersoll@Sun.COM }
1736*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_SOAP_ENV__Header(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1737*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)
1738*12720SWyllys.Ingersoll@Sun.COM {
1739*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1740*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_SOAP_ENV__Header(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1741*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Header, n, soap_fdelete);
1742*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1743*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1744*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1745*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Header);
1746*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1747*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct SOAP_ENV__Header);
1748*12720SWyllys.Ingersoll@Sun.COM 	}
1749*12720SWyllys.Ingersoll@Sun.COM 	else
1750*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct SOAP_ENV__Header[n]);
1751*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1752*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1753*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1754*12720SWyllys.Ingersoll@Sun.COM 		}
1755*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1756*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct SOAP_ENV__Header);
1757*12720SWyllys.Ingersoll@Sun.COM 	}
1758*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1759*12720SWyllys.Ingersoll@Sun.COM 	return (struct SOAP_ENV__Header*)cp->ptr;
1760*12720SWyllys.Ingersoll@Sun.COM }
1761*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)1762*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)
1763*12720SWyllys.Ingersoll@Sun.COM {
1764*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1765*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct SOAP_ENV__Header %p -> %p\n", q, p));
1766*12720SWyllys.Ingersoll@Sun.COM 	*(struct SOAP_ENV__Header*)p = *(struct SOAP_ENV__Header*)q;
1767*12720SWyllys.Ingersoll@Sun.COM }
1768*12720SWyllys.Ingersoll@Sun.COM 
1769*12720SWyllys.Ingersoll@Sun.COM #endif
1770*12720SWyllys.Ingersoll@Sun.COM 
soap_default_KMS_Discovery__DiscoverCluster(struct soap * soap,struct KMS_Discovery__DiscoverCluster * a)1771*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_KMS_Discovery__DiscoverCluster(struct soap *soap, struct KMS_Discovery__DiscoverCluster *a)
1772*12720SWyllys.Ingersoll@Sun.COM {
1773*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1774*12720SWyllys.Ingersoll@Sun.COM 	/* transient _ skipped */
1775*12720SWyllys.Ingersoll@Sun.COM }
1776*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_KMS_Discovery__DiscoverCluster(struct soap * soap,const struct KMS_Discovery__DiscoverCluster * a)1777*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_KMS_Discovery__DiscoverCluster(struct soap *soap, const struct KMS_Discovery__DiscoverCluster *a)
1778*12720SWyllys.Ingersoll@Sun.COM {
1779*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1780*12720SWyllys.Ingersoll@Sun.COM 	/* transient _ skipped */
1781*12720SWyllys.Ingersoll@Sun.COM }
1782*12720SWyllys.Ingersoll@Sun.COM 
soap_out_KMS_Discovery__DiscoverCluster(struct soap * soap,const char * tag,int id,const struct KMS_Discovery__DiscoverCluster * a,const char * type)1783*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_KMS_Discovery__DiscoverCluster(struct soap *soap, const char *tag, int id, const struct KMS_Discovery__DiscoverCluster *a, const char *type)
1784*12720SWyllys.Ingersoll@Sun.COM {
1785*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster), type))
1786*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1787*12720SWyllys.Ingersoll@Sun.COM 	/* transient _ skipped */
1788*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1789*12720SWyllys.Ingersoll@Sun.COM }
1790*12720SWyllys.Ingersoll@Sun.COM 
soap_in_KMS_Discovery__DiscoverCluster(struct soap * soap,const char * tag,struct KMS_Discovery__DiscoverCluster * a,const char * type)1791*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__DiscoverCluster * SOAP_FMAC4 soap_in_KMS_Discovery__DiscoverCluster(struct soap *soap, const char *tag, struct KMS_Discovery__DiscoverCluster *a, const char *type)
1792*12720SWyllys.Ingersoll@Sun.COM {
1793*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1794*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1795*12720SWyllys.Ingersoll@Sun.COM 	a = (struct KMS_Discovery__DiscoverCluster *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster, sizeof(struct KMS_Discovery__DiscoverCluster), 0, NULL, NULL, NULL);
1796*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1797*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1798*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Discovery__DiscoverCluster(soap, a);
1799*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1800*12720SWyllys.Ingersoll@Sun.COM 	{
1801*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1802*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1803*12720SWyllys.Ingersoll@Sun.COM 		/* transient _ skipped */
1804*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1805*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1806*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1807*12720SWyllys.Ingersoll@Sun.COM 				break;
1808*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1809*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1810*12720SWyllys.Ingersoll@Sun.COM 		}
1811*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1812*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1813*12720SWyllys.Ingersoll@Sun.COM 	}
1814*12720SWyllys.Ingersoll@Sun.COM 	else
1815*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct KMS_Discovery__DiscoverCluster *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster, 0, sizeof(struct KMS_Discovery__DiscoverCluster), 0, NULL);
1816*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1817*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1818*12720SWyllys.Ingersoll@Sun.COM 	}
1819*12720SWyllys.Ingersoll@Sun.COM 	return a;
1820*12720SWyllys.Ingersoll@Sun.COM }
1821*12720SWyllys.Ingersoll@Sun.COM 
soap_put_KMS_Discovery__DiscoverCluster(struct soap * soap,const struct KMS_Discovery__DiscoverCluster * a,const char * tag,const char * type)1822*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_KMS_Discovery__DiscoverCluster(struct soap *soap, const struct KMS_Discovery__DiscoverCluster *a, const char *tag, const char *type)
1823*12720SWyllys.Ingersoll@Sun.COM {
1824*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster);
1825*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_KMS_Discovery__DiscoverCluster(soap, tag?tag:"KMS-Discovery:DiscoverCluster", id, a, type))
1826*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1827*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1828*12720SWyllys.Ingersoll@Sun.COM }
1829*12720SWyllys.Ingersoll@Sun.COM 
soap_get_KMS_Discovery__DiscoverCluster(struct soap * soap,struct KMS_Discovery__DiscoverCluster * p,const char * tag,const char * type)1830*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__DiscoverCluster * SOAP_FMAC4 soap_get_KMS_Discovery__DiscoverCluster(struct soap *soap, struct KMS_Discovery__DiscoverCluster *p, const char *tag, const char *type)
1831*12720SWyllys.Ingersoll@Sun.COM {
1832*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_KMS_Discovery__DiscoverCluster(soap, tag, p, type)))
1833*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1834*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1835*12720SWyllys.Ingersoll@Sun.COM 	return p;
1836*12720SWyllys.Ingersoll@Sun.COM }
1837*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_KMS_Discovery__DiscoverCluster(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1838*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC1 struct KMS_Discovery__DiscoverCluster * SOAP_FMAC2 soap_instantiate_KMS_Discovery__DiscoverCluster(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1839*12720SWyllys.Ingersoll@Sun.COM {
1840*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1841*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_KMS_Discovery__DiscoverCluster(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1842*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverCluster, n, soap_fdelete);
1843*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1844*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1845*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1846*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__DiscoverCluster);
1847*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1848*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct KMS_Discovery__DiscoverCluster);
1849*12720SWyllys.Ingersoll@Sun.COM 	}
1850*12720SWyllys.Ingersoll@Sun.COM 	else
1851*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__DiscoverCluster[n]);
1852*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1853*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1854*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1855*12720SWyllys.Ingersoll@Sun.COM 		}
1856*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1857*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct KMS_Discovery__DiscoverCluster);
1858*12720SWyllys.Ingersoll@Sun.COM 	}
1859*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1860*12720SWyllys.Ingersoll@Sun.COM 	return (struct KMS_Discovery__DiscoverCluster*)cp->ptr;
1861*12720SWyllys.Ingersoll@Sun.COM }
1862*12720SWyllys.Ingersoll@Sun.COM 
soap_copy_KMS_Discovery__DiscoverCluster(struct soap * soap,int st,int tt,void * p,size_t len,const void * q,size_t n)1863*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_copy_KMS_Discovery__DiscoverCluster(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1864*12720SWyllys.Ingersoll@Sun.COM {
1865*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1866*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct KMS_Discovery__DiscoverCluster %p -> %p\n", q, p));
1867*12720SWyllys.Ingersoll@Sun.COM 	*(struct KMS_Discovery__DiscoverCluster*)p = *(struct KMS_Discovery__DiscoverCluster*)q;
1868*12720SWyllys.Ingersoll@Sun.COM }
1869*12720SWyllys.Ingersoll@Sun.COM 
soap_default_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,struct KMS_Discovery__DiscoverClusterResponse * a)1870*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, struct KMS_Discovery__DiscoverClusterResponse *a)
1871*12720SWyllys.Ingersoll@Sun.COM {
1872*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1873*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__string(soap, &a->EntitySiteID);
1874*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Discovery__ArrayOfClusterMembers(soap, &a->ArrayOfClusterMembers);
1875*12720SWyllys.Ingersoll@Sun.COM }
1876*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,const struct KMS_Discovery__DiscoverClusterResponse * a)1877*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, const struct KMS_Discovery__DiscoverClusterResponse *a)
1878*12720SWyllys.Ingersoll@Sun.COM {
1879*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
1880*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_xsd__string(soap, &a->EntitySiteID);
1881*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_KMS_Discovery__ArrayOfClusterMembers(soap, &a->ArrayOfClusterMembers);
1882*12720SWyllys.Ingersoll@Sun.COM }
1883*12720SWyllys.Ingersoll@Sun.COM 
soap_out_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,const char * tag,int id,const struct KMS_Discovery__DiscoverClusterResponse * a,const char * type)1884*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, const char *tag, int id, const struct KMS_Discovery__DiscoverClusterResponse *a, const char *type)
1885*12720SWyllys.Ingersoll@Sun.COM {
1886*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse), type))
1887*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1888*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, "EntitySiteID", -1, &a->EntitySiteID, "xsd:string"))
1889*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1890*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_KMS_Discovery__ArrayOfClusterMembers(soap, "ArrayOfClusterMembers", -1, &a->ArrayOfClusterMembers, "KMS-Discovery:ArrayOfClusterMembers"))
1891*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1892*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
1893*12720SWyllys.Ingersoll@Sun.COM }
1894*12720SWyllys.Ingersoll@Sun.COM 
soap_in_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,const char * tag,struct KMS_Discovery__DiscoverClusterResponse * a,const char * type)1895*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__DiscoverClusterResponse * SOAP_FMAC4 soap_in_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, const char *tag, struct KMS_Discovery__DiscoverClusterResponse *a, const char *type)
1896*12720SWyllys.Ingersoll@Sun.COM {
1897*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_EntitySiteID = 1;
1898*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_ArrayOfClusterMembers = 1;
1899*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
1900*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1901*12720SWyllys.Ingersoll@Sun.COM 	a = (struct KMS_Discovery__DiscoverClusterResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse, sizeof(struct KMS_Discovery__DiscoverClusterResponse), 0, NULL, NULL, NULL);
1902*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
1903*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1904*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Discovery__DiscoverClusterResponse(soap, a);
1905*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
1906*12720SWyllys.Ingersoll@Sun.COM 	{
1907*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
1908*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
1909*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_EntitySiteID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
1910*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__string(soap, "EntitySiteID", &a->EntitySiteID, "xsd:string"))
1911*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_EntitySiteID--;
1912*12720SWyllys.Ingersoll@Sun.COM 					continue;
1913*12720SWyllys.Ingersoll@Sun.COM 				}
1914*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_ArrayOfClusterMembers && soap->error == SOAP_TAG_MISMATCH)
1915*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_KMS_Discovery__ArrayOfClusterMembers(soap, "ArrayOfClusterMembers", &a->ArrayOfClusterMembers, "KMS-Discovery:ArrayOfClusterMembers"))
1916*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_ArrayOfClusterMembers--;
1917*12720SWyllys.Ingersoll@Sun.COM 					continue;
1918*12720SWyllys.Ingersoll@Sun.COM 				}
1919*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
1920*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
1921*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
1922*12720SWyllys.Ingersoll@Sun.COM 				break;
1923*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
1924*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
1925*12720SWyllys.Ingersoll@Sun.COM 		}
1926*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
1927*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1928*12720SWyllys.Ingersoll@Sun.COM 	}
1929*12720SWyllys.Ingersoll@Sun.COM 	else
1930*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct KMS_Discovery__DiscoverClusterResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse, 0, sizeof(struct KMS_Discovery__DiscoverClusterResponse), 0, NULL);
1931*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
1932*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1933*12720SWyllys.Ingersoll@Sun.COM 	}
1934*12720SWyllys.Ingersoll@Sun.COM 	return a;
1935*12720SWyllys.Ingersoll@Sun.COM }
1936*12720SWyllys.Ingersoll@Sun.COM 
soap_put_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,const struct KMS_Discovery__DiscoverClusterResponse * a,const char * tag,const char * type)1937*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, const struct KMS_Discovery__DiscoverClusterResponse *a, const char *tag, const char *type)
1938*12720SWyllys.Ingersoll@Sun.COM {
1939*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse);
1940*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_KMS_Discovery__DiscoverClusterResponse(soap, tag?tag:"KMS-Discovery:DiscoverClusterResponse", id, a, type))
1941*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
1942*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
1943*12720SWyllys.Ingersoll@Sun.COM }
1944*12720SWyllys.Ingersoll@Sun.COM 
soap_get_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,struct KMS_Discovery__DiscoverClusterResponse * p,const char * tag,const char * type)1945*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__DiscoverClusterResponse * SOAP_FMAC4 soap_get_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, struct KMS_Discovery__DiscoverClusterResponse *p, const char *tag, const char *type)
1946*12720SWyllys.Ingersoll@Sun.COM {
1947*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_KMS_Discovery__DiscoverClusterResponse(soap, tag, p, type)))
1948*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
1949*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1950*12720SWyllys.Ingersoll@Sun.COM 	return p;
1951*12720SWyllys.Ingersoll@Sun.COM }
1952*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)1953*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC1 struct KMS_Discovery__DiscoverClusterResponse * SOAP_FMAC2 soap_instantiate_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
1954*12720SWyllys.Ingersoll@Sun.COM {
1955*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
1956*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_KMS_Discovery__DiscoverClusterResponse(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
1957*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_KMS_Discovery__DiscoverClusterResponse, n, soap_fdelete);
1958*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
1959*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
1960*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
1961*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__DiscoverClusterResponse);
1962*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1963*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct KMS_Discovery__DiscoverClusterResponse);
1964*12720SWyllys.Ingersoll@Sun.COM 	}
1965*12720SWyllys.Ingersoll@Sun.COM 	else
1966*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__DiscoverClusterResponse[n]);
1967*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
1968*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
1969*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
1970*12720SWyllys.Ingersoll@Sun.COM 		}
1971*12720SWyllys.Ingersoll@Sun.COM 		if (size)
1972*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct KMS_Discovery__DiscoverClusterResponse);
1973*12720SWyllys.Ingersoll@Sun.COM 	}
1974*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
1975*12720SWyllys.Ingersoll@Sun.COM 	return (struct KMS_Discovery__DiscoverClusterResponse*)cp->ptr;
1976*12720SWyllys.Ingersoll@Sun.COM }
1977*12720SWyllys.Ingersoll@Sun.COM 
soap_copy_KMS_Discovery__DiscoverClusterResponse(struct soap * soap,int st,int tt,void * p,size_t len,const void * q,size_t n)1978*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_copy_KMS_Discovery__DiscoverClusterResponse(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
1979*12720SWyllys.Ingersoll@Sun.COM {
1980*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
1981*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct KMS_Discovery__DiscoverClusterResponse %p -> %p\n", q, p));
1982*12720SWyllys.Ingersoll@Sun.COM 	*(struct KMS_Discovery__DiscoverClusterResponse*)p = *(struct KMS_Discovery__DiscoverClusterResponse*)q;
1983*12720SWyllys.Ingersoll@Sun.COM }
1984*12720SWyllys.Ingersoll@Sun.COM 
soap_default_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,struct KMS_Discovery__ArrayOfClusterMembers * a)1985*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, struct KMS_Discovery__ArrayOfClusterMembers *a)
1986*12720SWyllys.Ingersoll@Sun.COM {
1987*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
1988*12720SWyllys.Ingersoll@Sun.COM 	a->__size = 0;
1989*12720SWyllys.Ingersoll@Sun.COM 	a->__ptr = NULL;
1990*12720SWyllys.Ingersoll@Sun.COM }
1991*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,struct KMS_Discovery__ArrayOfClusterMembers const * a)1992*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, struct KMS_Discovery__ArrayOfClusterMembers const*a)
1993*12720SWyllys.Ingersoll@Sun.COM {
1994*12720SWyllys.Ingersoll@Sun.COM 	int i;
1995*12720SWyllys.Ingersoll@Sun.COM 	if (a->__ptr && !soap_array_reference(soap, a, (struct soap_array*)&a->__ptr, 1, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers))
1996*12720SWyllys.Ingersoll@Sun.COM 		for (i = 0; i < a->__size; i++)
1997*12720SWyllys.Ingersoll@Sun.COM 		{	soap_embedded(soap, a->__ptr + i, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember);
1998*12720SWyllys.Ingersoll@Sun.COM 			soap_serialize_KMS_Discovery_ClusterMember(soap, a->__ptr + i);
1999*12720SWyllys.Ingersoll@Sun.COM 		}
2000*12720SWyllys.Ingersoll@Sun.COM }
2001*12720SWyllys.Ingersoll@Sun.COM 
soap_out_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,const char * tag,int id,const struct KMS_Discovery__ArrayOfClusterMembers * a,const char * type)2002*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, const char *tag, int id, const struct KMS_Discovery__ArrayOfClusterMembers *a, const char *type)
2003*12720SWyllys.Ingersoll@Sun.COM {
2004*12720SWyllys.Ingersoll@Sun.COM 	int i, n = a->__size;
2005*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers);
2006*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2007*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2008*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, id, type))
2009*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2010*12720SWyllys.Ingersoll@Sun.COM 	for (i = 0; i < n; i++)
2011*12720SWyllys.Ingersoll@Sun.COM 	{
2012*12720SWyllys.Ingersoll@Sun.COM 		soap_out_KMS_Discovery_ClusterMember(soap, "item", -1, &a->__ptr[i], "KMS-Discovery-ClusterMember");
2013*12720SWyllys.Ingersoll@Sun.COM 	}
2014*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
2015*12720SWyllys.Ingersoll@Sun.COM }
2016*12720SWyllys.Ingersoll@Sun.COM 
soap_in_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,const char * tag,struct KMS_Discovery__ArrayOfClusterMembers * a,const char * type)2017*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__ArrayOfClusterMembers * SOAP_FMAC4 soap_in_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, const char *tag, struct KMS_Discovery__ArrayOfClusterMembers *a, const char *type)
2018*12720SWyllys.Ingersoll@Sun.COM {	int i, j;
2019*12720SWyllys.Ingersoll@Sun.COM 	struct KMS_Discovery_ClusterMember *p;
2020*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2021*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2022*12720SWyllys.Ingersoll@Sun.COM 	if (*soap->type && soap_match_array(soap, "KMS-Discovery-ClusterMember") && soap_match_tag(soap, soap->type, type))
2023*12720SWyllys.Ingersoll@Sun.COM 	{	soap->error = SOAP_TYPE;
2024*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2025*12720SWyllys.Ingersoll@Sun.COM 	}
2026*12720SWyllys.Ingersoll@Sun.COM 	a = (struct KMS_Discovery__ArrayOfClusterMembers *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers, sizeof(struct KMS_Discovery__ArrayOfClusterMembers), 0, NULL, NULL, NULL);
2027*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2028*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2029*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Discovery__ArrayOfClusterMembers(soap, a);
2030*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
2031*12720SWyllys.Ingersoll@Sun.COM 	{
2032*12720SWyllys.Ingersoll@Sun.COM 		a->__size = soap_getsize(soap->arraySize, soap->arrayOffset, &j);
2033*12720SWyllys.Ingersoll@Sun.COM 		if (a->__size >= 0)
2034*12720SWyllys.Ingersoll@Sun.COM 		{	a->__ptr = (struct KMS_Discovery_ClusterMember *)soap_malloc(soap, sizeof(struct KMS_Discovery_ClusterMember) * a->__size);
2035*12720SWyllys.Ingersoll@Sun.COM 			for (i = 0; i < a->__size; i++)
2036*12720SWyllys.Ingersoll@Sun.COM 				soap_default_KMS_Discovery_ClusterMember(soap, a->__ptr+i);
2037*12720SWyllys.Ingersoll@Sun.COM 			for (i = 0; i < a->__size; i++)
2038*12720SWyllys.Ingersoll@Sun.COM 			{	soap_peek_element(soap);
2039*12720SWyllys.Ingersoll@Sun.COM 				if (soap->position)
2040*12720SWyllys.Ingersoll@Sun.COM 				{	i = soap->positions[0]-j;
2041*12720SWyllys.Ingersoll@Sun.COM 					if (i < 0 || i >= a->__size)
2042*12720SWyllys.Ingersoll@Sun.COM 					{	soap->error = SOAP_IOB;
2043*12720SWyllys.Ingersoll@Sun.COM 						return NULL;
2044*12720SWyllys.Ingersoll@Sun.COM 					}
2045*12720SWyllys.Ingersoll@Sun.COM 				}
2046*12720SWyllys.Ingersoll@Sun.COM 				if (!soap_in_KMS_Discovery_ClusterMember(soap, NULL, a->__ptr + i, "KMS-Discovery-ClusterMember"))
2047*12720SWyllys.Ingersoll@Sun.COM 				{	if (soap->error != SOAP_NO_TAG)
2048*12720SWyllys.Ingersoll@Sun.COM 						return NULL;
2049*12720SWyllys.Ingersoll@Sun.COM 					soap->error = SOAP_OK;
2050*12720SWyllys.Ingersoll@Sun.COM 					break;
2051*12720SWyllys.Ingersoll@Sun.COM 				}
2052*12720SWyllys.Ingersoll@Sun.COM 			}
2053*12720SWyllys.Ingersoll@Sun.COM 		}
2054*12720SWyllys.Ingersoll@Sun.COM 		else
2055*12720SWyllys.Ingersoll@Sun.COM 		{	if (soap_new_block(soap) == NULL)
2056*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
2057*12720SWyllys.Ingersoll@Sun.COM 			for (a->__size = 0; ; a->__size++)
2058*12720SWyllys.Ingersoll@Sun.COM 			{	p = (struct KMS_Discovery_ClusterMember *)soap_push_block(soap, NULL, sizeof(struct KMS_Discovery_ClusterMember));
2059*12720SWyllys.Ingersoll@Sun.COM 				if (!p)
2060*12720SWyllys.Ingersoll@Sun.COM 					return NULL;
2061*12720SWyllys.Ingersoll@Sun.COM 				soap_default_KMS_Discovery_ClusterMember(soap, p);
2062*12720SWyllys.Ingersoll@Sun.COM 				if (!soap_in_KMS_Discovery_ClusterMember(soap, NULL, p, "KMS-Discovery-ClusterMember"))
2063*12720SWyllys.Ingersoll@Sun.COM 				{	if (soap->error != SOAP_NO_TAG)
2064*12720SWyllys.Ingersoll@Sun.COM 						return NULL;
2065*12720SWyllys.Ingersoll@Sun.COM 					soap->error = SOAP_OK;
2066*12720SWyllys.Ingersoll@Sun.COM 					break;
2067*12720SWyllys.Ingersoll@Sun.COM 				}
2068*12720SWyllys.Ingersoll@Sun.COM 			}
2069*12720SWyllys.Ingersoll@Sun.COM 			soap_pop_block(soap, NULL);
2070*12720SWyllys.Ingersoll@Sun.COM 			a->__ptr = (struct KMS_Discovery_ClusterMember *)soap_malloc(soap, soap->blist->size);
2071*12720SWyllys.Ingersoll@Sun.COM 			soap_save_block(soap, NULL, (char*)a->__ptr, 1);
2072*12720SWyllys.Ingersoll@Sun.COM 		}
2073*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
2074*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2075*12720SWyllys.Ingersoll@Sun.COM 	}
2076*12720SWyllys.Ingersoll@Sun.COM 	else
2077*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct KMS_Discovery__ArrayOfClusterMembers *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers, 0, sizeof(struct KMS_Discovery__ArrayOfClusterMembers), 0, NULL);
2078*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2079*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2080*12720SWyllys.Ingersoll@Sun.COM 	}
2081*12720SWyllys.Ingersoll@Sun.COM 	return a;
2082*12720SWyllys.Ingersoll@Sun.COM }
2083*12720SWyllys.Ingersoll@Sun.COM 
soap_put_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,const struct KMS_Discovery__ArrayOfClusterMembers * a,const char * tag,const char * type)2084*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, const struct KMS_Discovery__ArrayOfClusterMembers *a, const char *tag, const char *type)
2085*12720SWyllys.Ingersoll@Sun.COM {
2086*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, (struct soap_array*)&a->__ptr, 1, tag, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers);
2087*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_KMS_Discovery__ArrayOfClusterMembers(soap, tag?tag:"SOAP-ENC:Array", id, a, type))
2088*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2089*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2090*12720SWyllys.Ingersoll@Sun.COM }
2091*12720SWyllys.Ingersoll@Sun.COM 
soap_get_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,struct KMS_Discovery__ArrayOfClusterMembers * p,const char * tag,const char * type)2092*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery__ArrayOfClusterMembers * SOAP_FMAC4 soap_get_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, struct KMS_Discovery__ArrayOfClusterMembers *p, const char *tag, const char *type)
2093*12720SWyllys.Ingersoll@Sun.COM {
2094*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_KMS_Discovery__ArrayOfClusterMembers(soap, tag, p, type)))
2095*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2096*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2097*12720SWyllys.Ingersoll@Sun.COM 	return p;
2098*12720SWyllys.Ingersoll@Sun.COM }
2099*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)2100*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC1 struct KMS_Discovery__ArrayOfClusterMembers * SOAP_FMAC2 soap_instantiate_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2101*12720SWyllys.Ingersoll@Sun.COM {
2102*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
2103*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_KMS_Discovery__ArrayOfClusterMembers(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2104*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_KMS_Discovery__ArrayOfClusterMembers, n, soap_fdelete);
2105*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
2106*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2107*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
2108*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__ArrayOfClusterMembers);
2109*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2110*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct KMS_Discovery__ArrayOfClusterMembers);
2111*12720SWyllys.Ingersoll@Sun.COM 	}
2112*12720SWyllys.Ingersoll@Sun.COM 	else
2113*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery__ArrayOfClusterMembers[n]);
2114*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
2115*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
2116*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2117*12720SWyllys.Ingersoll@Sun.COM 		}
2118*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2119*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct KMS_Discovery__ArrayOfClusterMembers);
2120*12720SWyllys.Ingersoll@Sun.COM 	}
2121*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2122*12720SWyllys.Ingersoll@Sun.COM 	return (struct KMS_Discovery__ArrayOfClusterMembers*)cp->ptr;
2123*12720SWyllys.Ingersoll@Sun.COM }
2124*12720SWyllys.Ingersoll@Sun.COM 
soap_copy_KMS_Discovery__ArrayOfClusterMembers(struct soap * soap,int st,int tt,void * p,size_t len,const void * q,size_t n)2125*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_copy_KMS_Discovery__ArrayOfClusterMembers(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2126*12720SWyllys.Ingersoll@Sun.COM {
2127*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
2128*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct KMS_Discovery__ArrayOfClusterMembers %p -> %p\n", q, p));
2129*12720SWyllys.Ingersoll@Sun.COM 	*(struct KMS_Discovery__ArrayOfClusterMembers*)p = *(struct KMS_Discovery__ArrayOfClusterMembers*)q;
2130*12720SWyllys.Ingersoll@Sun.COM }
2131*12720SWyllys.Ingersoll@Sun.COM 
soap_default_KMS_Discovery_ClusterMember(struct soap * soap,struct KMS_Discovery_ClusterMember * a)2132*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_KMS_Discovery_ClusterMember(struct soap *soap, struct KMS_Discovery_ClusterMember *a)
2133*12720SWyllys.Ingersoll@Sun.COM {
2134*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
2135*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__long(soap, &a->KMAID);
2136*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__string(soap, &a->KMAName);
2137*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__string(soap, &a->KMASiteID);
2138*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__string(soap, &a->KMAHostName);
2139*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__string(soap, &a->KMANetworkAddress);
2140*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__boolean(soap, &a->Enabled);
2141*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__int(soap, &a->Load);
2142*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__boolean(soap, &a->Responding);
2143*12720SWyllys.Ingersoll@Sun.COM 	a->KMAVersion = (char *)"";
2144*12720SWyllys.Ingersoll@Sun.COM 	a->KMAHostNameIPv6 = (char *)"";
2145*12720SWyllys.Ingersoll@Sun.COM 	a->KMANetworkAddressIPv6 = (char *)"";
2146*12720SWyllys.Ingersoll@Sun.COM 	a->KMS_Discovery__Locked = (bool)0;
2147*12720SWyllys.Ingersoll@Sun.COM }
2148*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_KMS_Discovery_ClusterMember(struct soap * soap,const struct KMS_Discovery_ClusterMember * a)2149*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_KMS_Discovery_ClusterMember(struct soap *soap, const struct KMS_Discovery_ClusterMember *a)
2150*12720SWyllys.Ingersoll@Sun.COM {
2151*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)a; /* appease -Wall -Werror */
2152*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_xsd__string(soap, &a->KMAName);
2153*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_xsd__string(soap, &a->KMASiteID);
2154*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_xsd__string(soap, &a->KMAHostName);
2155*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_xsd__string(soap, &a->KMANetworkAddress);
2156*12720SWyllys.Ingersoll@Sun.COM }
2157*12720SWyllys.Ingersoll@Sun.COM 
soap_out_KMS_Discovery_ClusterMember(struct soap * soap,const char * tag,int id,const struct KMS_Discovery_ClusterMember * a,const char * type)2158*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_KMS_Discovery_ClusterMember(struct soap *soap, const char *tag, int id, const struct KMS_Discovery_ClusterMember *a, const char *type)
2159*12720SWyllys.Ingersoll@Sun.COM {
2160*12720SWyllys.Ingersoll@Sun.COM 	if (a->KMAVersion)
2161*12720SWyllys.Ingersoll@Sun.COM 		soap_set_attr(soap, "KMAVersion", a->KMAVersion, 1);
2162*12720SWyllys.Ingersoll@Sun.COM 	if (a->KMAHostNameIPv6)
2163*12720SWyllys.Ingersoll@Sun.COM 		soap_set_attr(soap, "KMAHostNameIPv6", a->KMAHostNameIPv6, 1);
2164*12720SWyllys.Ingersoll@Sun.COM 	if (a->KMANetworkAddressIPv6)
2165*12720SWyllys.Ingersoll@Sun.COM 		soap_set_attr(soap, "KMANetworkAddressIPv6", a->KMANetworkAddressIPv6, 1);
2166*12720SWyllys.Ingersoll@Sun.COM 	soap_set_attr(soap, "KMS-Discovery:Locked", soap_xsd__boolean2s(soap, a->KMS_Discovery__Locked), 1);
2167*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember), type))
2168*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2169*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__long(soap, "KMAID", -1, &a->KMAID, "xsd:long"))
2170*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2171*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, "KMAName", -1, &a->KMAName, "xsd:string"))
2172*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2173*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, "KMASiteID", -1, &a->KMASiteID, "xsd:string"))
2174*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2175*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, "KMAHostName", -1, &a->KMAHostName, "xsd:string"))
2176*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2177*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, "KMANetworkAddress", -1, &a->KMANetworkAddress, "xsd:string"))
2178*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2179*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__boolean(soap, "Enabled", -1, &a->Enabled, "xsd:boolean"))
2180*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2181*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__int(soap, "Load", -1, &a->Load, "xsd:int"))
2182*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2183*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__boolean(soap, "Responding", -1, &a->Responding, "xsd:boolean"))
2184*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2185*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
2186*12720SWyllys.Ingersoll@Sun.COM }
2187*12720SWyllys.Ingersoll@Sun.COM 
soap_in_KMS_Discovery_ClusterMember(struct soap * soap,const char * tag,struct KMS_Discovery_ClusterMember * a,const char * type)2188*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery_ClusterMember * SOAP_FMAC4 soap_in_KMS_Discovery_ClusterMember(struct soap *soap, const char *tag, struct KMS_Discovery_ClusterMember *a, const char *type)
2189*12720SWyllys.Ingersoll@Sun.COM {
2190*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_KMAID = 1;
2191*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_KMAName = 1;
2192*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_KMASiteID = 1;
2193*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_KMAHostName = 1;
2194*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_KMANetworkAddress = 1;
2195*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_Enabled = 1;
2196*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_Load = 1;
2197*12720SWyllys.Ingersoll@Sun.COM 	size_t soap_flag_Responding = 1;
2198*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 0, type))
2199*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2200*12720SWyllys.Ingersoll@Sun.COM 	a = (struct KMS_Discovery_ClusterMember *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember, sizeof(struct KMS_Discovery_ClusterMember), 0, NULL, NULL, NULL);
2201*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2202*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2203*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Discovery_ClusterMember(soap, a);
2204*12720SWyllys.Ingersoll@Sun.COM 	if (soap_s2string(soap, soap_attr_value(soap, "KMAVersion", 0), &a->KMAVersion, -1, -1))
2205*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2206*12720SWyllys.Ingersoll@Sun.COM 	if (soap_s2string(soap, soap_attr_value(soap, "KMAHostNameIPv6", 0), &a->KMAHostNameIPv6, -1, -1))
2207*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2208*12720SWyllys.Ingersoll@Sun.COM 	if (soap_s2string(soap, soap_attr_value(soap, "KMANetworkAddressIPv6", 0), &a->KMANetworkAddressIPv6, -1, -1))
2209*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2210*12720SWyllys.Ingersoll@Sun.COM 	if (soap_s2xsd__boolean(soap, soap_attr_value(soap, "KMS-Discovery:Locked", 0), &a->KMS_Discovery__Locked))
2211*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2212*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
2213*12720SWyllys.Ingersoll@Sun.COM 	{
2214*12720SWyllys.Ingersoll@Sun.COM 		for (;;)
2215*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_TAG_MISMATCH;
2216*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_KMAID && soap->error == SOAP_TAG_MISMATCH)
2217*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__long(soap, "KMAID", &a->KMAID, "xsd:long"))
2218*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_KMAID--;
2219*12720SWyllys.Ingersoll@Sun.COM 					continue;
2220*12720SWyllys.Ingersoll@Sun.COM 				}
2221*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_KMAName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2222*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__string(soap, "KMAName", &a->KMAName, "xsd:string"))
2223*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_KMAName--;
2224*12720SWyllys.Ingersoll@Sun.COM 					continue;
2225*12720SWyllys.Ingersoll@Sun.COM 				}
2226*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_KMASiteID && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2227*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__string(soap, "KMASiteID", &a->KMASiteID, "xsd:string"))
2228*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_KMASiteID--;
2229*12720SWyllys.Ingersoll@Sun.COM 					continue;
2230*12720SWyllys.Ingersoll@Sun.COM 				}
2231*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_KMAHostName && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2232*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__string(soap, "KMAHostName", &a->KMAHostName, "xsd:string"))
2233*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_KMAHostName--;
2234*12720SWyllys.Ingersoll@Sun.COM 					continue;
2235*12720SWyllys.Ingersoll@Sun.COM 				}
2236*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_KMANetworkAddress && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
2237*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__string(soap, "KMANetworkAddress", &a->KMANetworkAddress, "xsd:string"))
2238*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_KMANetworkAddress--;
2239*12720SWyllys.Ingersoll@Sun.COM 					continue;
2240*12720SWyllys.Ingersoll@Sun.COM 				}
2241*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_Enabled && soap->error == SOAP_TAG_MISMATCH)
2242*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__boolean(soap, "Enabled", &a->Enabled, "xsd:boolean"))
2243*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_Enabled--;
2244*12720SWyllys.Ingersoll@Sun.COM 					continue;
2245*12720SWyllys.Ingersoll@Sun.COM 				}
2246*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_Load && soap->error == SOAP_TAG_MISMATCH)
2247*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__int(soap, "Load", &a->Load, "xsd:int"))
2248*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_Load--;
2249*12720SWyllys.Ingersoll@Sun.COM 					continue;
2250*12720SWyllys.Ingersoll@Sun.COM 				}
2251*12720SWyllys.Ingersoll@Sun.COM 			if (soap_flag_Responding && soap->error == SOAP_TAG_MISMATCH)
2252*12720SWyllys.Ingersoll@Sun.COM 				if (soap_in_xsd__boolean(soap, "Responding", &a->Responding, "xsd:boolean"))
2253*12720SWyllys.Ingersoll@Sun.COM 				{	soap_flag_Responding--;
2254*12720SWyllys.Ingersoll@Sun.COM 					continue;
2255*12720SWyllys.Ingersoll@Sun.COM 				}
2256*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_TAG_MISMATCH)
2257*12720SWyllys.Ingersoll@Sun.COM 				soap->error = soap_ignore_element(soap);
2258*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error == SOAP_NO_TAG)
2259*12720SWyllys.Ingersoll@Sun.COM 				break;
2260*12720SWyllys.Ingersoll@Sun.COM 			if (soap->error)
2261*12720SWyllys.Ingersoll@Sun.COM 				return NULL;
2262*12720SWyllys.Ingersoll@Sun.COM 		}
2263*12720SWyllys.Ingersoll@Sun.COM 		if (soap_element_end_in(soap, tag))
2264*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2265*12720SWyllys.Ingersoll@Sun.COM 	}
2266*12720SWyllys.Ingersoll@Sun.COM 	else
2267*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct KMS_Discovery_ClusterMember *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember, 0, sizeof(struct KMS_Discovery_ClusterMember), 0, NULL);
2268*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2269*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2270*12720SWyllys.Ingersoll@Sun.COM 	}
2271*12720SWyllys.Ingersoll@Sun.COM 	if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_KMAID > 0 || soap_flag_Enabled > 0 || soap_flag_Load > 0 || soap_flag_Responding > 0))
2272*12720SWyllys.Ingersoll@Sun.COM 	{	soap->error = SOAP_OCCURS;
2273*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2274*12720SWyllys.Ingersoll@Sun.COM 	}
2275*12720SWyllys.Ingersoll@Sun.COM 	return a;
2276*12720SWyllys.Ingersoll@Sun.COM }
2277*12720SWyllys.Ingersoll@Sun.COM 
soap_put_KMS_Discovery_ClusterMember(struct soap * soap,const struct KMS_Discovery_ClusterMember * a,const char * tag,const char * type)2278*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_KMS_Discovery_ClusterMember(struct soap *soap, const struct KMS_Discovery_ClusterMember *a, const char *tag, const char *type)
2279*12720SWyllys.Ingersoll@Sun.COM {
2280*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember);
2281*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_KMS_Discovery_ClusterMember(soap, tag?tag:"KMS-Discovery-ClusterMember", id, a, type))
2282*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2283*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2284*12720SWyllys.Ingersoll@Sun.COM }
2285*12720SWyllys.Ingersoll@Sun.COM 
soap_get_KMS_Discovery_ClusterMember(struct soap * soap,struct KMS_Discovery_ClusterMember * p,const char * tag,const char * type)2286*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery_ClusterMember * SOAP_FMAC4 soap_get_KMS_Discovery_ClusterMember(struct soap *soap, struct KMS_Discovery_ClusterMember *p, const char *tag, const char *type)
2287*12720SWyllys.Ingersoll@Sun.COM {
2288*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_KMS_Discovery_ClusterMember(soap, tag, p, type)))
2289*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2290*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2291*12720SWyllys.Ingersoll@Sun.COM 	return p;
2292*12720SWyllys.Ingersoll@Sun.COM }
2293*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_KMS_Discovery_ClusterMember(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)2294*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC1 struct KMS_Discovery_ClusterMember * SOAP_FMAC2 soap_instantiate_KMS_Discovery_ClusterMember(struct soap *soap, int n, const char *type, const char *arrayType, size_t *size)
2295*12720SWyllys.Ingersoll@Sun.COM {
2296*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
2297*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_KMS_Discovery_ClusterMember(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2298*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember, n, soap_fdelete);
2299*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
2300*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2301*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
2302*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery_ClusterMember);
2303*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2304*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct KMS_Discovery_ClusterMember);
2305*12720SWyllys.Ingersoll@Sun.COM 	}
2306*12720SWyllys.Ingersoll@Sun.COM 	else
2307*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct KMS_Discovery_ClusterMember[n]);
2308*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
2309*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
2310*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2311*12720SWyllys.Ingersoll@Sun.COM 		}
2312*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2313*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct KMS_Discovery_ClusterMember);
2314*12720SWyllys.Ingersoll@Sun.COM 	}
2315*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2316*12720SWyllys.Ingersoll@Sun.COM 	return (struct KMS_Discovery_ClusterMember*)cp->ptr;
2317*12720SWyllys.Ingersoll@Sun.COM }
2318*12720SWyllys.Ingersoll@Sun.COM 
soap_copy_KMS_Discovery_ClusterMember(struct soap * soap,int st,int tt,void * p,size_t len,const void * q,size_t n)2319*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_copy_KMS_Discovery_ClusterMember(struct soap *soap, int st, int tt, void *p, size_t len, const void *q, size_t n)
2320*12720SWyllys.Ingersoll@Sun.COM {
2321*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
2322*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct KMS_Discovery_ClusterMember %p -> %p\n", q, p));
2323*12720SWyllys.Ingersoll@Sun.COM 	*(struct KMS_Discovery_ClusterMember*)p = *(struct KMS_Discovery_ClusterMember*)q;
2324*12720SWyllys.Ingersoll@Sun.COM }
2325*12720SWyllys.Ingersoll@Sun.COM 
soap_default_xsd__hexBinary(struct soap * soap,struct xsd__hexBinary * a)2326*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_xsd__hexBinary(struct soap *soap, struct xsd__hexBinary *a)
2327*12720SWyllys.Ingersoll@Sun.COM {
2328*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
2329*12720SWyllys.Ingersoll@Sun.COM 	a->__size = 0;
2330*12720SWyllys.Ingersoll@Sun.COM 	a->__ptr = NULL;
2331*12720SWyllys.Ingersoll@Sun.COM }
2332*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_xsd__hexBinary(struct soap * soap,struct xsd__hexBinary const * a)2333*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_xsd__hexBinary(struct soap *soap, struct xsd__hexBinary const*a)
2334*12720SWyllys.Ingersoll@Sun.COM {
2335*12720SWyllys.Ingersoll@Sun.COM 	if (a->__ptr)
2336*12720SWyllys.Ingersoll@Sun.COM 		soap_array_reference(soap, a, (struct soap_array*)&a->__ptr, 1, SOAP_TYPE_KMS_Discovery_xsd__hexBinary);
2337*12720SWyllys.Ingersoll@Sun.COM }
2338*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__hexBinary(struct soap * soap,const char * tag,int id,const struct xsd__hexBinary * a,const char * type)2339*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)
2340*12720SWyllys.Ingersoll@Sun.COM {
2341*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, a, (struct soap_array*)&a->__ptr, 1, type, SOAP_TYPE_KMS_Discovery_xsd__hexBinary);
2342*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2343*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2344*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_out(soap, tag, id, type))
2345*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2346*12720SWyllys.Ingersoll@Sun.COM 	if (soap_puthex(soap, a->__ptr, a->__size))
2347*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2348*12720SWyllys.Ingersoll@Sun.COM 	return soap_element_end_out(soap, tag);
2349*12720SWyllys.Ingersoll@Sun.COM }
2350*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__hexBinary(struct soap * soap,const char * tag,struct xsd__hexBinary * a,const char * type)2351*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)
2352*12720SWyllys.Ingersoll@Sun.COM {
2353*12720SWyllys.Ingersoll@Sun.COM 	(void)type; /* appease -Wall -Werror */
2354*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2355*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2356*12720SWyllys.Ingersoll@Sun.COM 	if (*soap->type && soap_match_tag(soap, soap->type, type) && soap_match_tag(soap, soap->type, ":hexBinary"))
2357*12720SWyllys.Ingersoll@Sun.COM 	{	soap->error = SOAP_TYPE;
2358*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2359*12720SWyllys.Ingersoll@Sun.COM 	}
2360*12720SWyllys.Ingersoll@Sun.COM 	a = (struct xsd__hexBinary *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_KMS_Discovery_xsd__hexBinary, sizeof(struct xsd__hexBinary), 0, NULL, NULL, NULL);
2361*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2362*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2363*12720SWyllys.Ingersoll@Sun.COM 	soap_default_xsd__hexBinary(soap, a);
2364*12720SWyllys.Ingersoll@Sun.COM 	if (soap->body && !*soap->href)
2365*12720SWyllys.Ingersoll@Sun.COM 	{
2366*12720SWyllys.Ingersoll@Sun.COM 		a->__ptr = soap_gethex(soap, &a->__size);
2367*12720SWyllys.Ingersoll@Sun.COM 		if ((!a->__ptr && soap->error) || soap_element_end_in(soap, tag))
2368*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2369*12720SWyllys.Ingersoll@Sun.COM 	}
2370*12720SWyllys.Ingersoll@Sun.COM 	else
2371*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct xsd__hexBinary *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_KMS_Discovery_xsd__hexBinary, 0, sizeof(struct xsd__hexBinary), 0, NULL);
2372*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2373*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2374*12720SWyllys.Ingersoll@Sun.COM 	}
2375*12720SWyllys.Ingersoll@Sun.COM 	return a;
2376*12720SWyllys.Ingersoll@Sun.COM }
2377*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__hexBinary(struct soap * soap,const struct xsd__hexBinary * a,const char * tag,const char * type)2378*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)
2379*12720SWyllys.Ingersoll@Sun.COM {
2380*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, (struct soap_array*)&a->__ptr, 1, tag, SOAP_TYPE_KMS_Discovery_xsd__hexBinary);
2381*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__hexBinary(soap, tag?tag:"SOAP-ENC:Array", id, a, type))
2382*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2383*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2384*12720SWyllys.Ingersoll@Sun.COM }
2385*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__hexBinary(struct soap * soap,struct xsd__hexBinary * p,const char * tag,const char * type)2386*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)
2387*12720SWyllys.Ingersoll@Sun.COM {
2388*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__hexBinary(soap, tag, p, type)))
2389*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2390*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2391*12720SWyllys.Ingersoll@Sun.COM 	return p;
2392*12720SWyllys.Ingersoll@Sun.COM }
2393*12720SWyllys.Ingersoll@Sun.COM 
soap_instantiate_xsd__hexBinary(struct soap * soap,int n,const char * type,const char * arrayType,size_t * size)2394*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)
2395*12720SWyllys.Ingersoll@Sun.COM {
2396*12720SWyllys.Ingersoll@Sun.COM 	(void)type; (void)arrayType; /* appease -Wall -Werror */
2397*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_instantiate_xsd__hexBinary(%d, %s, %s)\n", n, type?type:"", arrayType?arrayType:""));
2398*12720SWyllys.Ingersoll@Sun.COM 	struct soap_clist *cp = soap_link(soap, NULL, SOAP_TYPE_KMS_Discovery_xsd__hexBinary, n, soap_fdelete);
2399*12720SWyllys.Ingersoll@Sun.COM 	if (!cp)
2400*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2401*12720SWyllys.Ingersoll@Sun.COM 	if (n < 0)
2402*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct xsd__hexBinary);
2403*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2404*12720SWyllys.Ingersoll@Sun.COM 			*size = sizeof(struct xsd__hexBinary);
2405*12720SWyllys.Ingersoll@Sun.COM 	}
2406*12720SWyllys.Ingersoll@Sun.COM 	else
2407*12720SWyllys.Ingersoll@Sun.COM 	{	cp->ptr = (void*)SOAP_NEW(struct xsd__hexBinary[n]);
2408*12720SWyllys.Ingersoll@Sun.COM 		if (!cp->ptr)
2409*12720SWyllys.Ingersoll@Sun.COM 		{	soap->error = SOAP_EOM;
2410*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2411*12720SWyllys.Ingersoll@Sun.COM 		}
2412*12720SWyllys.Ingersoll@Sun.COM 		if (size)
2413*12720SWyllys.Ingersoll@Sun.COM 			*size = n * sizeof(struct xsd__hexBinary);
2414*12720SWyllys.Ingersoll@Sun.COM 	}
2415*12720SWyllys.Ingersoll@Sun.COM 		DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Instantiated location=%p\n", cp->ptr));
2416*12720SWyllys.Ingersoll@Sun.COM 	return (struct xsd__hexBinary*)cp->ptr;
2417*12720SWyllys.Ingersoll@Sun.COM }
2418*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)2419*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)
2420*12720SWyllys.Ingersoll@Sun.COM {
2421*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; (void)st; (void)len; (void)n; /* appease -Wall -Werror */
2422*12720SWyllys.Ingersoll@Sun.COM 	DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Copying struct xsd__hexBinary %p -> %p\n", q, p));
2423*12720SWyllys.Ingersoll@Sun.COM 	*(struct xsd__hexBinary*)p = *(struct xsd__hexBinary*)q;
2424*12720SWyllys.Ingersoll@Sun.COM }
2425*12720SWyllys.Ingersoll@Sun.COM 
2426*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
2427*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_PointerToSOAP_ENV__Reason(struct soap * soap,struct SOAP_ENV__Reason * const * a)2428*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap *soap, struct SOAP_ENV__Reason *const*a)
2429*12720SWyllys.Ingersoll@Sun.COM {
2430*12720SWyllys.Ingersoll@Sun.COM 	if (!soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason))
2431*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_SOAP_ENV__Reason(soap, *a);
2432*12720SWyllys.Ingersoll@Sun.COM }
2433*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)2434*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)
2435*12720SWyllys.Ingersoll@Sun.COM {
2436*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason);
2437*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2438*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2439*12720SWyllys.Ingersoll@Sun.COM 	return soap_out_SOAP_ENV__Reason(soap, tag, id, *a, type);
2440*12720SWyllys.Ingersoll@Sun.COM }
2441*12720SWyllys.Ingersoll@Sun.COM 
soap_in_PointerToSOAP_ENV__Reason(struct soap * soap,const char * tag,struct SOAP_ENV__Reason ** a,const char * type)2442*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)
2443*12720SWyllys.Ingersoll@Sun.COM {
2444*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2445*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2446*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2447*12720SWyllys.Ingersoll@Sun.COM 		if (!(a = (struct SOAP_ENV__Reason **)soap_malloc(soap, sizeof(struct SOAP_ENV__Reason *))))
2448*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2449*12720SWyllys.Ingersoll@Sun.COM 	*a = NULL;
2450*12720SWyllys.Ingersoll@Sun.COM 	if (!soap->null && *soap->href != '#')
2451*12720SWyllys.Ingersoll@Sun.COM 	{	soap_revert(soap);
2452*12720SWyllys.Ingersoll@Sun.COM 		if (!(*a = soap_in_SOAP_ENV__Reason(soap, tag, *a, type)))
2453*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2454*12720SWyllys.Ingersoll@Sun.COM 	}
2455*12720SWyllys.Ingersoll@Sun.COM 	else
2456*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Reason **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Reason, sizeof(struct SOAP_ENV__Reason), 0);
2457*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2458*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2459*12720SWyllys.Ingersoll@Sun.COM 	}
2460*12720SWyllys.Ingersoll@Sun.COM 	return a;
2461*12720SWyllys.Ingersoll@Sun.COM }
2462*12720SWyllys.Ingersoll@Sun.COM 
soap_put_PointerToSOAP_ENV__Reason(struct soap * soap,struct SOAP_ENV__Reason * const * a,const char * tag,const char * type)2463*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)
2464*12720SWyllys.Ingersoll@Sun.COM {
2465*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_PointerToSOAP_ENV__Reason);
2466*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Reason(soap, tag?tag:"SOAP-ENV:Reason", id, a, type))
2467*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2468*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2469*12720SWyllys.Ingersoll@Sun.COM }
2470*12720SWyllys.Ingersoll@Sun.COM 
soap_get_PointerToSOAP_ENV__Reason(struct soap * soap,struct SOAP_ENV__Reason ** p,const char * tag,const char * type)2471*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)
2472*12720SWyllys.Ingersoll@Sun.COM {
2473*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_PointerToSOAP_ENV__Reason(soap, tag, p, type)))
2474*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2475*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2476*12720SWyllys.Ingersoll@Sun.COM 	return p;
2477*12720SWyllys.Ingersoll@Sun.COM }
2478*12720SWyllys.Ingersoll@Sun.COM 
2479*12720SWyllys.Ingersoll@Sun.COM #endif
2480*12720SWyllys.Ingersoll@Sun.COM 
2481*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
2482*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_PointerToSOAP_ENV__Detail(struct soap * soap,struct SOAP_ENV__Detail * const * a)2483*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap *soap, struct SOAP_ENV__Detail *const*a)
2484*12720SWyllys.Ingersoll@Sun.COM {
2485*12720SWyllys.Ingersoll@Sun.COM 	if (!soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail))
2486*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_SOAP_ENV__Detail(soap, *a);
2487*12720SWyllys.Ingersoll@Sun.COM }
2488*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)2489*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)
2490*12720SWyllys.Ingersoll@Sun.COM {
2491*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail);
2492*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2493*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2494*12720SWyllys.Ingersoll@Sun.COM 	return soap_out_SOAP_ENV__Detail(soap, tag, id, *a, type);
2495*12720SWyllys.Ingersoll@Sun.COM }
2496*12720SWyllys.Ingersoll@Sun.COM 
soap_in_PointerToSOAP_ENV__Detail(struct soap * soap,const char * tag,struct SOAP_ENV__Detail ** a,const char * type)2497*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)
2498*12720SWyllys.Ingersoll@Sun.COM {
2499*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2500*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2501*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2502*12720SWyllys.Ingersoll@Sun.COM 		if (!(a = (struct SOAP_ENV__Detail **)soap_malloc(soap, sizeof(struct SOAP_ENV__Detail *))))
2503*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2504*12720SWyllys.Ingersoll@Sun.COM 	*a = NULL;
2505*12720SWyllys.Ingersoll@Sun.COM 	if (!soap->null && *soap->href != '#')
2506*12720SWyllys.Ingersoll@Sun.COM 	{	soap_revert(soap);
2507*12720SWyllys.Ingersoll@Sun.COM 		if (!(*a = soap_in_SOAP_ENV__Detail(soap, tag, *a, type)))
2508*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2509*12720SWyllys.Ingersoll@Sun.COM 	}
2510*12720SWyllys.Ingersoll@Sun.COM 	else
2511*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Detail **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Detail, sizeof(struct SOAP_ENV__Detail), 0);
2512*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2513*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2514*12720SWyllys.Ingersoll@Sun.COM 	}
2515*12720SWyllys.Ingersoll@Sun.COM 	return a;
2516*12720SWyllys.Ingersoll@Sun.COM }
2517*12720SWyllys.Ingersoll@Sun.COM 
soap_put_PointerToSOAP_ENV__Detail(struct soap * soap,struct SOAP_ENV__Detail * const * a,const char * tag,const char * type)2518*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)
2519*12720SWyllys.Ingersoll@Sun.COM {
2520*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_PointerToSOAP_ENV__Detail);
2521*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Detail(soap, tag?tag:"SOAP-ENV:Detail", id, a, type))
2522*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2523*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2524*12720SWyllys.Ingersoll@Sun.COM }
2525*12720SWyllys.Ingersoll@Sun.COM 
soap_get_PointerToSOAP_ENV__Detail(struct soap * soap,struct SOAP_ENV__Detail ** p,const char * tag,const char * type)2526*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)
2527*12720SWyllys.Ingersoll@Sun.COM {
2528*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_PointerToSOAP_ENV__Detail(soap, tag, p, type)))
2529*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2530*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2531*12720SWyllys.Ingersoll@Sun.COM 	return p;
2532*12720SWyllys.Ingersoll@Sun.COM }
2533*12720SWyllys.Ingersoll@Sun.COM 
2534*12720SWyllys.Ingersoll@Sun.COM #endif
2535*12720SWyllys.Ingersoll@Sun.COM 
2536*12720SWyllys.Ingersoll@Sun.COM #ifndef WITH_NOGLOBAL
2537*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_PointerToSOAP_ENV__Code(struct soap * soap,struct SOAP_ENV__Code * const * a)2538*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap *soap, struct SOAP_ENV__Code *const*a)
2539*12720SWyllys.Ingersoll@Sun.COM {
2540*12720SWyllys.Ingersoll@Sun.COM 	if (!soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code))
2541*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_SOAP_ENV__Code(soap, *a);
2542*12720SWyllys.Ingersoll@Sun.COM }
2543*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)2544*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)
2545*12720SWyllys.Ingersoll@Sun.COM {
2546*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code);
2547*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2548*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2549*12720SWyllys.Ingersoll@Sun.COM 	return soap_out_SOAP_ENV__Code(soap, tag, id, *a, type);
2550*12720SWyllys.Ingersoll@Sun.COM }
2551*12720SWyllys.Ingersoll@Sun.COM 
soap_in_PointerToSOAP_ENV__Code(struct soap * soap,const char * tag,struct SOAP_ENV__Code ** a,const char * type)2552*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)
2553*12720SWyllys.Ingersoll@Sun.COM {
2554*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2555*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2556*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2557*12720SWyllys.Ingersoll@Sun.COM 		if (!(a = (struct SOAP_ENV__Code **)soap_malloc(soap, sizeof(struct SOAP_ENV__Code *))))
2558*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2559*12720SWyllys.Ingersoll@Sun.COM 	*a = NULL;
2560*12720SWyllys.Ingersoll@Sun.COM 	if (!soap->null && *soap->href != '#')
2561*12720SWyllys.Ingersoll@Sun.COM 	{	soap_revert(soap);
2562*12720SWyllys.Ingersoll@Sun.COM 		if (!(*a = soap_in_SOAP_ENV__Code(soap, tag, *a, type)))
2563*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2564*12720SWyllys.Ingersoll@Sun.COM 	}
2565*12720SWyllys.Ingersoll@Sun.COM 	else
2566*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct SOAP_ENV__Code **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_KMS_Discovery_SOAP_ENV__Code, sizeof(struct SOAP_ENV__Code), 0);
2567*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2568*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2569*12720SWyllys.Ingersoll@Sun.COM 	}
2570*12720SWyllys.Ingersoll@Sun.COM 	return a;
2571*12720SWyllys.Ingersoll@Sun.COM }
2572*12720SWyllys.Ingersoll@Sun.COM 
soap_put_PointerToSOAP_ENV__Code(struct soap * soap,struct SOAP_ENV__Code * const * a,const char * tag,const char * type)2573*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)
2574*12720SWyllys.Ingersoll@Sun.COM {
2575*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_PointerToSOAP_ENV__Code);
2576*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToSOAP_ENV__Code(soap, tag?tag:"SOAP-ENV:Code", id, a, type))
2577*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2578*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2579*12720SWyllys.Ingersoll@Sun.COM }
2580*12720SWyllys.Ingersoll@Sun.COM 
soap_get_PointerToSOAP_ENV__Code(struct soap * soap,struct SOAP_ENV__Code ** p,const char * tag,const char * type)2581*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)
2582*12720SWyllys.Ingersoll@Sun.COM {
2583*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_PointerToSOAP_ENV__Code(soap, tag, p, type)))
2584*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2585*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2586*12720SWyllys.Ingersoll@Sun.COM 	return p;
2587*12720SWyllys.Ingersoll@Sun.COM }
2588*12720SWyllys.Ingersoll@Sun.COM 
2589*12720SWyllys.Ingersoll@Sun.COM #endif
2590*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_PointerToKMS_Discovery_ClusterMember(struct soap * soap,struct KMS_Discovery_ClusterMember * const * a)2591*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToKMS_Discovery_ClusterMember(struct soap *soap, struct KMS_Discovery_ClusterMember *const*a)
2592*12720SWyllys.Ingersoll@Sun.COM {
2593*12720SWyllys.Ingersoll@Sun.COM 	if (!soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember))
2594*12720SWyllys.Ingersoll@Sun.COM 		soap_serialize_KMS_Discovery_ClusterMember(soap, *a);
2595*12720SWyllys.Ingersoll@Sun.COM }
2596*12720SWyllys.Ingersoll@Sun.COM 
soap_out_PointerToKMS_Discovery_ClusterMember(struct soap * soap,const char * tag,int id,struct KMS_Discovery_ClusterMember * const * a,const char * type)2597*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerToKMS_Discovery_ClusterMember(struct soap *soap, const char *tag, int id, struct KMS_Discovery_ClusterMember *const*a, const char *type)
2598*12720SWyllys.Ingersoll@Sun.COM {
2599*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember);
2600*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2601*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2602*12720SWyllys.Ingersoll@Sun.COM 	return soap_out_KMS_Discovery_ClusterMember(soap, tag, id, *a, type);
2603*12720SWyllys.Ingersoll@Sun.COM }
2604*12720SWyllys.Ingersoll@Sun.COM 
soap_in_PointerToKMS_Discovery_ClusterMember(struct soap * soap,const char * tag,struct KMS_Discovery_ClusterMember ** a,const char * type)2605*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery_ClusterMember ** SOAP_FMAC4 soap_in_PointerToKMS_Discovery_ClusterMember(struct soap *soap, const char *tag, struct KMS_Discovery_ClusterMember **a, const char *type)
2606*12720SWyllys.Ingersoll@Sun.COM {
2607*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2608*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2609*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2610*12720SWyllys.Ingersoll@Sun.COM 		if (!(a = (struct KMS_Discovery_ClusterMember **)soap_malloc(soap, sizeof(struct KMS_Discovery_ClusterMember *))))
2611*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2612*12720SWyllys.Ingersoll@Sun.COM 	*a = NULL;
2613*12720SWyllys.Ingersoll@Sun.COM 	if (!soap->null && *soap->href != '#')
2614*12720SWyllys.Ingersoll@Sun.COM 	{	soap_revert(soap);
2615*12720SWyllys.Ingersoll@Sun.COM 		if (!(*a = soap_in_KMS_Discovery_ClusterMember(soap, tag, *a, type)))
2616*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2617*12720SWyllys.Ingersoll@Sun.COM 	}
2618*12720SWyllys.Ingersoll@Sun.COM 	else
2619*12720SWyllys.Ingersoll@Sun.COM 	{	a = (struct KMS_Discovery_ClusterMember **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_KMS_Discovery_KMS_Discovery_ClusterMember, sizeof(struct KMS_Discovery_ClusterMember), 0);
2620*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2621*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2622*12720SWyllys.Ingersoll@Sun.COM 	}
2623*12720SWyllys.Ingersoll@Sun.COM 	return a;
2624*12720SWyllys.Ingersoll@Sun.COM }
2625*12720SWyllys.Ingersoll@Sun.COM 
soap_put_PointerToKMS_Discovery_ClusterMember(struct soap * soap,struct KMS_Discovery_ClusterMember * const * a,const char * tag,const char * type)2626*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerToKMS_Discovery_ClusterMember(struct soap *soap, struct KMS_Discovery_ClusterMember *const*a, const char *tag, const char *type)
2627*12720SWyllys.Ingersoll@Sun.COM {
2628*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_PointerToKMS_Discovery_ClusterMember);
2629*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerToKMS_Discovery_ClusterMember(soap, tag?tag:"KMS-Discovery-ClusterMember", id, a, type))
2630*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2631*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2632*12720SWyllys.Ingersoll@Sun.COM }
2633*12720SWyllys.Ingersoll@Sun.COM 
soap_get_PointerToKMS_Discovery_ClusterMember(struct soap * soap,struct KMS_Discovery_ClusterMember ** p,const char * tag,const char * type)2634*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 struct KMS_Discovery_ClusterMember ** SOAP_FMAC4 soap_get_PointerToKMS_Discovery_ClusterMember(struct soap *soap, struct KMS_Discovery_ClusterMember **p, const char *tag, const char *type)
2635*12720SWyllys.Ingersoll@Sun.COM {
2636*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_PointerToKMS_Discovery_ClusterMember(soap, tag, p, type)))
2637*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2638*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2639*12720SWyllys.Ingersoll@Sun.COM 	return p;
2640*12720SWyllys.Ingersoll@Sun.COM }
2641*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_PointerTounsignedByte(struct soap * soap,unsigned char * const * a)2642*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTounsignedByte(struct soap *soap, unsigned char *const*a)
2643*12720SWyllys.Ingersoll@Sun.COM {
2644*12720SWyllys.Ingersoll@Sun.COM 	soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_unsignedByte);
2645*12720SWyllys.Ingersoll@Sun.COM }
2646*12720SWyllys.Ingersoll@Sun.COM 
soap_out_PointerTounsignedByte(struct soap * soap,const char * tag,int id,unsigned char * const * a,const char * type)2647*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)
2648*12720SWyllys.Ingersoll@Sun.COM {
2649*12720SWyllys.Ingersoll@Sun.COM 	id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_KMS_Discovery_unsignedByte);
2650*12720SWyllys.Ingersoll@Sun.COM 	if (id < 0)
2651*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2652*12720SWyllys.Ingersoll@Sun.COM 	return soap_out_unsignedByte(soap, tag, id, *a, type);
2653*12720SWyllys.Ingersoll@Sun.COM }
2654*12720SWyllys.Ingersoll@Sun.COM 
soap_in_PointerTounsignedByte(struct soap * soap,const char * tag,unsigned char ** a,const char * type)2655*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)
2656*12720SWyllys.Ingersoll@Sun.COM {
2657*12720SWyllys.Ingersoll@Sun.COM 	if (soap_element_begin_in(soap, tag, 1, NULL))
2658*12720SWyllys.Ingersoll@Sun.COM 		return NULL;
2659*12720SWyllys.Ingersoll@Sun.COM 	if (!a)
2660*12720SWyllys.Ingersoll@Sun.COM 		if (!(a = (unsigned char **)soap_malloc(soap, sizeof(unsigned char *))))
2661*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2662*12720SWyllys.Ingersoll@Sun.COM 	*a = NULL;
2663*12720SWyllys.Ingersoll@Sun.COM 	if (!soap->null && *soap->href != '#')
2664*12720SWyllys.Ingersoll@Sun.COM 	{	soap_revert(soap);
2665*12720SWyllys.Ingersoll@Sun.COM 		if (!(*a = soap_in_unsignedByte(soap, tag, *a, type)))
2666*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2667*12720SWyllys.Ingersoll@Sun.COM 	}
2668*12720SWyllys.Ingersoll@Sun.COM 	else
2669*12720SWyllys.Ingersoll@Sun.COM 	{	a = (unsigned char **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_KMS_Discovery_unsignedByte, sizeof(unsigned char), 0);
2670*12720SWyllys.Ingersoll@Sun.COM 		if (soap->body && soap_element_end_in(soap, tag))
2671*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2672*12720SWyllys.Ingersoll@Sun.COM 	}
2673*12720SWyllys.Ingersoll@Sun.COM 	return a;
2674*12720SWyllys.Ingersoll@Sun.COM }
2675*12720SWyllys.Ingersoll@Sun.COM 
soap_put_PointerTounsignedByte(struct soap * soap,unsigned char * const * a,const char * tag,const char * type)2676*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)
2677*12720SWyllys.Ingersoll@Sun.COM {
2678*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_PointerTounsignedByte);
2679*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_PointerTounsignedByte(soap, tag?tag:"unsignedByte", id, a, type))
2680*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2681*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2682*12720SWyllys.Ingersoll@Sun.COM }
2683*12720SWyllys.Ingersoll@Sun.COM 
soap_get_PointerTounsignedByte(struct soap * soap,unsigned char ** p,const char * tag,const char * type)2684*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)
2685*12720SWyllys.Ingersoll@Sun.COM {
2686*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_PointerTounsignedByte(soap, tag, p, type)))
2687*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2688*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2689*12720SWyllys.Ingersoll@Sun.COM 	return p;
2690*12720SWyllys.Ingersoll@Sun.COM }
2691*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__networkAddress(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2692*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__networkAddress(struct soap *soap, const char *tag, int id, char *const*a, const char *type)
2693*12720SWyllys.Ingersoll@Sun.COM {
2694*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__networkAddress);
2695*12720SWyllys.Ingersoll@Sun.COM }
2696*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__networkAddress(struct soap * soap,const char * tag,char ** a,const char * type)2697*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_xsd__networkAddress(struct soap *soap, const char *tag, char **a, const char *type)
2698*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2699*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__networkAddress, 1, -1, -1);
2700*12720SWyllys.Ingersoll@Sun.COM 	return p;
2701*12720SWyllys.Ingersoll@Sun.COM }
2702*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__networkAddress(struct soap * soap,char * const * a,const char * tag,const char * type)2703*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__networkAddress(struct soap *soap, char *const*a, const char *tag, const char *type)
2704*12720SWyllys.Ingersoll@Sun.COM {
2705*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__networkAddress);
2706*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__networkAddress(soap, tag?tag:"byte", id, a, type))
2707*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2708*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2709*12720SWyllys.Ingersoll@Sun.COM }
2710*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__networkAddress(struct soap * soap,char ** p,const char * tag,const char * type)2711*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_xsd__networkAddress(struct soap *soap, char **p, const char *tag, const char *type)
2712*12720SWyllys.Ingersoll@Sun.COM {
2713*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__networkAddress(soap, tag, p, type)))
2714*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2715*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2716*12720SWyllys.Ingersoll@Sun.COM 	return p;
2717*12720SWyllys.Ingersoll@Sun.COM }
2718*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__kmaVersion(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2719*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_out_xsd__kmaVersion(struct soap *soap, const char *tag, int id, char *const*a, const char *type)
2720*12720SWyllys.Ingersoll@Sun.COM {
2721*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__kmaVersion);
2722*12720SWyllys.Ingersoll@Sun.COM }
2723*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__kmaVersion(struct soap * soap,const char * tag,char ** a,const char * type)2724*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_xsd__kmaVersion(struct soap *soap, const char *tag, char **a, const char *type)
2725*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2726*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__kmaVersion, 1, -1, -1);
2727*12720SWyllys.Ingersoll@Sun.COM 	return p;
2728*12720SWyllys.Ingersoll@Sun.COM }
2729*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__kmaVersion(struct soap * soap,char * const * a,const char * tag,const char * type)2730*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_xsd__kmaVersion(struct soap *soap, char *const*a, const char *tag, const char *type)
2731*12720SWyllys.Ingersoll@Sun.COM {
2732*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__kmaVersion);
2733*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__kmaVersion(soap, tag?tag:"byte", id, a, type))
2734*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2735*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2736*12720SWyllys.Ingersoll@Sun.COM }
2737*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__kmaVersion(struct soap * soap,char ** p,const char * tag,const char * type)2738*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_xsd__kmaVersion(struct soap *soap, char **p, const char *tag, const char *type)
2739*12720SWyllys.Ingersoll@Sun.COM {
2740*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__kmaVersion(soap, tag, p, type)))
2741*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2742*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2743*12720SWyllys.Ingersoll@Sun.COM 	return p;
2744*12720SWyllys.Ingersoll@Sun.COM }
2745*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__duration(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2746*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)
2747*12720SWyllys.Ingersoll@Sun.COM {
2748*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__duration);
2749*12720SWyllys.Ingersoll@Sun.COM }
2750*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__duration(struct soap * soap,const char * tag,char ** a,const char * type)2751*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_xsd__duration(struct soap *soap, const char *tag, char **a, const char *type)
2752*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2753*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__duration, 1, -1, -1);
2754*12720SWyllys.Ingersoll@Sun.COM 	return p;
2755*12720SWyllys.Ingersoll@Sun.COM }
2756*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__duration(struct soap * soap,char * const * a,const char * tag,const char * type)2757*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)
2758*12720SWyllys.Ingersoll@Sun.COM {
2759*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__duration);
2760*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__duration(soap, tag?tag:"byte", id, a, type))
2761*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2762*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2763*12720SWyllys.Ingersoll@Sun.COM }
2764*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__duration(struct soap * soap,char ** p,const char * tag,const char * type)2765*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_xsd__duration(struct soap *soap, char **p, const char *tag, const char *type)
2766*12720SWyllys.Ingersoll@Sun.COM {
2767*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__duration(soap, tag, p, type)))
2768*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2769*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2770*12720SWyllys.Ingersoll@Sun.COM 	return p;
2771*12720SWyllys.Ingersoll@Sun.COM }
2772*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__dateTime(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2773*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)
2774*12720SWyllys.Ingersoll@Sun.COM {
2775*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__dateTime);
2776*12720SWyllys.Ingersoll@Sun.COM }
2777*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__dateTime(struct soap * soap,const char * tag,char ** a,const char * type)2778*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_xsd__dateTime(struct soap *soap, const char *tag, char **a, const char *type)
2779*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2780*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__dateTime, 1, -1, -1);
2781*12720SWyllys.Ingersoll@Sun.COM 	return p;
2782*12720SWyllys.Ingersoll@Sun.COM }
2783*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__dateTime(struct soap * soap,char * const * a,const char * tag,const char * type)2784*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)
2785*12720SWyllys.Ingersoll@Sun.COM {
2786*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__dateTime);
2787*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__dateTime(soap, tag?tag:"byte", id, a, type))
2788*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2789*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2790*12720SWyllys.Ingersoll@Sun.COM }
2791*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__dateTime(struct soap * soap,char ** p,const char * tag,const char * type)2792*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_xsd__dateTime(struct soap *soap, char **p, const char *tag, const char *type)
2793*12720SWyllys.Ingersoll@Sun.COM {
2794*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__dateTime(soap, tag, p, type)))
2795*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2796*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2797*12720SWyllys.Ingersoll@Sun.COM 	return p;
2798*12720SWyllys.Ingersoll@Sun.COM }
2799*12720SWyllys.Ingersoll@Sun.COM 
soap_out_xsd__string(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2800*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)
2801*12720SWyllys.Ingersoll@Sun.COM {
2802*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_xsd__string);
2803*12720SWyllys.Ingersoll@Sun.COM }
2804*12720SWyllys.Ingersoll@Sun.COM 
soap_in_xsd__string(struct soap * soap,const char * tag,char ** a,const char * type)2805*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_xsd__string(struct soap *soap, const char *tag, char **a, const char *type)
2806*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2807*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_xsd__string, 1, -1, -1);
2808*12720SWyllys.Ingersoll@Sun.COM 	return p;
2809*12720SWyllys.Ingersoll@Sun.COM }
2810*12720SWyllys.Ingersoll@Sun.COM 
soap_put_xsd__string(struct soap * soap,char * const * a,const char * tag,const char * type)2811*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)
2812*12720SWyllys.Ingersoll@Sun.COM {
2813*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_xsd__string);
2814*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_xsd__string(soap, tag?tag:"byte", id, a, type))
2815*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2816*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2817*12720SWyllys.Ingersoll@Sun.COM }
2818*12720SWyllys.Ingersoll@Sun.COM 
soap_get_xsd__string(struct soap * soap,char ** p,const char * tag,const char * type)2819*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_xsd__string(struct soap *soap, char **p, const char *tag, const char *type)
2820*12720SWyllys.Ingersoll@Sun.COM {
2821*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_xsd__string(soap, tag, p, type)))
2822*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2823*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2824*12720SWyllys.Ingersoll@Sun.COM 	return p;
2825*12720SWyllys.Ingersoll@Sun.COM }
2826*12720SWyllys.Ingersoll@Sun.COM 
soap_out__QName(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2827*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)
2828*12720SWyllys.Ingersoll@Sun.COM {
2829*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery__QName);
2830*12720SWyllys.Ingersoll@Sun.COM }
2831*12720SWyllys.Ingersoll@Sun.COM 
soap_in__QName(struct soap * soap,const char * tag,char ** a,const char * type)2832*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in__QName(struct soap *soap, const char *tag, char **a, const char *type)
2833*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2834*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery__QName, 2, -1, -1);
2835*12720SWyllys.Ingersoll@Sun.COM 	return p;
2836*12720SWyllys.Ingersoll@Sun.COM }
2837*12720SWyllys.Ingersoll@Sun.COM 
soap_put__QName(struct soap * soap,char * const * a,const char * tag,const char * type)2838*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put__QName(struct soap *soap, char *const*a, const char *tag, const char *type)
2839*12720SWyllys.Ingersoll@Sun.COM {
2840*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery__QName);
2841*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out__QName(soap, tag?tag:"byte", id, a, type))
2842*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2843*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2844*12720SWyllys.Ingersoll@Sun.COM }
2845*12720SWyllys.Ingersoll@Sun.COM 
soap_get__QName(struct soap * soap,char ** p,const char * tag,const char * type)2846*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get__QName(struct soap *soap, char **p, const char *tag, const char *type)
2847*12720SWyllys.Ingersoll@Sun.COM {
2848*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in__QName(soap, tag, p, type)))
2849*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2850*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2851*12720SWyllys.Ingersoll@Sun.COM 	return p;
2852*12720SWyllys.Ingersoll@Sun.COM }
2853*12720SWyllys.Ingersoll@Sun.COM 
soap_default_string(struct soap * soap,char ** a)2854*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_default_string(struct soap *soap, char **a)
2855*12720SWyllys.Ingersoll@Sun.COM {
2856*12720SWyllys.Ingersoll@Sun.COM 	(void)soap; /* appease -Wall -Werror */
2857*12720SWyllys.Ingersoll@Sun.COM #ifdef SOAP_DEFAULT_string
2858*12720SWyllys.Ingersoll@Sun.COM 	*a = SOAP_DEFAULT_string;
2859*12720SWyllys.Ingersoll@Sun.COM #else
2860*12720SWyllys.Ingersoll@Sun.COM 	*a = (char *)0;
2861*12720SWyllys.Ingersoll@Sun.COM #endif
2862*12720SWyllys.Ingersoll@Sun.COM }
2863*12720SWyllys.Ingersoll@Sun.COM 
soap_serialize_string(struct soap * soap,char * const * a)2864*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_string(struct soap *soap, char *const*a)
2865*12720SWyllys.Ingersoll@Sun.COM {
2866*12720SWyllys.Ingersoll@Sun.COM 	soap_reference(soap, *a, SOAP_TYPE_KMS_Discovery_string);
2867*12720SWyllys.Ingersoll@Sun.COM }
2868*12720SWyllys.Ingersoll@Sun.COM 
soap_out_string(struct soap * soap,const char * tag,int id,char * const * a,const char * type)2869*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)
2870*12720SWyllys.Ingersoll@Sun.COM {
2871*12720SWyllys.Ingersoll@Sun.COM 	return soap_outstring(soap, tag, id, a, type, SOAP_TYPE_KMS_Discovery_string);
2872*12720SWyllys.Ingersoll@Sun.COM }
2873*12720SWyllys.Ingersoll@Sun.COM 
soap_in_string(struct soap * soap,const char * tag,char ** a,const char * type)2874*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char * * SOAP_FMAC4 soap_in_string(struct soap *soap, const char *tag, char **a, const char *type)
2875*12720SWyllys.Ingersoll@Sun.COM {	char **p;
2876*12720SWyllys.Ingersoll@Sun.COM 	p = soap_instring(soap, tag, a, type, SOAP_TYPE_KMS_Discovery_string, 1, -1, -1);
2877*12720SWyllys.Ingersoll@Sun.COM 	return p;
2878*12720SWyllys.Ingersoll@Sun.COM }
2879*12720SWyllys.Ingersoll@Sun.COM 
soap_put_string(struct soap * soap,char * const * a,const char * tag,const char * type)2880*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 int SOAP_FMAC4 soap_put_string(struct soap *soap, char *const*a, const char *tag, const char *type)
2881*12720SWyllys.Ingersoll@Sun.COM {
2882*12720SWyllys.Ingersoll@Sun.COM 	register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_KMS_Discovery_string);
2883*12720SWyllys.Ingersoll@Sun.COM 	if (soap_out_string(soap, tag?tag:"byte", id, a, type))
2884*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
2885*12720SWyllys.Ingersoll@Sun.COM 	return soap_putindependent(soap);
2886*12720SWyllys.Ingersoll@Sun.COM }
2887*12720SWyllys.Ingersoll@Sun.COM 
soap_get_string(struct soap * soap,char ** p,const char * tag,const char * type)2888*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC3 char ** SOAP_FMAC4 soap_get_string(struct soap *soap, char **p, const char *tag, const char *type)
2889*12720SWyllys.Ingersoll@Sun.COM {
2890*12720SWyllys.Ingersoll@Sun.COM 	if ((p = soap_in_string(soap, tag, p, type)))
2891*12720SWyllys.Ingersoll@Sun.COM 		if (soap_getindependent(soap))
2892*12720SWyllys.Ingersoll@Sun.COM 			return NULL;
2893*12720SWyllys.Ingersoll@Sun.COM 	return p;
2894*12720SWyllys.Ingersoll@Sun.COM }
2895*12720SWyllys.Ingersoll@Sun.COM 
2896*12720SWyllys.Ingersoll@Sun.COM } // namespace KMS_Discovery
2897*12720SWyllys.Ingersoll@Sun.COM 
2898*12720SWyllys.Ingersoll@Sun.COM 
2899*12720SWyllys.Ingersoll@Sun.COM #if defined(__BORLANDC__)
2900*12720SWyllys.Ingersoll@Sun.COM #pragma option pop
2901*12720SWyllys.Ingersoll@Sun.COM #pragma option pop
2902*12720SWyllys.Ingersoll@Sun.COM #endif
2903*12720SWyllys.Ingersoll@Sun.COM 
2904*12720SWyllys.Ingersoll@Sun.COM /* End of KMS_DiscoveryC.cpp */
2905