1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 /* KMS_AgentClient.cpp
27 Generated by gSOAP 2.7.17 from ../gsoapStubs/AgentService/KMS_Agent_SOAP.h
28 Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
29 This part of the software is released under one of the following licenses:
30 GPL, the gSOAP public license, or Genivia's license for commercial use.
31 */
32
33 #if defined(__BORLANDC__)
34 #pragma option push -w-8060
35 #pragma option push -w-8004
36 #endif
37 #include "KMS_AgentH.h"
38
39 namespace KMS_Agent {
40
41 SOAP_SOURCE_STAMP("@(#) KMS_AgentClient.cpp ver 2.7.17 2010-06-08 19:16:38 GMT")
42
43
soap_call_KMS_Agent__ListKeyGroups(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__QueryParameters QueryParameters,struct KMS_Agent__ListKeyGroupsResponse & result)44 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__ListKeyGroups(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__QueryParameters QueryParameters, struct KMS_Agent__ListKeyGroupsResponse &result)
45 { struct KMS_Agent__ListKeyGroups soap_tmp_KMS_Agent__ListKeyGroups;
46 soap_tmp_KMS_Agent__ListKeyGroups.QueryParameters = QueryParameters;
47 soap_begin(soap);
48 soap_serializeheader(soap);
49 soap_serialize_KMS_Agent__ListKeyGroups(soap, &soap_tmp_KMS_Agent__ListKeyGroups);
50 if (soap_begin_count(soap))
51 return soap->error;
52 if (soap->mode & SOAP_IO_LENGTH)
53 { if (soap_envelope_begin_out(soap)
54 || soap_putheader(soap)
55 || soap_body_begin_out(soap)
56 || soap_put_KMS_Agent__ListKeyGroups(soap, &soap_tmp_KMS_Agent__ListKeyGroups, "KMS-Agent:ListKeyGroups", NULL)
57 || soap_body_end_out(soap)
58 || soap_envelope_end_out(soap))
59 return soap->error;
60 }
61 if (soap_end_count(soap))
62 return soap->error;
63 if (soap_connect(soap, soap_endpoint, soap_action)
64 || soap_envelope_begin_out(soap)
65 || soap_putheader(soap)
66 || soap_body_begin_out(soap)
67 || soap_put_KMS_Agent__ListKeyGroups(soap, &soap_tmp_KMS_Agent__ListKeyGroups, "KMS-Agent:ListKeyGroups", NULL)
68 || soap_body_end_out(soap)
69 || soap_envelope_end_out(soap)
70 || soap_end_send(soap))
71 return soap_closesock(soap);
72 if (!&result)
73 return soap_closesock(soap);
74 soap_default_KMS_Agent__ListKeyGroupsResponse(soap, &result);
75 if (soap_begin_recv(soap)
76 || soap_envelope_begin_in(soap)
77 || soap_recv_header(soap)
78 || soap_body_begin_in(soap))
79 return soap_closesock(soap);
80 if (soap_recv_fault(soap, 1))
81 return soap->error;
82 soap_get_KMS_Agent__ListKeyGroupsResponse(soap, &result, "", "");
83 if (soap->error)
84 return soap_recv_fault(soap, 0);
85 if (soap_body_end_in(soap)
86 || soap_envelope_end_in(soap)
87 || soap_end_recv(soap))
88 return soap_closesock(soap);
89 return soap_closesock(soap);
90 }
91
soap_call_KMS_Agent__CreateDataUnit(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * ExternalUniqueID,char * ExternalTag,char * Description,struct KMS_Agent__CreateDataUnitResponse & result)92 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__CreateDataUnit(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *ExternalUniqueID, char *ExternalTag, char *Description, struct KMS_Agent__CreateDataUnitResponse &result)
93 { struct KMS_Agent__CreateDataUnit soap_tmp_KMS_Agent__CreateDataUnit;
94 soap_tmp_KMS_Agent__CreateDataUnit.ExternalUniqueID = ExternalUniqueID;
95 soap_tmp_KMS_Agent__CreateDataUnit.ExternalTag = ExternalTag;
96 soap_tmp_KMS_Agent__CreateDataUnit.Description = Description;
97 soap_begin(soap);
98 soap_serializeheader(soap);
99 soap_serialize_KMS_Agent__CreateDataUnit(soap, &soap_tmp_KMS_Agent__CreateDataUnit);
100 if (soap_begin_count(soap))
101 return soap->error;
102 if (soap->mode & SOAP_IO_LENGTH)
103 { if (soap_envelope_begin_out(soap)
104 || soap_putheader(soap)
105 || soap_body_begin_out(soap)
106 || soap_put_KMS_Agent__CreateDataUnit(soap, &soap_tmp_KMS_Agent__CreateDataUnit, "KMS-Agent:CreateDataUnit", NULL)
107 || soap_body_end_out(soap)
108 || soap_envelope_end_out(soap))
109 return soap->error;
110 }
111 if (soap_end_count(soap))
112 return soap->error;
113 if (soap_connect(soap, soap_endpoint, soap_action)
114 || soap_envelope_begin_out(soap)
115 || soap_putheader(soap)
116 || soap_body_begin_out(soap)
117 || soap_put_KMS_Agent__CreateDataUnit(soap, &soap_tmp_KMS_Agent__CreateDataUnit, "KMS-Agent:CreateDataUnit", NULL)
118 || soap_body_end_out(soap)
119 || soap_envelope_end_out(soap)
120 || soap_end_send(soap))
121 return soap_closesock(soap);
122 if (!&result)
123 return soap_closesock(soap);
124 soap_default_KMS_Agent__CreateDataUnitResponse(soap, &result);
125 if (soap_begin_recv(soap)
126 || soap_envelope_begin_in(soap)
127 || soap_recv_header(soap)
128 || soap_body_begin_in(soap))
129 return soap_closesock(soap);
130 if (soap_recv_fault(soap, 1))
131 return soap->error;
132 soap_get_KMS_Agent__CreateDataUnitResponse(soap, &result, "", "");
133 if (soap->error)
134 return soap_recv_fault(soap, 0);
135 if (soap_body_end_in(soap)
136 || soap_envelope_end_in(soap)
137 || soap_end_recv(soap))
138 return soap_closesock(soap);
139 return soap_closesock(soap);
140 }
141
soap_call_KMS_Agent__RetrieveDataUnit(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * DataUnitID,char * ExternalUniqueID,char * ExternalTag,char * Description,struct KMS_Agent__RetrieveDataUnitResponse & result)142 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveDataUnit(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *DataUnitID, char *ExternalUniqueID, char *ExternalTag, char *Description, struct KMS_Agent__RetrieveDataUnitResponse &result)
143 { struct KMS_Agent__RetrieveDataUnit soap_tmp_KMS_Agent__RetrieveDataUnit;
144 soap_tmp_KMS_Agent__RetrieveDataUnit.DataUnitID = DataUnitID;
145 soap_tmp_KMS_Agent__RetrieveDataUnit.ExternalUniqueID = ExternalUniqueID;
146 soap_tmp_KMS_Agent__RetrieveDataUnit.ExternalTag = ExternalTag;
147 soap_tmp_KMS_Agent__RetrieveDataUnit.Description = Description;
148 soap_begin(soap);
149 soap_serializeheader(soap);
150 soap_serialize_KMS_Agent__RetrieveDataUnit(soap, &soap_tmp_KMS_Agent__RetrieveDataUnit);
151 if (soap_begin_count(soap))
152 return soap->error;
153 if (soap->mode & SOAP_IO_LENGTH)
154 { if (soap_envelope_begin_out(soap)
155 || soap_putheader(soap)
156 || soap_body_begin_out(soap)
157 || soap_put_KMS_Agent__RetrieveDataUnit(soap, &soap_tmp_KMS_Agent__RetrieveDataUnit, "KMS-Agent:RetrieveDataUnit", NULL)
158 || soap_body_end_out(soap)
159 || soap_envelope_end_out(soap))
160 return soap->error;
161 }
162 if (soap_end_count(soap))
163 return soap->error;
164 if (soap_connect(soap, soap_endpoint, soap_action)
165 || soap_envelope_begin_out(soap)
166 || soap_putheader(soap)
167 || soap_body_begin_out(soap)
168 || soap_put_KMS_Agent__RetrieveDataUnit(soap, &soap_tmp_KMS_Agent__RetrieveDataUnit, "KMS-Agent:RetrieveDataUnit", NULL)
169 || soap_body_end_out(soap)
170 || soap_envelope_end_out(soap)
171 || soap_end_send(soap))
172 return soap_closesock(soap);
173 if (!&result)
174 return soap_closesock(soap);
175 soap_default_KMS_Agent__RetrieveDataUnitResponse(soap, &result);
176 if (soap_begin_recv(soap)
177 || soap_envelope_begin_in(soap)
178 || soap_recv_header(soap)
179 || soap_body_begin_in(soap))
180 return soap_closesock(soap);
181 if (soap_recv_fault(soap, 1))
182 return soap->error;
183 soap_get_KMS_Agent__RetrieveDataUnitResponse(soap, &result, "", "");
184 if (soap->error)
185 return soap_recv_fault(soap, 0);
186 if (soap_body_end_in(soap)
187 || soap_envelope_end_in(soap)
188 || soap_end_recv(soap))
189 return soap_closesock(soap);
190 return soap_closesock(soap);
191 }
192
soap_call_KMS_Agent__RetrieveDataUnitByExternalUniqueID(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * ExternalUniqueID,char * ExternalTag,char * Description,struct KMS_Agent__RetrieveDataUnitByExternalUniqueIDResponse & result)193 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveDataUnitByExternalUniqueID(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *ExternalUniqueID, char *ExternalTag, char *Description, struct KMS_Agent__RetrieveDataUnitByExternalUniqueIDResponse &result)
194 { struct KMS_Agent__RetrieveDataUnitByExternalUniqueID soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID;
195 soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID.ExternalUniqueID = ExternalUniqueID;
196 soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID.ExternalTag = ExternalTag;
197 soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID.Description = Description;
198 soap_begin(soap);
199 soap_serializeheader(soap);
200 soap_serialize_KMS_Agent__RetrieveDataUnitByExternalUniqueID(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID);
201 if (soap_begin_count(soap))
202 return soap->error;
203 if (soap->mode & SOAP_IO_LENGTH)
204 { if (soap_envelope_begin_out(soap)
205 || soap_putheader(soap)
206 || soap_body_begin_out(soap)
207 || soap_put_KMS_Agent__RetrieveDataUnitByExternalUniqueID(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID, "KMS-Agent:RetrieveDataUnitByExternalUniqueID", NULL)
208 || soap_body_end_out(soap)
209 || soap_envelope_end_out(soap))
210 return soap->error;
211 }
212 if (soap_end_count(soap))
213 return soap->error;
214 if (soap_connect(soap, soap_endpoint, soap_action)
215 || soap_envelope_begin_out(soap)
216 || soap_putheader(soap)
217 || soap_body_begin_out(soap)
218 || soap_put_KMS_Agent__RetrieveDataUnitByExternalUniqueID(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitByExternalUniqueID, "KMS-Agent:RetrieveDataUnitByExternalUniqueID", NULL)
219 || soap_body_end_out(soap)
220 || soap_envelope_end_out(soap)
221 || soap_end_send(soap))
222 return soap_closesock(soap);
223 if (!&result)
224 return soap_closesock(soap);
225 soap_default_KMS_Agent__RetrieveDataUnitByExternalUniqueIDResponse(soap, &result);
226 if (soap_begin_recv(soap)
227 || soap_envelope_begin_in(soap)
228 || soap_recv_header(soap)
229 || soap_body_begin_in(soap))
230 return soap_closesock(soap);
231 if (soap_recv_fault(soap, 1))
232 return soap->error;
233 soap_get_KMS_Agent__RetrieveDataUnitByExternalUniqueIDResponse(soap, &result, "", "");
234 if (soap->error)
235 return soap_recv_fault(soap, 0);
236 if (soap_body_end_in(soap)
237 || soap_envelope_end_in(soap)
238 || soap_end_recv(soap))
239 return soap_closesock(soap);
240 return soap_closesock(soap);
241 }
242
soap_call_KMS_Agent__DisassociateDataUnitKeys(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,struct KMS_Agent__DisassociateDataUnitKeysResponse & result)243 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__DisassociateDataUnitKeys(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, struct KMS_Agent__DisassociateDataUnitKeysResponse &result)
244 { struct KMS_Agent__DisassociateDataUnitKeys soap_tmp_KMS_Agent__DisassociateDataUnitKeys;
245 soap_tmp_KMS_Agent__DisassociateDataUnitKeys.DataUnit = DataUnit;
246 soap_begin(soap);
247 soap_serializeheader(soap);
248 soap_serialize_KMS_Agent__DisassociateDataUnitKeys(soap, &soap_tmp_KMS_Agent__DisassociateDataUnitKeys);
249 if (soap_begin_count(soap))
250 return soap->error;
251 if (soap->mode & SOAP_IO_LENGTH)
252 { if (soap_envelope_begin_out(soap)
253 || soap_putheader(soap)
254 || soap_body_begin_out(soap)
255 || soap_put_KMS_Agent__DisassociateDataUnitKeys(soap, &soap_tmp_KMS_Agent__DisassociateDataUnitKeys, "KMS-Agent:DisassociateDataUnitKeys", NULL)
256 || soap_body_end_out(soap)
257 || soap_envelope_end_out(soap))
258 return soap->error;
259 }
260 if (soap_end_count(soap))
261 return soap->error;
262 if (soap_connect(soap, soap_endpoint, soap_action)
263 || soap_envelope_begin_out(soap)
264 || soap_putheader(soap)
265 || soap_body_begin_out(soap)
266 || soap_put_KMS_Agent__DisassociateDataUnitKeys(soap, &soap_tmp_KMS_Agent__DisassociateDataUnitKeys, "KMS-Agent:DisassociateDataUnitKeys", NULL)
267 || soap_body_end_out(soap)
268 || soap_envelope_end_out(soap)
269 || soap_end_send(soap))
270 return soap_closesock(soap);
271 if (!&result)
272 return soap_closesock(soap);
273 soap_default_KMS_Agent__DisassociateDataUnitKeysResponse(soap, &result);
274 if (soap_begin_recv(soap)
275 || soap_envelope_begin_in(soap)
276 || soap_recv_header(soap)
277 || soap_body_begin_in(soap))
278 return soap_closesock(soap);
279 if (soap_recv_fault(soap, 1))
280 return soap->error;
281 soap_get_KMS_Agent__DisassociateDataUnitKeysResponse(soap, &result, "", "");
282 if (soap->error)
283 return soap_recv_fault(soap, 0);
284 if (soap_body_end_in(soap)
285 || soap_envelope_end_in(soap)
286 || soap_end_recv(soap))
287 return soap_closesock(soap);
288 return soap_closesock(soap);
289 }
290
soap_call_KMS_Agent__CreateKey(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,struct KMS_Agent__CreateKeyResponse & result)291 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__CreateKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, struct KMS_Agent__CreateKeyResponse &result)
292 { struct KMS_Agent__CreateKey soap_tmp_KMS_Agent__CreateKey;
293 soap_tmp_KMS_Agent__CreateKey.DataUnit = DataUnit;
294 soap_tmp_KMS_Agent__CreateKey.KeyGroupID = KeyGroupID;
295 soap_begin(soap);
296 soap_serializeheader(soap);
297 soap_serialize_KMS_Agent__CreateKey(soap, &soap_tmp_KMS_Agent__CreateKey);
298 if (soap_begin_count(soap))
299 return soap->error;
300 if (soap->mode & SOAP_IO_LENGTH)
301 { if (soap_envelope_begin_out(soap)
302 || soap_putheader(soap)
303 || soap_body_begin_out(soap)
304 || soap_put_KMS_Agent__CreateKey(soap, &soap_tmp_KMS_Agent__CreateKey, "KMS-Agent:CreateKey", NULL)
305 || soap_body_end_out(soap)
306 || soap_envelope_end_out(soap))
307 return soap->error;
308 }
309 if (soap_end_count(soap))
310 return soap->error;
311 if (soap_connect(soap, soap_endpoint, soap_action)
312 || soap_envelope_begin_out(soap)
313 || soap_putheader(soap)
314 || soap_body_begin_out(soap)
315 || soap_put_KMS_Agent__CreateKey(soap, &soap_tmp_KMS_Agent__CreateKey, "KMS-Agent:CreateKey", NULL)
316 || soap_body_end_out(soap)
317 || soap_envelope_end_out(soap)
318 || soap_end_send(soap))
319 return soap_closesock(soap);
320 if (!&result)
321 return soap_closesock(soap);
322 soap_default_KMS_Agent__CreateKeyResponse(soap, &result);
323 if (soap_begin_recv(soap)
324 || soap_envelope_begin_in(soap)
325 || soap_recv_header(soap)
326 || soap_body_begin_in(soap))
327 return soap_closesock(soap);
328 if (soap_recv_fault(soap, 1))
329 return soap->error;
330 soap_get_KMS_Agent__CreateKeyResponse(soap, &result, "", "");
331 if (soap->error)
332 return soap_recv_fault(soap, 0);
333 if (soap_body_end_in(soap)
334 || soap_envelope_end_in(soap)
335 || soap_end_recv(soap))
336 return soap_closesock(soap);
337 return soap_closesock(soap);
338 }
339
soap_call_KMS_Agent__CreateKey2(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,char * AgentKWKID,struct KMS_Agent__CreateKey2Response & result)340 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__CreateKey2(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, char *AgentKWKID, struct KMS_Agent__CreateKey2Response &result)
341 { struct KMS_Agent__CreateKey2 soap_tmp_KMS_Agent__CreateKey2;
342 soap_tmp_KMS_Agent__CreateKey2.DataUnit = DataUnit;
343 soap_tmp_KMS_Agent__CreateKey2.KeyGroupID = KeyGroupID;
344 soap_tmp_KMS_Agent__CreateKey2.AgentKWKID = AgentKWKID;
345 soap_begin(soap);
346 soap_serializeheader(soap);
347 soap_serialize_KMS_Agent__CreateKey2(soap, &soap_tmp_KMS_Agent__CreateKey2);
348 if (soap_begin_count(soap))
349 return soap->error;
350 if (soap->mode & SOAP_IO_LENGTH)
351 { if (soap_envelope_begin_out(soap)
352 || soap_putheader(soap)
353 || soap_body_begin_out(soap)
354 || soap_put_KMS_Agent__CreateKey2(soap, &soap_tmp_KMS_Agent__CreateKey2, "KMS-Agent:CreateKey2", NULL)
355 || soap_body_end_out(soap)
356 || soap_envelope_end_out(soap))
357 return soap->error;
358 }
359 if (soap_end_count(soap))
360 return soap->error;
361 if (soap_connect(soap, soap_endpoint, soap_action)
362 || soap_envelope_begin_out(soap)
363 || soap_putheader(soap)
364 || soap_body_begin_out(soap)
365 || soap_put_KMS_Agent__CreateKey2(soap, &soap_tmp_KMS_Agent__CreateKey2, "KMS-Agent:CreateKey2", NULL)
366 || soap_body_end_out(soap)
367 || soap_envelope_end_out(soap)
368 || soap_end_send(soap))
369 return soap_closesock(soap);
370 if (!&result)
371 return soap_closesock(soap);
372 soap_default_KMS_Agent__CreateKey2Response(soap, &result);
373 if (soap_begin_recv(soap)
374 || soap_envelope_begin_in(soap)
375 || soap_recv_header(soap)
376 || soap_body_begin_in(soap))
377 return soap_closesock(soap);
378 if (soap_recv_fault(soap, 1))
379 return soap->error;
380 soap_get_KMS_Agent__CreateKey2Response(soap, &result, "", "");
381 if (soap->error)
382 return soap_recv_fault(soap, 0);
383 if (soap_body_end_in(soap)
384 || soap_envelope_end_in(soap)
385 || soap_end_recv(soap))
386 return soap_closesock(soap);
387 return soap_closesock(soap);
388 }
389
soap_call_KMS_Agent__RetrieveKey(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * KeyID,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,struct KMS_Agent__RetrieveKeyResponse & result)390 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *KeyID, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, struct KMS_Agent__RetrieveKeyResponse &result)
391 { struct KMS_Agent__RetrieveKey soap_tmp_KMS_Agent__RetrieveKey;
392 soap_tmp_KMS_Agent__RetrieveKey.KeyID = KeyID;
393 soap_tmp_KMS_Agent__RetrieveKey.DataUnit = DataUnit;
394 soap_tmp_KMS_Agent__RetrieveKey.KeyGroupID = KeyGroupID;
395 soap_begin(soap);
396 soap_serializeheader(soap);
397 soap_serialize_KMS_Agent__RetrieveKey(soap, &soap_tmp_KMS_Agent__RetrieveKey);
398 if (soap_begin_count(soap))
399 return soap->error;
400 if (soap->mode & SOAP_IO_LENGTH)
401 { if (soap_envelope_begin_out(soap)
402 || soap_putheader(soap)
403 || soap_body_begin_out(soap)
404 || soap_put_KMS_Agent__RetrieveKey(soap, &soap_tmp_KMS_Agent__RetrieveKey, "KMS-Agent:RetrieveKey", NULL)
405 || soap_body_end_out(soap)
406 || soap_envelope_end_out(soap))
407 return soap->error;
408 }
409 if (soap_end_count(soap))
410 return soap->error;
411 if (soap_connect(soap, soap_endpoint, soap_action)
412 || soap_envelope_begin_out(soap)
413 || soap_putheader(soap)
414 || soap_body_begin_out(soap)
415 || soap_put_KMS_Agent__RetrieveKey(soap, &soap_tmp_KMS_Agent__RetrieveKey, "KMS-Agent:RetrieveKey", NULL)
416 || soap_body_end_out(soap)
417 || soap_envelope_end_out(soap)
418 || soap_end_send(soap))
419 return soap_closesock(soap);
420 if (!&result)
421 return soap_closesock(soap);
422 soap_default_KMS_Agent__RetrieveKeyResponse(soap, &result);
423 if (soap_begin_recv(soap)
424 || soap_envelope_begin_in(soap)
425 || soap_recv_header(soap)
426 || soap_body_begin_in(soap))
427 return soap_closesock(soap);
428 if (soap_recv_fault(soap, 1))
429 return soap->error;
430 soap_get_KMS_Agent__RetrieveKeyResponse(soap, &result, "", "");
431 if (soap->error)
432 return soap_recv_fault(soap, 0);
433 if (soap_body_end_in(soap)
434 || soap_envelope_end_in(soap)
435 || soap_end_recv(soap))
436 return soap_closesock(soap);
437 return soap_closesock(soap);
438 }
439
soap_call_KMS_Agent__RetrieveKey2(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * KeyID,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,char * AgentKWKID,struct KMS_Agent__RetrieveKey2Response & result)440 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveKey2(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *KeyID, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, char *AgentKWKID, struct KMS_Agent__RetrieveKey2Response &result)
441 { struct KMS_Agent__RetrieveKey2 soap_tmp_KMS_Agent__RetrieveKey2;
442 soap_tmp_KMS_Agent__RetrieveKey2.KeyID = KeyID;
443 soap_tmp_KMS_Agent__RetrieveKey2.DataUnit = DataUnit;
444 soap_tmp_KMS_Agent__RetrieveKey2.KeyGroupID = KeyGroupID;
445 soap_tmp_KMS_Agent__RetrieveKey2.AgentKWKID = AgentKWKID;
446 soap_begin(soap);
447 soap_serializeheader(soap);
448 soap_serialize_KMS_Agent__RetrieveKey2(soap, &soap_tmp_KMS_Agent__RetrieveKey2);
449 if (soap_begin_count(soap))
450 return soap->error;
451 if (soap->mode & SOAP_IO_LENGTH)
452 { if (soap_envelope_begin_out(soap)
453 || soap_putheader(soap)
454 || soap_body_begin_out(soap)
455 || soap_put_KMS_Agent__RetrieveKey2(soap, &soap_tmp_KMS_Agent__RetrieveKey2, "KMS-Agent:RetrieveKey2", NULL)
456 || soap_body_end_out(soap)
457 || soap_envelope_end_out(soap))
458 return soap->error;
459 }
460 if (soap_end_count(soap))
461 return soap->error;
462 if (soap_connect(soap, soap_endpoint, soap_action)
463 || soap_envelope_begin_out(soap)
464 || soap_putheader(soap)
465 || soap_body_begin_out(soap)
466 || soap_put_KMS_Agent__RetrieveKey2(soap, &soap_tmp_KMS_Agent__RetrieveKey2, "KMS-Agent:RetrieveKey2", NULL)
467 || soap_body_end_out(soap)
468 || soap_envelope_end_out(soap)
469 || soap_end_send(soap))
470 return soap_closesock(soap);
471 if (!&result)
472 return soap_closesock(soap);
473 soap_default_KMS_Agent__RetrieveKey2Response(soap, &result);
474 if (soap_begin_recv(soap)
475 || soap_envelope_begin_in(soap)
476 || soap_recv_header(soap)
477 || soap_body_begin_in(soap))
478 return soap_closesock(soap);
479 if (soap_recv_fault(soap, 1))
480 return soap->error;
481 soap_get_KMS_Agent__RetrieveKey2Response(soap, &result, "", "");
482 if (soap->error)
483 return soap_recv_fault(soap, 0);
484 if (soap_body_end_in(soap)
485 || soap_envelope_end_in(soap)
486 || soap_end_recv(soap))
487 return soap_closesock(soap);
488 return soap_closesock(soap);
489 }
490
soap_call_KMS_Agent__RetrieveDataUnitKeys(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,long PageSize,long PageOffset,char * KeyID,struct KMS_Agent__RetrieveDataUnitKeysResponse & result)491 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveDataUnitKeys(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, long PageSize, long PageOffset, char *KeyID, struct KMS_Agent__RetrieveDataUnitKeysResponse &result)
492 { struct KMS_Agent__RetrieveDataUnitKeys soap_tmp_KMS_Agent__RetrieveDataUnitKeys;
493 soap_tmp_KMS_Agent__RetrieveDataUnitKeys.DataUnit = DataUnit;
494 soap_tmp_KMS_Agent__RetrieveDataUnitKeys.PageSize = PageSize;
495 soap_tmp_KMS_Agent__RetrieveDataUnitKeys.PageOffset = PageOffset;
496 soap_tmp_KMS_Agent__RetrieveDataUnitKeys.KeyID = KeyID;
497 soap_begin(soap);
498 soap_serializeheader(soap);
499 soap_serialize_KMS_Agent__RetrieveDataUnitKeys(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys);
500 if (soap_begin_count(soap))
501 return soap->error;
502 if (soap->mode & SOAP_IO_LENGTH)
503 { if (soap_envelope_begin_out(soap)
504 || soap_putheader(soap)
505 || soap_body_begin_out(soap)
506 || soap_put_KMS_Agent__RetrieveDataUnitKeys(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys, "KMS-Agent:RetrieveDataUnitKeys", NULL)
507 || soap_body_end_out(soap)
508 || soap_envelope_end_out(soap))
509 return soap->error;
510 }
511 if (soap_end_count(soap))
512 return soap->error;
513 if (soap_connect(soap, soap_endpoint, soap_action)
514 || soap_envelope_begin_out(soap)
515 || soap_putheader(soap)
516 || soap_body_begin_out(soap)
517 || soap_put_KMS_Agent__RetrieveDataUnitKeys(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys, "KMS-Agent:RetrieveDataUnitKeys", NULL)
518 || soap_body_end_out(soap)
519 || soap_envelope_end_out(soap)
520 || soap_end_send(soap))
521 return soap_closesock(soap);
522 if (!&result)
523 return soap_closesock(soap);
524 soap_default_KMS_Agent__RetrieveDataUnitKeysResponse(soap, &result);
525 if (soap_begin_recv(soap)
526 || soap_envelope_begin_in(soap)
527 || soap_recv_header(soap)
528 || soap_body_begin_in(soap))
529 return soap_closesock(soap);
530 if (soap_recv_fault(soap, 1))
531 return soap->error;
532 soap_get_KMS_Agent__RetrieveDataUnitKeysResponse(soap, &result, "", "");
533 if (soap->error)
534 return soap_recv_fault(soap, 0);
535 if (soap_body_end_in(soap)
536 || soap_envelope_end_in(soap)
537 || soap_end_recv(soap))
538 return soap_closesock(soap);
539 return soap_closesock(soap);
540 }
541
soap_call_KMS_Agent__RetrieveDataUnitKeys2(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,long PageSize,long PageOffset,char * KeyID,char * AgentKWKID,struct KMS_Agent__RetrieveDataUnitKeys2Response & result)542 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveDataUnitKeys2(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, long PageSize, long PageOffset, char *KeyID, char *AgentKWKID, struct KMS_Agent__RetrieveDataUnitKeys2Response &result)
543 { struct KMS_Agent__RetrieveDataUnitKeys2 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2;
544 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2.DataUnit = DataUnit;
545 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2.PageSize = PageSize;
546 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2.PageOffset = PageOffset;
547 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2.KeyID = KeyID;
548 soap_tmp_KMS_Agent__RetrieveDataUnitKeys2.AgentKWKID = AgentKWKID;
549 soap_begin(soap);
550 soap_serializeheader(soap);
551 soap_serialize_KMS_Agent__RetrieveDataUnitKeys2(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys2);
552 if (soap_begin_count(soap))
553 return soap->error;
554 if (soap->mode & SOAP_IO_LENGTH)
555 { if (soap_envelope_begin_out(soap)
556 || soap_putheader(soap)
557 || soap_body_begin_out(soap)
558 || soap_put_KMS_Agent__RetrieveDataUnitKeys2(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys2, "KMS-Agent:RetrieveDataUnitKeys2", NULL)
559 || soap_body_end_out(soap)
560 || soap_envelope_end_out(soap))
561 return soap->error;
562 }
563 if (soap_end_count(soap))
564 return soap->error;
565 if (soap_connect(soap, soap_endpoint, soap_action)
566 || soap_envelope_begin_out(soap)
567 || soap_putheader(soap)
568 || soap_body_begin_out(soap)
569 || soap_put_KMS_Agent__RetrieveDataUnitKeys2(soap, &soap_tmp_KMS_Agent__RetrieveDataUnitKeys2, "KMS-Agent:RetrieveDataUnitKeys2", NULL)
570 || soap_body_end_out(soap)
571 || soap_envelope_end_out(soap)
572 || soap_end_send(soap))
573 return soap_closesock(soap);
574 if (!&result)
575 return soap_closesock(soap);
576 soap_default_KMS_Agent__RetrieveDataUnitKeys2Response(soap, &result);
577 if (soap_begin_recv(soap)
578 || soap_envelope_begin_in(soap)
579 || soap_recv_header(soap)
580 || soap_body_begin_in(soap))
581 return soap_closesock(soap);
582 if (soap_recv_fault(soap, 1))
583 return soap->error;
584 soap_get_KMS_Agent__RetrieveDataUnitKeys2Response(soap, &result, "", "");
585 if (soap->error)
586 return soap_recv_fault(soap, 0);
587 if (soap_body_end_in(soap)
588 || soap_envelope_end_in(soap)
589 || soap_end_recv(soap))
590 return soap_closesock(soap);
591 return soap_closesock(soap);
592 }
593
soap_call_KMS_Agent__RetrieveProtectAndProcessKey(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,struct KMS_Agent__RetrieveProtectAndProcessKeyResponse & result)594 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveProtectAndProcessKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, struct KMS_Agent__RetrieveProtectAndProcessKeyResponse &result)
595 { struct KMS_Agent__RetrieveProtectAndProcessKey soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey;
596 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey.DataUnit = DataUnit;
597 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey.KeyGroupID = KeyGroupID;
598 soap_begin(soap);
599 soap_serializeheader(soap);
600 soap_serialize_KMS_Agent__RetrieveProtectAndProcessKey(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey);
601 if (soap_begin_count(soap))
602 return soap->error;
603 if (soap->mode & SOAP_IO_LENGTH)
604 { if (soap_envelope_begin_out(soap)
605 || soap_putheader(soap)
606 || soap_body_begin_out(soap)
607 || soap_put_KMS_Agent__RetrieveProtectAndProcessKey(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey, "KMS-Agent:RetrieveProtectAndProcessKey", NULL)
608 || soap_body_end_out(soap)
609 || soap_envelope_end_out(soap))
610 return soap->error;
611 }
612 if (soap_end_count(soap))
613 return soap->error;
614 if (soap_connect(soap, soap_endpoint, soap_action)
615 || soap_envelope_begin_out(soap)
616 || soap_putheader(soap)
617 || soap_body_begin_out(soap)
618 || soap_put_KMS_Agent__RetrieveProtectAndProcessKey(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey, "KMS-Agent:RetrieveProtectAndProcessKey", NULL)
619 || soap_body_end_out(soap)
620 || soap_envelope_end_out(soap)
621 || soap_end_send(soap))
622 return soap_closesock(soap);
623 if (!&result)
624 return soap_closesock(soap);
625 soap_default_KMS_Agent__RetrieveProtectAndProcessKeyResponse(soap, &result);
626 if (soap_begin_recv(soap)
627 || soap_envelope_begin_in(soap)
628 || soap_recv_header(soap)
629 || soap_body_begin_in(soap))
630 return soap_closesock(soap);
631 if (soap_recv_fault(soap, 1))
632 return soap->error;
633 soap_get_KMS_Agent__RetrieveProtectAndProcessKeyResponse(soap, &result, "", "");
634 if (soap->error)
635 return soap_recv_fault(soap, 0);
636 if (soap_body_end_in(soap)
637 || soap_envelope_end_in(soap)
638 || soap_end_recv(soap))
639 return soap_closesock(soap);
640 return soap_closesock(soap);
641 }
642
soap_call_KMS_Agent__RetrieveProtectAndProcessKey2(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__DataUnit DataUnit,char * KeyGroupID,char * AgentKWKID,struct KMS_Agent__RetrieveProtectAndProcessKey2Response & result)643 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RetrieveProtectAndProcessKey2(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__DataUnit DataUnit, char *KeyGroupID, char *AgentKWKID, struct KMS_Agent__RetrieveProtectAndProcessKey2Response &result)
644 { struct KMS_Agent__RetrieveProtectAndProcessKey2 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2;
645 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2.DataUnit = DataUnit;
646 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2.KeyGroupID = KeyGroupID;
647 soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2.AgentKWKID = AgentKWKID;
648 soap_begin(soap);
649 soap_serializeheader(soap);
650 soap_serialize_KMS_Agent__RetrieveProtectAndProcessKey2(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2);
651 if (soap_begin_count(soap))
652 return soap->error;
653 if (soap->mode & SOAP_IO_LENGTH)
654 { if (soap_envelope_begin_out(soap)
655 || soap_putheader(soap)
656 || soap_body_begin_out(soap)
657 || soap_put_KMS_Agent__RetrieveProtectAndProcessKey2(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2, "KMS-Agent:RetrieveProtectAndProcessKey2", NULL)
658 || soap_body_end_out(soap)
659 || soap_envelope_end_out(soap))
660 return soap->error;
661 }
662 if (soap_end_count(soap))
663 return soap->error;
664 if (soap_connect(soap, soap_endpoint, soap_action)
665 || soap_envelope_begin_out(soap)
666 || soap_putheader(soap)
667 || soap_body_begin_out(soap)
668 || soap_put_KMS_Agent__RetrieveProtectAndProcessKey2(soap, &soap_tmp_KMS_Agent__RetrieveProtectAndProcessKey2, "KMS-Agent:RetrieveProtectAndProcessKey2", NULL)
669 || soap_body_end_out(soap)
670 || soap_envelope_end_out(soap)
671 || soap_end_send(soap))
672 return soap_closesock(soap);
673 if (!&result)
674 return soap_closesock(soap);
675 soap_default_KMS_Agent__RetrieveProtectAndProcessKey2Response(soap, &result);
676 if (soap_begin_recv(soap)
677 || soap_envelope_begin_in(soap)
678 || soap_recv_header(soap)
679 || soap_body_begin_in(soap))
680 return soap_closesock(soap);
681 if (soap_recv_fault(soap, 1))
682 return soap->error;
683 soap_get_KMS_Agent__RetrieveProtectAndProcessKey2Response(soap, &result, "", "");
684 if (soap->error)
685 return soap_recv_fault(soap, 0);
686 if (soap_body_end_in(soap)
687 || soap_envelope_end_in(soap)
688 || soap_end_recv(soap))
689 return soap_closesock(soap);
690 return soap_closesock(soap);
691 }
692
soap_call_KMS_Agent__CreateAuditLog(struct soap * soap,const char * soap_endpoint,const char * soap_action,enum KMS_Agent__AuditLogRetention Retention,enum KMS_Agent__AuditLogCondition Condition,bool IssueAlert,char * Message,struct KMS_Agent__CreateAuditLogResponse & result)693 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__CreateAuditLog(struct soap *soap, const char *soap_endpoint, const char *soap_action, enum KMS_Agent__AuditLogRetention Retention, enum KMS_Agent__AuditLogCondition Condition, bool IssueAlert, char *Message, struct KMS_Agent__CreateAuditLogResponse &result)
694 { struct KMS_Agent__CreateAuditLog soap_tmp_KMS_Agent__CreateAuditLog;
695 soap_tmp_KMS_Agent__CreateAuditLog.Retention = Retention;
696 soap_tmp_KMS_Agent__CreateAuditLog.Condition = Condition;
697 soap_tmp_KMS_Agent__CreateAuditLog.IssueAlert = IssueAlert;
698 soap_tmp_KMS_Agent__CreateAuditLog.Message = Message;
699 soap_begin(soap);
700 soap_serializeheader(soap);
701 soap_serialize_KMS_Agent__CreateAuditLog(soap, &soap_tmp_KMS_Agent__CreateAuditLog);
702 if (soap_begin_count(soap))
703 return soap->error;
704 if (soap->mode & SOAP_IO_LENGTH)
705 { if (soap_envelope_begin_out(soap)
706 || soap_putheader(soap)
707 || soap_body_begin_out(soap)
708 || soap_put_KMS_Agent__CreateAuditLog(soap, &soap_tmp_KMS_Agent__CreateAuditLog, "KMS-Agent:CreateAuditLog", NULL)
709 || soap_body_end_out(soap)
710 || soap_envelope_end_out(soap))
711 return soap->error;
712 }
713 if (soap_end_count(soap))
714 return soap->error;
715 if (soap_connect(soap, soap_endpoint, soap_action)
716 || soap_envelope_begin_out(soap)
717 || soap_putheader(soap)
718 || soap_body_begin_out(soap)
719 || soap_put_KMS_Agent__CreateAuditLog(soap, &soap_tmp_KMS_Agent__CreateAuditLog, "KMS-Agent:CreateAuditLog", NULL)
720 || soap_body_end_out(soap)
721 || soap_envelope_end_out(soap)
722 || soap_end_send(soap))
723 return soap_closesock(soap);
724 if (!&result)
725 return soap_closesock(soap);
726 soap_default_KMS_Agent__CreateAuditLogResponse(soap, &result);
727 if (soap_begin_recv(soap)
728 || soap_envelope_begin_in(soap)
729 || soap_recv_header(soap)
730 || soap_body_begin_in(soap))
731 return soap_closesock(soap);
732 if (soap_recv_fault(soap, 1))
733 return soap->error;
734 soap_get_KMS_Agent__CreateAuditLogResponse(soap, &result, "", "");
735 if (soap->error)
736 return soap_recv_fault(soap, 0);
737 if (soap_body_end_in(soap)
738 || soap_envelope_end_in(soap)
739 || soap_end_recv(soap))
740 return soap_closesock(soap);
741 return soap_closesock(soap);
742 }
743
soap_call_KMS_Agent__GetAgentKWKPublicKey(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct KMS_Agent__GetAgentKWKPublicKeyResponse & result)744 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__GetAgentKWKPublicKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct KMS_Agent__GetAgentKWKPublicKeyResponse &result)
745 { struct KMS_Agent__GetAgentKWKPublicKey soap_tmp_KMS_Agent__GetAgentKWKPublicKey;
746 soap_begin(soap);
747 soap_serializeheader(soap);
748 soap_serialize_KMS_Agent__GetAgentKWKPublicKey(soap, &soap_tmp_KMS_Agent__GetAgentKWKPublicKey);
749 if (soap_begin_count(soap))
750 return soap->error;
751 if (soap->mode & SOAP_IO_LENGTH)
752 { if (soap_envelope_begin_out(soap)
753 || soap_putheader(soap)
754 || soap_body_begin_out(soap)
755 || soap_put_KMS_Agent__GetAgentKWKPublicKey(soap, &soap_tmp_KMS_Agent__GetAgentKWKPublicKey, "KMS-Agent:GetAgentKWKPublicKey", NULL)
756 || soap_body_end_out(soap)
757 || soap_envelope_end_out(soap))
758 return soap->error;
759 }
760 if (soap_end_count(soap))
761 return soap->error;
762 if (soap_connect(soap, soap_endpoint, soap_action)
763 || soap_envelope_begin_out(soap)
764 || soap_putheader(soap)
765 || soap_body_begin_out(soap)
766 || soap_put_KMS_Agent__GetAgentKWKPublicKey(soap, &soap_tmp_KMS_Agent__GetAgentKWKPublicKey, "KMS-Agent:GetAgentKWKPublicKey", NULL)
767 || soap_body_end_out(soap)
768 || soap_envelope_end_out(soap)
769 || soap_end_send(soap))
770 return soap_closesock(soap);
771 if (!&result)
772 return soap_closesock(soap);
773 soap_default_KMS_Agent__GetAgentKWKPublicKeyResponse(soap, &result);
774 if (soap_begin_recv(soap)
775 || soap_envelope_begin_in(soap)
776 || soap_recv_header(soap)
777 || soap_body_begin_in(soap))
778 return soap_closesock(soap);
779 if (soap_recv_fault(soap, 1))
780 return soap->error;
781 soap_get_KMS_Agent__GetAgentKWKPublicKeyResponse(soap, &result, "", "");
782 if (soap->error)
783 return soap_recv_fault(soap, 0);
784 if (soap_body_end_in(soap)
785 || soap_envelope_end_in(soap)
786 || soap_end_recv(soap))
787 return soap_closesock(soap);
788 return soap_closesock(soap);
789 }
790
soap_call_KMS_Agent__RegisterAgentKWK(struct soap * soap,const char * soap_endpoint,const char * soap_action,struct xsd__hexBinary AgentKWK,struct KMS_Agent__RegisterAgentKWKResponse & result)791 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Agent__RegisterAgentKWK(struct soap *soap, const char *soap_endpoint, const char *soap_action, struct xsd__hexBinary AgentKWK, struct KMS_Agent__RegisterAgentKWKResponse &result)
792 { struct KMS_Agent__RegisterAgentKWK soap_tmp_KMS_Agent__RegisterAgentKWK;
793 soap_tmp_KMS_Agent__RegisterAgentKWK.AgentKWK = AgentKWK;
794 soap_begin(soap);
795 soap_serializeheader(soap);
796 soap_serialize_KMS_Agent__RegisterAgentKWK(soap, &soap_tmp_KMS_Agent__RegisterAgentKWK);
797 if (soap_begin_count(soap))
798 return soap->error;
799 if (soap->mode & SOAP_IO_LENGTH)
800 { if (soap_envelope_begin_out(soap)
801 || soap_putheader(soap)
802 || soap_body_begin_out(soap)
803 || soap_put_KMS_Agent__RegisterAgentKWK(soap, &soap_tmp_KMS_Agent__RegisterAgentKWK, "KMS-Agent:RegisterAgentKWK", NULL)
804 || soap_body_end_out(soap)
805 || soap_envelope_end_out(soap))
806 return soap->error;
807 }
808 if (soap_end_count(soap))
809 return soap->error;
810 if (soap_connect(soap, soap_endpoint, soap_action)
811 || soap_envelope_begin_out(soap)
812 || soap_putheader(soap)
813 || soap_body_begin_out(soap)
814 || soap_put_KMS_Agent__RegisterAgentKWK(soap, &soap_tmp_KMS_Agent__RegisterAgentKWK, "KMS-Agent:RegisterAgentKWK", NULL)
815 || soap_body_end_out(soap)
816 || soap_envelope_end_out(soap)
817 || soap_end_send(soap))
818 return soap_closesock(soap);
819 if (!&result)
820 return soap_closesock(soap);
821 soap_default_KMS_Agent__RegisterAgentKWKResponse(soap, &result);
822 if (soap_begin_recv(soap)
823 || soap_envelope_begin_in(soap)
824 || soap_recv_header(soap)
825 || soap_body_begin_in(soap))
826 return soap_closesock(soap);
827 if (soap_recv_fault(soap, 1))
828 return soap->error;
829 soap_get_KMS_Agent__RegisterAgentKWKResponse(soap, &result, "", "");
830 if (soap->error)
831 return soap_recv_fault(soap, 0);
832 if (soap_body_end_in(soap)
833 || soap_envelope_end_in(soap)
834 || soap_end_recv(soap))
835 return soap_closesock(soap);
836 return soap_closesock(soap);
837 }
838
839 } // namespace KMS_Agent
840
841
842 #if defined(__BORLANDC__)
843 #pragma option pop
844 #pragma option pop
845 #endif
846
847 /* End of KMS_AgentClient.cpp */
848