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 "wsrp_InsertResourcePropertiesResponseType.h"
26 #include "globus_xsd_generic_array.h"
27
28 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
29 xsd_QName wsrp_InsertResourcePropertiesResponseType_qname =
30 {
31 WSRP_INSERTRESOURCEPROPERTIESRESPONSETYPE_NS,
32 WSRP_INSERTRESOURCEPROPERTIESRESPONSETYPE_LOCAL
33 };
34 #endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */
35
36 static
37 globus_result_t
38 wsrp_InsertResourcePropertiesResponseType_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 wsrp_InsertResourcePropertiesResponseType_serialize(
45 element_qname,
46 (const wsrp_InsertResourcePropertiesResponseType *) instance,
47 message_handle, options);
48 }
49
50 static
51 globus_result_t
52 wsrp_InsertResourcePropertiesResponseType_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 wsrp_InsertResourcePropertiesResponseType_deserialize_pointer(
59 element_qname,
60 (wsrp_InsertResourcePropertiesResponseType **) ip,
61 message_handle, options);
62 }
63
64 static
65 globus_result_t
66 wsrp_InsertResourcePropertiesResponseType_init_wrapper(void **object)
67 0 {
68 0 return wsrp_InsertResourcePropertiesResponseType_init(
69 (wsrp_InsertResourcePropertiesResponseType **) object);
70 }
71
72 static
73 void
74 wsrp_InsertResourcePropertiesResponseType_destroy_wrapper(
75 void * object)
76 0 {
77 0 wsrp_InsertResourcePropertiesResponseType_destroy(
78 (wsrp_InsertResourcePropertiesResponseType *) object);
79 0 }
80
81 static
82 globus_result_t
83 wsrp_InsertResourcePropertiesResponseType_copy_wrapper(
84 void ** dest_obj,
85 const void * src_obj)
86 0 {
87 0 return wsrp_InsertResourcePropertiesResponseType_copy(
88 (wsrp_InsertResourcePropertiesResponseType **) dest_obj,
89 (wsrp_InsertResourcePropertiesResponseType *) src_obj);
90 }
91
92 static
93 globus_result_t
94 wsrp_InsertResourcePropertiesResponseType_init_contents_wrapper(void *object)
95 0 {
96 0 return wsrp_InsertResourcePropertiesResponseType_init_contents(
97 (wsrp_InsertResourcePropertiesResponseType *) object);
98 }
99
100 static
101 void
102 wsrp_InsertResourcePropertiesResponseType_destroy_contents_wrapper(
103 void * object)
104 0 {
105 0 wsrp_InsertResourcePropertiesResponseType_destroy_contents(
106 (wsrp_InsertResourcePropertiesResponseType *) object);
107 0 }
108
109 static
110 globus_result_t
111 wsrp_InsertResourcePropertiesResponseType_copy_contents_wrapper(
112 void * dest_obj,
113 const void * src_obj)
114 0 {
115 0 return wsrp_InsertResourcePropertiesResponseType_copy_contents(
116 (wsrp_InsertResourcePropertiesResponseType *) dest_obj,
117 (const wsrp_InsertResourcePropertiesResponseType *) src_obj);
118 }
119
120 static
121 globus_result_t
122 wsrp_InsertResourcePropertiesResponseType_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 wsrp_InsertResourcePropertiesResponseType_serialize_contents(
129 element_qname,
130 (wsrp_InsertResourcePropertiesResponseType *) instance,
131 message_handle, options);
132 }
133
134 static
135 globus_result_t
136 wsrp_InsertResourcePropertiesResponseType_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(wsrp_InsertResourcePropertiesResponseType_deserialize_contents_wrapper);
144 0 GlobusSoapMessageDebugEnter();
145
146 0 if(!*instance)
147 {
148 0 result = wsrp_InsertResourcePropertiesResponseType_init(
149 (wsrp_InsertResourcePropertiesResponseType **)instance);
150 0 if(result != GLOBUS_SUCCESS)
151 {
152 0 goto error;
153 }
154 }
155
156 0 result = wsrp_InsertResourcePropertiesResponseType_deserialize_contents(
157 element_qname,
158 *(wsrp_InsertResourcePropertiesResponseType **)instance,
159 message_handle, options);
160 0 error:
161 0 GlobusSoapMessageDebugExit();
162 0 return result;
163 }
164
165 static
166 globus_result_t
167 wsrp_InsertResourcePropertiesResponseType_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 wsrp_InsertResourcePropertiesResponseType_array_serialize(
174 element,
175 (wsrp_InsertResourcePropertiesResponseType_array *) instance,
176 message, options);
177 }
178
179 static
180 globus_result_t
181 wsrp_InsertResourcePropertiesResponseType_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 = wsrp_InsertResourcePropertiesResponseType_array_init(
192 (wsrp_InsertResourcePropertiesResponseType_array **)inst);
193 0 if(result != GLOBUS_SUCCESS)
194 {
195 0 return result;
196 }
197 }
198
199 0 return wsrp_InsertResourcePropertiesResponseType_array_deserialize(
200 element_qname,
201 *(wsrp_InsertResourcePropertiesResponseType_array **) inst,
202 message, options);
203 }
204
205 static
206 globus_result_t
207 wsrp_InsertResourcePropertiesResponseType_array_init_wrapper(
208 void ** arr)
209 0 {
210 0 return wsrp_InsertResourcePropertiesResponseType_array_init(
211 (wsrp_InsertResourcePropertiesResponseType_array **) arr);
212 }
213
214 static
215 void
216 wsrp_InsertResourcePropertiesResponseType_array_destroy_wrapper(
217 void * arr)
218 0 {
219 0 wsrp_InsertResourcePropertiesResponseType_array_destroy(
220 (wsrp_InsertResourcePropertiesResponseType_array *) arr);
221 0 }
222
223 static
224 globus_result_t
225 wsrp_InsertResourcePropertiesResponseType_array_copy_wrapper(
226 void ** dest_arr,
227 const void * src_arr)
228 0 {
229 0 return wsrp_InsertResourcePropertiesResponseType_array_copy(
230 (wsrp_InsertResourcePropertiesResponseType_array **) dest_arr,
231 (const wsrp_InsertResourcePropertiesResponseType_array *) src_arr);
232 }
233
234 static
235 globus_result_t
236 wsrp_InsertResourcePropertiesResponseType_array_init_contents_wrapper(
237 void * arr)
238 0 {
239 0 return wsrp_InsertResourcePropertiesResponseType_array_init_contents(
240 (wsrp_InsertResourcePropertiesResponseType_array *) arr);
241 }
242
243 static
244 void
245 wsrp_InsertResourcePropertiesResponseType_array_destroy_contents_wrapper(
246 void * arr)
247 0 {
248 0 wsrp_InsertResourcePropertiesResponseType_array_destroy_contents(
249 (wsrp_InsertResourcePropertiesResponseType_array *) arr);
250 0 }
251
252 static
253 globus_result_t
254 wsrp_InsertResourcePropertiesResponseType_array_copy_contents_wrapper(
255 void * dest_arr,
256 const void * src_arr)
257 0 {
258 0 return wsrp_InsertResourcePropertiesResponseType_array_copy_contents(
259 (wsrp_InsertResourcePropertiesResponseType_array *) dest_arr,
260 (const wsrp_InsertResourcePropertiesResponseType_array *) src_arr);
261 }
262
263 static
264 void *
265 wsrp_InsertResourcePropertiesResponseType_array_push_wrapper(
266 void * array)
267 0 {
268 0 return (void *) wsrp_InsertResourcePropertiesResponseType_array_push((wsrp_InsertResourcePropertiesResponseType_array *) array);
269 }
270
271 struct globus_xsd_type_info_s wsrp_InsertResourcePropertiesResponseType_contents_info =
272 {
273 &wsrp_InsertResourcePropertiesResponseType_qname,
274 wsrp_InsertResourcePropertiesResponseType_serialize_contents_wrapper,
275 wsrp_InsertResourcePropertiesResponseType_deserialize_contents_wrapper,
276 wsrp_InsertResourcePropertiesResponseType_init_wrapper,
277 wsrp_InsertResourcePropertiesResponseType_destroy_wrapper,
278 wsrp_InsertResourcePropertiesResponseType_copy_wrapper,
279 wsrp_InsertResourcePropertiesResponseType_init_contents_wrapper,
280 wsrp_InsertResourcePropertiesResponseType_destroy_contents_wrapper,
281 wsrp_InsertResourcePropertiesResponseType_copy_contents_wrapper,
282 sizeof(wsrp_InsertResourcePropertiesResponseType),
283 NULL,
284 NULL,
285 NULL
286 };
287
288 struct globus_xsd_type_info_s wsrp_InsertResourcePropertiesResponseType_array_info =
289 {
290 &wsrp_InsertResourcePropertiesResponseType_qname,
291 wsrp_InsertResourcePropertiesResponseType_array_serialize_wrapper,
292 wsrp_InsertResourcePropertiesResponseType_array_deserialize_wrapper,
293 wsrp_InsertResourcePropertiesResponseType_array_init_wrapper,
294 wsrp_InsertResourcePropertiesResponseType_array_destroy_wrapper,
295 wsrp_InsertResourcePropertiesResponseType_array_copy_wrapper,
296 wsrp_InsertResourcePropertiesResponseType_array_init_contents_wrapper,
297 wsrp_InsertResourcePropertiesResponseType_array_destroy_contents_wrapper,
298 wsrp_InsertResourcePropertiesResponseType_array_copy_contents_wrapper,
299 sizeof(wsrp_InsertResourcePropertiesResponseType),
300 wsrp_InsertResourcePropertiesResponseType_array_push_wrapper,
301 NULL,
302 NULL
303 };
304
305 struct globus_xsd_type_info_s wsrp_InsertResourcePropertiesResponseType_info =
306 {
307 &wsrp_InsertResourcePropertiesResponseType_qname,
308 wsrp_InsertResourcePropertiesResponseType_serialize_wrapper,
309 wsrp_InsertResourcePropertiesResponseType_deserialize_pointer_wrapper,
310 wsrp_InsertResourcePropertiesResponseType_init_wrapper,
311 wsrp_InsertResourcePropertiesResponseType_destroy_wrapper,
312 wsrp_InsertResourcePropertiesResponseType_copy_wrapper,
313 wsrp_InsertResourcePropertiesResponseType_init_contents_wrapper,
314 wsrp_InsertResourcePropertiesResponseType_destroy_contents_wrapper,
315 wsrp_InsertResourcePropertiesResponseType_copy_contents_wrapper,
316 sizeof(wsrp_InsertResourcePropertiesResponseType),
317 NULL,
318 &wsrp_InsertResourcePropertiesResponseType_contents_info,
319 &wsrp_InsertResourcePropertiesResponseType_array_info
320 };
321
322 globus_result_t
323 wsrp_InsertResourcePropertiesResponseType_init_contents(
324 wsrp_InsertResourcePropertiesResponseType * instance)
325 0 {
326 0 globus_result_t result = GLOBUS_SUCCESS;
327 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_init_contents);
328 0 GlobusSoapMessageDebugEnter();
329
330 0 memset(instance, 0, sizeof(wsrp_InsertResourcePropertiesResponseType));
331
332 0 GlobusSoapMessageDebugExit();
333 0 return result;
334 }
335
336 globus_result_t
337 wsrp_InsertResourcePropertiesResponseType_init(
338 wsrp_InsertResourcePropertiesResponseType ** object)
339 0 {
340 wsrp_InsertResourcePropertiesResponseType * instance;
341 0 globus_result_t result = GLOBUS_SUCCESS;
342 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_init);
343 0 GlobusSoapMessageDebugEnter();
344
345 0 instance = globus_malloc(sizeof(wsrp_InsertResourcePropertiesResponseType));
346 0 if(!instance)
347 {
348 0 result = GlobusSoapMessageErrorOutOfMemory;
349 0 goto exit;
350 }
351
352 0 memset(instance, 0, sizeof(wsrp_InsertResourcePropertiesResponseType));
353
354 0 *object = instance;
355
356 0 exit:
357 0 GlobusSoapMessageDebugExit();
358 0 return result;
359 }
360
361 void
362 wsrp_InsertResourcePropertiesResponseType_destroy(
363 wsrp_InsertResourcePropertiesResponseType * instance)
364 0 {
365 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_destroy);
366 0 GlobusSoapMessageDebugEnter();
367
368 0 if(!instance)
369 {
370 0 goto exit;
371 }
372
373 0 wsrp_InsertResourcePropertiesResponseType_destroy_contents(instance);
374 0 globus_free(instance);
375
376 0 exit:
377
378 0 GlobusSoapMessageDebugExit();
379 0 }
380
381
382 void
383 wsrp_InsertResourcePropertiesResponseType_destroy_contents(
384 wsrp_InsertResourcePropertiesResponseType * instance)
385 0 {
386 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_destroy_contents);
387 0 GlobusSoapMessageDebugEnter();
388
389 if(instance)
390 {
391
392
393 }
394
395 0 GlobusSoapMessageDebugExit();
396 0 }
397
398
399 globus_result_t
400 wsrp_InsertResourcePropertiesResponseType_copy(
401 wsrp_InsertResourcePropertiesResponseType ** dest_obj,
402 const wsrp_InsertResourcePropertiesResponseType * src_obj)
403 0 {
404 0 globus_result_t result = GLOBUS_SUCCESS;
405 wsrp_InsertResourcePropertiesResponseType * instance;
406 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_copy);
407
408 0 GlobusSoapMessageDebugEnter();
409
410 0 instance = calloc(1, sizeof(wsrp_InsertResourcePropertiesResponseType));
411 0 if (instance == NULL)
412 {
413 0 GlobusSoapMessageDebugExit();
414 0 return GlobusSoapMessageErrorOutOfMemory;
415 }
416
417 0 result = wsrp_InsertResourcePropertiesResponseType_copy_contents(instance, src_obj);
418 0 if(result != GLOBUS_SUCCESS)
419 {
420 0 globus_free(instance);
421 0 GlobusSoapMessageDebugExit();
422 0 return GlobusSoapMessageErrorOutOfMemory;
423 }
424
425 0 *dest_obj = instance;
426 0 GlobusSoapMessageDebugExit();
427 0 return result;
428 }
429
430 globus_result_t
431 wsrp_InsertResourcePropertiesResponseType_copy_contents(
432 wsrp_InsertResourcePropertiesResponseType * instance,
433 const wsrp_InsertResourcePropertiesResponseType * src_obj)
434 0 {
435 0 globus_result_t result = GLOBUS_SUCCESS;
436 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_copy_contents);
437
438 0 GlobusSoapMessageDebugEnter();
439
440 goto exit;
441
442 0 fail_deserialize:
443
444
445 0 exit:
446
447 0 GlobusSoapMessageDebugExit();
448 0 return result;
449 }
450
451
452
453 globus_result_t
454 wsrp_InsertResourcePropertiesResponseType_serialize_contents(
455 const xsd_QName * element_qname, /* ignored */
456 const wsrp_InsertResourcePropertiesResponseType * inst,
457 globus_soap_message_handle_t message_handle,
458 globus_xsd_element_options_t options)
459 0 {
460 0 globus_result_t result = GLOBUS_SUCCESS;
461 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_serialize_contents);
462 0 GlobusSoapMessageDebugEnter();
463
464 0 result = wsrp_InsertResourcePropertiesResponseType_serialize(
465 NULL,
466 inst,
467 message_handle,
468 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
469 0 if(result != GLOBUS_SUCCESS)
470 {
471 0 result = GlobusSoapMessageErrorSerializeFailed(
472 result, NULL, element_qname);
473 0 goto exit;
474 }
475
476 0 exit:
477
478 0 GlobusSoapMessageDebugExit();
479 0 return result;
480 }
481
482
483
484 globus_result_t
485 wsrp_InsertResourcePropertiesResponseType_serialize(
486 const xsd_QName * element_qname,
487 const wsrp_InsertResourcePropertiesResponseType * instance,
488 globus_soap_message_handle_t message_handle,
489 globus_xsd_element_options_t options)
490 0 {
491 0 globus_result_t result = GLOBUS_SUCCESS;
492 xsd_QName subelement;
493 0 globus_list_t * any_attr_keys = NULL;
494 0 globus_list_t * any_attr_keys_iterator = NULL;
495 0 xsd_QName * type_attr = NULL;
496
497 0 char * prefix = NULL;
498 int prefix_created;
499 0 int define_prefix = 0;
500 0 int save_options = options;
501
502 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_serialize);
503 0 GlobusSoapMessageDebugEnter();
504
505
506 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
507 {
508 /* serialize wsrp_InsertResourcePropertiesResponseType element */
509 0 result = globus_soap_message_element_ns_set(
510 message_handle,
511 element_qname,
512 element_qname->Namespace,
513 &options);
514 0 if(result != GLOBUS_SUCCESS)
515 {
516 0 result = GlobusSoapMessageErrorSerializeFailed(
517 result, NULL, element_qname);
518 0 goto exit;
519 }
520
521 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
522 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
523 {
524 0 result = globus_soap_message_attribute_ns_set(
525 message_handle,
526 element_qname,
527 "http://www.w3.org/2001/XMLSchema-instance",
528 &options);
529 0 if(result != GLOBUS_SUCCESS)
530 {
531 0 result = GlobusSoapMessageErrorSerializeFailed(
532 result, NULL, element_qname);
533 0 goto exit;
534 }
535 }
536
537 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
538 !globus_soap_message_serialize_is_c14n_subset(message_handle))
539 {
540
541 0 result = globus_soap_message_attribute_ns_set(
542 message_handle,
543 element_qname,
544 wsrp_InsertResourcePropertiesResponseType_qname.Namespace,
545 &options);
546 0 if(result != GLOBUS_SUCCESS)
547 {
548 0 result = GlobusSoapMessageErrorSerializeFailed(
549 result, NULL, element_qname);
550 0 goto exit;
551 }
552 }
553
554 0 result = globus_soap_message_serialize_element(
555 message_handle,
556 element_qname,
557 options,
558 &wsrp_InsertResourcePropertiesResponseType_qname);
559 0 if(result != GLOBUS_SUCCESS)
560 {
561 0 result = GlobusSoapMessageErrorSerializeFailed(
562 result, NULL, element_qname);
563 0 goto exit;
564 }
565
566 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
567 !globus_soap_message_serialize_is_c14n_subset(message_handle))
568 {
569 0 xsd_QName_init(&type_attr);
570
571 0 type_attr->local = globus_libc_strdup("type");
572 0 type_attr->Namespace = globus_libc_strdup(XSI_NS);
573 }
574
575
576 /* serialize namespaces */
577 0 result = globus_soap_message_element_ns_add(
578 message_handle,
579 element_qname,
580 element_qname->Namespace,
581 &options);
582 0 if(result != GLOBUS_SUCCESS)
583 {
584 0 result = GlobusSoapMessageErrorSerializeFailed(
585 result, NULL, element_qname);
586 0 goto exit;
587 }
588
589 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
590 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
591 {
592 0 result = globus_soap_message_attribute_ns_add(
593 message_handle,
594 element_qname,
595 "http://www.w3.org/2001/XMLSchema-instance",
596 &options);
597 0 if(result != GLOBUS_SUCCESS)
598 {
599 0 result = GlobusSoapMessageErrorSerializeFailed(
600 result, NULL, element_qname);
601 0 goto exit;
602 }
603 }
604 0 if ((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
605 !globus_soap_message_serialize_is_c14n_subset(message_handle))
606 {
607
608 0 result = globus_soap_message_attribute_ns_add(
609 message_handle,
610 element_qname,
611 wsrp_InsertResourcePropertiesResponseType_qname.Namespace,
612 &options);
613 0 if(result != GLOBUS_SUCCESS)
614 {
615 0 result = GlobusSoapMessageErrorSerializeFailed(
616 result, NULL, element_qname);
617 0 goto exit;
618 }
619 }
620
621 /* serialize attributes */
622
623 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
624 !globus_soap_message_serialize_is_c14n_subset(message_handle))
625 {
626 0 result = globus_soap_message_serialize_QName_attribute(
627 message_handle,
628 type_attr,
629 &wsrp_InsertResourcePropertiesResponseType_qname);
630 0 if(result != GLOBUS_SUCCESS)
631 {
632 0 result = GlobusSoapMessageErrorSerializeFailed(
633 result, NULL, element_qname);
634 0 goto exit;
635 }
636 }
637
638
639 }
640
641 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
642 {
643 0 result = globus_soap_message_serialize_element_begin_close(
644 message_handle, element_qname);
645 0 if(result != GLOBUS_SUCCESS)
646 {
647 0 result = GlobusSoapMessageErrorSerializeFailed(
648 result, NULL, element_qname);
649 0 goto exit;
650 }
651 }
652 0 options &= ~GLOBUS_XSD_ELEMENT_CONTENTS_ONLY;
653
654
655 /* serialize contents of type */
656
657 0 options = save_options;
658
659 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
660 {
661 /* add end element */
662 0 result = globus_soap_message_serialize_element_end(
663 message_handle,
664 element_qname,
665 options,
666 &wsrp_InsertResourcePropertiesResponseType_qname);
667 0 if(result != GLOBUS_SUCCESS)
668 {
669 0 result = GlobusSoapMessageErrorSerializeFailed(
670 result, NULL, element_qname);
671 0 goto exit;
672 }
673
674 0 globus_soap_message_element_ns_remove(
675 message_handle,
676 element_qname->Namespace,
677 &options);
678
679 /* remove namespace/prefix mappings for these types */
680
681 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
682 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
683 {
684 0 globus_soap_message_attribute_ns_remove(
685 message_handle,
686 "http://www.w3.org/2001/XMLSchema-instance",
687 &options);
688 }
689 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
690 !globus_soap_message_serialize_is_c14n_subset(message_handle))
691 {
692 0 globus_soap_message_attribute_ns_remove(
693 message_handle,
694 wsrp_InsertResourcePropertiesResponseType_qname.Namespace,
695 &options);
696 }
697
698 }
699
700 0 exit:
701 0 if (type_attr)
702 {
703 0 xsd_QName_destroy(type_attr);
704 }
705
706
707 0 if(any_attr_keys)
708 {
709 0 globus_list_free(any_attr_keys);
710 }
711
712 0 GlobusSoapMessageDebugExit();
713 0 return result;
714 }
715
716
717
718 globus_result_t
719 wsrp_InsertResourcePropertiesResponseType_deserialize_contents(
720 const xsd_QName * element_qname, /* ignored */
721 wsrp_InsertResourcePropertiesResponseType * inst,
722 globus_soap_message_handle_t message_handle,
723 globus_xsd_element_options_t options)
724 0 {
725 0 globus_result_t result = GLOBUS_SUCCESS;
726 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_deserialize_contents);
727 0 GlobusSoapMessageDebugEnter();
728
729 0 result = wsrp_InsertResourcePropertiesResponseType_deserialize(
730 NULL,
731 inst,
732 message_handle,
733 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
734 0 if(result != GLOBUS_SUCCESS)
735 {
736 0 result = GlobusSoapMessageErrorDeserializeFailed(
737 result, element_qname);
738 0 goto exit;
739 }
740
741 0 exit:
742
743 0 GlobusSoapMessageDebugExit();
744 0 return result;
745 }
746
747
748
749 globus_result_t
750 wsrp_InsertResourcePropertiesResponseType_deserialize(
751 const xsd_QName * element_qname,
752 wsrp_InsertResourcePropertiesResponseType * instance,
753 globus_soap_message_handle_t message_handle,
754 globus_xsd_element_options_t options)
755 0 {
756 0 globus_result_t result = GLOBUS_SUCCESS;
757 xsd_QName subelement;
758 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_deserialize);
759 0 GlobusSoapMessageDebugEnter();
760
761
762 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
763 {
764 0 result = globus_soap_message_deserialize_element(
765 message_handle, element_qname);
766 0 if(result != GLOBUS_SUCCESS)
767 {
768 0 result = GlobusSoapMessageErrorDeserializeFailed(
769 result, element_qname);
770 0 goto exit;
771 }
772
773
774 0 result = globus_soap_message_deserialize_element_begin_close(
775 message_handle);
776 0 if(result != GLOBUS_SUCCESS)
777 {
778 0 result = GlobusSoapMessageErrorDeserializeFailed(
779 result, element_qname);
780 0 goto fail_deserialize;
781 }
782 }
783
784 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
785 {
786 0 result = globus_soap_message_deserialize_element_end(
787 message_handle,
788 element_qname);
789 0 if(result != GLOBUS_SUCCESS)
790 {
791 0 result = GlobusSoapMessageErrorDeserializeFailed(
792 result, element_qname);
793 0 goto fail_deserialize;
794 }
795 }
796
797 goto exit;
798
799 0 fail_deserialize:
800
801
802 0 exit:
803
804 0 GlobusSoapMessageDebugExit();
805 0 return result;
806 }
807
808
809
810 globus_result_t
811 wsrp_InsertResourcePropertiesResponseType_deserialize_pointer(
812 const xsd_QName * element_qname,
813 wsrp_InsertResourcePropertiesResponseType ** ip,
814 globus_soap_message_handle_t message_handle,
815 globus_xsd_element_options_t options)
816 0 {
817 0 wsrp_InsertResourcePropertiesResponseType * instance = NULL;
818 0 globus_result_t result = GLOBUS_SUCCESS;
819 xsd_QName subelement;
820 0 int found_attrs = 0;
821 0 int empty_element = 0;
822 GlobusFuncName(wsrp_InsertResourcePropertiesResponseType_deserialize_pointer);
823 0 GlobusSoapMessageDebugEnter();
824
825 0 *ip = NULL;
826
827 0 result = globus_soap_message_deserialize_element(
828 message_handle, element_qname);
829 0 if(result != GLOBUS_SUCCESS &&
830 (GlobusSoapMessageStatusElementNotFoundCheck(result) ||
831 GlobusSoapMessageStatusFailedElementCheck(result) ||
832 GlobusSoapMessageStatusFailedWithTextCheck(result)))
833 {
834 0 result = GLOBUS_SUCCESS;
835 0 goto exit;
836 }
837
838 0 if(result != GLOBUS_SUCCESS)
839 {
840 0 result = GlobusSoapMessageErrorDeserializeFailed(
841 result, element_qname);
842 0 goto exit;
843 }
844
845 0 if(globus_soap_message_deserialize_element_is_empty(
846 message_handle))
847 {
848 0 empty_element = 1;
849 }
850
851 0 result = wsrp_InsertResourcePropertiesResponseType_init(&instance);
852 0 if(result != GLOBUS_SUCCESS)
853 {
854 0 result = GlobusSoapMessageErrorDeserializeFailed(
855 result, element_qname);
856 0 goto exit;
857 }
858
859
860 0 if(found_attrs == 0 &&
861 globus_soap_message_deserialize_element_is_nil(message_handle))
862 {
863 0 wsrp_InsertResourcePropertiesResponseType_destroy(instance);
864
865 0 result = globus_soap_message_deserialize_element_end(
866 message_handle,
867 element_qname);
868 0 if(result != GLOBUS_SUCCESS)
869 {
870 0 result = GlobusSoapMessageErrorDeserializeFailed(
871 result, element_qname);
872 0 goto exit;
873 }
874
875 0 *ip = NULL;
876 0 globus_object_free(globus_error_get(result));
877 0 result = GLOBUS_SUCCESS;
878 0 goto exit;
879 }
880
881 0 if(empty_element)
882 {
883 0 result = globus_soap_message_deserialize_element_end(
884 message_handle,
885 element_qname);
886 0 if(result != GLOBUS_SUCCESS)
887 {
888 0 result = GlobusSoapMessageErrorDeserializeFailed(
889 result, element_qname);
890 0 goto fail_deserialize;
891 }
892
893 0 *ip = instance;
894 0 goto exit;
895 }
896
897 0 result = globus_soap_message_deserialize_element_begin_close(
898 message_handle);
899 0 if(result != GLOBUS_SUCCESS)
900 {
901 0 result = GlobusSoapMessageErrorDeserializeFailed(
902 result, element_qname);
903 0 goto exit;
904 }
905
906 0 result = wsrp_InsertResourcePropertiesResponseType_deserialize(
907 element_qname,
908 instance,
909 message_handle,
910 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
911 0 if(result != GLOBUS_SUCCESS)
912 {
913 0 result = GlobusSoapMessageErrorDeserializeFailed(
914 result, element_qname);
915 0 goto exit;
916 }
917
918 0 result = globus_soap_message_deserialize_element_end(
919 message_handle,
920 element_qname);
921 0 if(result != GLOBUS_SUCCESS)
922 {
923 0 result = GlobusSoapMessageErrorDeserializeFailed(
924 result, element_qname);
925 0 goto fail_deserialize;
926 }
927
928 0 *ip = instance;
929
930 goto exit;
931
932 0 fail_deserialize:
933
934 0 exit:
935
936 0 GlobusSoapMessageDebugExit();
937 0 return result;
938 }
939
940
941 globus_result_t
942 wsrp_InsertResourcePropertiesResponseType_array_init_contents(
943 wsrp_InsertResourcePropertiesResponseType_array * array)
944 0 {
945 0 return globus_xsd_generic_array_init_contents(
946 (globus_xsd_generic_array_t *) array,
947 &wsrp_InsertResourcePropertiesResponseType_info);
948 }
949 /* wsrp_InsertResourcePropertiesResponseType_array_init_contents() */
950
951 globus_result_t
952 wsrp_InsertResourcePropertiesResponseType_array_init(
953 wsrp_InsertResourcePropertiesResponseType_array ** arr)
954 0 {
955 0 return globus_xsd_generic_array_init(
956 (globus_xsd_generic_array_t **) arr,
957 &wsrp_InsertResourcePropertiesResponseType_info);
958 }
959 /* wsrp_InsertResourcePropertiesResponseType_array_init() */
960
961 void
962 wsrp_InsertResourcePropertiesResponseType_array_destroy_contents(
963 wsrp_InsertResourcePropertiesResponseType_array * array)
964 0 {
965 0 globus_xsd_generic_array_destroy_contents(
966 (globus_xsd_generic_array_t *) array);
967 0 }
968 /* wsrp_InsertResourcePropertiesResponseType_array_destroy_contents() */
969
970 void
971 wsrp_InsertResourcePropertiesResponseType_array_destroy(
972 wsrp_InsertResourcePropertiesResponseType_array * array)
973 0 {
974 0 globus_xsd_generic_array_destroy(
975 (globus_xsd_generic_array_t *) array);
976 0 }
977 /* wsrp_InsertResourcePropertiesResponseType_array_destroy() */
978
979 globus_result_t
980 wsrp_InsertResourcePropertiesResponseType_array_copy(
981 wsrp_InsertResourcePropertiesResponseType_array ** dest_arr,
982 const wsrp_InsertResourcePropertiesResponseType_array * src_arr)
983 0 {
984 0 return globus_xsd_generic_array_copy(
985 (globus_xsd_generic_array_t **) dest_arr,
986 (globus_xsd_generic_array_t *) src_arr);
987 }
988 /* wsrp_InsertResourcePropertiesResponseType_array_copy() */
989
990 globus_result_t
991 wsrp_InsertResourcePropertiesResponseType_array_copy_contents(
992 wsrp_InsertResourcePropertiesResponseType_array * dest_arr,
993 const wsrp_InsertResourcePropertiesResponseType_array * src_arr)
994 0 {
995 0 return globus_xsd_generic_array_copy_contents(
996 (globus_xsd_generic_array_t *) dest_arr,
997 (globus_xsd_generic_array_t *) src_arr);
998 }
999 /* wsrp_InsertResourcePropertiesResponseType_array_copy_contents() */
1000
1001 wsrp_InsertResourcePropertiesResponseType *
1002 wsrp_InsertResourcePropertiesResponseType_array_push(
1003 wsrp_InsertResourcePropertiesResponseType_array * array)
1004 0 {
1005 /* Some contents initializers don't initialize subelments but to set their
1006 * values to be NULL
1007 */
1008 0 if (array->type_info == NULL)
1009 {
1010 0 array->type_info = &wsrp_InsertResourcePropertiesResponseType_info;
1011 }
1012
1013 0 return globus_xsd_generic_array_push(
1014 (globus_xsd_generic_array_t *) array);
1015 }
1016 /* wsrp_InsertResourcePropertiesResponseType_array_push() */
1017
1018 globus_result_t
1019 wsrp_InsertResourcePropertiesResponseType_array_serialize(
1020 const xsd_QName * element_qname,
1021 const wsrp_InsertResourcePropertiesResponseType_array * array,
1022 globus_soap_message_handle_t message,
1023 globus_xsd_element_options_t options)
1024 0 {
1025 0 return globus_xsd_generic_array_serialize(
1026 element_qname,
1027 (const globus_xsd_generic_array_t *) array,
1028 message,
1029 options);
1030 }
1031 /* wsrp_InsertResourcePropertiesResponseType_array_serialize() */
1032
1033 globus_result_t
1034 wsrp_InsertResourcePropertiesResponseType_array_deserialize(
1035 const xsd_QName * element_qname,
1036 wsrp_InsertResourcePropertiesResponseType_array * array,
1037 globus_soap_message_handle_t message,
1038 globus_xsd_element_options_t options)
1039 0 {
1040 /* Some initializers set the array's contents to NULL */
1041 0 if (array->type_info == NULL)
1042 {
1043 0 array->type_info = &wsrp_InsertResourcePropertiesResponseType_info;
1044 }
1045 0 return globus_xsd_generic_array_deserialize(
1046 element_qname,
1047 (globus_xsd_generic_array_t *) array,
1048 message,
1049 options);