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