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