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