1 /*
2 * Copyright 1999-2006 University of Chicago
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17
18 /*
19 * This file is automatically generated by the Globus WSDLtoC converter
20 */
21
22 #include "xsd_QName.h"
23 #include "globus_soap_message.h"
24 #include "globus_xsd_type_info.h"
25 #include "wsnt_UnrecognizedPolicyRequestFaultType.h"
26 #include "globus_xsd_generic_array.h"
27
28 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
29 xsd_QName wsnt_UnrecognizedPolicyRequestFaultType_qname =
30 {
31 WSNT_UNRECOGNIZEDPOLICYREQUESTFAULTTYPE_NS,
32 WSNT_UNRECOGNIZEDPOLICYREQUESTFAULTTYPE_LOCAL
33 };
34 #endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */
35
36 static
37 globus_result_t
38 wsnt_UnrecognizedPolicyRequestFaultType_serialize_wrapper(
39 const xsd_QName * element_qname,
40 const void * instance,
41 globus_soap_message_handle_t message_handle,
42 globus_xsd_element_options_t options)
43 0 {
44 0 return wsnt_UnrecognizedPolicyRequestFaultType_serialize(
45 element_qname,
46 (const wsnt_UnrecognizedPolicyRequestFaultType *) instance,
47 message_handle, options);
48 }
49
50 static
51 globus_result_t
52 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_pointer_wrapper(
53 const xsd_QName * element_qname,
54 void ** ip,
55 globus_soap_message_handle_t message_handle,
56 globus_xsd_element_options_t options)
57 0 {
58 0 return wsnt_UnrecognizedPolicyRequestFaultType_deserialize_pointer(
59 element_qname,
60 (wsnt_UnrecognizedPolicyRequestFaultType **) ip,
61 message_handle, options);
62 }
63
64 static
65 globus_result_t
66 wsnt_UnrecognizedPolicyRequestFaultType_init_wrapper(void **object)
67 0 {
68 0 return wsnt_UnrecognizedPolicyRequestFaultType_init(
69 (wsnt_UnrecognizedPolicyRequestFaultType **) object);
70 }
71
72 static
73 void
74 wsnt_UnrecognizedPolicyRequestFaultType_destroy_wrapper(
75 void * object)
76 0 {
77 0 wsnt_UnrecognizedPolicyRequestFaultType_destroy(
78 (wsnt_UnrecognizedPolicyRequestFaultType *) object);
79 0 }
80
81 static
82 globus_result_t
83 wsnt_UnrecognizedPolicyRequestFaultType_copy_wrapper(
84 void ** dest_obj,
85 const void * src_obj)
86 0 {
87 0 return wsnt_UnrecognizedPolicyRequestFaultType_copy(
88 (wsnt_UnrecognizedPolicyRequestFaultType **) dest_obj,
89 (wsnt_UnrecognizedPolicyRequestFaultType *) src_obj);
90 }
91
92 static
93 globus_result_t
94 wsnt_UnrecognizedPolicyRequestFaultType_init_contents_wrapper(void *object)
95 0 {
96 0 return wsnt_UnrecognizedPolicyRequestFaultType_init_contents(
97 (wsnt_UnrecognizedPolicyRequestFaultType *) object);
98 }
99
100 static
101 void
102 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents_wrapper(
103 void * object)
104 0 {
105 0 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents(
106 (wsnt_UnrecognizedPolicyRequestFaultType *) object);
107 0 }
108
109 static
110 globus_result_t
111 wsnt_UnrecognizedPolicyRequestFaultType_copy_contents_wrapper(
112 void * dest_obj,
113 const void * src_obj)
114 0 {
115 0 return wsnt_UnrecognizedPolicyRequestFaultType_copy_contents(
116 (wsnt_UnrecognizedPolicyRequestFaultType *) dest_obj,
117 (const wsnt_UnrecognizedPolicyRequestFaultType *) src_obj);
118 }
119
120 static
121 globus_result_t
122 wsnt_UnrecognizedPolicyRequestFaultType_serialize_contents_wrapper(
123 const xsd_QName * element_qname,
124 const void * instance,
125 globus_soap_message_handle_t message_handle,
126 globus_xsd_element_options_t options)
127 0 {
128 0 return wsnt_UnrecognizedPolicyRequestFaultType_serialize_contents(
129 element_qname,
130 (wsnt_UnrecognizedPolicyRequestFaultType *) instance,
131 message_handle, options);
132 }
133
134 static
135 globus_result_t
136 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents_wrapper(
137 const xsd_QName * element_qname,
138 void ** instance,
139 globus_soap_message_handle_t message_handle,
140 globus_xsd_element_options_t options)
141 0 {
142 globus_result_t result;
143 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents_wrapper);
144 0 GlobusSoapMessageDebugEnter();
145
146 0 if(!*instance)
147 {
148 0 result = wsnt_UnrecognizedPolicyRequestFaultType_init(
149 (wsnt_UnrecognizedPolicyRequestFaultType **)instance);
150 0 if(result != GLOBUS_SUCCESS)
151 {
152 0 goto error;
153 }
154 }
155
156 0 result = wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents(
157 element_qname,
158 *(wsnt_UnrecognizedPolicyRequestFaultType **)instance,
159 message_handle, options);
160 0 error:
161 0 GlobusSoapMessageDebugExit();
162 0 return result;
163 }
164
165 static
166 globus_result_t
167 wsnt_UnrecognizedPolicyRequestFaultType_array_serialize_wrapper(
168 const xsd_QName * element,
169 const void * instance,
170 globus_soap_message_handle_t message,
171 globus_xsd_element_options_t options)
172 0 {
173 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_serialize(
174 element,
175 (wsnt_UnrecognizedPolicyRequestFaultType_array *) instance,
176 message, options);
177 }
178
179 static
180 globus_result_t
181 wsnt_UnrecognizedPolicyRequestFaultType_array_deserialize_wrapper(
182 const xsd_QName * element_qname,
183 void ** inst,
184 globus_soap_message_handle_t message,
185 globus_xsd_element_options_t options)
186 0 {
187 0 if(!*inst)
188 {
189 globus_result_t result;
190
191 0 result = wsnt_UnrecognizedPolicyRequestFaultType_array_init(
192 (wsnt_UnrecognizedPolicyRequestFaultType_array **)inst);
193 0 if(result != GLOBUS_SUCCESS)
194 {
195 0 return result;
196 }
197 }
198
199 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_deserialize(
200 element_qname,
201 *(wsnt_UnrecognizedPolicyRequestFaultType_array **) inst,
202 message, options);
203 }
204
205 static
206 globus_result_t
207 wsnt_UnrecognizedPolicyRequestFaultType_array_init_wrapper(
208 void ** arr)
209 0 {
210 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_init(
211 (wsnt_UnrecognizedPolicyRequestFaultType_array **) arr);
212 }
213
214 static
215 void
216 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_wrapper(
217 void * arr)
218 0 {
219 0 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy(
220 (wsnt_UnrecognizedPolicyRequestFaultType_array *) arr);
221 0 }
222
223 static
224 globus_result_t
225 wsnt_UnrecognizedPolicyRequestFaultType_array_copy_wrapper(
226 void ** dest_arr,
227 const void * src_arr)
228 0 {
229 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_copy(
230 (wsnt_UnrecognizedPolicyRequestFaultType_array **) dest_arr,
231 (const wsnt_UnrecognizedPolicyRequestFaultType_array *) src_arr);
232 }
233
234 static
235 globus_result_t
236 wsnt_UnrecognizedPolicyRequestFaultType_array_init_contents_wrapper(
237 void * arr)
238 0 {
239 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_init_contents(
240 (wsnt_UnrecognizedPolicyRequestFaultType_array *) arr);
241 }
242
243 static
244 void
245 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_contents_wrapper(
246 void * arr)
247 0 {
248 0 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_contents(
249 (wsnt_UnrecognizedPolicyRequestFaultType_array *) arr);
250 0 }
251
252 static
253 globus_result_t
254 wsnt_UnrecognizedPolicyRequestFaultType_array_copy_contents_wrapper(
255 void * dest_arr,
256 const void * src_arr)
257 0 {
258 0 return wsnt_UnrecognizedPolicyRequestFaultType_array_copy_contents(
259 (wsnt_UnrecognizedPolicyRequestFaultType_array *) dest_arr,
260 (const wsnt_UnrecognizedPolicyRequestFaultType_array *) src_arr);
261 }
262
263 static
264 void *
265 wsnt_UnrecognizedPolicyRequestFaultType_array_push_wrapper(
266 void * array)
267 0 {
268 0 return (void *) wsnt_UnrecognizedPolicyRequestFaultType_array_push((wsnt_UnrecognizedPolicyRequestFaultType_array *) array);
269 }
270
271 struct globus_xsd_type_info_s wsnt_UnrecognizedPolicyRequestFaultType_contents_info =
272 {
273 &wsnt_UnrecognizedPolicyRequestFaultType_qname,
274 wsnt_UnrecognizedPolicyRequestFaultType_serialize_contents_wrapper,
275 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents_wrapper,
276 wsnt_UnrecognizedPolicyRequestFaultType_init_wrapper,
277 wsnt_UnrecognizedPolicyRequestFaultType_destroy_wrapper,
278 wsnt_UnrecognizedPolicyRequestFaultType_copy_wrapper,
279 wsnt_UnrecognizedPolicyRequestFaultType_init_contents_wrapper,
280 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents_wrapper,
281 wsnt_UnrecognizedPolicyRequestFaultType_copy_contents_wrapper,
282 sizeof(wsnt_UnrecognizedPolicyRequestFaultType),
283 NULL,
284 NULL,
285 NULL
286 };
287
288 struct globus_xsd_type_info_s wsnt_UnrecognizedPolicyRequestFaultType_array_info =
289 {
290 &wsnt_UnrecognizedPolicyRequestFaultType_qname,
291 wsnt_UnrecognizedPolicyRequestFaultType_array_serialize_wrapper,
292 wsnt_UnrecognizedPolicyRequestFaultType_array_deserialize_wrapper,
293 wsnt_UnrecognizedPolicyRequestFaultType_array_init_wrapper,
294 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_wrapper,
295 wsnt_UnrecognizedPolicyRequestFaultType_array_copy_wrapper,
296 wsnt_UnrecognizedPolicyRequestFaultType_array_init_contents_wrapper,
297 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_contents_wrapper,
298 wsnt_UnrecognizedPolicyRequestFaultType_array_copy_contents_wrapper,
299 sizeof(wsnt_UnrecognizedPolicyRequestFaultType),
300 wsnt_UnrecognizedPolicyRequestFaultType_array_push_wrapper,
301 NULL,
302 NULL
303 };
304
305 struct globus_xsd_type_info_s wsnt_UnrecognizedPolicyRequestFaultType_info =
306 {
307 &wsnt_UnrecognizedPolicyRequestFaultType_qname,
308 wsnt_UnrecognizedPolicyRequestFaultType_serialize_wrapper,
309 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_pointer_wrapper,
310 wsnt_UnrecognizedPolicyRequestFaultType_init_wrapper,
311 wsnt_UnrecognizedPolicyRequestFaultType_destroy_wrapper,
312 wsnt_UnrecognizedPolicyRequestFaultType_copy_wrapper,
313 wsnt_UnrecognizedPolicyRequestFaultType_init_contents_wrapper,
314 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents_wrapper,
315 wsnt_UnrecognizedPolicyRequestFaultType_copy_contents_wrapper,
316 sizeof(wsnt_UnrecognizedPolicyRequestFaultType),
317 NULL,
318 &wsnt_UnrecognizedPolicyRequestFaultType_contents_info,
319 &wsnt_UnrecognizedPolicyRequestFaultType_array_info
320 };
321
322 globus_result_t
323 wsnt_UnrecognizedPolicyRequestFaultType_init_contents(
324 wsnt_UnrecognizedPolicyRequestFaultType * instance)
325 0 {
326 0 globus_result_t result = GLOBUS_SUCCESS;
327 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_init_contents);
328 0 GlobusSoapMessageDebugEnter();
329
330 0 memset(instance, 0, sizeof(wsnt_UnrecognizedPolicyRequestFaultType));
331
332 0 GlobusSoapMessageDebugExit();
333 0 return result;
334 }
335
336 globus_result_t
337 wsnt_UnrecognizedPolicyRequestFaultType_init(
338 wsnt_UnrecognizedPolicyRequestFaultType ** object)
339 0 {
340 wsnt_UnrecognizedPolicyRequestFaultType * instance;
341 0 globus_result_t result = GLOBUS_SUCCESS;
342 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_init);
343 0 GlobusSoapMessageDebugEnter();
344
345 0 instance = globus_malloc(sizeof(wsnt_UnrecognizedPolicyRequestFaultType));
346 0 if(!instance)
347 {
348 0 result = GlobusSoapMessageErrorOutOfMemory;
349 0 goto exit;
350 }
351
352 0 memset(instance, 0, sizeof(wsnt_UnrecognizedPolicyRequestFaultType));
353
354 0 *object = instance;
355
356 0 exit:
357 0 GlobusSoapMessageDebugExit();
358 0 return result;
359 }
360
361 void
362 wsnt_UnrecognizedPolicyRequestFaultType_destroy(
363 wsnt_UnrecognizedPolicyRequestFaultType * instance)
364 0 {
365 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_destroy);
366 0 GlobusSoapMessageDebugEnter();
367
368 0 if(!instance)
369 {
370 0 goto exit;
371 }
372
373 0 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents(instance);
374 0 globus_free(instance);
375
376 0 exit:
377
378 0 GlobusSoapMessageDebugExit();
379 0 }
380
381
382 void
383 wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents(
384 wsnt_UnrecognizedPolicyRequestFaultType * instance)
385 0 {
386 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_destroy_contents);
387 0 GlobusSoapMessageDebugEnter();
388
389 0 if(instance)
390 {
391
392
393 0 xsd_any_array_destroy_contents(&instance->any);
394
395 0 xsd_dateTime_destroy_contents(
396 &instance->Timestamp);
397
398 0 wsa_EndpointReferenceType_destroy(instance->Originator);
399 0 instance->Originator = NULL;
400
401 0 wsbf_ErrorCodeType_destroy(instance->ErrorCode);
402 0 instance->ErrorCode = NULL;
403
404 0 wsbf_DescriptionType_array_destroy_contents(&instance->Description);
405
406 0 wsbf_FaultCauseType_destroy(instance->FaultCause);
407 0 instance->FaultCause = NULL;
408
409 0 xsd_anyAttributes_destroy(instance->anyAttributes);
410 0 instance->anyAttributes = NULL;
411
412 0 xsd_QName_array_destroy_contents(&instance->UnrecognizedPolicy);
413
414 }
415
416 0 GlobusSoapMessageDebugExit();
417 0 }
418
419
420 globus_result_t
421 wsnt_UnrecognizedPolicyRequestFaultType_copy(
422 wsnt_UnrecognizedPolicyRequestFaultType ** dest_obj,
423 const wsnt_UnrecognizedPolicyRequestFaultType * src_obj)
424 0 {
425 0 globus_result_t result = GLOBUS_SUCCESS;
426 wsnt_UnrecognizedPolicyRequestFaultType * instance;
427 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_copy);
428
429 0 GlobusSoapMessageDebugEnter();
430
431 0 instance = calloc(1, sizeof(wsnt_UnrecognizedPolicyRequestFaultType));
432 0 if (instance == NULL)
433 {
434 0 GlobusSoapMessageDebugExit();
435 0 return GlobusSoapMessageErrorOutOfMemory;
436 }
437
438 0 result = wsnt_UnrecognizedPolicyRequestFaultType_copy_contents(instance, src_obj);
439 0 if(result != GLOBUS_SUCCESS)
440 {
441 0 globus_free(instance);
442 0 GlobusSoapMessageDebugExit();
443 0 return GlobusSoapMessageErrorOutOfMemory;
444 }
445
446 0 *dest_obj = instance;
447 0 GlobusSoapMessageDebugExit();
448 0 return result;
449 }
450
451 globus_result_t
452 wsnt_UnrecognizedPolicyRequestFaultType_copy_contents(
453 wsnt_UnrecognizedPolicyRequestFaultType * instance,
454 const wsnt_UnrecognizedPolicyRequestFaultType * src_obj)
455 0 {
456 0 globus_result_t result = GLOBUS_SUCCESS;
457 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_copy_contents);
458
459 0 GlobusSoapMessageDebugEnter();
460
461 0 if(src_obj->anyAttributes)
462 {
463 0 result = xsd_anyAttributes_copy(&instance->anyAttributes,
464 src_obj->anyAttributes);
465 0 if(result != GLOBUS_SUCCESS)
466 {
467 0 result = GlobusSoapMessageErrorCopyAnyAttrsFailed(
468 result, NULL);
469 0 goto xsd_anyAttributes_after_destroy;
470 }
471 }
472 else
473 {
474 0 instance->anyAttributes = NULL;
475 }
476
477 0 result = xsd_any_array_copy_contents(
478 &instance->any,
479 &src_obj->any);
480 0 if(result != GLOBUS_SUCCESS)
481 {
482 0 result = GlobusSoapMessageErrorCopyFailed(
483 result, NULL, &xsd_any_qname);
484 0 goto any_destroy_array;
485 }
486
487 0 result = xsd_dateTime_copy_contents(
488 &instance->Timestamp,
489 &src_obj->Timestamp);
490 0 if(result != GLOBUS_SUCCESS)
491 {
492 0 result = GlobusSoapMessageErrorCopyFailed(
493 result, NULL, &xsd_dateTime_qname);
494 0 goto Timestamp_destroy;
495 }
496
497 0 if(src_obj->Originator)
498 {
499 0 result = wsa_EndpointReferenceType_copy(
500 &instance->Originator,
501 src_obj->Originator);
502 0 if(result != GLOBUS_SUCCESS)
503 {
504 0 result = GlobusSoapMessageErrorCopyFailed(
505 result, NULL, &wsa_EndpointReferenceType_qname);
506 0 goto Originator_destroy_pointer;
507 }
508 }
509 else
510 {
511 0 instance->Originator = NULL;
512 }
513
514 0 if(src_obj->ErrorCode)
515 {
516 0 result = wsbf_ErrorCodeType_copy(
517 &instance->ErrorCode,
518 src_obj->ErrorCode);
519 0 if(result != GLOBUS_SUCCESS)
520 {
521 0 result = GlobusSoapMessageErrorCopyFailed(
522 result, NULL, &wsbf_ErrorCodeType_qname);
523 0 goto ErrorCode_destroy_pointer;
524 }
525 }
526 else
527 {
528 0 instance->ErrorCode = NULL;
529 }
530
531 0 result = wsbf_DescriptionType_array_copy_contents(
532 &instance->Description,
533 &src_obj->Description);
534 0 if(result != GLOBUS_SUCCESS)
535 {
536 0 result = GlobusSoapMessageErrorCopyFailed(
537 result, NULL, &wsbf_DescriptionType_qname);
538 0 goto Description_destroy_array;
539 }
540
541 0 if(src_obj->FaultCause)
542 {
543 0 result = wsbf_FaultCauseType_copy(
544 &instance->FaultCause,
545 src_obj->FaultCause);
546 0 if(result != GLOBUS_SUCCESS)
547 {
548 0 result = GlobusSoapMessageErrorCopyFailed(
549 result, NULL, &wsbf_FaultCauseType_qname);
550 0 goto FaultCause_destroy_pointer;
551 }
552 }
553 else
554 {
555 0 instance->FaultCause = NULL;
556 }
557
558 0 result = xsd_QName_array_copy_contents(
559 &instance->UnrecognizedPolicy,
560 &src_obj->UnrecognizedPolicy);
561 0 if(result != GLOBUS_SUCCESS)
562 {
563 0 result = GlobusSoapMessageErrorCopyFailed(
564 result, NULL, &xsd_QName_qname);
565 0 goto UnrecognizedPolicy_destroy_array;
566 }
567
568 0 goto exit;
569
570 fail_deserialize:
571
572 xsd_anyAttributes_destroy:
573 xsd_anyAttributes_destroy(instance->anyAttributes);
574 instance->anyAttributes = NULL;
575 0 xsd_anyAttributes_after_destroy:
576 0 xsd_any_array_destroy_contents(
577 &instance->any);
578
579 0 any_destroy_array:
580 0 xsd_dateTime_destroy_contents(
581 &instance->Timestamp);
582
583 0 Timestamp_destroy:
584 0 wsa_EndpointReferenceType_destroy(
585 instance->Originator);
586 0 instance->Originator = NULL;
587
588 0 Originator_destroy_pointer:
589 0 wsbf_ErrorCodeType_destroy(
590 instance->ErrorCode);
591 0 instance->ErrorCode = NULL;
592
593 0 ErrorCode_destroy_pointer:
594 0 wsbf_DescriptionType_array_destroy_contents(
595 &instance->Description);
596
597 0 Description_destroy_array:
598 0 wsbf_FaultCauseType_destroy(
599 instance->FaultCause);
600 0 instance->FaultCause = NULL;
601
602 0 FaultCause_destroy_pointer:
603 0 xsd_QName_array_destroy_contents(
604 &instance->UnrecognizedPolicy);
605
606 0 UnrecognizedPolicy_destroy_array:
607
608
609 0 exit:
610
611 0 GlobusSoapMessageDebugExit();
612 0 return result;
613 }
614
615
616
617 globus_result_t
618 wsnt_UnrecognizedPolicyRequestFaultType_serialize_contents(
619 const xsd_QName * element_qname, /* ignored */
620 const wsnt_UnrecognizedPolicyRequestFaultType * inst,
621 globus_soap_message_handle_t message_handle,
622 globus_xsd_element_options_t options)
623 0 {
624 0 globus_result_t result = GLOBUS_SUCCESS;
625 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_serialize_contents);
626 0 GlobusSoapMessageDebugEnter();
627
628 0 result = wsnt_UnrecognizedPolicyRequestFaultType_serialize(
629 NULL,
630 inst,
631 message_handle,
632 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
633 0 if(result != GLOBUS_SUCCESS)
634 {
635 0 result = GlobusSoapMessageErrorSerializeFailed(
636 result, NULL, element_qname);
637 0 goto exit;
638 }
639
640 0 exit:
641
642 0 GlobusSoapMessageDebugExit();
643 0 return result;
644 }
645
646
647
648 globus_result_t
649 wsnt_UnrecognizedPolicyRequestFaultType_serialize(
650 const xsd_QName * element_qname,
651 const wsnt_UnrecognizedPolicyRequestFaultType * instance,
652 globus_soap_message_handle_t message_handle,
653 globus_xsd_element_options_t options)
654 0 {
655 0 globus_result_t result = GLOBUS_SUCCESS;
656 xsd_QName subelement;
657 0 globus_list_t * any_attr_keys = NULL;
658 0 globus_list_t * any_attr_keys_iterator = NULL;
659 0 xsd_QName * type_attr = NULL;
660
661 0 char * prefix = NULL;
662 int prefix_created;
663 0 int define_prefix = 0;
664 0 int save_options = options;
665
666 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_serialize);
667 0 GlobusSoapMessageDebugEnter();
668
669
670 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
671 {
672 /* serialize wsnt_UnrecognizedPolicyRequestFaultType element */
673 0 result = globus_soap_message_element_ns_set(
674 message_handle,
675 element_qname,
676 element_qname->Namespace,
677 &options);
678 0 if(result != GLOBUS_SUCCESS)
679 {
680 0 result = GlobusSoapMessageErrorSerializeFailed(
681 result, NULL, element_qname);
682 0 goto exit;
683 }
684
685 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
686 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
687 {
688 0 result = globus_soap_message_attribute_ns_set(
689 message_handle,
690 element_qname,
691 "http://www.w3.org/2001/XMLSchema-instance",
692 &options);
693 0 if(result != GLOBUS_SUCCESS)
694 {
695 0 result = GlobusSoapMessageErrorSerializeFailed(
696 result, NULL, element_qname);
697 0 goto exit;
698 }
699 }
700
701 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
702 !globus_soap_message_serialize_is_c14n_subset(message_handle))
703 {
704
705 0 result = globus_soap_message_attribute_ns_set(
706 message_handle,
707 element_qname,
708 wsnt_UnrecognizedPolicyRequestFaultType_qname.Namespace,
709 &options);
710 0 if(result != GLOBUS_SUCCESS)
711 {
712 0 result = GlobusSoapMessageErrorSerializeFailed(
713 result, NULL, element_qname);
714 0 goto exit;
715 }
716 }
717
718 0 result = xsd_anyAttributes_namespace_set(
719 message_handle, element_qname, instance->anyAttributes, &options);
720 0 if(result != GLOBUS_SUCCESS)
721 {
722 0 result = GlobusSoapMessageErrorSerializeAnyAttrsFailed(
723 result, "Failed to set namespace");
724 0 goto exit;
725 }
726
727 0 result = globus_soap_message_serialize_element(
728 message_handle,
729 element_qname,
730 options,
731 &wsnt_UnrecognizedPolicyRequestFaultType_qname);
732 0 if(result != GLOBUS_SUCCESS)
733 {
734 0 result = GlobusSoapMessageErrorSerializeFailed(
735 result, NULL, element_qname);
736 0 goto exit;
737 }
738
739 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
740 !globus_soap_message_serialize_is_c14n_subset(message_handle))
741 {
742 0 xsd_QName_init(&type_attr);
743
744 0 type_attr->local = globus_libc_strdup("type");
745 0 type_attr->Namespace = globus_libc_strdup(XSI_NS);
746 }
747
748
749 /* serialize namespaces */
750 0 result = globus_soap_message_element_ns_add(
751 message_handle,
752 element_qname,
753 element_qname->Namespace,
754 &options);
755 0 if(result != GLOBUS_SUCCESS)
756 {
757 0 result = GlobusSoapMessageErrorSerializeFailed(
758 result, NULL, element_qname);
759 0 goto exit;
760 }
761
762 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
763 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
764 {
765 0 result = globus_soap_message_attribute_ns_add(
766 message_handle,
767 element_qname,
768 "http://www.w3.org/2001/XMLSchema-instance",
769 &options);
770 0 if(result != GLOBUS_SUCCESS)
771 {
772 0 result = GlobusSoapMessageErrorSerializeFailed(
773 result, NULL, element_qname);
774 0 goto exit;
775 }
776 }
777 0 if ((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
778 !globus_soap_message_serialize_is_c14n_subset(message_handle))
779 {
780
781 0 result = globus_soap_message_attribute_ns_add(
782 message_handle,
783 element_qname,
784 wsnt_UnrecognizedPolicyRequestFaultType_qname.Namespace,
785 &options);
786 0 if(result != GLOBUS_SUCCESS)
787 {
788 0 result = GlobusSoapMessageErrorSerializeFailed(
789 result, NULL, element_qname);
790 0 goto exit;
791 }
792 }
793
794 0 result = xsd_anyAttributes_namespace_add(
795 message_handle, element_qname, instance->anyAttributes, &options);
796 0 if(result != GLOBUS_SUCCESS)
797 {
798 0 result = GlobusSoapMessageErrorSerializeAnyAttrsFailed(
799 result, "Failed to add namespace");
800 0 goto exit;
801 }
802
803 /* serialize attributes */
804
805 0 if(instance->anyAttributes)
806 {
807 0 any_attr_keys = xsd_anyAttributes_lex_sort(
808 instance->anyAttributes);
809 0 any_attr_keys_iterator = any_attr_keys;
810 }
811
812 0 if(any_attr_keys_iterator)
813 {
814 0 result = xsd_anyAttributes_serialize_lex_before(
815 message_handle,
816 &any_attr_keys_iterator,
817 instance->anyAttributes,
818 type_attr);
819 0 if(result != GLOBUS_SUCCESS)
820 {
821 0 result = GlobusSoapMessageErrorSerializeFailed(result,
822 NULL,
823 element_qname);
824 0 goto exit;
825 }
826 }
827
828 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
829 !globus_soap_message_serialize_is_c14n_subset(message_handle))
830 {
831 0 result = globus_soap_message_serialize_QName_attribute(
832 message_handle,
833 type_attr,
834 &wsnt_UnrecognizedPolicyRequestFaultType_qname);
835 0 if(result != GLOBUS_SUCCESS)
836 {
837 0 result = GlobusSoapMessageErrorSerializeFailed(
838 result, NULL, element_qname);
839 0 goto exit;
840 }
841 }
842
843
844 }
845
846 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
847 {
848 0 result = globus_soap_message_serialize_element_begin_close(
849 message_handle, element_qname);
850 0 if(result != GLOBUS_SUCCESS)
851 {
852 0 result = GlobusSoapMessageErrorSerializeFailed(
853 result, NULL, element_qname);
854 0 goto exit;
855 }
856 }
857 0 options &= ~GLOBUS_XSD_ELEMENT_CONTENTS_ONLY;
858
859
860 /* serialize contents of type */
861
862 0 subelement.local = "any";
863 0 subelement.Namespace = "http://www.w3.org/2001/XMLSchema";
864
865 0 result = xsd_any_array_serialize(
866 &subelement,
867 &instance->any,
868 message_handle,
869 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
870 0 if(result != GLOBUS_SUCCESS)
871 {
872 0 result = GlobusSoapMessageErrorSerializeFailed(
873 result, NULL, &xsd_any_qname);
874 0 goto exit;
875 }
876
877 0 subelement.local = "Timestamp";
878 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
879
880 0 result = xsd_dateTime_serialize(
881 &subelement,
882 &instance->Timestamp,
883 message_handle,
884 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
885 0 if(result != GLOBUS_SUCCESS)
886 {
887 0 result = GlobusSoapMessageErrorSerializeFailed(
888 result, NULL, &xsd_dateTime_qname);
889 0 goto exit;
890 }
891
892 0 subelement.local = "Originator";
893 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
894
895 0 if(instance->Originator)
896 {
897 0 result = wsa_EndpointReferenceType_serialize(
898 &subelement,
899 instance->Originator,
900 message_handle,
901 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
902 0 if(result != GLOBUS_SUCCESS)
903 {
904 0 result = GlobusSoapMessageErrorSerializeFailed(
905 result, NULL, &wsa_EndpointReferenceType_qname);
906 0 goto exit;
907 }
908 }
909
910 0 subelement.local = "ErrorCode";
911 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
912
913 0 if(instance->ErrorCode)
914 {
915 0 result = wsbf_ErrorCodeType_serialize(
916 &subelement,
917 instance->ErrorCode,
918 message_handle,
919 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
920 0 if(result != GLOBUS_SUCCESS)
921 {
922 0 result = GlobusSoapMessageErrorSerializeFailed(
923 result, NULL, &wsbf_ErrorCodeType_qname);
924 0 goto exit;
925 }
926 }
927
928 0 subelement.local = "Description";
929 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
930
931 0 result = wsbf_DescriptionType_array_serialize(
932 &subelement,
933 &instance->Description,
934 message_handle,
935 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
936 0 if(result != GLOBUS_SUCCESS)
937 {
938 0 result = GlobusSoapMessageErrorSerializeFailed(
939 result, NULL, &wsbf_DescriptionType_qname);
940 0 goto exit;
941 }
942
943 0 subelement.local = "FaultCause";
944 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
945
946 0 if(instance->FaultCause)
947 {
948 0 result = wsbf_FaultCauseType_serialize(
949 &subelement,
950 instance->FaultCause,
951 message_handle,
952 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
953 0 if(result != GLOBUS_SUCCESS)
954 {
955 0 result = GlobusSoapMessageErrorSerializeFailed(
956 result, NULL, &wsbf_FaultCauseType_qname);
957 0 goto exit;
958 }
959 }
960
961 0 subelement.local = "UnrecognizedPolicy";
962 0 subelement.Namespace = "http://docs.oasis-open.org/wsn/b-2";
963
964 0 result = xsd_QName_array_serialize(
965 &subelement,
966 &instance->UnrecognizedPolicy,
967 message_handle,
968 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
969 0 if(result != GLOBUS_SUCCESS)
970 {
971 0 result = GlobusSoapMessageErrorSerializeFailed(
972 result, NULL, &xsd_QName_qname);
973 0 goto exit;
974 }
975
976 0 options = save_options;
977
978 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
979 {
980 /* add end element */
981 0 result = globus_soap_message_serialize_element_end(
982 message_handle,
983 element_qname,
984 options,
985 &wsnt_UnrecognizedPolicyRequestFaultType_qname);
986 0 if(result != GLOBUS_SUCCESS)
987 {
988 0 result = GlobusSoapMessageErrorSerializeFailed(
989 result, NULL, element_qname);
990 0 goto exit;
991 }
992
993 0 globus_soap_message_element_ns_remove(
994 message_handle,
995 element_qname->Namespace,
996 &options);
997
998 /* remove namespace/prefix mappings for these types */
999
1000 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
1001 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
1002 {
1003 0 globus_soap_message_attribute_ns_remove(
1004 message_handle,
1005 "http://www.w3.org/2001/XMLSchema-instance",
1006 &options);
1007 }
1008 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
1009 !globus_soap_message_serialize_is_c14n_subset(message_handle))
1010 {
1011 0 globus_soap_message_attribute_ns_remove(
1012 message_handle,
1013 wsnt_UnrecognizedPolicyRequestFaultType_qname.Namespace,
1014 &options);
1015 }
1016
1017 0 result = xsd_anyAttributes_namespace_remove(
1018 message_handle, instance->anyAttributes, &options);
1019 0 if(result != GLOBUS_SUCCESS)
1020 {
1021 0 result = GlobusSoapMessageErrorSerializeAnyAttrsFailed(
1022 result, "Failed to remove namespace");
1023 0 goto exit;
1024 }
1025
1026 }
1027
1028 0 exit:
1029 0 if (type_attr)
1030 {
1031 0 xsd_QName_destroy(type_attr);
1032 }
1033
1034
1035 0 if(any_attr_keys)
1036 {
1037 0 globus_list_free(any_attr_keys);
1038 }
1039
1040 0 GlobusSoapMessageDebugExit();
1041 0 return result;
1042 }
1043
1044
1045
1046 globus_result_t
1047 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents(
1048 const xsd_QName * element_qname, /* ignored */
1049 wsnt_UnrecognizedPolicyRequestFaultType * inst,
1050 globus_soap_message_handle_t message_handle,
1051 globus_xsd_element_options_t options)
1052 0 {
1053 0 globus_result_t result = GLOBUS_SUCCESS;
1054 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_deserialize_contents);
1055 0 GlobusSoapMessageDebugEnter();
1056
1057 0 result = wsnt_UnrecognizedPolicyRequestFaultType_deserialize(
1058 NULL,
1059 inst,
1060 message_handle,
1061 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
1062 0 if(result != GLOBUS_SUCCESS)
1063 {
1064 0 result = GlobusSoapMessageErrorDeserializeFailed(
1065 result, element_qname);
1066 0 goto exit;
1067 }
1068
1069 0 exit:
1070
1071 0 GlobusSoapMessageDebugExit();
1072 0 return result;
1073 }
1074
1075
1076
1077 globus_result_t
1078 wsnt_UnrecognizedPolicyRequestFaultType_deserialize(
1079 const xsd_QName * element_qname,
1080 wsnt_UnrecognizedPolicyRequestFaultType * instance,
1081 globus_soap_message_handle_t message_handle,
1082 globus_xsd_element_options_t options)
1083 0 {
1084 0 globus_result_t result = GLOBUS_SUCCESS;
1085 xsd_QName subelement;
1086 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_deserialize);
1087 0 GlobusSoapMessageDebugEnter();
1088
1089
1090 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
1091 {
1092 0 result = globus_soap_message_deserialize_element(
1093 message_handle, element_qname);
1094 0 if(result != GLOBUS_SUCCESS)
1095 {
1096 0 result = GlobusSoapMessageErrorDeserializeFailed(
1097 result, element_qname);
1098 0 goto exit;
1099 }
1100
1101 0 result = xsd_anyAttributes_init(&instance->anyAttributes);
1102 0 if(result != GLOBUS_SUCCESS)
1103 {
1104 0 result = GlobusSoapMessageErrorDeserializeFailed(
1105 result, element_qname);
1106 0 goto xsd_anyAttributes_after_destroy;
1107 }
1108 0 subelement.Namespace = "##any";
1109 0 subelement.local = "anyAttributes";
1110
1111 0 result = xsd_anyAttributes_deserialize(
1112 message_handle,
1113 instance->anyAttributes,
1114 &subelement);
1115 0 if(result != GLOBUS_SUCCESS)
1116 {
1117 0 result = GlobusSoapMessageErrorDeserializeFailed(
1118 result, element_qname);
1119 0 goto xsd_anyAttributes_destroy;
1120 }
1121
1122
1123 0 result = globus_soap_message_deserialize_element_begin_close(
1124 message_handle);
1125 0 if(result != GLOBUS_SUCCESS)
1126 {
1127 0 result = GlobusSoapMessageErrorDeserializeFailed(
1128 result, element_qname);
1129 0 goto fail_deserialize;
1130 }
1131 }
1132
1133 0 subelement.local = "any";
1134
1135 0 subelement.Namespace = "##other{http://docs.oasis-open.org/wsrf/bf-2}";
1136
1137 0 result = xsd_any_array_deserialize(
1138 &subelement,
1139 &instance->any,
1140 message_handle,
1141 0);
1142 0 if(result != GLOBUS_SUCCESS)
1143 {
1144 0 result = GlobusSoapMessageErrorDeserializeFailed(
1145 result,
1146 (&subelement));
1147 0 goto any_destroy_array;
1148 }
1149
1150 0 subelement.local = "Timestamp";
1151 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
1152
1153 0 result = xsd_dateTime_deserialize(
1154 &subelement,
1155 &instance->Timestamp,
1156 message_handle,
1157 0);
1158 0 if(result != GLOBUS_SUCCESS)
1159 {
1160 0 result = GlobusSoapMessageErrorDeserializeFailed(
1161 result,
1162 &xsd_dateTime_qname);
1163 0 goto Timestamp_destroy;
1164 }
1165
1166 0 subelement.local = "Originator";
1167 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
1168
1169 0 result = wsa_EndpointReferenceType_deserialize_pointer(
1170 &subelement,
1171 &instance->Originator,
1172 message_handle,
1173 0);
1174 0 if(result != GLOBUS_SUCCESS)
1175 {
1176 0 result = GlobusSoapMessageErrorDeserializeFailed(
1177 result,
1178 (&subelement));
1179 0 goto Originator_destroy_pointer;
1180 }
1181
1182 0 subelement.local = "ErrorCode";
1183 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
1184
1185 0 result = wsbf_ErrorCodeType_deserialize_pointer(
1186 &subelement,
1187 &instance->ErrorCode,
1188 message_handle,
1189 0);
1190 0 if(result != GLOBUS_SUCCESS)
1191 {
1192 0 result = GlobusSoapMessageErrorDeserializeFailed(
1193 result,
1194 (&subelement));
1195 0 goto ErrorCode_destroy_pointer;
1196 }
1197
1198 0 subelement.local = "Description";
1199 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
1200
1201 0 result = wsbf_DescriptionType_array_deserialize(
1202 &subelement,
1203 &instance->Description,
1204 message_handle,
1205 0);
1206 0 if(result != GLOBUS_SUCCESS)
1207 {
1208 0 result = GlobusSoapMessageErrorDeserializeFailed(
1209 result,
1210 (&subelement));
1211 0 goto Description_destroy_array;
1212 }
1213
1214 0 subelement.local = "FaultCause";
1215 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/bf-2";
1216
1217 0 result = wsbf_FaultCauseType_deserialize_pointer(
1218 &subelement,
1219 &instance->FaultCause,
1220 message_handle,
1221 0);
1222 0 if(result != GLOBUS_SUCCESS)
1223 {
1224 0 result = GlobusSoapMessageErrorDeserializeFailed(
1225 result,
1226 (&subelement));
1227 0 goto FaultCause_destroy_pointer;
1228 }
1229
1230 0 subelement.local = "UnrecognizedPolicy";
1231 0 subelement.Namespace = "http://docs.oasis-open.org/wsn/b-2";
1232
1233 0 result = xsd_QName_array_deserialize(
1234 &subelement,
1235 &instance->UnrecognizedPolicy,
1236 message_handle,
1237 0);
1238 0 if(result != GLOBUS_SUCCESS)
1239 {
1240 0 result = GlobusSoapMessageErrorDeserializeFailed(
1241 result,
1242 (&subelement));
1243 0 goto UnrecognizedPolicy_destroy_array;
1244 }
1245
1246 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
1247 {
1248 0 result = globus_soap_message_deserialize_element_end(
1249 message_handle,
1250 element_qname);
1251 0 if(result != GLOBUS_SUCCESS)
1252 {
1253 0 result = GlobusSoapMessageErrorDeserializeFailed(
1254 result, element_qname);
1255 0 goto fail_deserialize;
1256 }
1257 }
1258
1259 0 goto exit;
1260
1261 0 fail_deserialize:
1262
1263 0 xsd_anyAttributes_destroy:
1264 0 xsd_anyAttributes_destroy(instance->anyAttributes);
1265 0 instance->anyAttributes = NULL;
1266 0 xsd_anyAttributes_after_destroy:
1267 0 xsd_any_array_destroy_contents(
1268 &instance->any);
1269
1270 0 any_destroy_array:
1271 0 xsd_dateTime_destroy_contents(
1272 &instance->Timestamp);
1273
1274 0 Timestamp_destroy:
1275 0 wsa_EndpointReferenceType_destroy(
1276 instance->Originator);
1277 0 instance->Originator = NULL;
1278
1279 0 Originator_destroy_pointer:
1280 0 wsbf_ErrorCodeType_destroy(
1281 instance->ErrorCode);
1282 0 instance->ErrorCode = NULL;
1283
1284 0 ErrorCode_destroy_pointer:
1285 0 wsbf_DescriptionType_array_destroy_contents(
1286 &instance->Description);
1287
1288 0 Description_destroy_array:
1289 0 wsbf_FaultCauseType_destroy(
1290 instance->FaultCause);
1291 0 instance->FaultCause = NULL;
1292
1293 0 FaultCause_destroy_pointer:
1294 0 xsd_QName_array_destroy_contents(
1295 &instance->UnrecognizedPolicy);
1296
1297 0 UnrecognizedPolicy_destroy_array:
1298
1299
1300 0 exit:
1301
1302 0 GlobusSoapMessageDebugExit();
1303 0 return result;
1304 }
1305
1306
1307
1308 globus_result_t
1309 wsnt_UnrecognizedPolicyRequestFaultType_deserialize_pointer(
1310 const xsd_QName * element_qname,
1311 wsnt_UnrecognizedPolicyRequestFaultType ** ip,
1312 globus_soap_message_handle_t message_handle,
1313 globus_xsd_element_options_t options)
1314 0 {
1315 0 wsnt_UnrecognizedPolicyRequestFaultType * instance = NULL;
1316 0 globus_result_t result = GLOBUS_SUCCESS;
1317 xsd_QName subelement;
1318 0 int found_attrs = 0;
1319 0 int empty_element = 0;
1320 GlobusFuncName(wsnt_UnrecognizedPolicyRequestFaultType_deserialize_pointer);
1321 0 GlobusSoapMessageDebugEnter();
1322
1323 0 *ip = NULL;
1324
1325 0 result = globus_soap_message_deserialize_element(
1326 message_handle, element_qname);
1327 0 if(result != GLOBUS_SUCCESS &&
1328 (GlobusSoapMessageStatusElementNotFoundCheck(result) ||
1329 GlobusSoapMessageStatusFailedElementCheck(result) ||
1330 GlobusSoapMessageStatusFailedWithTextCheck(result)))
1331 {
1332 0 result = GLOBUS_SUCCESS;
1333 0 goto exit;
1334 }
1335
1336 0 if(result != GLOBUS_SUCCESS)
1337 {
1338 0 result = GlobusSoapMessageErrorDeserializeFailed(
1339 result, element_qname);
1340 0 goto exit;
1341 }
1342
1343 0 if(globus_soap_message_deserialize_element_is_empty(
1344 message_handle))
1345 {
1346 0 empty_element = 1;
1347 }
1348
1349 0 result = wsnt_UnrecognizedPolicyRequestFaultType_init(&instance);
1350 0 if(result != GLOBUS_SUCCESS)
1351 {
1352 0 result = GlobusSoapMessageErrorDeserializeFailed(
1353 result, element_qname);
1354 0 goto exit;
1355 }
1356
1357
1358 0 result = xsd_anyAttributes_init(&instance->anyAttributes);
1359 0 if(result != GLOBUS_SUCCESS)
1360 {
1361 0 result = GlobusSoapMessageErrorDeserializeFailed(
1362 result, element_qname);
1363 0 goto xsd_anyAttributes_after_destroy;
1364 }
1365 0 subelement.Namespace = "##any";
1366 0 subelement.local = "anyAttributes";
1367
1368 0 result = xsd_anyAttributes_deserialize(
1369 message_handle,
1370 instance->anyAttributes,
1371 &subelement);
1372 0 if(result != GLOBUS_SUCCESS)
1373 {
1374 0 result = GlobusSoapMessageErrorDeserializeFailed(
1375 result, element_qname);
1376 0 goto xsd_anyAttributes_destroy;
1377 }
1378
1379 0 if(instance->anyAttributes &&
1380 xsd_anyAttributes_size(instance->anyAttributes) > 0)
1381 {
1382 0 found_attrs++;
1383 }
1384
1385 0 if(found_attrs == 0 &&
1386 globus_soap_message_deserialize_element_is_nil(message_handle))
1387 {
1388 0 wsnt_UnrecognizedPolicyRequestFaultType_destroy(instance);
1389
1390 0 result = globus_soap_message_deserialize_element_end(
1391 message_handle,
1392 element_qname);
1393 0 if(result != GLOBUS_SUCCESS)
1394 {
1395 0 result = GlobusSoapMessageErrorDeserializeFailed(
1396 result, element_qname);
1397 0 goto exit;
1398 }
1399
1400 0 *ip = NULL;
1401 0 globus_object_free(globus_error_get(result));
1402 0 result = GLOBUS_SUCCESS;
1403 0 goto exit;
1404 }
1405
1406 0 if(empty_element)
1407 {
1408 0 result = globus_soap_message_deserialize_element_end(
1409 message_handle,
1410 element_qname);
1411 0 if(result != GLOBUS_SUCCESS)
1412 {
1413 0 result = GlobusSoapMessageErrorDeserializeFailed(
1414 result, element_qname);
1415 0 goto fail_deserialize;
1416 }
1417
1418 0 *ip = instance;
1419 0 goto exit;
1420 }
1421
1422 0 result = globus_soap_message_deserialize_element_begin_close(
1423 message_handle);
1424 0 if(result != GLOBUS_SUCCESS)
1425 {
1426 0 result = GlobusSoapMessageErrorDeserializeFailed(
1427 result, element_qname);
1428 0 goto exit;
1429 }
1430
1431 0 result = wsnt_UnrecognizedPolicyRequestFaultType_deserialize(
1432 element_qname,
1433 instance,
1434 message_handle,
1435 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
1436 0 if(result != GLOBUS_SUCCESS)
1437 {
1438 0 result = GlobusSoapMessageErrorDeserializeFailed(
1439 result, element_qname);
1440 0 goto exit;
1441 }
1442
1443 0 result = globus_soap_message_deserialize_element_end(
1444 message_handle,
1445 element_qname);
1446 0 if(result != GLOBUS_SUCCESS)
1447 {
1448 0 result = GlobusSoapMessageErrorDeserializeFailed(
1449 result, element_qname);
1450 0 goto fail_deserialize;
1451 }
1452
1453 0 *ip = instance;
1454
1455 0 goto exit;
1456
1457 0 fail_deserialize:
1458
1459 0 xsd_anyAttributes_destroy:
1460 0 xsd_anyAttributes_destroy(instance->anyAttributes);
1461 0 instance->anyAttributes = NULL;
1462 0 xsd_anyAttributes_after_destroy:
1463 0 xsd_any_array_destroy_contents(
1464 &instance->any);
1465
1466 0 any_destroy_array:
1467 0 xsd_dateTime_destroy_contents(
1468 &instance->Timestamp);
1469
1470 0 Timestamp_destroy:
1471 0 wsa_EndpointReferenceType_destroy(
1472 instance->Originator);
1473 0 instance->Originator = NULL;
1474
1475 0 Originator_destroy_pointer:
1476 0 wsbf_ErrorCodeType_destroy(
1477 instance->ErrorCode);
1478 0 instance->ErrorCode = NULL;
1479
1480 0 ErrorCode_destroy_pointer:
1481 0 wsbf_DescriptionType_array_destroy_contents(
1482 &instance->Description);
1483
1484 0 Description_destroy_array:
1485 0 wsbf_FaultCauseType_destroy(
1486 instance->FaultCause);
1487 0 instance->FaultCause = NULL;
1488
1489 0 FaultCause_destroy_pointer:
1490 0 xsd_QName_array_destroy_contents(
1491 &instance->UnrecognizedPolicy);
1492
1493 0 UnrecognizedPolicy_destroy_array:
1494
1495 0 exit:
1496
1497 0 GlobusSoapMessageDebugExit();
1498 0 return result;
1499 }
1500
1501
1502 globus_result_t
1503 wsnt_UnrecognizedPolicyRequestFaultType_array_init_contents(
1504 wsnt_UnrecognizedPolicyRequestFaultType_array * array)
1505 0 {
1506 0 return globus_xsd_generic_array_init_contents(
1507 (globus_xsd_generic_array_t *) array,
1508 &wsnt_UnrecognizedPolicyRequestFaultType_info);
1509 }
1510 /* wsnt_UnrecognizedPolicyRequestFaultType_array_init_contents() */
1511
1512 globus_result_t
1513 wsnt_UnrecognizedPolicyRequestFaultType_array_init(
1514 wsnt_UnrecognizedPolicyRequestFaultType_array ** arr)
1515 0 {
1516 0 return globus_xsd_generic_array_init(
1517 (globus_xsd_generic_array_t **) arr,
1518 &wsnt_UnrecognizedPolicyRequestFaultType_info);
1519 }
1520 /* wsnt_UnrecognizedPolicyRequestFaultType_array_init() */
1521
1522 void
1523 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_contents(
1524 wsnt_UnrecognizedPolicyRequestFaultType_array * array)
1525 0 {
1526 0 globus_xsd_generic_array_destroy_contents(
1527 (globus_xsd_generic_array_t *) array);
1528 0 }
1529 /* wsnt_UnrecognizedPolicyRequestFaultType_array_destroy_contents() */
1530
1531 void
1532 wsnt_UnrecognizedPolicyRequestFaultType_array_destroy(
1533 wsnt_UnrecognizedPolicyRequestFaultType_array * array)
1534 0 {
1535 0 globus_xsd_generic_array_destroy(
1536 (globus_xsd_generic_array_t *) array);
1537 0 }
1538 /* wsnt_UnrecognizedPolicyRequestFaultType_array_destroy() */
1539
1540 globus_result_t
1541 wsnt_UnrecognizedPolicyRequestFaultType_array_copy(
1542 wsnt_UnrecognizedPolicyRequestFaultType_array ** dest_arr,
1543 const wsnt_UnrecognizedPolicyRequestFaultType_array * src_arr)
1544 0 {
1545 0 return globus_xsd_generic_array_copy(
1546 (globus_xsd_generic_array_t **) dest_arr,
1547 (globus_xsd_generic_array_t *) src_arr);
1548 }
1549 /* wsnt_UnrecognizedPolicyRequestFaultType_array_copy() */
1550
1551 globus_result_t
1552 wsnt_UnrecognizedPolicyRequestFaultType_array_copy_contents(
1553 wsnt_UnrecognizedPolicyRequestFaultType_array * dest_arr,
1554 const wsnt_UnrecognizedPolicyRequestFaultType_array * src_arr)
1555 0 {
1556 0 return globus_xsd_generic_array_copy_contents(
1557 (globus_xsd_generic_array_t *) dest_arr,
1558 (globus_xsd_generic_array_t *) src_arr);
1559 }
1560 /* wsnt_UnrecognizedPolicyRequestFaultType_array_copy_contents() */
1561
1562 wsnt_UnrecognizedPolicyRequestFaultType *
1563 wsnt_UnrecognizedPolicyRequestFaultType_array_push(
1564 wsnt_UnrecognizedPolicyRequestFaultType_array * array)
1565 0 {
1566 /* Some contents initializers don't initialize subelments but to set their
1567 * values to be NULL
1568 */
1569 0 if (array->type_info == NULL)
1570 {
1571 0 array->type_info = &wsnt_UnrecognizedPolicyRequestFaultType_info;
1572 }
1573
1574 0 return globus_xsd_generic_array_push(
1575 (globus_xsd_generic_array_t *) array);
1576 }
1577 /* wsnt_UnrecognizedPolicyRequestFaultType_array_push() */
1578
1579 globus_result_t
1580 wsnt_UnrecognizedPolicyRequestFaultType_array_serialize(
1581 const xsd_QName * element_qname,
1582 const wsnt_UnrecognizedPolicyRequestFaultType_array * array,
1583 globus_soap_message_handle_t message,
1584 globus_xsd_element_options_t options)
1585 0 {
1586 0 return globus_xsd_generic_array_serialize(
1587 element_qname,
1588 (const globus_xsd_generic_array_t *) array,
1589 message,
1590 options);
1591 }
1592 /* wsnt_UnrecognizedPolicyRequestFaultType_array_serialize() */
1593
1594 globus_result_t
1595 wsnt_UnrecognizedPolicyRequestFaultType_array_deserialize(
1596 const xsd_QName * element_qname,
1597 wsnt_UnrecognizedPolicyRequestFaultType_array * array,
1598 globus_soap_message_handle_t message,
1599 globus_xsd_element_options_t options)
1600 0 {
1601 /* Some initializers set the array's contents to NULL */
1602 0 if (array->type_info == NULL)
1603 {
1604 0 array->type_info = &wsnt_UnrecognizedPolicyRequestFaultType_info;
1605 }
1606 0 return globus_xsd_generic_array_deserialize(
1607 element_qname,
1608 (globus_xsd_generic_array_t *) array,
1609 message,
1610 options);