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 "nptest_DestroyTopicTestType.h"
26 #include "globus_xsd_generic_array.h"
27
28 xsd_QName nptest_DestroyTopicTestType_choice_qname =
29 {
30 "http://www.globus.org/namespaces/2007/06/NotificationProducerTest",
31 "DestroyTopicTestType_choice"
32 };
33
34 static
35 globus_result_t
36 nptest_DestroyTopicTestType_choice_serialize_wrapper(
37 const xsd_QName * element_qname,
38 const void * instance,
39 globus_soap_message_handle_t message_handle,
40 globus_xsd_element_options_t options)
41 0 {
42 0 return nptest_DestroyTopicTestType_choice_serialize(
43 element_qname,
44 (nptest_DestroyTopicTestType_choice *) instance,
45 message_handle, options);
46 }
47
48 static
49 globus_result_t
50 nptest_DestroyTopicTestType_choice_deserialize_pointer_wrapper(
51 const xsd_QName * element_qname,
52 void ** ip,
53 globus_soap_message_handle_t message_handle,
54 globus_xsd_element_options_t options)
55 0 {
56 0 return nptest_DestroyTopicTestType_choice_deserialize_pointer(
57 element_qname,
58 (nptest_DestroyTopicTestType_choice **) ip,
59 message_handle, options);
60 }
61
62 static
63 globus_result_t
64 nptest_DestroyTopicTestType_choice_init_wrapper(void **object)
65 0 {
66 0 return nptest_DestroyTopicTestType_choice_init(
67 (nptest_DestroyTopicTestType_choice **) object);
68 }
69
70 static
71 void
72 nptest_DestroyTopicTestType_choice_destroy_wrapper(
73 void * object)
74 0 {
75 0 nptest_DestroyTopicTestType_choice_destroy(
76 (nptest_DestroyTopicTestType_choice *) object);
77 0 }
78
79 static
80 globus_result_t
81 nptest_DestroyTopicTestType_choice_copy_wrapper(
82 void ** dest_obj,
83 const void * src_obj)
84 0 {
85 0 return nptest_DestroyTopicTestType_choice_copy(
86 (nptest_DestroyTopicTestType_choice **) dest_obj,
87 (nptest_DestroyTopicTestType_choice *) src_obj);
88 }
89
90 static
91 globus_result_t
92 nptest_DestroyTopicTestType_choice_init_contents_wrapper(void *object)
93 0 {
94 0 return nptest_DestroyTopicTestType_choice_init_contents(
95 (nptest_DestroyTopicTestType_choice *) object);
96 }
97
98 static
99 void
100 nptest_DestroyTopicTestType_choice_destroy_contents_wrapper(
101 void * object)
102 0 {
103 0 nptest_DestroyTopicTestType_choice_destroy_contents(
104 (nptest_DestroyTopicTestType_choice *) object);
105 0 }
106
107 static
108 globus_result_t
109 nptest_DestroyTopicTestType_choice_copy_contents_wrapper(
110 void * dest_obj,
111 const void * src_obj)
112 0 {
113 0 return nptest_DestroyTopicTestType_choice_copy_contents(
114 (nptest_DestroyTopicTestType_choice *) dest_obj,
115 (nptest_DestroyTopicTestType_choice *) src_obj);
116 }
117
118 static
119 globus_result_t
120 nptest_DestroyTopicTestType_choice_serialize_contents_wrapper(
121 const xsd_QName * element_qname,
122 const void * instance,
123 globus_soap_message_handle_t message_handle,
124 globus_xsd_element_options_t options)
125 0 {
126 0 return nptest_DestroyTopicTestType_choice_serialize_contents(
127 element_qname,
128 (const nptest_DestroyTopicTestType_choice *) instance,
129 message_handle, options);
130 }
131
132 static
133 globus_result_t
134 nptest_DestroyTopicTestType_choice_deserialize_contents_wrapper(
135 const xsd_QName * element_qname,
136 void ** instance,
137 globus_soap_message_handle_t message_handle,
138 globus_xsd_element_options_t options)
139 0 {
140 globus_result_t result;
141 GlobusFuncName(nptest_DestroyTopicTestType_choice_deserialize_contents_wrapper);
142 0 GlobusSoapMessageDebugEnter();
143
144 0 if(!*instance)
145 {
146 0 result = nptest_DestroyTopicTestType_choice_init(
147 (nptest_DestroyTopicTestType_choice **)instance);
148 0 if(result != GLOBUS_SUCCESS)
149 {
150 0 goto error;
151 }
152 }
153
154 0 result = nptest_DestroyTopicTestType_choice_deserialize_contents(
155 element_qname,
156 *(nptest_DestroyTopicTestType_choice **)instance,
157 message_handle, options);
158 0 error:
159 0 GlobusSoapMessageDebugExit();
160 0 return result;
161 }
162
163 static
164 globus_result_t
165 nptest_DestroyTopicTestType_choice_array_serialize_wrapper(
166 const xsd_QName * element,
167 const void * instance,
168 globus_soap_message_handle_t message,
169 globus_xsd_element_options_t options)
170 0 {
171 0 return nptest_DestroyTopicTestType_choice_array_serialize(
172 element,
173 (nptest_DestroyTopicTestType_choice_array *) instance,
174 message, options);
175 }
176
177 static
178 globus_result_t
179 nptest_DestroyTopicTestType_choice_array_deserialize_wrapper(
180 const xsd_QName * element_qname,
181 void ** inst,
182 globus_soap_message_handle_t message,
183 globus_xsd_element_options_t options)
184 0 {
185 0 if(!*inst)
186 {
187 globus_result_t result;
188
189 0 result = nptest_DestroyTopicTestType_choice_array_init(
190 (nptest_DestroyTopicTestType_choice_array **)inst);
191 0 if(result != GLOBUS_SUCCESS)
192 {
193 0 return result;
194 }
195 }
196
197 0 return nptest_DestroyTopicTestType_choice_array_deserialize(
198 element_qname,
199 *(nptest_DestroyTopicTestType_choice_array **) inst,
200 message, options);
201 }
202
203 static
204 globus_result_t
205 nptest_DestroyTopicTestType_choice_array_init_wrapper(
206 void ** arr)
207 0 {
208 0 return nptest_DestroyTopicTestType_choice_array_init(
209 (nptest_DestroyTopicTestType_choice_array **) arr);
210 }
211
212 static
213 void
214 nptest_DestroyTopicTestType_choice_array_destroy_wrapper(
215 void * arr)
216 0 {
217 0 nptest_DestroyTopicTestType_choice_array_destroy(
218 (nptest_DestroyTopicTestType_choice_array *) arr);
219 0 }
220
221 static
222 globus_result_t
223 nptest_DestroyTopicTestType_choice_array_copy_wrapper(
224 void ** dest_arr,
225 const void * src_arr)
226 0 {
227 0 return nptest_DestroyTopicTestType_choice_array_copy(
228 (nptest_DestroyTopicTestType_choice_array **) dest_arr,
229 (const nptest_DestroyTopicTestType_choice_array *) src_arr);
230 }
231
232 static
233 globus_result_t
234 nptest_DestroyTopicTestType_choice_array_init_contents_wrapper(
235 void * arr)
236 0 {
237 0 return nptest_DestroyTopicTestType_choice_array_init_contents(
238 (nptest_DestroyTopicTestType_choice_array *) arr);
239 }
240
241 static
242 void
243 nptest_DestroyTopicTestType_choice_array_destroy_contents_wrapper(
244 void * arr)
245 0 {
246 0 nptest_DestroyTopicTestType_choice_array_destroy_contents(
247 (nptest_DestroyTopicTestType_choice_array *) arr);
248 0 }
249
250 static
251 globus_result_t
252 nptest_DestroyTopicTestType_choice_array_copy_contents_wrapper(
253 void * dest_arr,
254 const void * src_arr)
255 0 {
256 0 return nptest_DestroyTopicTestType_choice_array_copy_contents(
257 (nptest_DestroyTopicTestType_choice_array *) dest_arr,
258 (const nptest_DestroyTopicTestType_choice_array *) src_arr);
259 }
260
261 static
262 void *
263 nptest_DestroyTopicTestType_choice_array_push_wrapper(
264 void * array)
265 0 {
266 0 return (void *) nptest_DestroyTopicTestType_choice_array_push(
267 (nptest_DestroyTopicTestType_choice_array *) array);
268 }
269
270 struct globus_xsd_type_info_s nptest_DestroyTopicTestType_choice_array_info =
271 {
272 &nptest_DestroyTopicTestType_choice_qname,
273 nptest_DestroyTopicTestType_choice_array_serialize_wrapper,
274 nptest_DestroyTopicTestType_choice_array_deserialize_wrapper,
275 nptest_DestroyTopicTestType_choice_array_init_wrapper,
276 nptest_DestroyTopicTestType_choice_array_destroy_wrapper,
277 nptest_DestroyTopicTestType_choice_array_copy_wrapper,
278 nptest_DestroyTopicTestType_choice_array_init_contents_wrapper,
279 nptest_DestroyTopicTestType_choice_array_destroy_contents_wrapper,
280 nptest_DestroyTopicTestType_choice_array_copy_contents_wrapper,
281 sizeof(nptest_DestroyTopicTestType_choice),
282 nptest_DestroyTopicTestType_choice_array_push_wrapper,
283 NULL,
284 NULL
285 };
286
287 struct globus_xsd_type_info_s nptest_DestroyTopicTestType_choice_contents_info =
288 {
289 &nptest_DestroyTopicTestType_choice_qname,
290 nptest_DestroyTopicTestType_choice_serialize_contents_wrapper,
291 nptest_DestroyTopicTestType_choice_deserialize_contents_wrapper,
292 nptest_DestroyTopicTestType_choice_init_wrapper,
293 nptest_DestroyTopicTestType_choice_destroy_wrapper,
294 nptest_DestroyTopicTestType_choice_copy_wrapper,
295 nptest_DestroyTopicTestType_choice_init_contents_wrapper,
296 nptest_DestroyTopicTestType_choice_destroy_contents_wrapper,
297 nptest_DestroyTopicTestType_choice_copy_contents_wrapper,
298 sizeof(nptest_DestroyTopicTestType_choice),
299 NULL,
300 NULL,
301 NULL
302 };
303
304 struct globus_xsd_type_info_s nptest_DestroyTopicTestType_choice_info =
305 {
306 &nptest_DestroyTopicTestType_choice_qname,
307 nptest_DestroyTopicTestType_choice_serialize_wrapper,
308 nptest_DestroyTopicTestType_choice_deserialize_pointer_wrapper,
309 nptest_DestroyTopicTestType_choice_init_wrapper,
310 nptest_DestroyTopicTestType_choice_destroy_wrapper,
311 nptest_DestroyTopicTestType_choice_copy_wrapper,
312 nptest_DestroyTopicTestType_choice_init_contents_wrapper,
313 nptest_DestroyTopicTestType_choice_destroy_contents_wrapper,
314 nptest_DestroyTopicTestType_choice_copy_contents_wrapper,
315 sizeof(nptest_DestroyTopicTestType_choice),
316 NULL,
317 &nptest_DestroyTopicTestType_choice_contents_info,
318 &nptest_DestroyTopicTestType_choice_array_info
319 };
320
321 globus_result_t
322 nptest_DestroyTopicTestType_choice_init_contents(
323 nptest_DestroyTopicTestType_choice * instance)
324 0 {
325 0 globus_result_t result = GLOBUS_SUCCESS;
326 GlobusFuncName(nptest_DestroyTopicTestType_choice_init_contents);
327 0 GlobusSoapMessageDebugEnter();
328
329 0 memset(instance, 0, sizeof(nptest_DestroyTopicTestType));
330
331 0 GlobusSoapMessageDebugExit();
332 0 return result;
333 }
334
335 globus_result_t
336 nptest_DestroyTopicTestType_choice_init(
337 nptest_DestroyTopicTestType_choice ** object)
338 0 {
339 nptest_DestroyTopicTestType_choice * instance;
340 0 globus_result_t result = GLOBUS_SUCCESS;
341 GlobusFuncName(nptest_DestroyTopicTestType_choice_init);
342 0 GlobusSoapMessageDebugEnter();
343
344 0 instance = globus_malloc(sizeof(nptest_DestroyTopicTestType_choice));
345 0 if(!instance)
346 {
347 0 result = GlobusSoapMessageErrorOutOfMemory;
348 0 goto exit;
349 }
350
351 0 memset(instance, 0, sizeof(nptest_DestroyTopicTestType_choice));
352
353 0 *object = instance;
354
355 0 exit:
356 0 GlobusSoapMessageDebugExit();
357 0 return result;
358 }
359
360 void
361 nptest_DestroyTopicTestType_choice_destroy(
362 nptest_DestroyTopicTestType_choice * instance)
363 0 {
364 GlobusFuncName(nptest_DestroyTopicTestType_choice_destroy);
365 0 GlobusSoapMessageDebugEnter();
366
367 0 if(!instance)
368 {
369 0 goto exit;
370 }
371
372 0 nptest_DestroyTopicTestType_choice_destroy_contents(instance);
373 0 free(instance);
374
375 0 exit:
376
377 0 GlobusSoapMessageDebugExit();
378 0 }
379
380
381
382 void
383 nptest_DestroyTopicTestType_choice_destroy_contents(
384 nptest_DestroyTopicTestType_choice * instance)
385 3 {
386 GlobusFuncName(nptest_DestroyTopicTestType_choice_destroy_contents);
387 3 GlobusSoapMessageDebugEnter();
388
389 3 switch(instance->type)
390 {
391
392 case nptest_DestroyTopicTestType_DestroyTopicResponse:
393
394 3 xsd_anyType_destroy_contents(
395 &instance->value.DestroyTopicResponse);
396 3 break;
397
398 case nptest_DestroyTopicTestType_Fault:
399
400 0 nptest_FaultType_destroy_contents(
401 &instance->value.Fault);
402 break;
403
404 default:
405 break;
406 }
407
408 3 instance->type = nptest_DestroyTopicTestType_undefined;
409
410 3 GlobusSoapMessageDebugExit();
411 3 }
412
413 globus_result_t
414 nptest_DestroyTopicTestType_choice_copy(
415 nptest_DestroyTopicTestType_choice ** dest_obj,
416 const nptest_DestroyTopicTestType_choice * src_obj)
417 0 {
418 0 globus_result_t result = GLOBUS_SUCCESS;
419 nptest_DestroyTopicTestType_choice * instance;
420 GlobusFuncName(nptest_DestroyTopicTestType_choice_copy);
421
422 0 GlobusSoapMessageDebugEnter();
423
424 0 instance = malloc(sizeof(nptest_DestroyTopicTestType_choice));
425 0 if (instance == NULL)
426 {
427 0 GlobusSoapMessageDebugExit();
428 0 return GlobusSoapMessageErrorOutOfMemory;
429 }
430
431 0 result = nptest_DestroyTopicTestType_choice_copy_contents(instance, src_obj);
432 0 if(result != GLOBUS_SUCCESS)
433 {
434 0 globus_free(instance);
435 0 GlobusSoapMessageDebugExit();
436 0 return GlobusSoapMessageErrorOutOfMemory;
437 }
438
439 0 *dest_obj = instance;
440 0 GlobusSoapMessageDebugExit();
441 0 return result;
442 }
443
444
445
446 globus_result_t
447 nptest_DestroyTopicTestType_choice_copy_contents(
448 nptest_DestroyTopicTestType_choice * instance,
449 const nptest_DestroyTopicTestType_choice * src_obj)
450 3 {
451 xsd_QName subelement;
452 3 globus_result_t result = GLOBUS_SUCCESS;
453 GlobusFuncName(nptest_DestroyTopicTestType_choice_copy_contents);
454
455 3 GlobusSoapMessageDebugEnter();
456
457 3 switch(src_obj->type)
458 {
459
460 case nptest_DestroyTopicTestType_DestroyTopicResponse:
461 3 instance->type = nptest_DestroyTopicTestType_DestroyTopicResponse;
462 3 result = xsd_anyType_copy_contents(
463 &instance->value.DestroyTopicResponse,
464 &src_obj->value.DestroyTopicResponse);
465 3 if(result != GLOBUS_SUCCESS)
466 {
467 0 result = GlobusSoapMessageErrorSerializeFailed(
468 result, NULL, &nptest_DestroyTopicTestType_choice_qname);
469 0 goto exit;
470 }
471
472 3 break;
473
474 case nptest_DestroyTopicTestType_Fault:
475 0 instance->type = nptest_DestroyTopicTestType_Fault;
476 0 result = nptest_FaultType_copy_contents(
477 &instance->value.Fault,
478 &src_obj->value.Fault);
479 0 if(result != GLOBUS_SUCCESS)
480 {
481 0 result = GlobusSoapMessageErrorSerializeFailed(
482 result, NULL, &nptest_DestroyTopicTestType_choice_qname);
483 0 goto exit;
484 }
485
486 break;
487
488 default:
489 break;
490 }
491
492 3 exit:
493
494 3 GlobusSoapMessageDebugExit();
495 3 return result;
496 }
497
498
499
500
501
502 globus_result_t
503 nptest_DestroyTopicTestType_choice_serialize_contents(
504 const xsd_QName * element_qname, /* ignored */
505 const nptest_DestroyTopicTestType_choice * instance,
506 globus_soap_message_handle_t message_handle,
507 globus_xsd_element_options_t options)
508 0 {
509 xsd_QName subelement;
510 0 globus_result_t result = GLOBUS_SUCCESS;
511 GlobusFuncName(nptest_DestroyTopicTestType_choice_serialize_contents);
512 0 GlobusSoapMessageDebugEnter();
513
514 0 switch(instance->type)
515 {
516
517 case nptest_DestroyTopicTestType_DestroyTopicResponse:
518
519 0 subelement.local = "DestroyTopicResponse";
520 0 subelement.Namespace = "http://www.globus.org/namespaces/2007/06/NotificationProducerTest";
521 0 result = xsd_anyType_serialize(
522 &subelement,
523 &instance->value.DestroyTopicResponse,
524 message_handle,
525 options);
526 0 if(result != GLOBUS_SUCCESS)
527 {
528 0 result = GlobusSoapMessageErrorSerializeFailed(
529 result, NULL, &nptest_DestroyTopicTestType_choice_qname);
530 0 goto exit;
531 }
532
533 0 break;
534
535 case nptest_DestroyTopicTestType_Fault:
536
537 0 subelement.local = "Fault";
538 0 subelement.Namespace = "http://www.globus.org/namespaces/2007/06/NotificationProducerTest";
539 0 result = nptest_FaultType_serialize(
540 &subelement,
541 &instance->value.Fault,
542 message_handle,
543 options);
544 0 if(result != GLOBUS_SUCCESS)
545 {
546 0 result = GlobusSoapMessageErrorSerializeFailed(
547 result, NULL, &nptest_DestroyTopicTestType_choice_qname);
548 0 goto exit;
549 }
550
551 break;
552
553 default:
554 break;
555 }
556
557 0 exit:
558
559 0 GlobusSoapMessageDebugExit();
560 0 return result;
561 }
562
563
564
565 globus_result_t
566 nptest_DestroyTopicTestType_choice_serialize(
567 const xsd_QName * element_qname,
568 const nptest_DestroyTopicTestType_choice * instance,
569 globus_soap_message_handle_t message_handle,
570 globus_xsd_element_options_t options)
571 0 {
572 0 globus_result_t result = GLOBUS_SUCCESS;
573 GlobusFuncName(nptest_DestroyTopicTestType_choice_serialize);
574 0 GlobusSoapMessageDebugEnter();
575
576 0 result = nptest_DestroyTopicTestType_choice_serialize_contents(
577 element_qname,
578 instance,
579 message_handle,
580 options);
581 0 if(result != GLOBUS_SUCCESS)
582 {
583 0 result = GlobusSoapMessageErrorSerializeFailed(
584 result, NULL, &nptest_DestroyTopicTestType_choice_qname);
585 0 goto exit;
586 }
587
588 0 exit:
589 0 GlobusSoapMessageDebugExit();
590 0 return result;
591 }
592
593
594
595
596
597 globus_result_t
598 nptest_DestroyTopicTestType_choice_deserialize_contents(
599 const xsd_QName * element_qname, /* ignored */
600 nptest_DestroyTopicTestType_choice * instance,
601 globus_soap_message_handle_t message_handle,
602 globus_xsd_element_options_t options)
603 0 {
604 0 globus_result_t result = GLOBUS_SUCCESS;
605 GlobusFuncName(nptest_DestroyTopicTestType_choice_deserialize_contents);
606 0 GlobusSoapMessageDebugEnter();
607
608 0 result = nptest_DestroyTopicTestType_choice_deserialize(
609 NULL,
610 instance,
611 message_handle,
612 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
613 0 if(result != GLOBUS_SUCCESS)
614 {
615 0 result = GlobusSoapMessageErrorDeserializeFailed(
616 result, element_qname);
617 0 goto exit;
618 }
619
620 0 exit:
621
622 0 GlobusSoapMessageDebugExit();
623 0 return result;
624 }
625
626
627
628 globus_result_t
629 nptest_DestroyTopicTestType_choice_deserialize(
630 const xsd_QName * element_qname,
631 nptest_DestroyTopicTestType_choice * instance,
632 globus_soap_message_handle_t message_handle,
633 globus_xsd_element_options_t options)
634 3 {
635 3 globus_result_t result = GLOBUS_SUCCESS;
636 xsd_QName subelement;
637 3 xsd_QName deselem_qname = { NULL, NULL } ;
638 GlobusFuncName(nptest_DestroyTopicTestType_choice_deserialize);
639 3 GlobusSoapMessageDebugEnter();
640
641 3 xsd_QName_init_contents(&deselem_qname);
642
643 3 result = globus_soap_message_deserialize_element_unknown(
644 message_handle, &deselem_qname);
645 3 if(result != GLOBUS_SUCCESS)
646 {
647 0 result = GlobusSoapMessageErrorDeserializeFailed(
648 result, &nptest_DestroyTopicTestType_choice_qname);
649 0 goto exit;
650 }
651
652 /*
653 if(globus_soap_message_deserialize_element_is_nil(message_handle))
654 {
655 xsd_QName_destroy_contents(&deselem_qname);
656 result = globus_soap_message_deserialize_element_end(
657 message_handle,
658 element_qname);
659 if(result != GLOBUS_SUCCESS)
660 {
661 result = GlobusSoapMessageErrorDeserializeFailed(
662 result, &nptest_DestroyTopicTestType_choice_qname);
663 goto exit;
664 }
665 }
666 */
667
668 3 globus_soap_message_deserialize_push_element(message_handle);
669
670 3 subelement.local = "DestroyTopicResponse";
671 3 subelement.Namespace = "http://www.globus.org/namespaces/2007/06/NotificationProducerTest";
672 3 if(xsd_QName_keyeq((void *)&subelement, (void *)&deselem_qname))
673 {
674 3 instance->type=nptest_DestroyTopicTestType_DestroyTopicResponse;
675 3 result = xsd_anyType_deserialize(
676 &subelement,
677 &instance->value.DestroyTopicResponse,
678 message_handle,
679 options);
680 3 if(result != GLOBUS_SUCCESS)
681 {
682 0 result = GlobusSoapMessageErrorDeserializeFailed(
683 result, &nptest_DestroyTopicTestType_choice_qname);
684 0 goto DestroyTopicResponse_destroy;
685 }
686
687 3 goto exit;
688 }
689
690 0 subelement.local = "Fault";
691 0 subelement.Namespace = "http://www.globus.org/namespaces/2007/06/NotificationProducerTest";
692 0 if(xsd_QName_keyeq((void *)&subelement, (void *)&deselem_qname))
693 {
694 0 instance->type=nptest_DestroyTopicTestType_Fault;
695 0 result = nptest_FaultType_deserialize(
696 &subelement,
697 &instance->value.Fault,
698 message_handle,
699 options);
700 0 if(result != GLOBUS_SUCCESS)
701 {
702 0 result = GlobusSoapMessageErrorDeserializeFailed(
703 result, &nptest_DestroyTopicTestType_choice_qname);
704 0 goto Fault_destroy;
705 }
706
707 0 goto exit;
708 }
709
710 0 instance->type = nptest_DestroyTopicTestType_undefined;
711 0 result = GlobusSoapMessageErrorDeserializeFailed(
712 result, &nptest_DestroyTopicTestType_choice_qname);
713
714 goto exit;
715
716 3 deserialize_failed:
717
718 3 Fault_destroy:
719
720 3 DestroyTopicResponse_destroy:
721
722 3 exit:
723
724 3 xsd_QName_destroy_contents(&deselem_qname);
725
726 3 GlobusSoapMessageDebugExit();
727 3 return result;
728 }
729
730
731
732 globus_result_t
733 nptest_DestroyTopicTestType_choice_deserialize_pointer(
734 const xsd_QName * element_qname,
735 nptest_DestroyTopicTestType_choice ** ip,
736 globus_soap_message_handle_t message_handle,
737 globus_xsd_element_options_t options)
738 0 {
739 0 nptest_DestroyTopicTestType_choice * instance = NULL;
740 0 globus_result_t result = GLOBUS_SUCCESS;
741 xsd_QName subelement;
742 GlobusFuncName(nptest_DestroyTopicTestType_choice_deserialize_pointer);
743 0 GlobusSoapMessageDebugEnter();
744
745 0 *ip = NULL;
746
747 0 result = nptest_DestroyTopicTestType_choice_init(&instance);
748 0 if(result != GLOBUS_SUCCESS)
749 {
750 0 result = GlobusSoapMessageErrorDeserializeFailed(
751 result, element_qname);
752 0 goto exit;
753 }
754
755 0 result = nptest_DestroyTopicTestType_choice_deserialize(
756 element_qname,
757 instance,
758 message_handle,
759 options);
760 0 if(result != GLOBUS_SUCCESS)
761 {
762 0 goto exit;
763 }
764
765 0 *ip = instance;
766
767 0 exit:
768
769 0 GlobusSoapMessageDebugExit();
770 0 return result;
771 }
772
773
774
775 globus_result_t
776 nptest_DestroyTopicTestType_choice_array_init_contents(
777 nptest_DestroyTopicTestType_choice_array * array)
778 0 {
779 0 return globus_xsd_generic_array_init_contents(
780 (globus_xsd_generic_array_t *) array,
781 &nptest_DestroyTopicTestType_choice_array_info);
782 }
783 /* nptest_DestroyTopicTestType_choice_array_init_contents() */
784
785 globus_result_t
786 nptest_DestroyTopicTestType_choice_array_init(
787 nptest_DestroyTopicTestType_choice_array ** arr)
788 0 {
789 0 return globus_xsd_generic_array_init(
790 (globus_xsd_generic_array_t **) arr,
791 &nptest_DestroyTopicTestType_choice_info);
792 }
793 /* nptest_DestroyTopicTestType_choice_array_init() */
794
795 void
796 nptest_DestroyTopicTestType_choice_array_destroy_contents(
797 nptest_DestroyTopicTestType_choice_array * array)
798 0 {
799 0 globus_xsd_generic_array_destroy_contents(
800 (globus_xsd_generic_array_t *) array);
801 0 }
802 /* nptest_DestroyTopicTestType_choice_array_destroy_contents() */
803
804 void
805 nptest_DestroyTopicTestType_choice_array_destroy(
806 nptest_DestroyTopicTestType_choice_array * array)
807 0 {
808 0 globus_xsd_generic_array_destroy(
809 (globus_xsd_generic_array_t *) array);
810 0 }
811 /* nptest_DestroyTopicTestType_choice_array_destroy() */
812
813 globus_result_t
814 nptest_DestroyTopicTestType_choice_array_copy(
815 nptest_DestroyTopicTestType_choice_array ** dest_arr,
816 const nptest_DestroyTopicTestType_choice_array * src_arr)
817 0 {
818 0 return globus_xsd_generic_array_copy(
819 (globus_xsd_generic_array_t **) dest_arr,
820 (const globus_xsd_generic_array_t *) src_arr);
821 }
822 /* nptest_DestroyTopicTestType_choice_array_copy() */
823
824 globus_result_t
825 nptest_DestroyTopicTestType_choice_array_copy_contents(
826 nptest_DestroyTopicTestType_choice_array * dest_arr,
827 const nptest_DestroyTopicTestType_choice_array * src_arr)
828 0 {
829 0 return globus_xsd_generic_array_copy_contents(
830 (globus_xsd_generic_array_t *) dest_arr,
831 (const globus_xsd_generic_array_t *) src_arr);
832 }
833
834 nptest_DestroyTopicTestType_choice *
835 nptest_DestroyTopicTestType_choice_array_push(
836 nptest_DestroyTopicTestType_choice_array * array)
837 0 {
838 /* Some contents initializers don't initialize subelments but to set their
839 * values to be NULL
840 */
841 0 if (array->type_info == NULL)
842 {
843 0 array->type_info = &nptest_DestroyTopicTestType_choice_info;
844 }
845 0 return globus_xsd_generic_array_push(
846 (globus_xsd_generic_array_t *) array);
847 }
848 /* nptest_DestroyTopicTestType_choice_array_push() */
849
850 globus_result_t
851 nptest_DestroyTopicTestType_choice_array_serialize(
852 const xsd_QName * element_qname,
853 const nptest_DestroyTopicTestType_choice_array * array,
854 globus_soap_message_handle_t message,
855 globus_xsd_element_options_t options)
856 0 {
857 0 return globus_xsd_generic_array_serialize(
858 element_qname,
859 (const globus_xsd_generic_array_t *) array,
860 message,
861 options);
862 }
863 /* nptest_DestroyTopicTestType_choice_array_serialize() */
864
865 globus_result_t
866 nptest_DestroyTopicTestType_choice_array_deserialize(
867 const xsd_QName * element_qname,
868 nptest_DestroyTopicTestType_choice_array * array,
869 globus_soap_message_handle_t message,
870 globus_xsd_element_options_t options)
871 0 {
872 /* Some initializers set the array's contents to NULL */
873 0 if (array->type_info == NULL)
874 {
875 0 array->type_info = &nptest_DestroyTopicTestType_choice_info;
876 }
877 0 return globus_xsd_generic_array_deserialize(
878 element_qname,
879 (globus_xsd_generic_array_t *) array,
880 message,
881 options);
882 }