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