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 "RegistryEntryPortTypeGTWSDLResourcePropertiesType.h"
26 #include "globus_xsd_generic_array.h"
27
28 #ifndef GLOBUS_DONT_DOCUMENT_INTERNAL
29 xsd_QName RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname =
30 {
31 REGISTRYENTRYPORTTYPEGTWSDLRESOURCEPROPERTIESTYPE_NS,
32 REGISTRYENTRYPORTTYPEGTWSDLRESOURCEPROPERTIESTYPE_LOCAL
33 };
34 #endif /* GLOBUS_DONT_DOCUMENT_INTERNAL */
35
36 static
37 globus_result_t
38 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize(
45 element_qname,
46 (const RegistryEntryPortTypeGTWSDLResourcePropertiesType *) instance,
47 message_handle, options);
48 }
49
50 static
51 globus_result_t
52 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_pointer(
59 element_qname,
60 (RegistryEntryPortTypeGTWSDLResourcePropertiesType **) ip,
61 message_handle, options);
62 }
63
64 static
65 globus_result_t
66 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_wrapper(void **object)
67 0 {
68 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_init(
69 (RegistryEntryPortTypeGTWSDLResourcePropertiesType **) object);
70 }
71
72 static
73 void
74 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_wrapper(
75 void * object)
76 0 {
77 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy(
78 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) object);
79 0 }
80
81 static
82 globus_result_t
83 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_wrapper(
84 void ** dest_obj,
85 const void * src_obj)
86 0 {
87 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy(
88 (RegistryEntryPortTypeGTWSDLResourcePropertiesType **) dest_obj,
89 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) src_obj);
90 }
91
92 static
93 globus_result_t
94 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents_wrapper(void *object)
95 0 {
96 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents(
97 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) object);
98 }
99
100 static
101 void
102 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents_wrapper(
103 void * object)
104 0 {
105 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents(
106 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) object);
107 0 }
108
109 static
110 globus_result_t
111 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents_wrapper(
112 void * dest_obj,
113 const void * src_obj)
114 0 {
115 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents(
116 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) dest_obj,
117 (const RegistryEntryPortTypeGTWSDLResourcePropertiesType *) src_obj);
118 }
119
120 static
121 globus_result_t
122 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize_contents(
129 element_qname,
130 (RegistryEntryPortTypeGTWSDLResourcePropertiesType *) instance,
131 message_handle, options);
132 }
133
134 static
135 globus_result_t
136 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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(RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_contents_wrapper);
144 0 GlobusSoapMessageDebugEnter();
145
146 0 if(!*instance)
147 {
148 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_init(
149 (RegistryEntryPortTypeGTWSDLResourcePropertiesType **)instance);
150 0 if(result != GLOBUS_SUCCESS)
151 {
152 0 goto error;
153 }
154 }
155
156 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_contents(
157 element_qname,
158 *(RegistryEntryPortTypeGTWSDLResourcePropertiesType **)instance,
159 message_handle, options);
160 0 error:
161 0 GlobusSoapMessageDebugExit();
162 0 return result;
163 }
164
165 static
166 globus_result_t
167 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_serialize(
174 element,
175 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) instance,
176 message, options);
177 }
178
179 static
180 globus_result_t
181 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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 = RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init(
192 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array **)inst);
193 0 if(result != GLOBUS_SUCCESS)
194 {
195 0 return result;
196 }
197 }
198
199 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_deserialize(
200 element_qname,
201 *(RegistryEntryPortTypeGTWSDLResourcePropertiesType_array **) inst,
202 message, options);
203 }
204
205 static
206 globus_result_t
207 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_wrapper(
208 void ** arr)
209 0 {
210 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init(
211 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array **) arr);
212 }
213
214 static
215 void
216 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_wrapper(
217 void * arr)
218 0 {
219 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy(
220 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) arr);
221 0 }
222
223 static
224 globus_result_t
225 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_wrapper(
226 void ** dest_arr,
227 const void * src_arr)
228 0 {
229 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy(
230 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array **) dest_arr,
231 (const RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) src_arr);
232 }
233
234 static
235 globus_result_t
236 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_contents_wrapper(
237 void * arr)
238 0 {
239 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_contents(
240 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) arr);
241 }
242
243 static
244 void
245 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_contents_wrapper(
246 void * arr)
247 0 {
248 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_contents(
249 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) arr);
250 0 }
251
252 static
253 globus_result_t
254 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_contents_wrapper(
255 void * dest_arr,
256 const void * src_arr)
257 0 {
258 0 return RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_contents(
259 (RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) dest_arr,
260 (const RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) src_arr);
261 }
262
263 static
264 void *
265 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_push_wrapper(
266 void * array)
267 0 {
268 0 return (void *) RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_push((RegistryEntryPortTypeGTWSDLResourcePropertiesType_array *) array);
269 }
270
271 struct globus_xsd_type_info_s RegistryEntryPortTypeGTWSDLResourcePropertiesType_contents_info =
272 {
273 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname,
274 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize_contents_wrapper,
275 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_contents_wrapper,
276 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_wrapper,
277 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_wrapper,
278 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_wrapper,
279 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents_wrapper,
280 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents_wrapper,
281 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents_wrapper,
282 sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType),
283 NULL,
284 NULL,
285 NULL
286 };
287
288 struct globus_xsd_type_info_s RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_info =
289 {
290 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname,
291 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_serialize_wrapper,
292 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_deserialize_wrapper,
293 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_wrapper,
294 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_wrapper,
295 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_wrapper,
296 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_contents_wrapper,
297 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_contents_wrapper,
298 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_contents_wrapper,
299 sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType),
300 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_push_wrapper,
301 NULL,
302 NULL
303 };
304
305 struct globus_xsd_type_info_s RegistryEntryPortTypeGTWSDLResourcePropertiesType_info =
306 {
307 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname,
308 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize_wrapper,
309 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_pointer_wrapper,
310 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_wrapper,
311 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_wrapper,
312 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_wrapper,
313 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents_wrapper,
314 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents_wrapper,
315 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents_wrapper,
316 sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType),
317 NULL,
318 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_contents_info,
319 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_info
320 };
321
322 globus_result_t
323 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents(
324 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance)
325 0 {
326 0 globus_result_t result = GLOBUS_SUCCESS;
327 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_init_contents);
328 0 GlobusSoapMessageDebugEnter();
329
330 0 memset(instance, 0, sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType));
331
332 0 GlobusSoapMessageDebugExit();
333 0 return result;
334 }
335
336 globus_result_t
337 RegistryEntryPortTypeGTWSDLResourcePropertiesType_init(
338 RegistryEntryPortTypeGTWSDLResourcePropertiesType ** object)
339 0 {
340 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance;
341 0 globus_result_t result = GLOBUS_SUCCESS;
342 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_init);
343 0 GlobusSoapMessageDebugEnter();
344
345 0 instance = globus_malloc(sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType));
346 0 if(!instance)
347 {
348 0 result = GlobusSoapMessageErrorOutOfMemory;
349 0 goto exit;
350 }
351
352 0 memset(instance, 0, sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType));
353
354 0 *object = instance;
355
356 0 exit:
357 0 GlobusSoapMessageDebugExit();
358 0 return result;
359 }
360
361 void
362 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy(
363 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance)
364 0 {
365 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy);
366 0 GlobusSoapMessageDebugEnter();
367
368 0 if(!instance)
369 {
370 0 goto exit;
371 }
372
373 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents(instance);
374 0 globus_free(instance);
375
376 0 exit:
377
378 0 GlobusSoapMessageDebugExit();
379 0 }
380
381
382 void
383 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents(
384 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance)
385 0 {
386 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy_contents);
387 0 GlobusSoapMessageDebugEnter();
388
389 0 if(instance)
390 {
391
392
393 0 xsd_anyURI_array_destroy_contents(&instance->QueryExpressionDialect);
394
395 0 wssg_EntryType_array_destroy_contents(&instance->Entry);
396
397 0 wssg_MembershipContentRuleType_array_destroy_contents(&instance->MembershipContentRule);
398
399 }
400
401 0 GlobusSoapMessageDebugExit();
402 0 }
403
404
405 globus_result_t
406 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy(
407 RegistryEntryPortTypeGTWSDLResourcePropertiesType ** dest_obj,
408 const RegistryEntryPortTypeGTWSDLResourcePropertiesType * src_obj)
409 0 {
410 0 globus_result_t result = GLOBUS_SUCCESS;
411 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance;
412 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy);
413
414 0 GlobusSoapMessageDebugEnter();
415
416 0 instance = calloc(1, sizeof(RegistryEntryPortTypeGTWSDLResourcePropertiesType));
417 0 if (instance == NULL)
418 {
419 0 GlobusSoapMessageDebugExit();
420 0 return GlobusSoapMessageErrorOutOfMemory;
421 }
422
423 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents(instance, src_obj);
424 0 if(result != GLOBUS_SUCCESS)
425 {
426 0 globus_free(instance);
427 0 GlobusSoapMessageDebugExit();
428 0 return GlobusSoapMessageErrorOutOfMemory;
429 }
430
431 0 *dest_obj = instance;
432 0 GlobusSoapMessageDebugExit();
433 0 return result;
434 }
435
436 globus_result_t
437 RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents(
438 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance,
439 const RegistryEntryPortTypeGTWSDLResourcePropertiesType * src_obj)
440 0 {
441 0 globus_result_t result = GLOBUS_SUCCESS;
442 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_copy_contents);
443
444 0 GlobusSoapMessageDebugEnter();
445
446 0 result = xsd_anyURI_array_copy_contents(
447 &instance->QueryExpressionDialect,
448 &src_obj->QueryExpressionDialect);
449 0 if(result != GLOBUS_SUCCESS)
450 {
451 0 result = GlobusSoapMessageErrorCopyFailed(
452 result, NULL, &xsd_anyURI_qname);
453 0 goto QueryExpressionDialect_destroy_array;
454 }
455
456 0 result = wssg_EntryType_array_copy_contents(
457 &instance->Entry,
458 &src_obj->Entry);
459 0 if(result != GLOBUS_SUCCESS)
460 {
461 0 result = GlobusSoapMessageErrorCopyFailed(
462 result, NULL, &wssg_EntryType_qname);
463 0 goto Entry_destroy_array;
464 }
465
466 0 result = wssg_MembershipContentRuleType_array_copy_contents(
467 &instance->MembershipContentRule,
468 &src_obj->MembershipContentRule);
469 0 if(result != GLOBUS_SUCCESS)
470 {
471 0 result = GlobusSoapMessageErrorCopyFailed(
472 result, NULL, &wssg_MembershipContentRuleType_qname);
473 0 goto MembershipContentRule_destroy_array;
474 }
475
476 0 goto exit;
477
478 fail_deserialize:
479 wssg_MembershipContentRuleType_array_destroy_contents(
480 &instance->MembershipContentRule);
481
482 0 MembershipContentRule_destroy_array:
483 0 wssg_EntryType_array_destroy_contents(
484 &instance->Entry);
485
486 0 Entry_destroy_array:
487 0 xsd_anyURI_array_destroy_contents(
488 &instance->QueryExpressionDialect);
489
490 0 QueryExpressionDialect_destroy_array:
491
492
493 0 exit:
494
495 0 GlobusSoapMessageDebugExit();
496 0 return result;
497 }
498
499
500
501 globus_result_t
502 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize_contents(
503 const xsd_QName * element_qname, /* ignored */
504 const RegistryEntryPortTypeGTWSDLResourcePropertiesType * inst,
505 globus_soap_message_handle_t message_handle,
506 globus_xsd_element_options_t options)
507 0 {
508 0 globus_result_t result = GLOBUS_SUCCESS;
509 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize_contents);
510 0 GlobusSoapMessageDebugEnter();
511
512 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize(
513 NULL,
514 inst,
515 message_handle,
516 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
517 0 if(result != GLOBUS_SUCCESS)
518 {
519 0 result = GlobusSoapMessageErrorSerializeFailed(
520 result, NULL, element_qname);
521 0 goto exit;
522 }
523
524 0 exit:
525
526 0 GlobusSoapMessageDebugExit();
527 0 return result;
528 }
529
530
531
532 globus_result_t
533 RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize(
534 const xsd_QName * element_qname,
535 const RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance,
536 globus_soap_message_handle_t message_handle,
537 globus_xsd_element_options_t options)
538 0 {
539 0 globus_result_t result = GLOBUS_SUCCESS;
540 xsd_QName subelement;
541 0 globus_list_t * any_attr_keys = NULL;
542 0 globus_list_t * any_attr_keys_iterator = NULL;
543 0 xsd_QName * type_attr = NULL;
544
545 0 char * prefix = NULL;
546 int prefix_created;
547 0 int define_prefix = 0;
548 0 int save_options = options;
549
550 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_serialize);
551 0 GlobusSoapMessageDebugEnter();
552
553
554 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
555 {
556 /* serialize RegistryEntryPortTypeGTWSDLResourcePropertiesType element */
557 0 result = globus_soap_message_element_ns_set(
558 message_handle,
559 element_qname,
560 element_qname->Namespace,
561 &options);
562 0 if(result != GLOBUS_SUCCESS)
563 {
564 0 result = GlobusSoapMessageErrorSerializeFailed(
565 result, NULL, element_qname);
566 0 goto exit;
567 }
568
569 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
570 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
571 {
572 0 result = globus_soap_message_attribute_ns_set(
573 message_handle,
574 element_qname,
575 "http://www.w3.org/2001/XMLSchema-instance",
576 &options);
577 0 if(result != GLOBUS_SUCCESS)
578 {
579 0 result = GlobusSoapMessageErrorSerializeFailed(
580 result, NULL, element_qname);
581 0 goto exit;
582 }
583 }
584
585 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
586 !globus_soap_message_serialize_is_c14n_subset(message_handle))
587 {
588
589 0 result = globus_soap_message_attribute_ns_set(
590 message_handle,
591 element_qname,
592 RegistryEntryPortTypeGTWSDLResourcePropertiesType_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
602 0 result = globus_soap_message_serialize_element(
603 message_handle,
604 element_qname,
605 options,
606 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname);
607 0 if(result != GLOBUS_SUCCESS)
608 {
609 0 result = GlobusSoapMessageErrorSerializeFailed(
610 result, NULL, element_qname);
611 0 goto exit;
612 }
613
614 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
615 !globus_soap_message_serialize_is_c14n_subset(message_handle))
616 {
617 0 xsd_QName_init(&type_attr);
618
619 0 type_attr->local = globus_libc_strdup("type");
620 0 type_attr->Namespace = globus_libc_strdup(XSI_NS);
621 }
622
623
624 /* serialize namespaces */
625 0 result = globus_soap_message_element_ns_add(
626 message_handle,
627 element_qname,
628 element_qname->Namespace,
629 &options);
630 0 if(result != GLOBUS_SUCCESS)
631 {
632 0 result = GlobusSoapMessageErrorSerializeFailed(
633 result, NULL, element_qname);
634 0 goto exit;
635 }
636
637 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
638 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
639 {
640 0 result = globus_soap_message_attribute_ns_add(
641 message_handle,
642 element_qname,
643 "http://www.w3.org/2001/XMLSchema-instance",
644 &options);
645 0 if(result != GLOBUS_SUCCESS)
646 {
647 0 result = GlobusSoapMessageErrorSerializeFailed(
648 result, NULL, element_qname);
649 0 goto exit;
650 }
651 }
652 0 if ((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
653 !globus_soap_message_serialize_is_c14n_subset(message_handle))
654 {
655
656 0 result = globus_soap_message_attribute_ns_add(
657 message_handle,
658 element_qname,
659 RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname.Namespace,
660 &options);
661 0 if(result != GLOBUS_SUCCESS)
662 {
663 0 result = GlobusSoapMessageErrorSerializeFailed(
664 result, NULL, element_qname);
665 0 goto exit;
666 }
667 }
668
669 /* serialize attributes */
670
671 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
672 !globus_soap_message_serialize_is_c14n_subset(message_handle))
673 {
674 0 result = globus_soap_message_serialize_QName_attribute(
675 message_handle,
676 type_attr,
677 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname);
678 0 if(result != GLOBUS_SUCCESS)
679 {
680 0 result = GlobusSoapMessageErrorSerializeFailed(
681 result, NULL, element_qname);
682 0 goto exit;
683 }
684 }
685
686
687 }
688
689 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
690 {
691 0 result = globus_soap_message_serialize_element_begin_close(
692 message_handle, element_qname);
693 0 if(result != GLOBUS_SUCCESS)
694 {
695 0 result = GlobusSoapMessageErrorSerializeFailed(
696 result, NULL, element_qname);
697 0 goto exit;
698 }
699 }
700 0 options &= ~GLOBUS_XSD_ELEMENT_CONTENTS_ONLY;
701
702
703 /* serialize contents of type */
704
705 0 subelement.local = "QueryExpressionDialect";
706 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/rp-2";
707
708 0 result = xsd_anyURI_array_serialize(
709 &subelement,
710 &instance->QueryExpressionDialect,
711 message_handle,
712 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
713 0 if(result != GLOBUS_SUCCESS)
714 {
715 0 result = GlobusSoapMessageErrorSerializeFailed(
716 result, NULL, &xsd_anyURI_qname);
717 0 goto exit;
718 }
719
720 0 subelement.local = "Entry";
721 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/sg-2";
722
723 0 result = wssg_EntryType_array_serialize(
724 &subelement,
725 &instance->Entry,
726 message_handle,
727 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
728 0 if(result != GLOBUS_SUCCESS)
729 {
730 0 result = GlobusSoapMessageErrorSerializeFailed(
731 result, NULL, &wssg_EntryType_qname);
732 0 goto exit;
733 }
734
735 0 subelement.local = "MembershipContentRule";
736 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/sg-2";
737
738 0 result = wssg_MembershipContentRuleType_array_serialize(
739 &subelement,
740 &instance->MembershipContentRule,
741 message_handle,
742 options & (~GLOBUS_XSD_ELEMENT_SET_DEFAULT_NS));
743 0 if(result != GLOBUS_SUCCESS)
744 {
745 0 result = GlobusSoapMessageErrorSerializeFailed(
746 result, NULL, &wssg_MembershipContentRuleType_qname);
747 0 goto exit;
748 }
749
750 0 options = save_options;
751
752 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
753 {
754 /* add end element */
755 0 result = globus_soap_message_serialize_element_end(
756 message_handle,
757 element_qname,
758 options,
759 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname);
760 0 if(result != GLOBUS_SUCCESS)
761 {
762 0 result = GlobusSoapMessageErrorSerializeFailed(
763 result, NULL, element_qname);
764 0 goto exit;
765 }
766
767 0 globus_soap_message_element_ns_remove(
768 message_handle,
769 element_qname->Namespace,
770 &options);
771
772 /* remove namespace/prefix mappings for these types */
773
774 0 if(((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
775 !globus_soap_message_serialize_is_c14n_subset(message_handle)))
776 {
777 0 globus_soap_message_attribute_ns_remove(
778 message_handle,
779 "http://www.w3.org/2001/XMLSchema-instance",
780 &options);
781 }
782 0 if((options & GLOBUS_XSD_ELEMENT_TYPE_ATTR) &&
783 !globus_soap_message_serialize_is_c14n_subset(message_handle))
784 {
785 0 globus_soap_message_attribute_ns_remove(
786 message_handle,
787 RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname.Namespace,
788 &options);
789 }
790
791 }
792
793 0 exit:
794 0 if (type_attr)
795 {
796 0 xsd_QName_destroy(type_attr);
797 }
798
799
800 0 if(any_attr_keys)
801 {
802 0 globus_list_free(any_attr_keys);
803 }
804
805 0 GlobusSoapMessageDebugExit();
806 0 return result;
807 }
808
809
810
811 globus_result_t
812 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_contents(
813 const xsd_QName * element_qname, /* ignored */
814 RegistryEntryPortTypeGTWSDLResourcePropertiesType * inst,
815 globus_soap_message_handle_t message_handle,
816 globus_xsd_element_options_t options)
817 0 {
818 0 globus_result_t result = GLOBUS_SUCCESS;
819 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_contents);
820 0 GlobusSoapMessageDebugEnter();
821
822 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize(
823 NULL,
824 inst,
825 message_handle,
826 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
827 0 if(result != GLOBUS_SUCCESS)
828 {
829 0 result = GlobusSoapMessageErrorDeserializeFailed(
830 result, element_qname);
831 0 goto exit;
832 }
833
834 0 exit:
835
836 0 GlobusSoapMessageDebugExit();
837 0 return result;
838 }
839
840
841
842 globus_result_t
843 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize(
844 const xsd_QName * element_qname,
845 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance,
846 globus_soap_message_handle_t message_handle,
847 globus_xsd_element_options_t options)
848 0 {
849 0 globus_result_t result = GLOBUS_SUCCESS;
850 xsd_QName subelement;
851 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize);
852 0 GlobusSoapMessageDebugEnter();
853
854
855 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
856 {
857 0 result = globus_soap_message_deserialize_element(
858 message_handle, element_qname);
859 0 if(result != GLOBUS_SUCCESS)
860 {
861 0 result = GlobusSoapMessageErrorDeserializeFailed(
862 result, element_qname);
863 0 goto exit;
864 }
865
866
867 0 result = globus_soap_message_deserialize_element_begin_close(
868 message_handle);
869 0 if(result != GLOBUS_SUCCESS)
870 {
871 0 result = GlobusSoapMessageErrorDeserializeFailed(
872 result, element_qname);
873 0 goto fail_deserialize;
874 }
875 }
876
877 0 subelement.local = "QueryExpressionDialect";
878 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/rp-2";
879
880 0 result = xsd_anyURI_array_deserialize(
881 &subelement,
882 &instance->QueryExpressionDialect,
883 message_handle,
884 0);
885 0 if(result != GLOBUS_SUCCESS)
886 {
887 0 result = GlobusSoapMessageErrorDeserializeFailed(
888 result,
889 (&subelement));
890 0 goto QueryExpressionDialect_destroy_array;
891 }
892
893 0 subelement.local = "Entry";
894 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/sg-2";
895
896 0 result = wssg_EntryType_array_deserialize(
897 &subelement,
898 &instance->Entry,
899 message_handle,
900 0);
901 0 if(result != GLOBUS_SUCCESS)
902 {
903 0 result = GlobusSoapMessageErrorDeserializeFailed(
904 result,
905 (&subelement));
906 0 goto Entry_destroy_array;
907 }
908
909 0 subelement.local = "MembershipContentRule";
910 0 subelement.Namespace = "http://docs.oasis-open.org/wsrf/sg-2";
911
912 0 result = wssg_MembershipContentRuleType_array_deserialize(
913 &subelement,
914 &instance->MembershipContentRule,
915 message_handle,
916 0);
917 0 if(result != GLOBUS_SUCCESS)
918 {
919 0 result = GlobusSoapMessageErrorDeserializeFailed(
920 result,
921 (&subelement));
922 0 goto MembershipContentRule_destroy_array;
923 }
924
925 0 if(!(options & GLOBUS_XSD_ELEMENT_CONTENTS_ONLY))
926 {
927 0 result = globus_soap_message_deserialize_element_end(
928 message_handle,
929 element_qname);
930 0 if(result != GLOBUS_SUCCESS)
931 {
932 0 result = GlobusSoapMessageErrorDeserializeFailed(
933 result, element_qname);
934 0 goto fail_deserialize;
935 }
936 }
937
938 0 goto exit;
939
940 0 fail_deserialize:
941 0 wssg_MembershipContentRuleType_array_destroy_contents(
942 &instance->MembershipContentRule);
943
944 0 MembershipContentRule_destroy_array:
945 0 wssg_EntryType_array_destroy_contents(
946 &instance->Entry);
947
948 0 Entry_destroy_array:
949 0 xsd_anyURI_array_destroy_contents(
950 &instance->QueryExpressionDialect);
951
952 0 QueryExpressionDialect_destroy_array:
953
954
955 0 exit:
956
957 0 GlobusSoapMessageDebugExit();
958 0 return result;
959 }
960
961
962
963 globus_result_t
964 RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_pointer(
965 const xsd_QName * element_qname,
966 RegistryEntryPortTypeGTWSDLResourcePropertiesType ** ip,
967 globus_soap_message_handle_t message_handle,
968 globus_xsd_element_options_t options)
969 0 {
970 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType * instance = NULL;
971 0 globus_result_t result = GLOBUS_SUCCESS;
972 xsd_QName subelement;
973 0 int found_attrs = 0;
974 0 int empty_element = 0;
975 GlobusFuncName(RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize_pointer);
976 0 GlobusSoapMessageDebugEnter();
977
978 0 *ip = NULL;
979
980 0 result = globus_soap_message_deserialize_element(
981 message_handle, element_qname);
982 0 if(result != GLOBUS_SUCCESS &&
983 (GlobusSoapMessageStatusElementNotFoundCheck(result) ||
984 GlobusSoapMessageStatusFailedElementCheck(result) ||
985 GlobusSoapMessageStatusFailedWithTextCheck(result)))
986 {
987 0 result = GLOBUS_SUCCESS;
988 0 goto exit;
989 }
990
991 0 if(result != GLOBUS_SUCCESS)
992 {
993 0 result = GlobusSoapMessageErrorDeserializeFailed(
994 result, element_qname);
995 0 goto exit;
996 }
997
998 0 if(globus_soap_message_deserialize_element_is_empty(
999 message_handle))
1000 {
1001 0 empty_element = 1;
1002 }
1003
1004 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_init(&instance);
1005 0 if(result != GLOBUS_SUCCESS)
1006 {
1007 0 result = GlobusSoapMessageErrorDeserializeFailed(
1008 result, element_qname);
1009 0 goto exit;
1010 }
1011
1012
1013 0 if(found_attrs == 0 &&
1014 globus_soap_message_deserialize_element_is_nil(message_handle))
1015 {
1016 0 RegistryEntryPortTypeGTWSDLResourcePropertiesType_destroy(instance);
1017
1018 0 result = globus_soap_message_deserialize_element_end(
1019 message_handle,
1020 element_qname);
1021 0 if(result != GLOBUS_SUCCESS)
1022 {
1023 0 result = GlobusSoapMessageErrorDeserializeFailed(
1024 result, element_qname);
1025 0 goto exit;
1026 }
1027
1028 0 *ip = NULL;
1029 0 globus_object_free(globus_error_get(result));
1030 0 result = GLOBUS_SUCCESS;
1031 0 goto exit;
1032 }
1033
1034 0 if(empty_element)
1035 {
1036 0 result = globus_soap_message_deserialize_element_end(
1037 message_handle,
1038 element_qname);
1039 0 if(result != GLOBUS_SUCCESS)
1040 {
1041 0 result = GlobusSoapMessageErrorDeserializeFailed(
1042 result, element_qname);
1043 0 goto fail_deserialize;
1044 }
1045
1046 0 *ip = instance;
1047 0 goto exit;
1048 }
1049
1050 0 result = globus_soap_message_deserialize_element_begin_close(
1051 message_handle);
1052 0 if(result != GLOBUS_SUCCESS)
1053 {
1054 0 result = GlobusSoapMessageErrorDeserializeFailed(
1055 result, element_qname);
1056 0 goto exit;
1057 }
1058
1059 0 result = RegistryEntryPortTypeGTWSDLResourcePropertiesType_deserialize(
1060 element_qname,
1061 instance,
1062 message_handle,
1063 options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
1064 0 if(result != GLOBUS_SUCCESS)
1065 {
1066 0 result = GlobusSoapMessageErrorDeserializeFailed(
1067 result, element_qname);
1068 0 goto exit;
1069 }
1070
1071 0 result = globus_soap_message_deserialize_element_end(
1072 message_handle,
1073 element_qname);
1074 0 if(result != GLOBUS_SUCCESS)
1075 {
1076 0 result = GlobusSoapMessageErrorDeserializeFailed(
1077 result, element_qname);
1078 0 goto fail_deserialize;
1079 }
1080
1081 0 *ip = instance;
1082
1083 0 goto exit;
1084
1085 0 fail_deserialize:
1086 0 wssg_MembershipContentRuleType_array_destroy_contents(
1087 &instance->MembershipContentRule);
1088
1089 0 MembershipContentRule_destroy_array:
1090 0 wssg_EntryType_array_destroy_contents(
1091 &instance->Entry);
1092
1093 0 Entry_destroy_array:
1094 0 xsd_anyURI_array_destroy_contents(
1095 &instance->QueryExpressionDialect);
1096
1097 0 QueryExpressionDialect_destroy_array:
1098
1099 0 exit:
1100
1101 0 GlobusSoapMessageDebugExit();
1102 0 return result;
1103 }
1104
1105
1106 globus_result_t
1107 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_contents(
1108 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array)
1109 0 {
1110 0 return globus_xsd_generic_array_init_contents(
1111 (globus_xsd_generic_array_t *) array,
1112 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_info);
1113 }
1114 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init_contents() */
1115
1116 globus_result_t
1117 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init(
1118 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array ** arr)
1119 0 {
1120 0 return globus_xsd_generic_array_init(
1121 (globus_xsd_generic_array_t **) arr,
1122 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_info);
1123 }
1124 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_init() */
1125
1126 void
1127 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_contents(
1128 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array)
1129 0 {
1130 0 globus_xsd_generic_array_destroy_contents(
1131 (globus_xsd_generic_array_t *) array);
1132 0 }
1133 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy_contents() */
1134
1135 void
1136 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy(
1137 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array)
1138 0 {
1139 0 globus_xsd_generic_array_destroy(
1140 (globus_xsd_generic_array_t *) array);
1141 0 }
1142 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_destroy() */
1143
1144 globus_result_t
1145 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy(
1146 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array ** dest_arr,
1147 const RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * src_arr)
1148 0 {
1149 0 return globus_xsd_generic_array_copy(
1150 (globus_xsd_generic_array_t **) dest_arr,
1151 (globus_xsd_generic_array_t *) src_arr);
1152 }
1153 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy() */
1154
1155 globus_result_t
1156 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_contents(
1157 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * dest_arr,
1158 const RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * src_arr)
1159 0 {
1160 0 return globus_xsd_generic_array_copy_contents(
1161 (globus_xsd_generic_array_t *) dest_arr,
1162 (globus_xsd_generic_array_t *) src_arr);
1163 }
1164 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_copy_contents() */
1165
1166 RegistryEntryPortTypeGTWSDLResourcePropertiesType *
1167 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_push(
1168 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array)
1169 0 {
1170 /* Some contents initializers don't initialize subelments but to set their
1171 * values to be NULL
1172 */
1173 0 if (array->type_info == NULL)
1174 {
1175 0 array->type_info = &RegistryEntryPortTypeGTWSDLResourcePropertiesType_info;
1176 }
1177
1178 0 return globus_xsd_generic_array_push(
1179 (globus_xsd_generic_array_t *) array);
1180 }
1181 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_push() */
1182
1183 globus_result_t
1184 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_serialize(
1185 const xsd_QName * element_qname,
1186 const RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array,
1187 globus_soap_message_handle_t message,
1188 globus_xsd_element_options_t options)
1189 0 {
1190 0 return globus_xsd_generic_array_serialize(
1191 element_qname,
1192 (const globus_xsd_generic_array_t *) array,
1193 message,
1194 options);
1195 }
1196 /* RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_serialize() */
1197
1198 globus_result_t
1199 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array_deserialize(
1200 const xsd_QName * element_qname,
1201 RegistryEntryPortTypeGTWSDLResourcePropertiesType_array * array,
1202 globus_soap_message_handle_t message,
1203 globus_xsd_element_options_t options)
1204 0 {
1205 /* Some initializers set the array's contents to NULL */
1206 0 if (array->type_info == NULL)
1207 {
1208 0 array->type_info = &RegistryEntryPortTypeGTWSDLResourcePropertiesType_info;
1209 }
1210 0 return globus_xsd_generic_array_deserialize(
1211 element_qname,
1212 (globus_xsd_generic_array_t *) array,
1213 message,
1214 options);