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