| 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 "wstop_FullTopicPathExpression.h" | |
| 26 | ||
| 27 | xsd_QName wstop_FullTopicPathExpression_qname = | |
| 28 | { | |
| 29 | "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-Topics-1.2-draft-01.xsd", | |
| 30 | "FullTopicPathExpression" | |
| 31 | }; | |
| 32 | ||
| 33 | ||
| 34 | ||
| 35 | globus_result_t | |
| 36 | wstop_FullTopicPathExpression_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 wstop_FullTopicPathExpression_serialize( |
| 43 | element_qname, | |
| 44 | (wstop_FullTopicPathExpression *) instance, | |
| 45 | message_handle, options); | |
| 46 | } | |
| 47 | ||
| 48 | globus_result_t | |
| 49 | wstop_FullTopicPathExpression_deserialize_pointer_wrapper( | |
| 50 | const xsd_QName * element_qname, | |
| 51 | void ** ip, | |
| 52 | globus_soap_message_handle_t message_handle, | |
| 53 | globus_xsd_element_options_t options) | |
| 54 | 0 | { |
| 55 | 0 | return wstop_FullTopicPathExpression_deserialize_pointer( |
| 56 | element_qname, | |
| 57 | (wstop_FullTopicPathExpression **) ip, | |
| 58 | message_handle, options); | |
| 59 | } | |
| 60 | ||
| 61 | globus_result_t | |
| 62 | wstop_FullTopicPathExpression_init_wrapper(void **object) | |
| 63 | 0 | { |
| 64 | 0 | return wstop_FullTopicPathExpression_init( |
| 65 | (wstop_FullTopicPathExpression **) object); | |
| 66 | } | |
| 67 | ||
| 68 | void | |
| 69 | wstop_FullTopicPathExpression_destroy_wrapper( | |
| 70 | void * object) | |
| 71 | 0 | { |
| 72 | 0 | wstop_FullTopicPathExpression_destroy( |
| 73 | (wstop_FullTopicPathExpression *) object); | |
| 74 | } | |
| 75 | ||
| 76 | globus_result_t | |
| 77 | wstop_FullTopicPathExpression_copy_wrapper( | |
| 78 | void ** dest_obj, | |
| 79 | const void * src_obj) | |
| 80 | 0 | { |
| 81 | 0 | return wstop_FullTopicPathExpression_copy( |
| 82 | (wstop_FullTopicPathExpression **) dest_obj, | |
| 83 | (const wstop_FullTopicPathExpression *) src_obj); | |
| 84 | } | |
| 85 | ||
| 86 | globus_result_t | |
| 87 | wstop_FullTopicPathExpression_init_contents_wrapper(void *object) | |
| 88 | 0 | { |
| 89 | 0 | return wstop_FullTopicPathExpression_init_contents( |
| 90 | (wstop_FullTopicPathExpression *) object); | |
| 91 | } | |
| 92 | ||
| 93 | void | |
| 94 | wstop_FullTopicPathExpression_destroy_contents_wrapper( | |
| 95 | void * object) | |
| 96 | 0 | { |
| 97 | 0 | wstop_FullTopicPathExpression_destroy_contents( |
| 98 | (wstop_FullTopicPathExpression *) object); | |
| 99 | } | |
| 100 | ||
| 101 | globus_result_t | |
| 102 | wstop_FullTopicPathExpression_copy_contents_wrapper( | |
| 103 | void * dest_obj, | |
| 104 | const void * src_obj) | |
| 105 | 0 | { |
| 106 | 0 | return wstop_FullTopicPathExpression_copy_contents( |
| 107 | (wstop_FullTopicPathExpression *) dest_obj, | |
| 108 | (const wstop_FullTopicPathExpression *) src_obj); | |
| 109 | } | |
| 110 | ||
| 111 | globus_result_t | |
| 112 | wstop_FullTopicPathExpression_serialize_contents_wrapper( | |
| 113 | const xsd_QName * element_qname, | |
| 114 | const void * instance, | |
| 115 | globus_soap_message_handle_t message_handle, | |
| 116 | globus_xsd_element_options_t options) | |
| 117 | 0 | { |
| 118 | 0 | return wstop_FullTopicPathExpression_serialize_contents( |
| 119 | element_qname, | |
| 120 | (wstop_FullTopicPathExpression *) instance, | |
| 121 | message_handle, options); | |
| 122 | } | |
| 123 | ||
| 124 | globus_result_t | |
| 125 | wstop_FullTopicPathExpression_deserialize_contents_wrapper( | |
| 126 | const xsd_QName * element_qname, | |
| 127 | void ** instance, | |
| 128 | globus_soap_message_handle_t message_handle, | |
| 129 | globus_xsd_element_options_t options) | |
| 130 | 0 | { |
| 131 | 0 | globus_result_t result; |
| 132 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize_contents_wrapper); |
| 133 | 0 | GlobusSoapMessageDebugEnter(); |
| 134 | ||
| 135 | 0 | if(!*instance) |
| 136 | { | |
| 137 | 0 | result = wstop_FullTopicPathExpression_init( |
| 138 | (wstop_FullTopicPathExpression **)instance); | |
| 139 | 0 | if(result != GLOBUS_SUCCESS) |
| 140 | { | |
| 141 | 0 | goto error; |
| 142 | } | |
| 143 | } | |
| 144 | ||
| 145 | 0 | result = wstop_FullTopicPathExpression_deserialize_contents( |
| 146 | element_qname, | |
| 147 | *(wstop_FullTopicPathExpression **)instance, | |
| 148 | message_handle, options); | |
| 149 | error: | |
| 150 | 0 | GlobusSoapMessageDebugExit(); |
| 151 | 0 | return result; |
| 152 | } | |
| 153 | ||
| 154 | globus_result_t | |
| 155 | wstop_FullTopicPathExpression_array_serialize_wrapper( | |
| 156 | const xsd_QName * element, | |
| 157 | const void * instance, | |
| 158 | globus_soap_message_handle_t message, | |
| 159 | globus_xsd_element_options_t options) | |
| 160 | 0 | { |
| 161 | 0 | return wstop_FullTopicPathExpression_array_serialize( |
| 162 | element, | |
| 163 | (wstop_FullTopicPathExpression_array *) instance, | |
| 164 | message, options); | |
| 165 | } | |
| 166 | ||
| 167 | globus_result_t | |
| 168 | wstop_FullTopicPathExpression_array_deserialize_wrapper( | |
| 169 | const xsd_QName * element_qname, | |
| 170 | void ** inst, | |
| 171 | globus_soap_message_handle_t message, | |
| 172 | globus_xsd_element_options_t options) | |
| 173 | 0 | { |
| 174 | 0 | if(!*inst) |
| 175 | { | |
| 176 | 0 | globus_result_t result; |
| 177 | ||
| 178 | 0 | result = wstop_FullTopicPathExpression_array_init( |
| 179 | (wstop_FullTopicPathExpression_array **)inst); | |
| 180 | 0 | if(result != GLOBUS_SUCCESS) |
| 181 | { | |
| 182 | 0 | return result; |
| 183 | } | |
| 184 | } | |
| 185 | ||
| 186 | 0 | return wstop_FullTopicPathExpression_array_deserialize( |
| 187 | element_qname, | |
| 188 | *(wstop_FullTopicPathExpression_array **) inst, | |
| 189 | message, options); | |
| 190 | } | |
| 191 | ||
| 192 | globus_result_t | |
| 193 | wstop_FullTopicPathExpression_array_init_wrapper( | |
| 194 | void ** arr) | |
| 195 | 0 | { |
| 196 | 0 | return wstop_FullTopicPathExpression_array_init( |
| 197 | (wstop_FullTopicPathExpression_array **) arr); | |
| 198 | } | |
| 199 | ||
| 200 | void | |
| 201 | wstop_FullTopicPathExpression_array_destroy_wrapper( | |
| 202 | void * arr) | |
| 203 | 0 | { |
| 204 | 0 | wstop_FullTopicPathExpression_array_destroy( |
| 205 | (wstop_FullTopicPathExpression_array *) arr); | |
| 206 | } | |
| 207 | ||
| 208 | globus_result_t | |
| 209 | wstop_FullTopicPathExpression_array_copy_wrapper( | |
| 210 | void ** dest_arr, | |
| 211 | const void * src_arr) | |
| 212 | 0 | { |
| 213 | 0 | return wstop_FullTopicPathExpression_array_copy( |
| 214 | (wstop_FullTopicPathExpression_array **) dest_arr, | |
| 215 | (const wstop_FullTopicPathExpression_array *) src_arr); | |
| 216 | } | |
| 217 | globus_result_t | |
| 218 | wstop_FullTopicPathExpression_array_init_contents_wrapper( | |
| 219 | void * arr) | |
| 220 | 0 | { |
| 221 | 0 | return wstop_FullTopicPathExpression_array_init_contents( |
| 222 | (wstop_FullTopicPathExpression_array *) arr); | |
| 223 | } | |
| 224 | ||
| 225 | void | |
| 226 | wstop_FullTopicPathExpression_array_destroy_contents_wrapper( | |
| 227 | void * arr) | |
| 228 | 0 | { |
| 229 | 0 | wstop_FullTopicPathExpression_array_destroy_contents( |
| 230 | (wstop_FullTopicPathExpression_array *) arr); | |
| 231 | } | |
| 232 | ||
| 233 | globus_result_t | |
| 234 | wstop_FullTopicPathExpression_array_copy_contents_wrapper( | |
| 235 | void * dest_arr, | |
| 236 | const void * src_arr) | |
| 237 | 0 | { |
| 238 | 0 | return wstop_FullTopicPathExpression_array_copy_contents( |
| 239 | (wstop_FullTopicPathExpression_array *) dest_arr, | |
| 240 | (const wstop_FullTopicPathExpression_array *) src_arr); | |
| 241 | } | |
| 242 | ||
| 243 | struct globus_xsd_type_info_s wstop_FullTopicPathExpression_array_info = | |
| 244 | { | |
| 245 | &wstop_FullTopicPathExpression_qname, | |
| 246 | wstop_FullTopicPathExpression_array_serialize_wrapper, | |
| 247 | wstop_FullTopicPathExpression_array_deserialize_wrapper, | |
| 248 | wstop_FullTopicPathExpression_array_init_wrapper, | |
| 249 | wstop_FullTopicPathExpression_array_destroy_wrapper, | |
| 250 | wstop_FullTopicPathExpression_array_copy_wrapper, | |
| 251 | wstop_FullTopicPathExpression_array_init_contents_wrapper, | |
| 252 | wstop_FullTopicPathExpression_array_destroy_contents_wrapper, | |
| 253 | wstop_FullTopicPathExpression_array_copy_contents_wrapper, | |
| 254 | sizeof(wstop_FullTopicPathExpression), | |
| 255 | wstop_FullTopicPathExpression_array_push_wrapper, | |
| 256 | NULL, | |
| 257 | NULL | |
| 258 | }; | |
| 259 | ||
| 260 | struct globus_xsd_type_info_s wstop_FullTopicPathExpression_contents_info = | |
| 261 | { | |
| 262 | &wstop_FullTopicPathExpression_qname, | |
| 263 | wstop_FullTopicPathExpression_serialize_contents_wrapper, | |
| 264 | wstop_FullTopicPathExpression_deserialize_contents_wrapper, | |
| 265 | wstop_FullTopicPathExpression_init_wrapper, | |
| 266 | wstop_FullTopicPathExpression_destroy_wrapper, | |
| 267 | wstop_FullTopicPathExpression_copy_wrapper, | |
| 268 | wstop_FullTopicPathExpression_init_contents_wrapper, | |
| 269 | wstop_FullTopicPathExpression_destroy_contents_wrapper, | |
| 270 | wstop_FullTopicPathExpression_copy_contents_wrapper, | |
| 271 | sizeof(wstop_FullTopicPathExpression), | |
| 272 | NULL, | |
| 273 | NULL, | |
| 274 | NULL | |
| 275 | }; | |
| 276 | ||
| 277 | struct globus_xsd_type_info_s wstop_FullTopicPathExpression_info = | |
| 278 | { | |
| 279 | &wstop_FullTopicPathExpression_qname, | |
| 280 | wstop_FullTopicPathExpression_serialize_wrapper, | |
| 281 | wstop_FullTopicPathExpression_deserialize_pointer_wrapper, | |
| 282 | wstop_FullTopicPathExpression_init_wrapper, | |
| 283 | wstop_FullTopicPathExpression_destroy_wrapper, | |
| 284 | wstop_FullTopicPathExpression_copy_wrapper, | |
| 285 | wstop_FullTopicPathExpression_init_contents_wrapper, | |
| 286 | wstop_FullTopicPathExpression_destroy_contents_wrapper, | |
| 287 | wstop_FullTopicPathExpression_copy_contents_wrapper, | |
| 288 | sizeof(wstop_FullTopicPathExpression), | |
| 289 | NULL, | |
| 290 | &wstop_FullTopicPathExpression_contents_info, | |
| 291 | &wstop_FullTopicPathExpression_array_info | |
| 292 | }; | |
| 293 | ||
| 294 | globus_result_t | |
| 295 | wstop_FullTopicPathExpression_init_contents( | |
| 296 | wstop_FullTopicPathExpression * instance) | |
| 297 | 0 | { |
| 298 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 299 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_init_contents); |
| 300 | 0 | GlobusSoapMessageDebugEnter(); |
| 301 | ||
| 302 | ||
| 303 | 0 | xsd_token_init_contents(instance); |
| 304 | ||
| 305 | 0 | GlobusSoapMessageDebugExit(); |
| 306 | 0 | return result; |
| 307 | } | |
| 308 | ||
| 309 | globus_result_t | |
| 310 | wstop_FullTopicPathExpression_init( | |
| 311 | wstop_FullTopicPathExpression ** object) | |
| 312 | 0 | { |
| 313 | 0 | wstop_FullTopicPathExpression * instance; |
| 314 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 315 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_init); |
| 316 | 0 | GlobusSoapMessageDebugEnter(); |
| 317 | ||
| 318 | ||
| 319 | 0 | xsd_token_init(object); |
| 320 | ||
| 321 | 0 | GlobusSoapMessageDebugExit(); |
| 322 | 0 | return result; |
| 323 | } | |
| 324 | ||
| 325 | void | |
| 326 | wstop_FullTopicPathExpression_destroy( | |
| 327 | wstop_FullTopicPathExpression * instance) | |
| 328 | 0 | { |
| 329 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_destroy); |
| 330 | 0 | GlobusSoapMessageDebugEnter(); |
| 331 | ||
| 332 | 0 | if(!instance) |
| 333 | { | |
| 334 | 0 | goto exit; |
| 335 | } | |
| 336 | ||
| 337 | 0 | wstop_FullTopicPathExpression_destroy_contents(instance); |
| 338 | 0 | globus_free(instance); |
| 339 | ||
| 340 | exit: | |
| 341 | ||
| 342 | 0 | GlobusSoapMessageDebugExit(); |
| 343 | } | |
| 344 | ||
| 345 | void | |
| 346 | wstop_FullTopicPathExpression_destroy_contents( | |
| 347 | wstop_FullTopicPathExpression * instance) | |
| 348 | 0 | { |
| 349 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_destroy_contents); |
| 350 | 0 | GlobusSoapMessageDebugEnter(); |
| 351 | ||
| 352 | 0 | if(instance) |
| 353 | { | |
| 354 | ||
| 355 | ||
| 356 | 0 | xsd_token_destroy_contents(instance); |
| 357 | ||
| 358 | } | |
| 359 | ||
| 360 | 0 | GlobusSoapMessageDebugExit(); |
| 361 | } | |
| 362 | ||
| 363 | globus_result_t | |
| 364 | wstop_FullTopicPathExpression_copy( | |
| 365 | wstop_FullTopicPathExpression ** dest_obj, | |
| 366 | const wstop_FullTopicPathExpression * src_obj) | |
| 367 | 0 | { |
| 368 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 369 | 0 | wstop_FullTopicPathExpression * instance; |
| 370 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_copy); |
| 371 | ||
| 372 | 0 | GlobusSoapMessageDebugEnter(); |
| 373 | ||
| 374 | 0 | instance = malloc(sizeof(wstop_FullTopicPathExpression)); |
| 375 | 0 | if (instance == NULL) |
| 376 | { | |
| 377 | 0 | GlobusSoapMessageDebugExit(); |
| 378 | 0 | return GlobusSoapMessageErrorOutOfMemory; |
| 379 | } | |
| 380 | ||
| 381 | 0 | result = wstop_FullTopicPathExpression_copy_contents(instance, src_obj); |
| 382 | 0 | if(result != GLOBUS_SUCCESS) |
| 383 | { | |
| 384 | 0 | globus_free(instance); |
| 385 | 0 | GlobusSoapMessageDebugExit(); |
| 386 | 0 | return GlobusSoapMessageErrorOutOfMemory; |
| 387 | } | |
| 388 | ||
| 389 | 0 | *dest_obj = instance; |
| 390 | 0 | GlobusSoapMessageDebugExit(); |
| 391 | 0 | return result; |
| 392 | } | |
| 393 | ||
| 394 | globus_result_t | |
| 395 | wstop_FullTopicPathExpression_copy_contents( | |
| 396 | wstop_FullTopicPathExpression * instance, | |
| 397 | const wstop_FullTopicPathExpression * src_obj) | |
| 398 | 0 | { |
| 399 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 400 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_copy_contents); |
| 401 | ||
| 402 | 0 | GlobusSoapMessageDebugEnter(); |
| 403 | ||
| 404 | ||
| 405 | 0 | result = xsd_token_copy_contents( |
| 406 | instance, src_obj); | |
| 407 | ||
| 408 | 0 | goto exit; |
| 409 | ||
| 410 | fail_copy: | |
| 411 | ||
| 412 | ||
| 413 | exit: | |
| 414 | ||
| 415 | 0 | GlobusSoapMessageDebugExit(); |
| 416 | 0 | return result; |
| 417 | } | |
| 418 | ||
| 419 | ||
| 420 | ||
| 421 | globus_result_t | |
| 422 | wstop_FullTopicPathExpression_serialize_contents( | |
| 423 | const xsd_QName * element_qname, /* ignored */ | |
| 424 | const wstop_FullTopicPathExpression * inst, | |
| 425 | globus_soap_message_handle_t message_handle, | |
| 426 | globus_xsd_element_options_t options) | |
| 427 | 0 | { |
| 428 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 429 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_serialize_contents); |
| 430 | 0 | GlobusSoapMessageDebugEnter(); |
| 431 | ||
| 432 | 0 | result = wstop_FullTopicPathExpression_serialize( |
| 433 | NULL, | |
| 434 | inst, | |
| 435 | message_handle, | |
| 436 | options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY); | |
| 437 | 0 | if(result != GLOBUS_SUCCESS) |
| 438 | { | |
| 439 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 440 | result, NULL, element_qname); | |
| 441 | goto exit; | |
| 442 | } | |
| 443 | ||
| 444 | exit: | |
| 445 | ||
| 446 | 0 | GlobusSoapMessageDebugExit(); |
| 447 | 0 | return result; |
| 448 | } | |
| 449 | ||
| 450 | ||
| 451 | ||
| 452 | globus_result_t | |
| 453 | wstop_FullTopicPathExpression_serialize( | |
| 454 | const xsd_QName * element_qname, | |
| 455 | const wstop_FullTopicPathExpression * instance, | |
| 456 | globus_soap_message_handle_t message_handle, | |
| 457 | globus_xsd_element_options_t options) | |
| 458 | 0 | { |
| 459 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 460 | 0 | xsd_QName subelement; |
| 461 | 0 | globus_list_t * any_attr_keys = NULL; |
| 462 | 0 | globus_list_t * any_attr_keys_iterator = NULL; |
| 463 | 0 | xsd_QName * type_attr = NULL; |
| 464 | 0 | char * type_value = NULL; |
| 465 | 0 | char * prefix = NULL; |
| 466 | 0 | int prefix_created; |
| 467 | 0 | int define_prefix = 0; |
| 468 | 0 | int i; |
| 469 | 0 | char * type_attr_prefix = NULL; |
| 470 | ||
| 471 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_serialize); |
| 472 | 0 | GlobusSoapMessageDebugEnter(); |
| 473 | ||
| 474 | ||
| 475 | 0 | result = xsd_token_serialize( |
| 476 | element_qname, | |
| 477 | instance, | |
| 478 | message_handle, | |
| 479 | options); | |
| 480 | ||
| 481 | exit: | |
| 482 | ||
| 483 | 0 | if(any_attr_keys) |
| 484 | { | |
| 485 | 0 | globus_list_free(any_attr_keys); |
| 486 | } | |
| 487 | ||
| 488 | 0 | GlobusSoapMessageDebugExit(); |
| 489 | 0 | return result; |
| 490 | } | |
| 491 | ||
| 492 | ||
| 493 | ||
| 494 | globus_result_t | |
| 495 | wstop_FullTopicPathExpression_deserialize_contents( | |
| 496 | const xsd_QName * element_qname, /* ignored */ | |
| 497 | wstop_FullTopicPathExpression * inst, | |
| 498 | globus_soap_message_handle_t message_handle, | |
| 499 | globus_xsd_element_options_t options) | |
| 500 | 0 | { |
| 501 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 502 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize_contents); |
| 503 | 0 | GlobusSoapMessageDebugEnter(); |
| 504 | ||
| 505 | 0 | result = wstop_FullTopicPathExpression_deserialize( |
| 506 | NULL, | |
| 507 | inst, | |
| 508 | message_handle, | |
| 509 | options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY); | |
| 510 | 0 | if(result != GLOBUS_SUCCESS) |
| 511 | { | |
| 512 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 513 | result, element_qname); | |
| 514 | goto exit; | |
| 515 | } | |
| 516 | ||
| 517 | exit: | |
| 518 | ||
| 519 | 0 | GlobusSoapMessageDebugExit(); |
| 520 | 0 | return result; |
| 521 | } | |
| 522 | ||
| 523 | ||
| 524 | ||
| 525 | globus_result_t | |
| 526 | wstop_FullTopicPathExpression_deserialize( | |
| 527 | const xsd_QName * element_qname, | |
| 528 | wstop_FullTopicPathExpression * instance, | |
| 529 | globus_soap_message_handle_t message_handle, | |
| 530 | globus_xsd_element_options_t options) | |
| 531 | 0 | { |
| 532 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 533 | 0 | xsd_QName subelement; |
| 534 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize); |
| 535 | 0 | GlobusSoapMessageDebugEnter(); |
| 536 | ||
| 537 | ||
| 538 | 0 | result = xsd_token_deserialize(element_qname, |
| 539 | instance, message_handle, options); | |
| 540 | ||
| 541 | 0 | if (result != GLOBUS_SUCCESS) |
| 542 | { | |
| 543 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 544 | result, element_qname); | |
| 545 | goto exit; | |
| 546 | } | |
| 547 | ||
| 548 | ||
| 549 | exit: | |
| 550 | ||
| 551 | 0 | GlobusSoapMessageDebugExit(); |
| 552 | 0 | return result; |
| 553 | } | |
| 554 | ||
| 555 | ||
| 556 | ||
| 557 | globus_result_t | |
| 558 | wstop_FullTopicPathExpression_deserialize_pointer( | |
| 559 | const xsd_QName * element_qname, | |
| 560 | wstop_FullTopicPathExpression ** ip, | |
| 561 | globus_soap_message_handle_t message_handle, | |
| 562 | globus_xsd_element_options_t options) | |
| 563 | 0 | { |
| 564 | 0 | wstop_FullTopicPathExpression * instance = NULL; |
| 565 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 566 | 0 | xsd_QName subelement; |
| 567 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize_pointer); |
| 568 | 0 | GlobusSoapMessageDebugEnter(); |
| 569 | ||
| 570 | 0 | *ip = NULL; |
| 571 | ||
| 572 | ||
| 573 | 0 | result = xsd_token_deserialize_pointer( |
| 574 | element_qname, | |
| 575 | ip, message_handle, options); | |
| 576 | ||
| 577 | 0 | if (result != GLOBUS_SUCCESS) |
| 578 | { | |
| 579 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 580 | result, element_qname); | |
| 581 | goto exit; | |
| 582 | } | |
| 583 | ||
| 584 | ||
| 585 | exit: | |
| 586 | ||
| 587 | 0 | GlobusSoapMessageDebugExit(); |
| 588 | 0 | return result; |
| 589 | } | |
| 590 | ||
| 591 | ||
| 592 | ||
| 593 | globus_result_t | |
| 594 | wstop_FullTopicPathExpression_array_init_contents( | |
| 595 | wstop_FullTopicPathExpression_array * array) | |
| 596 | 0 | { |
| 597 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_array_init_contents); |
| 598 | 0 | GlobusSoapMessageDebugEnter(); |
| 599 | ||
| 600 | 0 | array->elements = NULL; |
| 601 | 0 | array->length = 0; |
| 602 | 0 | array->type_info = &wstop_FullTopicPathExpression_info; |
| 603 | ||
| 604 | 0 | GlobusSoapMessageDebugExit(); |
| 605 | 0 | return GLOBUS_SUCCESS; |
| 606 | } | |
| 607 | ||
| 608 | globus_result_t | |
| 609 | wstop_FullTopicPathExpression_array_init( | |
| 610 | wstop_FullTopicPathExpression_array ** arr) | |
| 611 | 0 | { |
| 612 | 0 | return globus_xsd_generic_array_init( |
| 613 | (globus_xsd_generic_array_t **) arr, | |
| 614 | &wstop_FullTopicPathExpression_info); | |
| 615 | } | |
| 616 | /* wstop_FullTopicPathExpression_array_info() */ | |
| 617 | ||
| 618 | void | |
| 619 | wstop_FullTopicPathExpression_array_destroy_contents( | |
| 620 | wstop_FullTopicPathExpression_array * array) | |
| 621 | 0 | { |
| 622 | 0 | globus_xsd_generic_array_destroy_contents( |
| 623 | (globus_xsd_generic_array_t *) array); | |
| 624 | } | |
| 625 | ||
| 626 | void | |
| 627 | wstop_FullTopicPathExpression_array_destroy( | |
| 628 | wstop_FullTopicPathExpression_array * array) | |
| 629 | 0 | { |
| 630 | ||
| 631 | 0 | globus_xsd_generic_array_destroy( |
| 632 | (globus_xsd_generic_array_t *) array); | |
| 633 | } | |
| 634 | ||
| 635 | globus_result_t | |
| 636 | wstop_FullTopicPathExpression_array_copy( | |
| 637 | wstop_FullTopicPathExpression_array ** dest_arr, | |
| 638 | const wstop_FullTopicPathExpression_array * src_arr) | |
| 639 | 0 | { |
| 640 | 0 | return globus_xsd_generic_array_copy( |
| 641 | (globus_xsd_generic_array_t **) dest_arr, | |
| 642 | (const globus_xsd_generic_array_t *) src_arr); | |
| 643 | } | |
| 644 | ||
| 645 | globus_result_t | |
| 646 | wstop_FullTopicPathExpression_array_copy_contents( | |
| 647 | wstop_FullTopicPathExpression_array * dest_arr, | |
| 648 | const wstop_FullTopicPathExpression_array * src_arr) | |
| 649 | 0 | { |
| 650 | 0 | return globus_xsd_generic_array_copy_contents( |
| 651 | (globus_xsd_generic_array_t *) dest_arr, | |
| 652 | (const globus_xsd_generic_array_t *) src_arr); | |
| 653 | } | |
| 654 | ||
| 655 | wstop_FullTopicPathExpression * | |
| 656 | wstop_FullTopicPathExpression_array_push( | |
| 657 | wstop_FullTopicPathExpression_array * array) | |
| 658 | 0 | { |
| 659 | /* Some contents initializers don't initialize subelments but to set their | |
| 660 | * values to be NULL | |
| 661 | */ | |
| 662 | 0 | if (array->type_info == NULL) |
| 663 | { | |
| 664 | 0 | array->type_info = &wstop_FullTopicPathExpression_info; |
| 665 | } | |
| 666 | 0 | return globus_xsd_generic_array_push( |
| 667 | (globus_xsd_generic_array_t *) array); | |
| 668 | } | |
| 669 | ||
| 670 | void * | |
| 671 | wstop_FullTopicPathExpression_array_push_wrapper( | |
| 672 | void * array) | |
| 673 | 0 | { |
| 674 | 0 | return (void *) wstop_FullTopicPathExpression_array_push((wstop_FullTopicPathExpression_array *) array); |
| 675 | } | |
| 676 | ||
| 677 | globus_result_t | |
| 678 | wstop_FullTopicPathExpression_array_serialize( | |
| 679 | const xsd_QName * element_qname, | |
| 680 | const wstop_FullTopicPathExpression_array * array, | |
| 681 | globus_soap_message_handle_t message, | |
| 682 | globus_xsd_element_options_t options) | |
| 683 | 0 | { |
| 684 | 0 | return globus_xsd_generic_array_serialize( |
| 685 | element_qname, | |
| 686 | (const globus_xsd_generic_array_t *) array, | |
| 687 | message, | |
| 688 | options); | |
| 689 | } | |
| 690 | ||
| 691 | globus_result_t | |
| 692 | wstop_FullTopicPathExpression_array_deserialize( | |
| 693 | const xsd_QName * element_qname, | |
| 694 | wstop_FullTopicPathExpression_array * array, | |
| 695 | globus_soap_message_handle_t message, | |
| 696 | globus_xsd_element_options_t options) | |
| 697 | 0 | { |
| 698 | /* Some initializers set the array contents to NULL */ | |
| 699 | 0 | if (array->type_info == NULL) |
| 700 | { | |
| 701 | 0 | array->type_info = &wstop_FullTopicPathExpression_info; |
| 702 | } | |
| 703 | ||
| 704 | 0 | return globus_xsd_generic_array_deserialize( |
| 705 | element_qname, | |
| 706 | (globus_xsd_generic_array_t *) array, | |
| 707 | message, | |
| 708 | options); | |
| 709 | } | |
| 710 | ||
| 711 | ||
| 712 | globus_result_t | |
| 713 | wstop_FullTopicPathExpression_serialize_attribute( | |
| 714 | const xsd_QName * attr_qname, | |
| 715 | const wstop_FullTopicPathExpression * val, | |
| 716 | globus_soap_message_handle_t handle, | |
| 717 | globus_xsd_element_options_t options) | |
| 718 | 0 | { |
| 719 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 720 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_serialize_attribute); |
| 721 | 0 | GlobusSoapMessageDebugEnter(); |
| 722 | ||
| 723 | ||
| 724 | 0 | result = xsd_token_serialize_attribute( |
| 725 | attr_qname, (xsd_token *)val, handle, options); | |
| 726 | 0 | if(result != GLOBUS_SUCCESS) |
| 727 | { | |
| 728 | 0 | result = GlobusSoapMessageErrorSerializeFailed( |
| 729 | result, NULL, attr_qname); | |
| 730 | goto exit; | |
| 731 | } | |
| 732 | ||
| 733 | exit: | |
| 734 | ||
| 735 | 0 | GlobusSoapMessageDebugExit(); |
| 736 | 0 | return result; |
| 737 | } | |
| 738 | ||
| 739 | globus_result_t | |
| 740 | wstop_FullTopicPathExpression_deserialize_attribute( | |
| 741 | const xsd_QName * attr_qname, | |
| 742 | wstop_FullTopicPathExpression * instance, | |
| 743 | globus_soap_message_handle_t message, | |
| 744 | globus_xsd_element_options_t options) | |
| 745 | 0 | { |
| 746 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 747 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize_attribute); |
| 748 | 0 | GlobusSoapMessageDebugEnter(); |
| 749 | ||
| 750 | ||
| 751 | 0 | result = xsd_token_deserialize_attribute( |
| 752 | attr_qname, (xsd_token *)instance, message, options); | |
| 753 | ||
| 754 | 0 | if(result != GLOBUS_SUCCESS) |
| 755 | { | |
| 756 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 757 | result, attr_qname); | |
| 758 | goto exit; | |
| 759 | } | |
| 760 | ||
| 761 | exit: | |
| 762 | ||
| 763 | 0 | GlobusSoapMessageDebugExit(); |
| 764 | 0 | return result; |
| 765 | } | |
| 766 | ||
| 767 | globus_result_t | |
| 768 | wstop_FullTopicPathExpression_deserialize_attribute_pointer( | |
| 769 | const xsd_QName * attr_qname, | |
| 770 | wstop_FullTopicPathExpression ** instance, | |
| 771 | globus_soap_message_handle_t message, | |
| 772 | globus_xsd_element_options_t options) | |
| 773 | 0 | { |
| 774 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 775 | 0 | GlobusFuncName(wstop_FullTopicPathExpression_deserialize_attribute_pointer); |
| 776 | 0 | GlobusSoapMessageDebugEnter(); |
| 777 | ||
| 778 | ||
| 779 | 0 | result = xsd_token_deserialize_attribute_pointer( |
| 780 | attr_qname, (xsd_token **)instance, message, options); | |
| 781 | ||
| 782 | 0 | if(result != GLOBUS_SUCCESS) |
| 783 | { | |
| 784 | 0 | result = GlobusSoapMessageErrorDeserializeFailed( |
| 785 | result, attr_qname); | |
| 786 | goto exit; | |
| 787 | } | |
| 788 | ||
| 789 | exit: | |
| 790 | ||
| 791 | 0 | GlobusSoapMessageDebugExit(); |
| 792 | 0 | return result; |