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