| 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 "rptest_QueryResourcePropertiesTestType.h" | |
| 26 | #include "globus_xsd_generic_array.h" | |
| 27 | ||
| 28 | xsd_QName rptest_QueryResourcePropertiesTestType_choice_qname = | |
| 29 | { | |
| 30 | "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest", | |
| 31 | "QueryResourcePropertiesTestType_choice" | |
| 32 | }; | |
| 33 | ||
| 34 | static | |
| 35 | globus_result_t | |
| 36 | rptest_QueryResourcePropertiesTestType_choice_serialize_wrapper( | |
| 37 | const xsd_QName * element_qname, | |
| 38 | const void * instance, | |
| 39 | globus_soap_message_handle_t message_handle, | |
| 40 | globus_xsd_element_options_t options) | |
| 41 | 0 | { |
| 42 | 0 | return rptest_QueryResourcePropertiesTestType_choice_serialize( |
| 43 | element_qname, | |
| 44 | (rptest_QueryResourcePropertiesTestType_choice *) instance, | |
| 45 | message_handle, options); | |
| 46 | } | |
| 47 | ||
| 48 | static | |
| 49 | globus_result_t | |
| 50 | rptest_QueryResourcePropertiesTestType_choice_deserialize_pointer_wrapper( | |
| 51 | const xsd_QName * element_qname, | |
| 52 | void ** ip, | |
| 53 | globus_soap_message_handle_t message_handle, | |
| 54 | globus_xsd_element_options_t options) | |
| 55 | 0 | { |
| 56 | 0 | return rptest_QueryResourcePropertiesTestType_choice_deserialize_pointer( |
| 57 | element_qname, | |
| 58 | (rptest_QueryResourcePropertiesTestType_choice **) ip, | |
| 59 | message_handle, options); | |
| 60 | } | |
| 61 | ||
| 62 | static | |
| 63 | globus_result_t | |
| 64 | rptest_QueryResourcePropertiesTestType_choice_init_wrapper(void **object) | |
| 65 | 0 | { |
| 66 | 0 | return rptest_QueryResourcePropertiesTestType_choice_init( |
| 67 | (rptest_QueryResourcePropertiesTestType_choice **) object); | |
| 68 | } | |
| 69 | ||
| 70 | static | |
| 71 | void | |
| 72 | rptest_QueryResourcePropertiesTestType_choice_destroy_wrapper( | |
| 73 | void * object) | |
| 74 | 0 | { |
| 75 | 0 | rptest_QueryResourcePropertiesTestType_choice_destroy( |
| 76 | (rptest_QueryResourcePropertiesTestType_choice *) object); | |
| 77 | 0 | } |
| 78 | ||
| 79 | static | |
| 80 | globus_result_t | |
| 81 | rptest_QueryResourcePropertiesTestType_choice_copy_wrapper( | |
| 82 | void ** dest_obj, | |
| 83 | const void * src_obj) | |
| 84 | 0 | { |
| 85 | 0 | return rptest_QueryResourcePropertiesTestType_choice_copy( |
| 86 | (rptest_QueryResourcePropertiesTestType_choice **) dest_obj, | |
| 87 | (rptest_QueryResourcePropertiesTestType_choice *) src_obj); | |
| 88 | } | |
| 89 | ||
| 90 | static | |
| 91 | globus_result_t | |
| 92 | rptest_QueryResourcePropertiesTestType_choice_init_contents_wrapper(void *object) | |
| 93 | 0 | { |
| 94 | 0 | return rptest_QueryResourcePropertiesTestType_choice_init_contents( |
| 95 | (rptest_QueryResourcePropertiesTestType_choice *) object); | |
| 96 | } | |
| 97 | ||
| 98 | static | |
| 99 | void | |
| 100 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents_wrapper( | |
| 101 | void * object) | |
| 102 | 0 | { |
| 103 | 0 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents( |
| 104 | (rptest_QueryResourcePropertiesTestType_choice *) object); | |
| 105 | 0 | } |
| 106 | ||
| 107 | static | |
| 108 | globus_result_t | |
| 109 | rptest_QueryResourcePropertiesTestType_choice_copy_contents_wrapper( | |
| 110 | void * dest_obj, | |
| 111 | const void * src_obj) | |
| 112 | 0 | { |
| 113 | 0 | return rptest_QueryResourcePropertiesTestType_choice_copy_contents( |
| 114 | (rptest_QueryResourcePropertiesTestType_choice *) dest_obj, | |
| 115 | (rptest_QueryResourcePropertiesTestType_choice *) src_obj); | |
| 116 | } | |
| 117 | ||
| 118 | static | |
| 119 | globus_result_t | |
| 120 | rptest_QueryResourcePropertiesTestType_choice_serialize_contents_wrapper( | |
| 121 | const xsd_QName * element_qname, | |
| 122 | const void * instance, | |
| 123 | globus_soap_message_handle_t message_handle, | |
| 124 | globus_xsd_element_options_t options) | |
| 125 | 0 | { |
| 126 | 0 | return rptest_QueryResourcePropertiesTestType_choice_serialize_contents( |
| 127 | element_qname, | |
| 128 | (const rptest_QueryResourcePropertiesTestType_choice *) instance, | |
| 129 | message_handle, options); | |
| 130 | } | |
| 131 | ||
| 132 | static | |
| 133 | globus_result_t | |
| 134 | rptest_QueryResourcePropertiesTestType_choice_deserialize_contents_wrapper( | |
| 135 | const xsd_QName * element_qname, | |
| 136 | void ** instance, | |
| 137 | globus_soap_message_handle_t message_handle, | |
| 138 | globus_xsd_element_options_t options) | |
| 139 | 0 | { |
| 140 | globus_result_t result; | |
| 141 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_deserialize_contents_wrapper); | |
| 142 | 0 | GlobusSoapMessageDebugEnter(); |
| 143 | ||
| 144 | 0 | if(!*instance) |
| 145 | { | |
| 146 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_init( |
| 147 | (rptest_QueryResourcePropertiesTestType_choice **)instance); | |
| 148 | 0 | if(result != GLOBUS_SUCCESS) |
| 149 | { | |
| 150 | 0 | goto error; |
| 151 | } | |
| 152 | } | |
| 153 | ||
| 154 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_deserialize_contents( |
| 155 | element_qname, | |
| 156 | *(rptest_QueryResourcePropertiesTestType_choice **)instance, | |
| 157 | message_handle, options); | |
| 158 | 0 | error: |
| 159 | 0 | GlobusSoapMessageDebugExit(); |
| 160 | 0 | return result; |
| 161 | } | |
| 162 | ||
| 163 | static | |
| 164 | globus_result_t | |
| 165 | rptest_QueryResourcePropertiesTestType_choice_array_serialize_wrapper( | |
| 166 | const xsd_QName * element, | |
| 167 | const void * instance, | |
| 168 | globus_soap_message_handle_t message, | |
| 169 | globus_xsd_element_options_t options) | |
| 170 | 0 | { |
| 171 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_serialize( |
| 172 | element, | |
| 173 | (rptest_QueryResourcePropertiesTestType_choice_array *) instance, | |
| 174 | message, options); | |
| 175 | } | |
| 176 | ||
| 177 | static | |
| 178 | globus_result_t | |
| 179 | rptest_QueryResourcePropertiesTestType_choice_array_deserialize_wrapper( | |
| 180 | const xsd_QName * element_qname, | |
| 181 | void ** inst, | |
| 182 | globus_soap_message_handle_t message, | |
| 183 | globus_xsd_element_options_t options) | |
| 184 | 0 | { |
| 185 | 0 | if(!*inst) |
| 186 | { | |
| 187 | globus_result_t result; | |
| 188 | ||
| 189 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_array_init( |
| 190 | (rptest_QueryResourcePropertiesTestType_choice_array **)inst); | |
| 191 | 0 | if(result != GLOBUS_SUCCESS) |
| 192 | { | |
| 193 | 0 | return result; |
| 194 | } | |
| 195 | } | |
| 196 | ||
| 197 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_deserialize( |
| 198 | element_qname, | |
| 199 | *(rptest_QueryResourcePropertiesTestType_choice_array **) inst, | |
| 200 | message, options); | |
| 201 | } | |
| 202 | ||
| 203 | static | |
| 204 | globus_result_t | |
| 205 | rptest_QueryResourcePropertiesTestType_choice_array_init_wrapper( | |
| 206 | void ** arr) | |
| 207 | 0 | { |
| 208 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_init( |
| 209 | (rptest_QueryResourcePropertiesTestType_choice_array **) arr); | |
| 210 | } | |
| 211 | ||
| 212 | static | |
| 213 | void | |
| 214 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_wrapper( | |
| 215 | void * arr) | |
| 216 | 0 | { |
| 217 | 0 | rptest_QueryResourcePropertiesTestType_choice_array_destroy( |
| 218 | (rptest_QueryResourcePropertiesTestType_choice_array *) arr); | |
| 219 | 0 | } |
| 220 | ||
| 221 | static | |
| 222 | globus_result_t | |
| 223 | rptest_QueryResourcePropertiesTestType_choice_array_copy_wrapper( | |
| 224 | void ** dest_arr, | |
| 225 | const void * src_arr) | |
| 226 | 0 | { |
| 227 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_copy( |
| 228 | (rptest_QueryResourcePropertiesTestType_choice_array **) dest_arr, | |
| 229 | (const rptest_QueryResourcePropertiesTestType_choice_array *) src_arr); | |
| 230 | } | |
| 231 | ||
| 232 | static | |
| 233 | globus_result_t | |
| 234 | rptest_QueryResourcePropertiesTestType_choice_array_init_contents_wrapper( | |
| 235 | void * arr) | |
| 236 | 0 | { |
| 237 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_init_contents( |
| 238 | (rptest_QueryResourcePropertiesTestType_choice_array *) arr); | |
| 239 | } | |
| 240 | ||
| 241 | static | |
| 242 | void | |
| 243 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_contents_wrapper( | |
| 244 | void * arr) | |
| 245 | 0 | { |
| 246 | 0 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_contents( |
| 247 | (rptest_QueryResourcePropertiesTestType_choice_array *) arr); | |
| 248 | 0 | } |
| 249 | ||
| 250 | static | |
| 251 | globus_result_t | |
| 252 | rptest_QueryResourcePropertiesTestType_choice_array_copy_contents_wrapper( | |
| 253 | void * dest_arr, | |
| 254 | const void * src_arr) | |
| 255 | 0 | { |
| 256 | 0 | return rptest_QueryResourcePropertiesTestType_choice_array_copy_contents( |
| 257 | (rptest_QueryResourcePropertiesTestType_choice_array *) dest_arr, | |
| 258 | (const rptest_QueryResourcePropertiesTestType_choice_array *) src_arr); | |
| 259 | } | |
| 260 | ||
| 261 | static | |
| 262 | void * | |
| 263 | rptest_QueryResourcePropertiesTestType_choice_array_push_wrapper( | |
| 264 | void * array) | |
| 265 | 0 | { |
| 266 | 0 | return (void *) rptest_QueryResourcePropertiesTestType_choice_array_push( |
| 267 | (rptest_QueryResourcePropertiesTestType_choice_array *) array); | |
| 268 | } | |
| 269 | ||
| 270 | struct globus_xsd_type_info_s rptest_QueryResourcePropertiesTestType_choice_array_info = | |
| 271 | { | |
| 272 | &rptest_QueryResourcePropertiesTestType_choice_qname, | |
| 273 | rptest_QueryResourcePropertiesTestType_choice_array_serialize_wrapper, | |
| 274 | rptest_QueryResourcePropertiesTestType_choice_array_deserialize_wrapper, | |
| 275 | rptest_QueryResourcePropertiesTestType_choice_array_init_wrapper, | |
| 276 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_wrapper, | |
| 277 | rptest_QueryResourcePropertiesTestType_choice_array_copy_wrapper, | |
| 278 | rptest_QueryResourcePropertiesTestType_choice_array_init_contents_wrapper, | |
| 279 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_contents_wrapper, | |
| 280 | rptest_QueryResourcePropertiesTestType_choice_array_copy_contents_wrapper, | |
| 281 | sizeof(rptest_QueryResourcePropertiesTestType_choice), | |
| 282 | rptest_QueryResourcePropertiesTestType_choice_array_push_wrapper, | |
| 283 | NULL, | |
| 284 | NULL | |
| 285 | }; | |
| 286 | ||
| 287 | struct globus_xsd_type_info_s rptest_QueryResourcePropertiesTestType_choice_contents_info = | |
| 288 | { | |
| 289 | &rptest_QueryResourcePropertiesTestType_choice_qname, | |
| 290 | rptest_QueryResourcePropertiesTestType_choice_serialize_contents_wrapper, | |
| 291 | rptest_QueryResourcePropertiesTestType_choice_deserialize_contents_wrapper, | |
| 292 | rptest_QueryResourcePropertiesTestType_choice_init_wrapper, | |
| 293 | rptest_QueryResourcePropertiesTestType_choice_destroy_wrapper, | |
| 294 | rptest_QueryResourcePropertiesTestType_choice_copy_wrapper, | |
| 295 | rptest_QueryResourcePropertiesTestType_choice_init_contents_wrapper, | |
| 296 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents_wrapper, | |
| 297 | rptest_QueryResourcePropertiesTestType_choice_copy_contents_wrapper, | |
| 298 | sizeof(rptest_QueryResourcePropertiesTestType_choice), | |
| 299 | NULL, | |
| 300 | NULL, | |
| 301 | NULL | |
| 302 | }; | |
| 303 | ||
| 304 | struct globus_xsd_type_info_s rptest_QueryResourcePropertiesTestType_choice_info = | |
| 305 | { | |
| 306 | &rptest_QueryResourcePropertiesTestType_choice_qname, | |
| 307 | rptest_QueryResourcePropertiesTestType_choice_serialize_wrapper, | |
| 308 | rptest_QueryResourcePropertiesTestType_choice_deserialize_pointer_wrapper, | |
| 309 | rptest_QueryResourcePropertiesTestType_choice_init_wrapper, | |
| 310 | rptest_QueryResourcePropertiesTestType_choice_destroy_wrapper, | |
| 311 | rptest_QueryResourcePropertiesTestType_choice_copy_wrapper, | |
| 312 | rptest_QueryResourcePropertiesTestType_choice_init_contents_wrapper, | |
| 313 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents_wrapper, | |
| 314 | rptest_QueryResourcePropertiesTestType_choice_copy_contents_wrapper, | |
| 315 | sizeof(rptest_QueryResourcePropertiesTestType_choice), | |
| 316 | NULL, | |
| 317 | &rptest_QueryResourcePropertiesTestType_choice_contents_info, | |
| 318 | &rptest_QueryResourcePropertiesTestType_choice_array_info | |
| 319 | }; | |
| 320 | ||
| 321 | globus_result_t | |
| 322 | rptest_QueryResourcePropertiesTestType_choice_init_contents( | |
| 323 | rptest_QueryResourcePropertiesTestType_choice * instance) | |
| 324 | 0 | { |
| 325 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 326 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_init_contents); | |
| 327 | 0 | GlobusSoapMessageDebugEnter(); |
| 328 | ||
| 329 | 0 | memset(instance, 0, sizeof(rptest_QueryResourcePropertiesTestType)); |
| 330 | ||
| 331 | 0 | GlobusSoapMessageDebugExit(); |
| 332 | 0 | return result; |
| 333 | } | |
| 334 | ||
| 335 | globus_result_t | |
| 336 | rptest_QueryResourcePropertiesTestType_choice_init( | |
| 337 | rptest_QueryResourcePropertiesTestType_choice ** object) | |
| 338 | 0 | { |
| 339 | rptest_QueryResourcePropertiesTestType_choice * instance; | |
| 340 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 341 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_init); | |
| 342 | 0 | GlobusSoapMessageDebugEnter(); |
| 343 | ||
| 344 | 0 | instance = globus_malloc(sizeof(rptest_QueryResourcePropertiesTestType_choice)); |
| 345 | 0 | if(!instance) |
| 346 | { | |
| 347 | 0 | result = GlobusSoapMessageErrorOutOfMemory; |
| 348 | 0 | goto exit; |
| 349 | } | |
| 350 | ||
| 351 | 0 | memset(instance, 0, sizeof(rptest_QueryResourcePropertiesTestType_choice)); |
| 352 | ||
| 353 | 0 | *object = instance; |
| 354 | ||
| 355 | 0 | exit: |
| 356 | 0 | GlobusSoapMessageDebugExit(); |
| 357 | 0 | return result; |
| 358 | } | |
| 359 | ||
| 360 | void | |
| 361 | rptest_QueryResourcePropertiesTestType_choice_destroy( | |
| 362 | rptest_QueryResourcePropertiesTestType_choice * instance) | |
| 363 | 0 | { |
| 364 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_destroy); | |
| 365 | 0 | GlobusSoapMessageDebugEnter(); |
| 366 | ||
| 367 | 0 | if(!instance) |
| 368 | { | |
| 369 | 0 | goto exit; |
| 370 | } | |
| 371 | ||
| 372 | 0 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents(instance); |
| 373 | 0 | free(instance); |
| 374 | ||
| 375 | 0 | exit: |
| 376 | ||
| 377 | 0 | GlobusSoapMessageDebugExit(); |
| 378 | 0 | } |
| 379 | ||
| 380 | ||
| 381 | ||
| 382 | void | |
| 383 | rptest_QueryResourcePropertiesTestType_choice_destroy_contents( | |
| 384 | rptest_QueryResourcePropertiesTestType_choice * instance) | |
| 385 | 252 | { |
| 386 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_destroy_contents); | |
| 387 | 252 | GlobusSoapMessageDebugEnter(); |
| 388 | ||
| 389 | 252 | switch(instance->type) |
| 390 | { | |
| 391 | ||
| 392 | case rptest_QueryResourcePropertiesTestType_QueryResourcePropertiesResponse: | |
| 393 | ||
| 394 | 228 | wsrp_QueryResourcePropertiesResponseType_destroy_contents( |
| 395 | &instance->value.QueryResourcePropertiesResponse); | |
| 396 | 228 | break; |
| 397 | ||
| 398 | case rptest_QueryResourcePropertiesTestType_Fault: | |
| 399 | ||
| 400 | 24 | rptest_FaultType_destroy_contents( |
| 401 | &instance->value.Fault); | |
| 402 | break; | |
| 403 | ||
| 404 | default: | |
| 405 | break; | |
| 406 | } | |
| 407 | ||
| 408 | 252 | instance->type = rptest_QueryResourcePropertiesTestType_undefined; |
| 409 | ||
| 410 | 252 | GlobusSoapMessageDebugExit(); |
| 411 | 252 | } |
| 412 | ||
| 413 | globus_result_t | |
| 414 | rptest_QueryResourcePropertiesTestType_choice_copy( | |
| 415 | rptest_QueryResourcePropertiesTestType_choice ** dest_obj, | |
| 416 | const rptest_QueryResourcePropertiesTestType_choice * src_obj) | |
| 417 | 0 | { |
| 418 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 419 | rptest_QueryResourcePropertiesTestType_choice * instance; | |
| 420 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_copy); | |
| 421 | ||
| 422 | 0 | GlobusSoapMessageDebugEnter(); |
| 423 | ||
| 424 | 0 | instance = malloc(sizeof(rptest_QueryResourcePropertiesTestType_choice)); |
| 425 | 0 | if (instance == NULL) |
| 426 | { | |
| 427 | 0 | GlobusSoapMessageDebugExit(); |
| 428 | 0 | return GlobusSoapMessageErrorOutOfMemory; |
| 429 | } | |
| 430 | ||
| 431 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_copy_contents(instance, src_obj); |
| 432 | 0 | if(result != GLOBUS_SUCCESS) |
| 433 | { | |
| 434 | 0 | globus_free(instance); |
| 435 | 0 | GlobusSoapMessageDebugExit(); |
| 436 | 0 | return GlobusSoapMessageErrorOutOfMemory; |
| 437 | } | |
| 438 | ||
| 439 | 0 | *dest_obj = instance; |
| 440 | 0 | GlobusSoapMessageDebugExit(); |
| 441 | 0 | return result; |
| 442 | } | |
| 443 | ||
| 444 | ||
| 445 | ||
| 446 | globus_result_t | |
| 447 | rptest_QueryResourcePropertiesTestType_choice_copy_contents( | |
| 448 | rptest_QueryResourcePropertiesTestType_choice * instance, | |
| 449 | const rptest_QueryResourcePropertiesTestType_choice * src_obj) | |
| 450 | 126 | { |
| 451 | xsd_QName subelement; | |
| 452 | 126 | globus_result_t result = GLOBUS_SUCCESS; |
| 453 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_copy_contents); | |
| 454 | ||
| 455 | 126 | GlobusSoapMessageDebugEnter(); |
| 456 | ||
| 457 | 126 | switch(src_obj->type) |
| 458 | { | |
| 459 | ||
| 460 | case rptest_QueryResourcePropertiesTestType_QueryResourcePropertiesResponse: | |
| 461 | 114 | instance->type = rptest_QueryResourcePropertiesTestType_QueryResourcePropertiesResponse; |
| 462 | 114 | result = wsrp_QueryResourcePropertiesResponseType_copy_contents( |
| 463 | &instance->value.QueryResourcePropertiesResponse, | |
| 464 | &src_obj->value.QueryResourcePropertiesResponse); | |
| 465 | 114 | if(result != GLOBUS_SUCCESS) |
| 466 | { | |
| 467 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 468 | result, NULL, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 469 | 0 | goto exit; |
| 470 | } | |
| 471 | ||
| 472 | 114 | break; |
| 473 | ||
| 474 | case rptest_QueryResourcePropertiesTestType_Fault: | |
| 475 | 12 | instance->type = rptest_QueryResourcePropertiesTestType_Fault; |
| 476 | 12 | result = rptest_FaultType_copy_contents( |
| 477 | &instance->value.Fault, | |
| 478 | &src_obj->value.Fault); | |
| 479 | 12 | if(result != GLOBUS_SUCCESS) |
| 480 | { | |
| 481 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 482 | result, NULL, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 483 | 0 | goto exit; |
| 484 | } | |
| 485 | ||
| 486 | break; | |
| 487 | ||
| 488 | default: | |
| 489 | break; | |
| 490 | } | |
| 491 | ||
| 492 | 126 | exit: |
| 493 | ||
| 494 | 126 | GlobusSoapMessageDebugExit(); |
| 495 | 126 | return result; |
| 496 | } | |
| 497 | ||
| 498 | ||
| 499 | ||
| 500 | ||
| 501 | ||
| 502 | globus_result_t | |
| 503 | rptest_QueryResourcePropertiesTestType_choice_serialize_contents( | |
| 504 | const xsd_QName * element_qname, /* ignored */ | |
| 505 | const rptest_QueryResourcePropertiesTestType_choice * instance, | |
| 506 | globus_soap_message_handle_t message_handle, | |
| 507 | globus_xsd_element_options_t options) | |
| 508 | 0 | { |
| 509 | xsd_QName subelement; | |
| 510 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 511 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_serialize_contents); | |
| 512 | 0 | GlobusSoapMessageDebugEnter(); |
| 513 | ||
| 514 | 0 | switch(instance->type) |
| 515 | { | |
| 516 | ||
| 517 | case rptest_QueryResourcePropertiesTestType_QueryResourcePropertiesResponse: | |
| 518 | ||
| 519 | 0 | subelement.local = "QueryResourcePropertiesResponse"; |
| 520 | 0 | subelement.Namespace = "http://docs.oasis-open.org/wsrf/rp-2"; |
| 521 | 0 | result = wsrp_QueryResourcePropertiesResponseType_serialize( |
| 522 | &subelement, | |
| 523 | &instance->value.QueryResourcePropertiesResponse, | |
| 524 | message_handle, | |
| 525 | options); | |
| 526 | 0 | if(result != GLOBUS_SUCCESS) |
| 527 | { | |
| 528 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 529 | result, NULL, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 530 | 0 | goto exit; |
| 531 | } | |
| 532 | ||
| 533 | 0 | break; |
| 534 | ||
| 535 | case rptest_QueryResourcePropertiesTestType_Fault: | |
| 536 | ||
| 537 | 0 | subelement.local = "Fault"; |
| 538 | 0 | subelement.Namespace = "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest"; |
| 539 | 0 | result = rptest_FaultType_serialize( |
| 540 | &subelement, | |
| 541 | &instance->value.Fault, | |
| 542 | message_handle, | |
| 543 | options); | |
| 544 | 0 | if(result != GLOBUS_SUCCESS) |
| 545 | { | |
| 546 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 547 | result, NULL, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 548 | 0 | goto exit; |
| 549 | } | |
| 550 | ||
| 551 | break; | |
| 552 | ||
| 553 | default: | |
| 554 | break; | |
| 555 | } | |
| 556 | ||
| 557 | 0 | exit: |
| 558 | ||
| 559 | 0 | GlobusSoapMessageDebugExit(); |
| 560 | 0 | return result; |
| 561 | } | |
| 562 | ||
| 563 | ||
| 564 | ||
| 565 | globus_result_t | |
| 566 | rptest_QueryResourcePropertiesTestType_choice_serialize( | |
| 567 | const xsd_QName * element_qname, | |
| 568 | const rptest_QueryResourcePropertiesTestType_choice * instance, | |
| 569 | globus_soap_message_handle_t message_handle, | |
| 570 | globus_xsd_element_options_t options) | |
| 571 | 0 | { |
| 572 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 573 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_serialize); | |
| 574 | 0 | GlobusSoapMessageDebugEnter(); |
| 575 | ||
| 576 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_serialize_contents( |
| 577 | element_qname, | |
| 578 | instance, | |
| 579 | message_handle, | |
| 580 | options); | |
| 581 | 0 | if(result != GLOBUS_SUCCESS) |
| 582 | { | |
| 583 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 584 | result, NULL, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 585 | 0 | goto exit; |
| 586 | } | |
| 587 | ||
| 588 | 0 | exit: |
| 589 | 0 | GlobusSoapMessageDebugExit(); |
| 590 | 0 | return result; |
| 591 | } | |
| 592 | ||
| 593 | ||
| 594 | ||
| 595 | ||
| 596 | ||
| 597 | globus_result_t | |
| 598 | rptest_QueryResourcePropertiesTestType_choice_deserialize_contents( | |
| 599 | const xsd_QName * element_qname, /* ignored */ | |
| 600 | rptest_QueryResourcePropertiesTestType_choice * instance, | |
| 601 | globus_soap_message_handle_t message_handle, | |
| 602 | globus_xsd_element_options_t options) | |
| 603 | 0 | { |
| 604 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 605 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_deserialize_contents); | |
| 606 | 0 | GlobusSoapMessageDebugEnter(); |
| 607 | ||
| 608 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_deserialize( |
| 609 | NULL, | |
| 610 | instance, | |
| 611 | message_handle, | |
| 612 | options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY); | |
| 613 | 0 | if(result != GLOBUS_SUCCESS) |
| 614 | { | |
| 615 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 616 | result, element_qname); | |
| 617 | 0 | goto exit; |
| 618 | } | |
| 619 | ||
| 620 | 0 | exit: |
| 621 | ||
| 622 | 0 | GlobusSoapMessageDebugExit(); |
| 623 | 0 | return result; |
| 624 | } | |
| 625 | ||
| 626 | ||
| 627 | ||
| 628 | globus_result_t | |
| 629 | rptest_QueryResourcePropertiesTestType_choice_deserialize( | |
| 630 | const xsd_QName * element_qname, | |
| 631 | rptest_QueryResourcePropertiesTestType_choice * instance, | |
| 632 | globus_soap_message_handle_t message_handle, | |
| 633 | globus_xsd_element_options_t options) | |
| 634 | 126 | { |
| 635 | 126 | globus_result_t result = GLOBUS_SUCCESS; |
| 636 | xsd_QName subelement; | |
| 637 | 126 | xsd_QName deselem_qname = { NULL, NULL } ; |
| 638 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_deserialize); | |
| 639 | 126 | GlobusSoapMessageDebugEnter(); |
| 640 | ||
| 641 | 126 | xsd_QName_init_contents(&deselem_qname); |
| 642 | ||
| 643 | 126 | result = globus_soap_message_deserialize_element_unknown( |
| 644 | message_handle, &deselem_qname); | |
| 645 | 126 | if(result != GLOBUS_SUCCESS) |
| 646 | { | |
| 647 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 648 | result, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 649 | 0 | goto exit; |
| 650 | } | |
| 651 | ||
| 652 | /* | |
| 653 | if(globus_soap_message_deserialize_element_is_nil(message_handle)) | |
| 654 | { | |
| 655 | xsd_QName_destroy_contents(&deselem_qname); | |
| 656 | result = globus_soap_message_deserialize_element_end( | |
| 657 | message_handle, | |
| 658 | element_qname); | |
| 659 | if(result != GLOBUS_SUCCESS) | |
| 660 | { | |
| 661 | result = GlobusSoapMessageErrorDeserializeFailed( | |
| 662 | result, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 663 | goto exit; | |
| 664 | } | |
| 665 | } | |
| 666 | */ | |
| 667 | ||
| 668 | 126 | globus_soap_message_deserialize_push_element(message_handle); |
| 669 | ||
| 670 | 126 | subelement.local = "QueryResourcePropertiesResponse"; |
| 671 | 126 | subelement.Namespace = "http://docs.oasis-open.org/wsrf/rp-2"; |
| 672 | 126 | if(xsd_QName_keyeq((void *)&subelement, (void *)&deselem_qname)) |
| 673 | { | |
| 674 | 114 | instance->type=rptest_QueryResourcePropertiesTestType_QueryResourcePropertiesResponse; |
| 675 | 114 | result = wsrp_QueryResourcePropertiesResponseType_deserialize( |
| 676 | &subelement, | |
| 677 | &instance->value.QueryResourcePropertiesResponse, | |
| 678 | message_handle, | |
| 679 | options); | |
| 680 | 114 | if(result != GLOBUS_SUCCESS) |
| 681 | { | |
| 682 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 683 | result, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 684 | 0 | goto QueryResourcePropertiesResponse_destroy; |
| 685 | } | |
| 686 | ||
| 687 | 114 | goto exit; |
| 688 | } | |
| 689 | ||
| 690 | 12 | subelement.local = "Fault"; |
| 691 | 12 | subelement.Namespace = "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest"; |
| 692 | 12 | if(xsd_QName_keyeq((void *)&subelement, (void *)&deselem_qname)) |
| 693 | { | |
| 694 | 12 | instance->type=rptest_QueryResourcePropertiesTestType_Fault; |
| 695 | 12 | result = rptest_FaultType_deserialize( |
| 696 | &subelement, | |
| 697 | &instance->value.Fault, | |
| 698 | message_handle, | |
| 699 | options); | |
| 700 | 12 | if(result != GLOBUS_SUCCESS) |
| 701 | { | |
| 702 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 703 | result, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 704 | 0 | goto Fault_destroy; |
| 705 | } | |
| 706 | ||
| 707 | 12 | goto exit; |
| 708 | } | |
| 709 | ||
| 710 | 0 | instance->type = rptest_QueryResourcePropertiesTestType_undefined; |
| 711 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 712 | result, &rptest_QueryResourcePropertiesTestType_choice_qname); | |
| 713 | ||
| 714 | goto exit; | |
| 715 | ||
| 716 | 126 | deserialize_failed: |
| 717 | ||
| 718 | 126 | Fault_destroy: |
| 719 | ||
| 720 | 126 | QueryResourcePropertiesResponse_destroy: |
| 721 | ||
| 722 | 126 | exit: |
| 723 | ||
| 724 | 126 | xsd_QName_destroy_contents(&deselem_qname); |
| 725 | ||
| 726 | 126 | GlobusSoapMessageDebugExit(); |
| 727 | 126 | return result; |
| 728 | } | |
| 729 | ||
| 730 | ||
| 731 | ||
| 732 | globus_result_t | |
| 733 | rptest_QueryResourcePropertiesTestType_choice_deserialize_pointer( | |
| 734 | const xsd_QName * element_qname, | |
| 735 | rptest_QueryResourcePropertiesTestType_choice ** ip, | |
| 736 | globus_soap_message_handle_t message_handle, | |
| 737 | globus_xsd_element_options_t options) | |
| 738 | 0 | { |
| 739 | 0 | rptest_QueryResourcePropertiesTestType_choice * instance = NULL; |
| 740 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 741 | xsd_QName subelement; | |
| 742 | GlobusFuncName(rptest_QueryResourcePropertiesTestType_choice_deserialize_pointer); | |
| 743 | 0 | GlobusSoapMessageDebugEnter(); |
| 744 | ||
| 745 | 0 | *ip = NULL; |
| 746 | ||
| 747 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_init(&instance); |
| 748 | 0 | if(result != GLOBUS_SUCCESS) |
| 749 | { | |
| 750 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 751 | result, element_qname); | |
| 752 | 0 | goto exit; |
| 753 | } | |
| 754 | ||
| 755 | 0 | result = rptest_QueryResourcePropertiesTestType_choice_deserialize( |
| 756 | element_qname, | |
| 757 | instance, | |
| 758 | message_handle, | |
| 759 | options); | |
| 760 | 0 | if(result != GLOBUS_SUCCESS) |
| 761 | { | |
| 762 | 0 | goto exit; |
| 763 | } | |
| 764 | ||
| 765 | 0 | *ip = instance; |
| 766 | ||
| 767 | 0 | exit: |
| 768 | ||
| 769 | 0 | GlobusSoapMessageDebugExit(); |
| 770 | 0 | return result; |
| 771 | } | |
| 772 | ||
| 773 | ||
| 774 | ||
| 775 | globus_result_t | |
| 776 | rptest_QueryResourcePropertiesTestType_choice_array_init_contents( | |
| 777 | rptest_QueryResourcePropertiesTestType_choice_array * array) | |
| 778 | 0 | { |
| 779 | 0 | return globus_xsd_generic_array_init_contents( |
| 780 | (globus_xsd_generic_array_t *) array, | |
| 781 | &rptest_QueryResourcePropertiesTestType_choice_array_info); | |
| 782 | } | |
| 783 | /* rptest_QueryResourcePropertiesTestType_choice_array_init_contents() */ | |
| 784 | ||
| 785 | globus_result_t | |
| 786 | rptest_QueryResourcePropertiesTestType_choice_array_init( | |
| 787 | rptest_QueryResourcePropertiesTestType_choice_array ** arr) | |
| 788 | 0 | { |
| 789 | 0 | return globus_xsd_generic_array_init( |
| 790 | (globus_xsd_generic_array_t **) arr, | |
| 791 | &rptest_QueryResourcePropertiesTestType_choice_info); | |
| 792 | } | |
| 793 | /* rptest_QueryResourcePropertiesTestType_choice_array_init() */ | |
| 794 | ||
| 795 | void | |
| 796 | rptest_QueryResourcePropertiesTestType_choice_array_destroy_contents( | |
| 797 | rptest_QueryResourcePropertiesTestType_choice_array * array) | |
| 798 | 0 | { |
| 799 | 0 | globus_xsd_generic_array_destroy_contents( |
| 800 | (globus_xsd_generic_array_t *) array); | |
| 801 | 0 | } |
| 802 | /* rptest_QueryResourcePropertiesTestType_choice_array_destroy_contents() */ | |
| 803 | ||
| 804 | void | |
| 805 | rptest_QueryResourcePropertiesTestType_choice_array_destroy( | |
| 806 | rptest_QueryResourcePropertiesTestType_choice_array * array) | |
| 807 | 0 | { |
| 808 | 0 | globus_xsd_generic_array_destroy( |
| 809 | (globus_xsd_generic_array_t *) array); | |
| 810 | 0 | } |
| 811 | /* rptest_QueryResourcePropertiesTestType_choice_array_destroy() */ | |
| 812 | ||
| 813 | globus_result_t | |
| 814 | rptest_QueryResourcePropertiesTestType_choice_array_copy( | |
| 815 | rptest_QueryResourcePropertiesTestType_choice_array ** dest_arr, | |
| 816 | const rptest_QueryResourcePropertiesTestType_choice_array * src_arr) | |
| 817 | 0 | { |
| 818 | 0 | return globus_xsd_generic_array_copy( |
| 819 | (globus_xsd_generic_array_t **) dest_arr, | |
| 820 | (const globus_xsd_generic_array_t *) src_arr); | |
| 821 | } | |
| 822 | /* rptest_QueryResourcePropertiesTestType_choice_array_copy() */ | |
| 823 | ||
| 824 | globus_result_t | |
| 825 | rptest_QueryResourcePropertiesTestType_choice_array_copy_contents( | |
| 826 | rptest_QueryResourcePropertiesTestType_choice_array * dest_arr, | |
| 827 | const rptest_QueryResourcePropertiesTestType_choice_array * src_arr) | |
| 828 | 0 | { |
| 829 | 0 | return globus_xsd_generic_array_copy_contents( |
| 830 | (globus_xsd_generic_array_t *) dest_arr, | |
| 831 | (const globus_xsd_generic_array_t *) src_arr); | |
| 832 | } | |
| 833 | ||
| 834 | rptest_QueryResourcePropertiesTestType_choice * | |
| 835 | rptest_QueryResourcePropertiesTestType_choice_array_push( | |
| 836 | rptest_QueryResourcePropertiesTestType_choice_array * array) | |
| 837 | 0 | { |
| 838 | /* Some contents initializers don't initialize subelments but to set their | |
| 839 | * values to be NULL | |
| 840 | */ | |
| 841 | 0 | if (array->type_info == NULL) |
| 842 | { | |
| 843 | 0 | array->type_info = &rptest_QueryResourcePropertiesTestType_choice_info; |
| 844 | } | |
| 845 | 0 | return globus_xsd_generic_array_push( |
| 846 | (globus_xsd_generic_array_t *) array); | |
| 847 | } | |
| 848 | /* rptest_QueryResourcePropertiesTestType_choice_array_push() */ | |
| 849 | ||
| 850 | globus_result_t | |
| 851 | rptest_QueryResourcePropertiesTestType_choice_array_serialize( | |
| 852 | const xsd_QName * element_qname, | |
| 853 | const rptest_QueryResourcePropertiesTestType_choice_array * array, | |
| 854 | globus_soap_message_handle_t message, | |
| 855 | globus_xsd_element_options_t options) | |
| 856 | 0 | { |
| 857 | 0 | return globus_xsd_generic_array_serialize( |
| 858 | element_qname, | |
| 859 | (const globus_xsd_generic_array_t *) array, | |
| 860 | message, | |
| 861 | options); | |
| 862 | } | |
| 863 | /* rptest_QueryResourcePropertiesTestType_choice_array_serialize() */ | |
| 864 | ||
| 865 | globus_result_t | |
| 866 | rptest_QueryResourcePropertiesTestType_choice_array_deserialize( | |
| 867 | const xsd_QName * element_qname, | |
| 868 | rptest_QueryResourcePropertiesTestType_choice_array * array, | |
| 869 | globus_soap_message_handle_t message, | |
| 870 | globus_xsd_element_options_t options) | |
| 871 | 0 | { |
| 872 | /* Some initializers set the array's contents to NULL */ | |
| 873 | 0 | if (array->type_info == NULL) |
| 874 | { | |
| 875 | 0 | array->type_info = &rptest_QueryResourcePropertiesTestType_choice_info; |
| 876 | } | |
| 877 | 0 | return globus_xsd_generic_array_deserialize( |
| 878 | element_qname, | |
| 879 | (globus_xsd_generic_array_t *) array, | |
| 880 | message, | |
| 881 | options); | |
| 882 | } |