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