| 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 "globus_soap_message.h" | |
| 23 | #include "globus_handler.h" | |
| 24 | #include "globus_xio.h" | |
| 25 | #include "NotificationProducerTestService_client.h" | |
| 26 | #include "globus_xsd_type_registry.h" | |
| 27 | #include "globus_soap_message_fault.h" | |
| 28 | #include "globus_soap_message_attrs.h" | |
| 29 | #include "globus_soap_message_markers.h" | |
| 30 | #include "globus_ws_addressing.h" | |
| 31 | ||
| 32 | static globus_list_t * NotificationProducerTestService_l_extensions = NULL; | |
| 33 | static globus_mutex_t NotificationProducerTestService_l_extensions_mutex; | |
| 34 | ||
| 35 | static | |
| 36 | int | |
| 37 | NotificationProducerTestService_l_client_module_activate(); | |
| 38 | ||
| 39 | static | |
| 40 | int | |
| 41 | NotificationProducerTestService_l_client_module_deactivate(); | |
| 42 | ||
| 43 | globus_module_descriptor_t | |
| 44 | NotificationProducerTestService_i_module = | |
| 45 | { | |
| 46 | "NotificationProducerTestService", | |
| 47 | NotificationProducerTestService_l_client_module_activate, | |
| 48 | NotificationProducerTestService_l_client_module_deactivate | |
| 49 | }; | |
| 50 | ||
| 51 | ||
| 52 | static | |
| 53 | void | |
| 54 | NotificationProducerTestPortType_l_Destroy_deserialize_fault( | |
| 55 | globus_soap_message_handle_t handle, | |
| 56 | const xsd_QName * fault_qname, | |
| 57 | int * fault_type); | |
| 58 | ||
| 59 | ||
| 60 | static | |
| 61 | globus_soap_client_operation_t NotificationProducerTestPortType_l_Destroy_operation = | |
| 62 | { | |
| 63 | { "http://docs.oasis-open.org/wsrf/rl-2", "Destroy" } , | |
| 64 | &wsrl_DestroyType_info, | |
| 65 | ||
| 66 | { "http://docs.oasis-open.org/wsrf/rl-2", "DestroyResponse" }, | |
| 67 | &wsrl_DestroyResponseType_info, | |
| 68 | ||
| 69 | "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/DestroyRequest", | |
| 70 | ||
| 71 | "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/DestroyResponse", | |
| 72 | ||
| 73 | ||
| 74 | NotificationProducerTestPortType_l_Destroy_deserialize_fault | |
| 75 | ||
| 76 | }; | |
| 77 | ||
| 78 | ||
| 79 | static | |
| 80 | void | |
| 81 | NotificationProducerTestPortType_l_GetCurrentMessage_deserialize_fault( | |
| 82 | globus_soap_message_handle_t handle, | |
| 83 | const xsd_QName * fault_qname, | |
| 84 | int * fault_type); | |
| 85 | ||
| 86 | ||
| 87 | static | |
| 88 | globus_soap_client_operation_t NotificationProducerTestPortType_l_GetCurrentMessage_operation = | |
| 89 | { | |
| 90 | { "http://docs.oasis-open.org/wsn/b-2", "GetCurrentMessage" } , | |
| 91 | &wsnt_GetCurrentMessageType_info, | |
| 92 | ||
| 93 | { "http://docs.oasis-open.org/wsn/b-2", "GetCurrentMessageResponse" }, | |
| 94 | &wsnt_GetCurrentMessageResponseType_info, | |
| 95 | ||
| 96 | "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageRequest", | |
| 97 | ||
| 98 | "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/GetCurrentMessageResponse", | |
| 99 | ||
| 100 | ||
| 101 | NotificationProducerTestPortType_l_GetCurrentMessage_deserialize_fault | |
| 102 | ||
| 103 | }; | |
| 104 | ||
| 105 | ||
| 106 | static | |
| 107 | void | |
| 108 | NotificationProducerTestPortType_l_Subscribe_deserialize_fault( | |
| 109 | globus_soap_message_handle_t handle, | |
| 110 | const xsd_QName * fault_qname, | |
| 111 | int * fault_type); | |
| 112 | ||
| 113 | ||
| 114 | static | |
| 115 | globus_soap_client_operation_t NotificationProducerTestPortType_l_Subscribe_operation = | |
| 116 | { | |
| 117 | { "http://docs.oasis-open.org/wsn/b-2", "Subscribe" } , | |
| 118 | &wsnt_SubscribeType_info, | |
| 119 | ||
| 120 | { "http://docs.oasis-open.org/wsn/b-2", "SubscribeResponse" }, | |
| 121 | &wsnt_SubscribeResponseType_info, | |
| 122 | ||
| 123 | "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest", | |
| 124 | ||
| 125 | "http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeResponse", | |
| 126 | ||
| 127 | ||
| 128 | NotificationProducerTestPortType_l_Subscribe_deserialize_fault | |
| 129 | ||
| 130 | }; | |
| 131 | ||
| 132 | ||
| 133 | static | |
| 134 | void | |
| 135 | NotificationProducerTestPortType_l_SetResourceProperties_deserialize_fault( | |
| 136 | globus_soap_message_handle_t handle, | |
| 137 | const xsd_QName * fault_qname, | |
| 138 | int * fault_type); | |
| 139 | ||
| 140 | ||
| 141 | static | |
| 142 | globus_soap_client_operation_t NotificationProducerTestPortType_l_SetResourceProperties_operation = | |
| 143 | { | |
| 144 | { "http://docs.oasis-open.org/wsrf/rp-2", "SetResourceProperties" } , | |
| 145 | &wsrp_SetResourcePropertiesType_info, | |
| 146 | ||
| 147 | { "http://docs.oasis-open.org/wsrf/rp-2", "SetResourcePropertiesResponse" }, | |
| 148 | &wsrp_SetResourcePropertiesResponseType_info, | |
| 149 | ||
| 150 | "http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesRequest", | |
| 151 | ||
| 152 | "http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesResponse", | |
| 153 | ||
| 154 | ||
| 155 | NotificationProducerTestPortType_l_SetResourceProperties_deserialize_fault | |
| 156 | ||
| 157 | }; | |
| 158 | ||
| 159 | ||
| 160 | static | |
| 161 | void | |
| 162 | NotificationProducerTestPortType_l_GetResourceProperty_deserialize_fault( | |
| 163 | globus_soap_message_handle_t handle, | |
| 164 | const xsd_QName * fault_qname, | |
| 165 | int * fault_type); | |
| 166 | ||
| 167 | ||
| 168 | static | |
| 169 | globus_soap_client_operation_t NotificationProducerTestPortType_l_GetResourceProperty_operation = | |
| 170 | { | |
| 171 | { "http://docs.oasis-open.org/wsrf/rp-2", "GetResourceProperty" } , | |
| 172 | &xsd_QName_info, | |
| 173 | ||
| 174 | { "http://docs.oasis-open.org/wsrf/rp-2", "GetResourcePropertyResponse" }, | |
| 175 | &wsrp_GetResourcePropertyResponseType_info, | |
| 176 | ||
| 177 | "http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest", | |
| 178 | ||
| 179 | "http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse", | |
| 180 | ||
| 181 | ||
| 182 | NotificationProducerTestPortType_l_GetResourceProperty_deserialize_fault | |
| 183 | ||
| 184 | }; | |
| 185 | ||
| 186 | ||
| 187 | static | |
| 188 | void | |
| 189 | NotificationProducerTestPortType_l_SetTopicValue_deserialize_fault( | |
| 190 | globus_soap_message_handle_t handle, | |
| 191 | const xsd_QName * fault_qname, | |
| 192 | int * fault_type); | |
| 193 | ||
| 194 | ||
| 195 | static | |
| 196 | globus_soap_client_operation_t NotificationProducerTestPortType_l_SetTopicValue_operation = | |
| 197 | { | |
| 198 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "SetTopicValue" } , | |
| 199 | &nptest_SetTopicValueType_info, | |
| 200 | ||
| 201 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "SetTopicValueResponse" }, | |
| 202 | &xsd_anyType_info, | |
| 203 | ||
| 204 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/SetTopicValueRequest", | |
| 205 | ||
| 206 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/SetTopicValueResponse", | |
| 207 | ||
| 208 | ||
| 209 | NotificationProducerTestPortType_l_SetTopicValue_deserialize_fault | |
| 210 | ||
| 211 | }; | |
| 212 | ||
| 213 | ||
| 214 | static | |
| 215 | void | |
| 216 | NotificationProducerTestPortType_l_DestroyTopic_deserialize_fault( | |
| 217 | globus_soap_message_handle_t handle, | |
| 218 | const xsd_QName * fault_qname, | |
| 219 | int * fault_type); | |
| 220 | ||
| 221 | ||
| 222 | static | |
| 223 | globus_soap_client_operation_t NotificationProducerTestPortType_l_DestroyTopic_operation = | |
| 224 | { | |
| 225 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "DestroyTopic" } , | |
| 226 | &wsnt_TopicExpressionType_info, | |
| 227 | ||
| 228 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "DestroyTopicResponse" }, | |
| 229 | &xsd_anyType_info, | |
| 230 | ||
| 231 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/DestroyTopicRequest", | |
| 232 | ||
| 233 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/DestroyTopicResponse", | |
| 234 | ||
| 235 | ||
| 236 | NotificationProducerTestPortType_l_DestroyTopic_deserialize_fault | |
| 237 | ||
| 238 | }; | |
| 239 | ||
| 240 | ||
| 241 | static | |
| 242 | void | |
| 243 | NotificationProducerTestPortType_l_CreateTopic_deserialize_fault( | |
| 244 | globus_soap_message_handle_t handle, | |
| 245 | const xsd_QName * fault_qname, | |
| 246 | int * fault_type); | |
| 247 | ||
| 248 | ||
| 249 | static | |
| 250 | globus_soap_client_operation_t NotificationProducerTestPortType_l_CreateTopic_operation = | |
| 251 | { | |
| 252 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "CreateTopic" } , | |
| 253 | &nptest_CreateTopicType_info, | |
| 254 | ||
| 255 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "CreateTopicResponse" }, | |
| 256 | &xsd_anyType_info, | |
| 257 | ||
| 258 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/CreateTopicRequest", | |
| 259 | ||
| 260 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/CreateTopicResponse", | |
| 261 | ||
| 262 | ||
| 263 | NotificationProducerTestPortType_l_CreateTopic_deserialize_fault | |
| 264 | ||
| 265 | }; | |
| 266 | ||
| 267 | ||
| 268 | static | |
| 269 | void | |
| 270 | NotificationProducerTestPortType_l_CreateNotificationProducerTest_deserialize_fault( | |
| 271 | globus_soap_message_handle_t handle, | |
| 272 | const xsd_QName * fault_qname, | |
| 273 | int * fault_type); | |
| 274 | ||
| 275 | ||
| 276 | static | |
| 277 | globus_soap_client_operation_t NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation = | |
| 278 | { | |
| 279 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "CreateNotificationProducerTest" } , | |
| 280 | &xsd_anyType_info, | |
| 281 | ||
| 282 | { "http://www.globus.org/namespaces/2007/06/NotificationProducerTest", "CreateNotificationProducerTestResponse" }, | |
| 283 | &nptest_CreateNotificationProducerTestResponseType_info, | |
| 284 | ||
| 285 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/CreateNotificationProducerTestRequest", | |
| 286 | ||
| 287 | "http://www.globus.org/namespaces/2007/06/NotificationProducerTest/NotificationProducerTestPortType/CreateNotificationProducerTestResponse", | |
| 288 | ||
| 289 | ||
| 290 | NotificationProducerTestPortType_l_CreateNotificationProducerTest_deserialize_fault | |
| 291 | ||
| 292 | }; | |
| 293 | ||
| 294 | ||
| 295 | static | |
| 296 | int | |
| 297 | NotificationProducerTestService_l_client_module_activate() | |
| 298 | 36 | { |
| 299 | 36 | int res = 0; |
| 300 | 36 | globus_result_t result = GLOBUS_SUCCESS; |
| 301 | 36 | res = globus_module_activate(GLOBUS_SOAP_MESSAGE_MODULE); |
| 302 | 36 | if(res != GLOBUS_SUCCESS) |
| 303 | { | |
| 304 | 0 | return res; |
| 305 | } | |
| 306 | ||
| 307 | 36 | result = NotificationProducerTestService_registry_add_types(GLOBUS_GLOBAL_TYPE_REGISTRY); |
| 308 | 36 | if(result != GLOBUS_SUCCESS) |
| 309 | { | |
| 310 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 311 | result, "NotificationProducerTestService"); | |
| 312 | } | |
| 313 | ||
| 314 | ||
| 315 | 36 | globus_mutex_init(&NotificationProducerTestService_l_extensions_mutex, NULL); |
| 316 | ||
| 317 | 36 | return res; |
| 318 | } | |
| 319 | ||
| 320 | static | |
| 321 | void | |
| 322 | NotificationProducerTestService_l_extension_destroy( | |
| 323 | void * sym) | |
| 324 | 36 | { |
| 325 | 36 | char * symbol = (char *) sym; |
| 326 | ||
| 327 | 36 | globus_extension_deactivate(symbol); |
| 328 | 36 | globus_free(symbol); |
| 329 | 36 | } |
| 330 | ||
| 331 | static | |
| 332 | int | |
| 333 | NotificationProducerTestService_l_client_module_deactivate() | |
| 334 | 36 | { |
| 335 | 36 | int res = 0; |
| 336 | ||
| 337 | 36 | globus_module_deactivate(GLOBUS_SOAP_MESSAGE_MODULE); |
| 338 | ||
| 339 | 36 | globus_mutex_lock(&NotificationProducerTestService_l_extensions_mutex); |
| 340 | 36 | globus_list_destroy_all( |
| 341 | NotificationProducerTestService_l_extensions, | |
| 342 | NotificationProducerTestService_l_extension_destroy); | |
| 343 | 36 | NotificationProducerTestService_l_extensions = NULL; |
| 344 | 36 | globus_mutex_unlock(&NotificationProducerTestService_l_extensions_mutex); |
| 345 | 36 | globus_mutex_destroy(&NotificationProducerTestService_l_extensions_mutex); |
| 346 | ||
| 347 | 36 | return res; |
| 348 | } | |
| 349 | ||
| 350 | /** | |
| 351 | * Initialize a client handle | |
| 352 | * @ingroup NotificationProducerTestService_client_handle | |
| 353 | * Initialize new client handle state for use with operation-related functions. | |
| 354 | * | |
| 355 | * @param handle | |
| 356 | * Pointer to the handle to initialize. | |
| 357 | * @param attrs | |
| 358 | * Default attributes to use with this handle. This parameter may be NULL. | |
| 359 | * Certain atttributes may cause different handlers to be pushed onto the | |
| 360 | * default handler chain for this client. | |
| 361 | * @param handlers | |
| 362 | * Handle chain to use with this handle. This parameter may be NULL. | |
| 363 | * Typically the default handler chain used by this function is sufficient. | |
| 364 | */ | |
| 365 | globus_result_t | |
| 366 | NotificationProducerTestService_client_init( | |
| 367 | NotificationProducerTestService_client_handle_t * handle, | |
| 368 | globus_soap_message_attr_t attrs, | |
| 369 | globus_handler_chain_t chain) | |
| 370 | 36 | { |
| 371 | 36 | NotificationProducerTestService_client_handle_t client_handle = NULL; |
| 372 | 36 | globus_result_t result = GLOBUS_SUCCESS; |
| 373 | 36 | globus_handler_chain_t tmp_chain = NULL; |
| 374 | GlobusFuncName(NotificationProducerTestService_client_init); | |
| 375 | 36 | GlobusSoapMessageDebugEnter(); |
| 376 | ||
| 377 | 36 | if (chain == NULL) |
| 378 | { | |
| 379 | 36 | globus_handler_chain_init(&tmp_chain); |
| 380 | ||
| 381 | 36 | if(attrs && |
| 382 | ((int)globus_soap_message_attr_get( | |
| 383 | attrs, | |
| 384 | GLOBUS_SOAP_MESSAGE_AUTHENTICATION_METHOD_KEY)) == | |
| 385 | GLOBUS_SOAP_MESSAGE_AUTH_SECURE_MESSAGE) | |
| 386 | { | |
| 387 | 0 | result = globus_extension_activate( |
| 388 | "globus_handler_ws_secure_message"); | |
| 389 | 0 | if(result != GLOBUS_SUCCESS) |
| 390 | { | |
| 391 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 392 | result, "NotificationProducerTestPortType_CreateNotificationProducerTest"); | |
| 393 | 0 | goto error; |
| 394 | } | |
| 395 | ||
| 396 | 0 | globus_mutex_lock(&NotificationProducerTestService_l_extensions_mutex); |
| 397 | 0 | globus_list_insert( |
| 398 | &NotificationProducerTestService_l_extensions, | |
| 399 | strdup("globus_handler_ws_secure_message")); | |
| 400 | 0 | globus_mutex_unlock(&NotificationProducerTestService_l_extensions_mutex); |
| 401 | ||
| 402 | 0 | result = globus_handler_chain_push( |
| 403 | tmp_chain, | |
| 404 | GLOBUS_HANDLER_TYPE_ALL, | |
| 405 | "globus_handler_ws_secure_message_client"); | |
| 406 | 0 | if(result != GLOBUS_SUCCESS) |
| 407 | { | |
| 408 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 409 | result, "NotificationProducerTestPortType_CreateNotificationProducerTest"); | |
| 410 | 0 | goto error; |
| 411 | } | |
| 412 | } | |
| 413 | ||
| 414 | 36 | result = globus_extension_activate(GLOBUS_HANDLER_WS_ADDRESSING_LIB); |
| 415 | 36 | if(result != GLOBUS_SUCCESS) |
| 416 | { | |
| 417 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 418 | result, "NotificationProducerTestPortType_CreateNotificationProducerTest"); | |
| 419 | 0 | goto error; |
| 420 | } | |
| 421 | ||
| 422 | 36 | globus_mutex_lock(&NotificationProducerTestService_l_extensions_mutex); |
| 423 | 36 | globus_list_insert( |
| 424 | &NotificationProducerTestService_l_extensions, | |
| 425 | strdup(GLOBUS_HANDLER_WS_ADDRESSING_LIB)); | |
| 426 | 36 | globus_mutex_unlock(&NotificationProducerTestService_l_extensions_mutex); |
| 427 | ||
| 428 | 36 | result = globus_handler_chain_push( |
| 429 | tmp_chain, | |
| 430 | GLOBUS_HANDLER_TYPE_REQUEST_ALL, | |
| 431 | GLOBUS_HANDLER_WS_ADDRESSING_CLIENT); | |
| 432 | 36 | if(result != GLOBUS_SUCCESS) |
| 433 | { | |
| 434 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 435 | result, "NotificationProducerTestPortType_CreateNotificationProducerTest"); | |
| 436 | 0 | goto error; |
| 437 | } | |
| 438 | ||
| 439 | 36 | result = globus_handler_chain_push( |
| 440 | tmp_chain, | |
| 441 | GLOBUS_HANDLER_TYPE_RESPONSE_ALL, | |
| 442 | GLOBUS_HANDLER_WS_ADDRESSING_CLIENT); | |
| 443 | 36 | if(result != GLOBUS_SUCCESS) |
| 444 | { | |
| 445 | 0 | result = GlobusSoapMessageErrorFailedClientInit( |
| 446 | result, "NotificationProducerTestPortType_CreateNotificationProducerTest"); | |
| 447 | 0 | goto error; |
| 448 | } | |
| 449 | ||
| 450 | 36 | chain = tmp_chain; |
| 451 | } | |
| 452 | ||
| 453 | 36 | result = globus_soap_client_handle_init( |
| 454 | handle, | |
| 455 | attrs, | |
| 456 | chain); | |
| 457 | ||
| 458 | 36 | GlobusSoapMessageDebugExit(); |
| 459 | 36 | return result; |
| 460 | ||
| 461 | 0 | error: |
| 462 | 0 | if (tmp_chain != NULL) |
| 463 | { | |
| 464 | 0 | globus_handler_chain_destroy(tmp_chain); |
| 465 | } | |
| 466 | 0 | if (client_handle != NULL) |
| 467 | { | |
| 468 | 0 | globus_free(client_handle); |
| 469 | } | |
| 470 | 0 | GlobusSoapMessageDebugExit(); |
| 471 | 0 | return result; |
| 472 | } | |
| 473 | /* NotificationProducerTestService_client_init() */ | |
| 474 | ||
| 475 | /** | |
| 476 | * Destroy a client handle | |
| 477 | * @ingroup NotificationProducerTestService_client_handle | |
| 478 | * | |
| 479 | * Destroys the state associated with this client handle. | |
| 480 | * | |
| 481 | * @param handle | |
| 482 | * Handle to destroy. | |
| 483 | */ | |
| 484 | void | |
| 485 | NotificationProducerTestService_client_destroy( | |
| 486 | NotificationProducerTestService_client_handle_t handle) | |
| 487 | 0 | { |
| 488 | 0 | globus_soap_client_handle_destroy(handle); |
| 489 | 0 | } |
| 490 | ||
| 491 | /** | |
| 492 | * Cancel the current operation associated with this handle. | |
| 493 | * @ingroup NotificationProducerTestService_client_handle | |
| 494 | * | |
| 495 | * @param handle | |
| 496 | * Handle which has the operation to cancel. | |
| 497 | */ | |
| 498 | globus_result_t | |
| 499 | NotificationProducerTestService_client_operation_cancel( | |
| 500 | NotificationProducerTestService_client_handle_t handle) | |
| 501 | 0 | { |
| 502 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 503 | GlobusFuncName(NotificationProducerTestService_client_message_cancel); | |
| 504 | 0 | GlobusSoapMessageDebugEnter(); |
| 505 | ||
| 506 | 0 | result = globus_soap_client_operation_cancel(handle); |
| 507 | ||
| 508 | 0 | return result; |
| 509 | } | |
| 510 | ||
| 511 | /** | |
| 512 | * Get handle's handler chain | |
| 513 | * @ingroup NotificationProducerTestService_client_handle | |
| 514 | * | |
| 515 | * The handler chain contains information about which handlers (typically | |
| 516 | * SOAP header processors) will be invoked when a request is sent or a | |
| 517 | * response is received. Applications which want to add custom handlers at | |
| 518 | * run time may wish to push additional handlers onto this chain. | |
| 519 | * | |
| 520 | * @param handle | |
| 521 | * The handle to query. | |
| 522 | * @param handlers | |
| 523 | * A pointer to a handler chain which will be set to the handle's | |
| 524 | * chain. | |
| 525 | */ | |
| 526 | globus_result_t | |
| 527 | NotificationProducerTestService_client_get_handler_chain( | |
| 528 | NotificationProducerTestService_client_handle_t handle, | |
| 529 | globus_handler_chain_t * handlers) | |
| 530 | 0 | { |
| 531 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 532 | GlobusFuncName(NotificationProducerTestService_client_get_handle_chain); | |
| 533 | 0 | GlobusSoapMessageDebugEnter(); |
| 534 | ||
| 535 | 0 | result = globus_soap_client_handle_get_handler_chain(handle, handlers); |
| 536 | ||
| 537 | 0 | GlobusSoapMessageDebugExit(); |
| 538 | 0 | return result; |
| 539 | } | |
| 540 | ||
| 541 | /** | |
| 542 | * Set a SOAP attribute on a handle | |
| 543 | * @ingroup NotificationProducerTestService_client_handle | |
| 544 | * | |
| 545 | * Set a SOAP attribute on a handle. This can be used to change how | |
| 546 | * the SOAP engine will process operations sent via this handle. | |
| 547 | * | |
| 548 | * @param handle | |
| 549 | * The handle to modify. | |
| 550 | * @param prop_name | |
| 551 | * The attribute name. This should be one of the | |
| 552 | * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values. | |
| 553 | * @param copy | |
| 554 | * A function to copy the value. This is required if @a value will go | |
| 555 | * out of scope. | |
| 556 | * @param destroy | |
| 557 | * A function to destroy a copy of the value. Required if @a copy is set. | |
| 558 | * @param value | |
| 559 | * The new value of the attribute. | |
| 560 | */ | |
| 561 | globus_result_t | |
| 562 | NotificationProducerTestService_client_attr_set( | |
| 563 | NotificationProducerTestService_client_handle_t handle, | |
| 564 | const char * prop_name, | |
| 565 | globus_soap_message_attr_copy_func_t copy, | |
| 566 | globus_soap_message_attr_destroy_func_t destroy, | |
| 567 | void * value) | |
| 568 | 0 | { |
| 569 | 0 | return globus_soap_client_handle_attr_set( |
| 570 | handle, | |
| 571 | prop_name, | |
| 572 | copy, | |
| 573 | destroy, | |
| 574 | value); | |
| 575 | } | |
| 576 | ||
| 577 | /** | |
| 578 | * Remove a SOAP attribute from a handle | |
| 579 | * @ingroup NotificationProducerTestService_client_handle | |
| 580 | * | |
| 581 | * Remove a SOAP attribute on a handle. This can be used to change how | |
| 582 | * the SOAP engine will process operations sent via this handle. | |
| 583 | * | |
| 584 | * @param handle | |
| 585 | * The handle to modify. | |
| 586 | * @param prop_name | |
| 587 | * The attribute name. This should be one of the | |
| 588 | * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values. | |
| 589 | * | |
| 590 | * @return | |
| 591 | * This function returns the current value of the attribute. | |
| 592 | */ | |
| 593 | void * | |
| 594 | NotificationProducerTestService_client_attr_remove( | |
| 595 | NotificationProducerTestService_client_handle_t handle, | |
| 596 | const char * prop_name) | |
| 597 | 0 | { |
| 598 | 0 | return globus_soap_client_handle_attr_remove( |
| 599 | handle, | |
| 600 | prop_name); | |
| 601 | } | |
| 602 | ||
| 603 | /** | |
| 604 | * Get a SOAP attribute from a handle | |
| 605 | * @ingroup NotificationProducerTestService_client_handle | |
| 606 | * | |
| 607 | * Get the current value of a SOAP attribute set on a handle. | |
| 608 | * | |
| 609 | * @param handle | |
| 610 | * The handle to query. | |
| 611 | * @param prop_name | |
| 612 | * The attribute name. This should be one of the | |
| 613 | * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values. | |
| 614 | * | |
| 615 | * @return | |
| 616 | * This function returns the current value of the attribute. | |
| 617 | */ | |
| 618 | void * | |
| 619 | NotificationProducerTestService_client_attr_get( | |
| 620 | NotificationProducerTestService_client_handle_t handle, | |
| 621 | const char * prop_name) | |
| 622 | 0 | { |
| 623 | 0 | return globus_soap_client_handle_attr_get( |
| 624 | handle, | |
| 625 | prop_name); | |
| 626 | } | |
| 627 | ||
| 628 | ||
| 629 | ||
| 630 | /** | |
| 631 | * Nonblocking operation request with EPR | |
| 632 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 633 | * Begin sending a request for the <code>Destroy</code> operation on a | |
| 634 | * resource handled by the service named by the @a epr. When the operation | |
| 635 | * request has been sent, the @a callback function will be invoked. | |
| 636 | * | |
| 637 | * @param client_handle | |
| 638 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 639 | * contains the state related to processing this operation. | |
| 640 | * @param epr | |
| 641 | * Endpoint Reference of the service and resource which will process | |
| 642 | * the operation. | |
| 643 | * @param input | |
| 644 | * Input parameter to the operation. | |
| 645 | * @param callback | |
| 646 | * Callback function which will be called once the request has been | |
| 647 | * sent | |
| 648 | * @param callback_arg | |
| 649 | * Application-specific pointer which will be passed to the callback. | |
| 650 | */ | |
| 651 | globus_result_t | |
| 652 | NotificationProducerTestPortType_Destroy_epr_register_request( | |
| 653 | NotificationProducerTestService_client_handle_t client_handle, | |
| 654 | const wsa_EndpointReferenceType * epr, | |
| 655 | const wsrl_DestroyType * input, | |
| 656 | NotificationProducerTestPortType_Destroy_request_callback_func_t callback, | |
| 657 | void * callback_arg) | |
| 658 | 0 | { |
| 659 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 660 | ||
| 661 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 662 | 0 | globus_assert_string(epr->Address.base_value, |
| 663 | "NULL EndpointReference Address"); | |
| 664 | ||
| 665 | 0 | result = globus_soap_client_handle_attr_set( |
| 666 | client_handle, | |
| 667 | WSADDR_EPR_KEY, | |
| 668 | wsa_EndpointReferenceType_info.copy, | |
| 669 | wsa_EndpointReferenceType_info.destroy, | |
| 670 | (void *) epr); | |
| 671 | ||
| 672 | 0 | if (result != GLOBUS_SUCCESS) |
| 673 | { | |
| 674 | 0 | goto out; |
| 675 | } | |
| 676 | ||
| 677 | 0 | result = globus_soap_client_register_request( |
| 678 | client_handle, | |
| 679 | epr->Address.base_value, | |
| 680 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 681 | (void *) input, | |
| 682 | callback, | |
| 683 | callback_arg); | |
| 684 | ||
| 685 | 0 | out: |
| 686 | 0 | return result; |
| 687 | } | |
| 688 | ||
| 689 | /** | |
| 690 | * Nonblocking operation request | |
| 691 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 692 | * Begin sending a request for the <code>Destroy</code> operation to | |
| 693 | * the service at @a endpoint. When the operation | |
| 694 | * request has been sent, the @a callback function will be invoked. | |
| 695 | * @param handle | |
| 696 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 697 | * contains the state related to processing this operation. | |
| 698 | * @param endpoint | |
| 699 | * URI of the service endpoint to send the request to. | |
| 700 | * @param input | |
| 701 | * Input parameter to the operation. | |
| 702 | * @param callback | |
| 703 | * Callback function which will be called once the request has been | |
| 704 | * sent | |
| 705 | * @param callback_arg | |
| 706 | * Application-specific pointer which will be passed to the callback. | |
| 707 | */ | |
| 708 | globus_result_t | |
| 709 | NotificationProducerTestPortType_Destroy_register_request( | |
| 710 | NotificationProducerTestService_client_handle_t client_handle, | |
| 711 | const char * endpoint, | |
| 712 | const wsrl_DestroyType * input, | |
| 713 | NotificationProducerTestPortType_Destroy_request_callback_func_t callback, | |
| 714 | void * callback_arg) | |
| 715 | 0 | { |
| 716 | 0 | return globus_soap_client_register_request( |
| 717 | client_handle, | |
| 718 | endpoint, | |
| 719 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 720 | (void *) input, | |
| 721 | callback, | |
| 722 | callback_arg); | |
| 723 | } | |
| 724 | ||
| 725 | ||
| 726 | ||
| 727 | static | |
| 728 | void | |
| 729 | NotificationProducerTestPortType_l_Destroy_deserialize_fault( | |
| 730 | globus_soap_message_handle_t handle, | |
| 731 | const xsd_QName * fault_qname, | |
| 732 | int * fault_type) | |
| 733 | 0 | { |
| 734 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROY_NOFAULT; |
| 735 | ||
| 736 | 0 | if(fault_qname) |
| 737 | { | |
| 738 | 0 | if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) || |
| 739 | fault_qname == (&wsr_ResourceUnknownFault_qname)) | |
| 740 | { | |
| 741 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROY_RESOURCEUNKNOWNFAULT; |
| 742 | } | |
| 743 | 0 | else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) || |
| 744 | fault_qname == (&wsr_ResourceUnavailableFault_qname)) | |
| 745 | { | |
| 746 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROY_RESOURCEUNAVAILABLEFAULT; |
| 747 | } | |
| 748 | 0 | else if(fault_qname == (&wsrl_ResourceNotDestroyedFaultType_qname) || |
| 749 | fault_qname == (&wsrl_ResourceNotDestroyedFault_qname)) | |
| 750 | { | |
| 751 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROY_RESOURCENOTDESTROYEDFAULT; |
| 752 | } | |
| 753 | else | |
| 754 | { | |
| 755 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROY_UNKNOWN_FAULT; |
| 756 | } | |
| 757 | } | |
| 758 | 0 | } |
| 759 | /* NotificationProducerTestPortType_l_Destroy_deserialize_fault() */ | |
| 760 | ||
| 761 | /** | |
| 762 | * Nonblocking operation response handling | |
| 763 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 764 | * Begin parsing the request for the <code>Destroy</code> operation begun | |
| 765 | * by an earlier call to | |
| 766 | * NotificationProducerTestPortType_Destroy_register_request() or | |
| 767 | * NotificationProducerTestPortType_Destroy_epr_register_request(). Once the response has been parsed. | |
| 768 | * the @a callback function will be called to pass the result of the operation | |
| 769 | * to the application. | |
| 770 | * | |
| 771 | * @param client_handle | |
| 772 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 773 | * contains the state related to processing this operation. | |
| 774 | * @param callback | |
| 775 | * Callback function which will be called once the response has been | |
| 776 | * processed. | |
| 777 | * @param callback_arg | |
| 778 | * Application-specific pointer which will be passed to the callback. | |
| 779 | */ | |
| 780 | globus_result_t | |
| 781 | NotificationProducerTestPortType_Destroy_register_response( | |
| 782 | NotificationProducerTestService_client_handle_t client_handle, | |
| 783 | NotificationProducerTestPortType_Destroy_response_callback_func_t callback, | |
| 784 | void * callback_arg) | |
| 785 | 0 | { |
| 786 | 0 | return globus_soap_client_register_response( |
| 787 | client_handle, | |
| 788 | (globus_soap_client_response_callback_func_t) callback, | |
| 789 | callback_arg); | |
| 790 | } | |
| 791 | ||
| 792 | /** | |
| 793 | * Nonblocking operation invocation with EPR | |
| 794 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 795 | * | |
| 796 | * Begin processing a request for the Destroy operation. The operation will | |
| 797 | * sent to the service named by the @a epr and after the response is received, | |
| 798 | * the @a callback function will be invoked. | |
| 799 | * | |
| 800 | * @param handle | |
| 801 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 802 | * contains the state related to processing this operation. | |
| 803 | * @param epr | |
| 804 | * Endpoint Reference of the service and resource which will process | |
| 805 | * the operation. | |
| 806 | * @param input | |
| 807 | * Input parameter to the operation. | |
| 808 | * @param callback | |
| 809 | * Callback function which will be called once the operation has been | |
| 810 | * processed. | |
| 811 | * @param callback_arg | |
| 812 | * Application-specific pointer which will be passed to the callback. | |
| 813 | */ | |
| 814 | globus_result_t | |
| 815 | NotificationProducerTestPortType_Destroy_epr_register( | |
| 816 | NotificationProducerTestService_client_handle_t handle, | |
| 817 | const wsa_EndpointReferenceType * epr, | |
| 818 | const wsrl_DestroyType * input, | |
| 819 | NotificationProducerTestPortType_Destroy_response_callback_func_t callback, | |
| 820 | void * callback_arg) | |
| 821 | 0 | { |
| 822 | globus_result_t result; | |
| 823 | ||
| 824 | 0 | result = globus_soap_client_handle_attr_set( |
| 825 | handle, | |
| 826 | WSADDR_EPR_KEY, | |
| 827 | wsa_EndpointReferenceType_info.copy, | |
| 828 | wsa_EndpointReferenceType_info.destroy, | |
| 829 | (void *) epr); | |
| 830 | ||
| 831 | 0 | if (result != GLOBUS_SUCCESS) |
| 832 | { | |
| 833 | 0 | goto out; |
| 834 | } | |
| 835 | ||
| 836 | 0 | result = globus_soap_client_operation_register( |
| 837 | handle, | |
| 838 | epr->Address.base_value, | |
| 839 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 840 | (void *) input, | |
| 841 | (globus_soap_client_response_callback_func_t) callback, | |
| 842 | callback_arg); | |
| 843 | 0 | out: |
| 844 | 0 | return result; |
| 845 | } | |
| 846 | ||
| 847 | /** | |
| 848 | * Nonblocking operation invocation | |
| 849 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 850 | * | |
| 851 | * Begin processing a request for the Destroy operation. The operation will | |
| 852 | * sent to the service located at @a endpoint and after the response is | |
| 853 | * received, the @a callback function will be invoked. | |
| 854 | * | |
| 855 | * @param handle | |
| 856 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 857 | * contains the state related to processing this operation. | |
| 858 | * @param endpoint | |
| 859 | * URI of the service endpoint to send the request to. | |
| 860 | * @param input | |
| 861 | * Input parameter to the operation. | |
| 862 | * @param callback | |
| 863 | * Callback function which will be called once the operation has been | |
| 864 | * processed. | |
| 865 | * @param callback_arg | |
| 866 | * Application-specific pointer which will be passed to the callback. | |
| 867 | */ | |
| 868 | globus_result_t | |
| 869 | NotificationProducerTestPortType_Destroy_register( | |
| 870 | NotificationProducerTestService_client_handle_t handle, | |
| 871 | const char * endpoint, | |
| 872 | const wsrl_DestroyType * input, | |
| 873 | NotificationProducerTestPortType_Destroy_response_callback_func_t callback, | |
| 874 | void * callback_arg) | |
| 875 | 0 | { |
| 876 | 0 | return globus_soap_client_operation_register( |
| 877 | handle, | |
| 878 | endpoint, | |
| 879 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 880 | (void *) input, | |
| 881 | (globus_soap_client_response_callback_func_t) callback, | |
| 882 | callback_arg); | |
| 883 | } | |
| 884 | ||
| 885 | ||
| 886 | ||
| 887 | /** | |
| 888 | * Blocking operation invocation with EPR | |
| 889 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 890 | * | |
| 891 | * Request that an the Destroy operation be invoked by the service and | |
| 892 | * resource named by the @a epr parameter. | |
| 893 | ||
| 894 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 895 | * @a output parameter will be set to the result of the operation. | |
| 896 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 897 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 898 | * error occurred, and the result's error type should be checked. | |
| 899 | ||
| 900 | * | |
| 901 | * @param handle | |
| 902 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 903 | * contains the state related to processing this operation. | |
| 904 | * @param epr | |
| 905 | * Endpoint Reference of the service and resource which will process | |
| 906 | * the operation. | |
| 907 | * @param input | |
| 908 | * Input parameter to the operation. | |
| 909 | ||
| 910 | * @param output | |
| 911 | * The output of the operation, if the operation succeeded. | |
| 912 | * @param fault_type | |
| 913 | * The type of fault sent as a result of the operation, if the operation | |
| 914 | * failed. If the operation succeeded, this will be NULL. | |
| 915 | * @param fault | |
| 916 | * The fault element which was received, if the operation failed. | |
| 917 | * If the operation succeeded, this will be NULL. | |
| 918 | ||
| 919 | */ | |
| 920 | globus_result_t | |
| 921 | NotificationProducerTestPortType_Destroy_epr( | |
| 922 | NotificationProducerTestService_client_handle_t handle, | |
| 923 | const wsa_EndpointReferenceType * epr, | |
| 924 | const wsrl_DestroyType * input, | |
| 925 | wsrl_DestroyResponseType * * output, | |
| 926 | NotificationProducerTestPortType_Destroy_fault_t * fault_type, | |
| 927 | xsd_any * * fault) | |
| 928 | 0 | { |
| 929 | globus_result_t result; | |
| 930 | ||
| 931 | 0 | result = globus_soap_client_handle_attr_set( |
| 932 | handle, | |
| 933 | WSADDR_EPR_KEY, | |
| 934 | wsa_EndpointReferenceType_info.copy, | |
| 935 | wsa_EndpointReferenceType_info.destroy, | |
| 936 | (void *) epr); | |
| 937 | ||
| 938 | 0 | if (result != GLOBUS_SUCCESS) |
| 939 | { | |
| 940 | 0 | goto out; |
| 941 | } | |
| 942 | 0 | result = globus_soap_client_operation( |
| 943 | handle, | |
| 944 | epr->Address.base_value, | |
| 945 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 946 | (void *) input, | |
| 947 | ||
| 948 | (void **) output, | |
| 949 | (int *) fault_type, | |
| 950 | fault | |
| 951 | ); | |
| 952 | 0 | out: |
| 953 | 0 | return result; |
| 954 | } | |
| 955 | ||
| 956 | /** | |
| 957 | * Blocking operation invocation | |
| 958 | * @ingroup NotificationProducerTestPortType_Destroy_operation | |
| 959 | * | |
| 960 | * Request that an the Destroy operation be invoked by the service at | |
| 961 | * @a endpoint. | |
| 962 | ||
| 963 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 964 | * @a output parameter will be set to the result of the operation. | |
| 965 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 966 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 967 | * error occurred, and the result's error type should be checked. | |
| 968 | ||
| 969 | * | |
| 970 | * @param handle | |
| 971 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 972 | * contains the state related to processing this operation. | |
| 973 | * @param endpoint | |
| 974 | * URI of the service endpoint to send the request to. | |
| 975 | * @param input | |
| 976 | * Input parameter to the operation. | |
| 977 | ||
| 978 | * @param output | |
| 979 | * The output of the operation, if the operation succeeded. | |
| 980 | * @param fault_type | |
| 981 | * The type of fault sent as a result of the operation, if the operation | |
| 982 | * failed. If the operation succeeded, this will be NULL. | |
| 983 | * @param fault | |
| 984 | * The fault element which was received, if the operation failed. | |
| 985 | * If the operation succeeded, this will be NULL. | |
| 986 | ||
| 987 | */ | |
| 988 | globus_result_t | |
| 989 | NotificationProducerTestPortType_Destroy( | |
| 990 | NotificationProducerTestService_client_handle_t handle, | |
| 991 | const char * endpoint, | |
| 992 | const wsrl_DestroyType * input, | |
| 993 | wsrl_DestroyResponseType * * output, | |
| 994 | NotificationProducerTestPortType_Destroy_fault_t * fault_type, | |
| 995 | xsd_any * * fault) | |
| 996 | 0 | { |
| 997 | 0 | return globus_soap_client_operation( |
| 998 | handle, | |
| 999 | endpoint, | |
| 1000 | &NotificationProducerTestPortType_l_Destroy_operation, | |
| 1001 | (void *) input, | |
| 1002 | ||
| 1003 | (void *) output, | |
| 1004 | (int *) fault_type, | |
| 1005 | fault | |
| 1006 | ); | |
| 1007 | } | |
| 1008 | ||
| 1009 | ||
| 1010 | /** | |
| 1011 | * Nonblocking operation request with EPR | |
| 1012 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1013 | * Begin sending a request for the <code>GetCurrentMessage</code> operation on a | |
| 1014 | * resource handled by the service named by the @a epr. When the operation | |
| 1015 | * request has been sent, the @a callback function will be invoked. | |
| 1016 | * | |
| 1017 | * @param client_handle | |
| 1018 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1019 | * contains the state related to processing this operation. | |
| 1020 | * @param epr | |
| 1021 | * Endpoint Reference of the service and resource which will process | |
| 1022 | * the operation. | |
| 1023 | * @param input | |
| 1024 | * Input parameter to the operation. | |
| 1025 | * @param callback | |
| 1026 | * Callback function which will be called once the request has been | |
| 1027 | * sent | |
| 1028 | * @param callback_arg | |
| 1029 | * Application-specific pointer which will be passed to the callback. | |
| 1030 | */ | |
| 1031 | globus_result_t | |
| 1032 | NotificationProducerTestPortType_GetCurrentMessage_epr_register_request( | |
| 1033 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1034 | const wsa_EndpointReferenceType * epr, | |
| 1035 | const wsnt_GetCurrentMessageType * input, | |
| 1036 | NotificationProducerTestPortType_GetCurrentMessage_request_callback_func_t callback, | |
| 1037 | void * callback_arg) | |
| 1038 | 0 | { |
| 1039 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 1040 | ||
| 1041 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 1042 | 0 | globus_assert_string(epr->Address.base_value, |
| 1043 | "NULL EndpointReference Address"); | |
| 1044 | ||
| 1045 | 0 | result = globus_soap_client_handle_attr_set( |
| 1046 | client_handle, | |
| 1047 | WSADDR_EPR_KEY, | |
| 1048 | wsa_EndpointReferenceType_info.copy, | |
| 1049 | wsa_EndpointReferenceType_info.destroy, | |
| 1050 | (void *) epr); | |
| 1051 | ||
| 1052 | 0 | if (result != GLOBUS_SUCCESS) |
| 1053 | { | |
| 1054 | 0 | goto out; |
| 1055 | } | |
| 1056 | ||
| 1057 | 0 | result = globus_soap_client_register_request( |
| 1058 | client_handle, | |
| 1059 | epr->Address.base_value, | |
| 1060 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1061 | (void *) input, | |
| 1062 | callback, | |
| 1063 | callback_arg); | |
| 1064 | ||
| 1065 | 0 | out: |
| 1066 | 0 | return result; |
| 1067 | } | |
| 1068 | ||
| 1069 | /** | |
| 1070 | * Nonblocking operation request | |
| 1071 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1072 | * Begin sending a request for the <code>GetCurrentMessage</code> operation to | |
| 1073 | * the service at @a endpoint. When the operation | |
| 1074 | * request has been sent, the @a callback function will be invoked. | |
| 1075 | * @param handle | |
| 1076 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1077 | * contains the state related to processing this operation. | |
| 1078 | * @param endpoint | |
| 1079 | * URI of the service endpoint to send the request to. | |
| 1080 | * @param input | |
| 1081 | * Input parameter to the operation. | |
| 1082 | * @param callback | |
| 1083 | * Callback function which will be called once the request has been | |
| 1084 | * sent | |
| 1085 | * @param callback_arg | |
| 1086 | * Application-specific pointer which will be passed to the callback. | |
| 1087 | */ | |
| 1088 | globus_result_t | |
| 1089 | NotificationProducerTestPortType_GetCurrentMessage_register_request( | |
| 1090 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1091 | const char * endpoint, | |
| 1092 | const wsnt_GetCurrentMessageType * input, | |
| 1093 | NotificationProducerTestPortType_GetCurrentMessage_request_callback_func_t callback, | |
| 1094 | void * callback_arg) | |
| 1095 | 0 | { |
| 1096 | 0 | return globus_soap_client_register_request( |
| 1097 | client_handle, | |
| 1098 | endpoint, | |
| 1099 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1100 | (void *) input, | |
| 1101 | callback, | |
| 1102 | callback_arg); | |
| 1103 | } | |
| 1104 | ||
| 1105 | ||
| 1106 | ||
| 1107 | static | |
| 1108 | void | |
| 1109 | NotificationProducerTestPortType_l_GetCurrentMessage_deserialize_fault( | |
| 1110 | globus_soap_message_handle_t handle, | |
| 1111 | const xsd_QName * fault_qname, | |
| 1112 | int * fault_type) | |
| 1113 | 9 | { |
| 1114 | 9 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_NOFAULT; |
| 1115 | ||
| 1116 | 9 | if(fault_qname) |
| 1117 | { | |
| 1118 | 9 | if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) || |
| 1119 | fault_qname == (&wsr_ResourceUnknownFault_qname)) | |
| 1120 | { | |
| 1121 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_RESOURCEUNKNOWNFAULT; |
| 1122 | } | |
| 1123 | 12 | else if(fault_qname == (&wsnt_TopicExpressionDialectUnknownFaultType_qname) || |
| 1124 | fault_qname == (&wsnt_TopicExpressionDialectUnknownFault_qname)) | |
| 1125 | { | |
| 1126 | 3 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_TOPICEXPRESSIONDIALECTUNKNOWNFAULT; |
| 1127 | } | |
| 1128 | 9 | else if(fault_qname == (&wsnt_NoCurrentMessageOnTopicFaultType_qname) || |
| 1129 | fault_qname == (&wsnt_NoCurrentMessageOnTopicFault_qname)) | |
| 1130 | { | |
| 1131 | 3 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_NOCURRENTMESSAGEONTOPICFAULT; |
| 1132 | } | |
| 1133 | 3 | else if(fault_qname == (&wsnt_InvalidTopicExpressionFaultType_qname) || |
| 1134 | fault_qname == (&wsnt_InvalidTopicExpressionFault_qname)) | |
| 1135 | { | |
| 1136 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_INVALIDTOPICEXPRESSIONFAULT; |
| 1137 | } | |
| 1138 | 6 | else if(fault_qname == (&wsnt_TopicNotSupportedFaultType_qname) || |
| 1139 | fault_qname == (&wsnt_TopicNotSupportedFault_qname)) | |
| 1140 | { | |
| 1141 | 3 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_TOPICNOTSUPPORTEDFAULT; |
| 1142 | } | |
| 1143 | 0 | else if(fault_qname == (&wsnt_MultipleTopicsSpecifiedFaultType_qname) || |
| 1144 | fault_qname == (&wsnt_MultipleTopicsSpecifiedFault_qname)) | |
| 1145 | { | |
| 1146 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_MULTIPLETOPICSSPECIFIEDFAULT; |
| 1147 | } | |
| 1148 | else | |
| 1149 | { | |
| 1150 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETCURRENTMESSAGE_UNKNOWN_FAULT; |
| 1151 | } | |
| 1152 | } | |
| 1153 | 9 | } |
| 1154 | /* NotificationProducerTestPortType_l_GetCurrentMessage_deserialize_fault() */ | |
| 1155 | ||
| 1156 | /** | |
| 1157 | * Nonblocking operation response handling | |
| 1158 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1159 | * Begin parsing the request for the <code>GetCurrentMessage</code> operation begun | |
| 1160 | * by an earlier call to | |
| 1161 | * NotificationProducerTestPortType_GetCurrentMessage_register_request() or | |
| 1162 | * NotificationProducerTestPortType_GetCurrentMessage_epr_register_request(). Once the response has been parsed. | |
| 1163 | * the @a callback function will be called to pass the result of the operation | |
| 1164 | * to the application. | |
| 1165 | * | |
| 1166 | * @param client_handle | |
| 1167 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1168 | * contains the state related to processing this operation. | |
| 1169 | * @param callback | |
| 1170 | * Callback function which will be called once the response has been | |
| 1171 | * processed. | |
| 1172 | * @param callback_arg | |
| 1173 | * Application-specific pointer which will be passed to the callback. | |
| 1174 | */ | |
| 1175 | globus_result_t | |
| 1176 | NotificationProducerTestPortType_GetCurrentMessage_register_response( | |
| 1177 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1178 | NotificationProducerTestPortType_GetCurrentMessage_response_callback_func_t callback, | |
| 1179 | void * callback_arg) | |
| 1180 | 0 | { |
| 1181 | 0 | return globus_soap_client_register_response( |
| 1182 | client_handle, | |
| 1183 | (globus_soap_client_response_callback_func_t) callback, | |
| 1184 | callback_arg); | |
| 1185 | } | |
| 1186 | ||
| 1187 | /** | |
| 1188 | * Nonblocking operation invocation with EPR | |
| 1189 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1190 | * | |
| 1191 | * Begin processing a request for the GetCurrentMessage operation. The operation will | |
| 1192 | * sent to the service named by the @a epr and after the response is received, | |
| 1193 | * the @a callback function will be invoked. | |
| 1194 | * | |
| 1195 | * @param handle | |
| 1196 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1197 | * contains the state related to processing this operation. | |
| 1198 | * @param epr | |
| 1199 | * Endpoint Reference of the service and resource which will process | |
| 1200 | * the operation. | |
| 1201 | * @param input | |
| 1202 | * Input parameter to the operation. | |
| 1203 | * @param callback | |
| 1204 | * Callback function which will be called once the operation has been | |
| 1205 | * processed. | |
| 1206 | * @param callback_arg | |
| 1207 | * Application-specific pointer which will be passed to the callback. | |
| 1208 | */ | |
| 1209 | globus_result_t | |
| 1210 | NotificationProducerTestPortType_GetCurrentMessage_epr_register( | |
| 1211 | NotificationProducerTestService_client_handle_t handle, | |
| 1212 | const wsa_EndpointReferenceType * epr, | |
| 1213 | const wsnt_GetCurrentMessageType * input, | |
| 1214 | NotificationProducerTestPortType_GetCurrentMessage_response_callback_func_t callback, | |
| 1215 | void * callback_arg) | |
| 1216 | 0 | { |
| 1217 | globus_result_t result; | |
| 1218 | ||
| 1219 | 0 | result = globus_soap_client_handle_attr_set( |
| 1220 | handle, | |
| 1221 | WSADDR_EPR_KEY, | |
| 1222 | wsa_EndpointReferenceType_info.copy, | |
| 1223 | wsa_EndpointReferenceType_info.destroy, | |
| 1224 | (void *) epr); | |
| 1225 | ||
| 1226 | 0 | if (result != GLOBUS_SUCCESS) |
| 1227 | { | |
| 1228 | 0 | goto out; |
| 1229 | } | |
| 1230 | ||
| 1231 | 0 | result = globus_soap_client_operation_register( |
| 1232 | handle, | |
| 1233 | epr->Address.base_value, | |
| 1234 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1235 | (void *) input, | |
| 1236 | (globus_soap_client_response_callback_func_t) callback, | |
| 1237 | callback_arg); | |
| 1238 | 0 | out: |
| 1239 | 0 | return result; |
| 1240 | } | |
| 1241 | ||
| 1242 | /** | |
| 1243 | * Nonblocking operation invocation | |
| 1244 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1245 | * | |
| 1246 | * Begin processing a request for the GetCurrentMessage operation. The operation will | |
| 1247 | * sent to the service located at @a endpoint and after the response is | |
| 1248 | * received, the @a callback function will be invoked. | |
| 1249 | * | |
| 1250 | * @param handle | |
| 1251 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1252 | * contains the state related to processing this operation. | |
| 1253 | * @param endpoint | |
| 1254 | * URI of the service endpoint to send the request to. | |
| 1255 | * @param input | |
| 1256 | * Input parameter to the operation. | |
| 1257 | * @param callback | |
| 1258 | * Callback function which will be called once the operation has been | |
| 1259 | * processed. | |
| 1260 | * @param callback_arg | |
| 1261 | * Application-specific pointer which will be passed to the callback. | |
| 1262 | */ | |
| 1263 | globus_result_t | |
| 1264 | NotificationProducerTestPortType_GetCurrentMessage_register( | |
| 1265 | NotificationProducerTestService_client_handle_t handle, | |
| 1266 | const char * endpoint, | |
| 1267 | const wsnt_GetCurrentMessageType * input, | |
| 1268 | NotificationProducerTestPortType_GetCurrentMessage_response_callback_func_t callback, | |
| 1269 | void * callback_arg) | |
| 1270 | 0 | { |
| 1271 | 0 | return globus_soap_client_operation_register( |
| 1272 | handle, | |
| 1273 | endpoint, | |
| 1274 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1275 | (void *) input, | |
| 1276 | (globus_soap_client_response_callback_func_t) callback, | |
| 1277 | callback_arg); | |
| 1278 | } | |
| 1279 | ||
| 1280 | ||
| 1281 | ||
| 1282 | /** | |
| 1283 | * Blocking operation invocation with EPR | |
| 1284 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1285 | * | |
| 1286 | * Request that an the GetCurrentMessage operation be invoked by the service and | |
| 1287 | * resource named by the @a epr parameter. | |
| 1288 | ||
| 1289 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 1290 | * @a output parameter will be set to the result of the operation. | |
| 1291 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 1292 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 1293 | * error occurred, and the result's error type should be checked. | |
| 1294 | ||
| 1295 | * | |
| 1296 | * @param handle | |
| 1297 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1298 | * contains the state related to processing this operation. | |
| 1299 | * @param epr | |
| 1300 | * Endpoint Reference of the service and resource which will process | |
| 1301 | * the operation. | |
| 1302 | * @param input | |
| 1303 | * Input parameter to the operation. | |
| 1304 | ||
| 1305 | * @param output | |
| 1306 | * The output of the operation, if the operation succeeded. | |
| 1307 | * @param fault_type | |
| 1308 | * The type of fault sent as a result of the operation, if the operation | |
| 1309 | * failed. If the operation succeeded, this will be NULL. | |
| 1310 | * @param fault | |
| 1311 | * The fault element which was received, if the operation failed. | |
| 1312 | * If the operation succeeded, this will be NULL. | |
| 1313 | ||
| 1314 | */ | |
| 1315 | globus_result_t | |
| 1316 | NotificationProducerTestPortType_GetCurrentMessage_epr( | |
| 1317 | NotificationProducerTestService_client_handle_t handle, | |
| 1318 | const wsa_EndpointReferenceType * epr, | |
| 1319 | const wsnt_GetCurrentMessageType * input, | |
| 1320 | wsnt_GetCurrentMessageResponseType * * output, | |
| 1321 | NotificationProducerTestPortType_GetCurrentMessage_fault_t * fault_type, | |
| 1322 | xsd_any * * fault) | |
| 1323 | 30 | { |
| 1324 | globus_result_t result; | |
| 1325 | ||
| 1326 | 30 | result = globus_soap_client_handle_attr_set( |
| 1327 | handle, | |
| 1328 | WSADDR_EPR_KEY, | |
| 1329 | wsa_EndpointReferenceType_info.copy, | |
| 1330 | wsa_EndpointReferenceType_info.destroy, | |
| 1331 | (void *) epr); | |
| 1332 | ||
| 1333 | 30 | if (result != GLOBUS_SUCCESS) |
| 1334 | { | |
| 1335 | 0 | goto out; |
| 1336 | } | |
| 1337 | 30 | result = globus_soap_client_operation( |
| 1338 | handle, | |
| 1339 | epr->Address.base_value, | |
| 1340 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1341 | (void *) input, | |
| 1342 | ||
| 1343 | (void **) output, | |
| 1344 | (int *) fault_type, | |
| 1345 | fault | |
| 1346 | ); | |
| 1347 | 30 | out: |
| 1348 | 30 | return result; |
| 1349 | } | |
| 1350 | ||
| 1351 | /** | |
| 1352 | * Blocking operation invocation | |
| 1353 | * @ingroup NotificationProducerTestPortType_GetCurrentMessage_operation | |
| 1354 | * | |
| 1355 | * Request that an the GetCurrentMessage operation be invoked by the service at | |
| 1356 | * @a endpoint. | |
| 1357 | ||
| 1358 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 1359 | * @a output parameter will be set to the result of the operation. | |
| 1360 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 1361 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 1362 | * error occurred, and the result's error type should be checked. | |
| 1363 | ||
| 1364 | * | |
| 1365 | * @param handle | |
| 1366 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1367 | * contains the state related to processing this operation. | |
| 1368 | * @param endpoint | |
| 1369 | * URI of the service endpoint to send the request to. | |
| 1370 | * @param input | |
| 1371 | * Input parameter to the operation. | |
| 1372 | ||
| 1373 | * @param output | |
| 1374 | * The output of the operation, if the operation succeeded. | |
| 1375 | * @param fault_type | |
| 1376 | * The type of fault sent as a result of the operation, if the operation | |
| 1377 | * failed. If the operation succeeded, this will be NULL. | |
| 1378 | * @param fault | |
| 1379 | * The fault element which was received, if the operation failed. | |
| 1380 | * If the operation succeeded, this will be NULL. | |
| 1381 | ||
| 1382 | */ | |
| 1383 | globus_result_t | |
| 1384 | NotificationProducerTestPortType_GetCurrentMessage( | |
| 1385 | NotificationProducerTestService_client_handle_t handle, | |
| 1386 | const char * endpoint, | |
| 1387 | const wsnt_GetCurrentMessageType * input, | |
| 1388 | wsnt_GetCurrentMessageResponseType * * output, | |
| 1389 | NotificationProducerTestPortType_GetCurrentMessage_fault_t * fault_type, | |
| 1390 | xsd_any * * fault) | |
| 1391 | 0 | { |
| 1392 | 0 | return globus_soap_client_operation( |
| 1393 | handle, | |
| 1394 | endpoint, | |
| 1395 | &NotificationProducerTestPortType_l_GetCurrentMessage_operation, | |
| 1396 | (void *) input, | |
| 1397 | ||
| 1398 | (void *) output, | |
| 1399 | (int *) fault_type, | |
| 1400 | fault | |
| 1401 | ); | |
| 1402 | } | |
| 1403 | ||
| 1404 | ||
| 1405 | /** | |
| 1406 | * Nonblocking operation request with EPR | |
| 1407 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1408 | * Begin sending a request for the <code>Subscribe</code> operation on a | |
| 1409 | * resource handled by the service named by the @a epr. When the operation | |
| 1410 | * request has been sent, the @a callback function will be invoked. | |
| 1411 | * | |
| 1412 | * @param client_handle | |
| 1413 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1414 | * contains the state related to processing this operation. | |
| 1415 | * @param epr | |
| 1416 | * Endpoint Reference of the service and resource which will process | |
| 1417 | * the operation. | |
| 1418 | * @param input | |
| 1419 | * Input parameter to the operation. | |
| 1420 | * @param callback | |
| 1421 | * Callback function which will be called once the request has been | |
| 1422 | * sent | |
| 1423 | * @param callback_arg | |
| 1424 | * Application-specific pointer which will be passed to the callback. | |
| 1425 | */ | |
| 1426 | globus_result_t | |
| 1427 | NotificationProducerTestPortType_Subscribe_epr_register_request( | |
| 1428 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1429 | const wsa_EndpointReferenceType * epr, | |
| 1430 | const wsnt_SubscribeType * input, | |
| 1431 | NotificationProducerTestPortType_Subscribe_request_callback_func_t callback, | |
| 1432 | void * callback_arg) | |
| 1433 | 0 | { |
| 1434 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 1435 | ||
| 1436 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 1437 | 0 | globus_assert_string(epr->Address.base_value, |
| 1438 | "NULL EndpointReference Address"); | |
| 1439 | ||
| 1440 | 0 | result = globus_soap_client_handle_attr_set( |
| 1441 | client_handle, | |
| 1442 | WSADDR_EPR_KEY, | |
| 1443 | wsa_EndpointReferenceType_info.copy, | |
| 1444 | wsa_EndpointReferenceType_info.destroy, | |
| 1445 | (void *) epr); | |
| 1446 | ||
| 1447 | 0 | if (result != GLOBUS_SUCCESS) |
| 1448 | { | |
| 1449 | 0 | goto out; |
| 1450 | } | |
| 1451 | ||
| 1452 | 0 | result = globus_soap_client_register_request( |
| 1453 | client_handle, | |
| 1454 | epr->Address.base_value, | |
| 1455 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1456 | (void *) input, | |
| 1457 | callback, | |
| 1458 | callback_arg); | |
| 1459 | ||
| 1460 | 0 | out: |
| 1461 | 0 | return result; |
| 1462 | } | |
| 1463 | ||
| 1464 | /** | |
| 1465 | * Nonblocking operation request | |
| 1466 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1467 | * Begin sending a request for the <code>Subscribe</code> operation to | |
| 1468 | * the service at @a endpoint. When the operation | |
| 1469 | * request has been sent, the @a callback function will be invoked. | |
| 1470 | * @param handle | |
| 1471 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1472 | * contains the state related to processing this operation. | |
| 1473 | * @param endpoint | |
| 1474 | * URI of the service endpoint to send the request to. | |
| 1475 | * @param input | |
| 1476 | * Input parameter to the operation. | |
| 1477 | * @param callback | |
| 1478 | * Callback function which will be called once the request has been | |
| 1479 | * sent | |
| 1480 | * @param callback_arg | |
| 1481 | * Application-specific pointer which will be passed to the callback. | |
| 1482 | */ | |
| 1483 | globus_result_t | |
| 1484 | NotificationProducerTestPortType_Subscribe_register_request( | |
| 1485 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1486 | const char * endpoint, | |
| 1487 | const wsnt_SubscribeType * input, | |
| 1488 | NotificationProducerTestPortType_Subscribe_request_callback_func_t callback, | |
| 1489 | void * callback_arg) | |
| 1490 | 0 | { |
| 1491 | 0 | return globus_soap_client_register_request( |
| 1492 | client_handle, | |
| 1493 | endpoint, | |
| 1494 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1495 | (void *) input, | |
| 1496 | callback, | |
| 1497 | callback_arg); | |
| 1498 | } | |
| 1499 | ||
| 1500 | ||
| 1501 | ||
| 1502 | static | |
| 1503 | void | |
| 1504 | NotificationProducerTestPortType_l_Subscribe_deserialize_fault( | |
| 1505 | globus_soap_message_handle_t handle, | |
| 1506 | const xsd_QName * fault_qname, | |
| 1507 | int * fault_type) | |
| 1508 | 6 | { |
| 1509 | 6 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_NOFAULT; |
| 1510 | ||
| 1511 | 6 | if(fault_qname) |
| 1512 | { | |
| 1513 | 6 | if(fault_qname == (&wsnt_UnrecognizedPolicyRequestFaultType_qname) || |
| 1514 | fault_qname == (&wsnt_UnrecognizedPolicyRequestFault_qname)) | |
| 1515 | { | |
| 1516 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_UNRECOGNIZEDPOLICYREQUESTFAULT; |
| 1517 | } | |
| 1518 | 6 | else if(fault_qname == (&wsnt_NotifyMessageNotSupportedFaultType_qname) || |
| 1519 | fault_qname == (&wsnt_NotifyMessageNotSupportedFault_qname)) | |
| 1520 | { | |
| 1521 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_NOTIFYMESSAGENOTSUPPORTEDFAULT; |
| 1522 | } | |
| 1523 | 6 | else if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) || |
| 1524 | fault_qname == (&wsr_ResourceUnknownFault_qname)) | |
| 1525 | { | |
| 1526 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_RESOURCEUNKNOWNFAULT; |
| 1527 | } | |
| 1528 | 6 | else if(fault_qname == (&wsnt_InvalidFilterFaultType_qname) || |
| 1529 | fault_qname == (&wsnt_InvalidFilterFault_qname)) | |
| 1530 | { | |
| 1531 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_INVALIDFILTERFAULT; |
| 1532 | } | |
| 1533 | 9 | else if(fault_qname == (&wsnt_TopicExpressionDialectUnknownFaultType_qname) || |
| 1534 | fault_qname == (&wsnt_TopicExpressionDialectUnknownFault_qname)) | |
| 1535 | { | |
| 1536 | 3 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_TOPICEXPRESSIONDIALECTUNKNOWNFAULT; |
| 1537 | } | |
| 1538 | 3 | else if(fault_qname == (&wsnt_SubscribeCreationFailedFaultType_qname) || |
| 1539 | fault_qname == (&wsnt_SubscribeCreationFailedFault_qname)) | |
| 1540 | { | |
| 1541 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_SUBSCRIBECREATIONFAILEDFAULT; |
| 1542 | } | |
| 1543 | 3 | else if(fault_qname == (&wsnt_InvalidProducerPropertiesExpressionFaultType_qname) || |
| 1544 | fault_qname == (&wsnt_InvalidProducerPropertiesExpressionFault_qname)) | |
| 1545 | { | |
| 1546 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_INVALIDPRODUCERPROPERTIESEXPRESSIONFAULT; |
| 1547 | } | |
| 1548 | 3 | else if(fault_qname == (&wsnt_InvalidMessageContentExpressionFaultType_qname) || |
| 1549 | fault_qname == (&wsnt_InvalidMessageContentExpressionFault_qname)) | |
| 1550 | { | |
| 1551 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_INVALIDMESSAGECONTENTEXPRESSIONFAULT; |
| 1552 | } | |
| 1553 | 3 | else if(fault_qname == (&wsnt_UnacceptableInitialTerminationTimeFaultType_qname) || |
| 1554 | fault_qname == (&wsnt_UnacceptableInitialTerminationTimeFault_qname)) | |
| 1555 | { | |
| 1556 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_UNACCEPTABLEINITIALTERMINATIONTIMEFAULT; |
| 1557 | } | |
| 1558 | 3 | else if(fault_qname == (&wsnt_UnsupportedPolicyRequestFaultType_qname) || |
| 1559 | fault_qname == (&wsnt_UnsupportedPolicyRequestFault_qname)) | |
| 1560 | { | |
| 1561 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_UNSUPPORTEDPOLICYREQUESTFAULT; |
| 1562 | } | |
| 1563 | 3 | else if(fault_qname == (&wsnt_InvalidTopicExpressionFaultType_qname) || |
| 1564 | fault_qname == (&wsnt_InvalidTopicExpressionFault_qname)) | |
| 1565 | { | |
| 1566 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_INVALIDTOPICEXPRESSIONFAULT; |
| 1567 | } | |
| 1568 | 6 | else if(fault_qname == (&wsnt_TopicNotSupportedFaultType_qname) || |
| 1569 | fault_qname == (&wsnt_TopicNotSupportedFault_qname)) | |
| 1570 | { | |
| 1571 | 3 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_TOPICNOTSUPPORTEDFAULT; |
| 1572 | } | |
| 1573 | else | |
| 1574 | { | |
| 1575 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SUBSCRIBE_UNKNOWN_FAULT; |
| 1576 | } | |
| 1577 | } | |
| 1578 | 6 | } |
| 1579 | /* NotificationProducerTestPortType_l_Subscribe_deserialize_fault() */ | |
| 1580 | ||
| 1581 | /** | |
| 1582 | * Nonblocking operation response handling | |
| 1583 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1584 | * Begin parsing the request for the <code>Subscribe</code> operation begun | |
| 1585 | * by an earlier call to | |
| 1586 | * NotificationProducerTestPortType_Subscribe_register_request() or | |
| 1587 | * NotificationProducerTestPortType_Subscribe_epr_register_request(). Once the response has been parsed. | |
| 1588 | * the @a callback function will be called to pass the result of the operation | |
| 1589 | * to the application. | |
| 1590 | * | |
| 1591 | * @param client_handle | |
| 1592 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1593 | * contains the state related to processing this operation. | |
| 1594 | * @param callback | |
| 1595 | * Callback function which will be called once the response has been | |
| 1596 | * processed. | |
| 1597 | * @param callback_arg | |
| 1598 | * Application-specific pointer which will be passed to the callback. | |
| 1599 | */ | |
| 1600 | globus_result_t | |
| 1601 | NotificationProducerTestPortType_Subscribe_register_response( | |
| 1602 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1603 | NotificationProducerTestPortType_Subscribe_response_callback_func_t callback, | |
| 1604 | void * callback_arg) | |
| 1605 | 0 | { |
| 1606 | 0 | return globus_soap_client_register_response( |
| 1607 | client_handle, | |
| 1608 | (globus_soap_client_response_callback_func_t) callback, | |
| 1609 | callback_arg); | |
| 1610 | } | |
| 1611 | ||
| 1612 | /** | |
| 1613 | * Nonblocking operation invocation with EPR | |
| 1614 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1615 | * | |
| 1616 | * Begin processing a request for the Subscribe operation. The operation will | |
| 1617 | * sent to the service named by the @a epr and after the response is received, | |
| 1618 | * the @a callback function will be invoked. | |
| 1619 | * | |
| 1620 | * @param handle | |
| 1621 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1622 | * contains the state related to processing this operation. | |
| 1623 | * @param epr | |
| 1624 | * Endpoint Reference of the service and resource which will process | |
| 1625 | * the operation. | |
| 1626 | * @param input | |
| 1627 | * Input parameter to the operation. | |
| 1628 | * @param callback | |
| 1629 | * Callback function which will be called once the operation has been | |
| 1630 | * processed. | |
| 1631 | * @param callback_arg | |
| 1632 | * Application-specific pointer which will be passed to the callback. | |
| 1633 | */ | |
| 1634 | globus_result_t | |
| 1635 | NotificationProducerTestPortType_Subscribe_epr_register( | |
| 1636 | NotificationProducerTestService_client_handle_t handle, | |
| 1637 | const wsa_EndpointReferenceType * epr, | |
| 1638 | const wsnt_SubscribeType * input, | |
| 1639 | NotificationProducerTestPortType_Subscribe_response_callback_func_t callback, | |
| 1640 | void * callback_arg) | |
| 1641 | 0 | { |
| 1642 | globus_result_t result; | |
| 1643 | ||
| 1644 | 0 | result = globus_soap_client_handle_attr_set( |
| 1645 | handle, | |
| 1646 | WSADDR_EPR_KEY, | |
| 1647 | wsa_EndpointReferenceType_info.copy, | |
| 1648 | wsa_EndpointReferenceType_info.destroy, | |
| 1649 | (void *) epr); | |
| 1650 | ||
| 1651 | 0 | if (result != GLOBUS_SUCCESS) |
| 1652 | { | |
| 1653 | 0 | goto out; |
| 1654 | } | |
| 1655 | ||
| 1656 | 0 | result = globus_soap_client_operation_register( |
| 1657 | handle, | |
| 1658 | epr->Address.base_value, | |
| 1659 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1660 | (void *) input, | |
| 1661 | (globus_soap_client_response_callback_func_t) callback, | |
| 1662 | callback_arg); | |
| 1663 | 0 | out: |
| 1664 | 0 | return result; |
| 1665 | } | |
| 1666 | ||
| 1667 | /** | |
| 1668 | * Nonblocking operation invocation | |
| 1669 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1670 | * | |
| 1671 | * Begin processing a request for the Subscribe operation. The operation will | |
| 1672 | * sent to the service located at @a endpoint and after the response is | |
| 1673 | * received, the @a callback function will be invoked. | |
| 1674 | * | |
| 1675 | * @param handle | |
| 1676 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1677 | * contains the state related to processing this operation. | |
| 1678 | * @param endpoint | |
| 1679 | * URI of the service endpoint to send the request to. | |
| 1680 | * @param input | |
| 1681 | * Input parameter to the operation. | |
| 1682 | * @param callback | |
| 1683 | * Callback function which will be called once the operation has been | |
| 1684 | * processed. | |
| 1685 | * @param callback_arg | |
| 1686 | * Application-specific pointer which will be passed to the callback. | |
| 1687 | */ | |
| 1688 | globus_result_t | |
| 1689 | NotificationProducerTestPortType_Subscribe_register( | |
| 1690 | NotificationProducerTestService_client_handle_t handle, | |
| 1691 | const char * endpoint, | |
| 1692 | const wsnt_SubscribeType * input, | |
| 1693 | NotificationProducerTestPortType_Subscribe_response_callback_func_t callback, | |
| 1694 | void * callback_arg) | |
| 1695 | 0 | { |
| 1696 | 0 | return globus_soap_client_operation_register( |
| 1697 | handle, | |
| 1698 | endpoint, | |
| 1699 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1700 | (void *) input, | |
| 1701 | (globus_soap_client_response_callback_func_t) callback, | |
| 1702 | callback_arg); | |
| 1703 | } | |
| 1704 | ||
| 1705 | ||
| 1706 | ||
| 1707 | /** | |
| 1708 | * Blocking operation invocation with EPR | |
| 1709 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1710 | * | |
| 1711 | * Request that an the Subscribe operation be invoked by the service and | |
| 1712 | * resource named by the @a epr parameter. | |
| 1713 | ||
| 1714 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 1715 | * @a output parameter will be set to the result of the operation. | |
| 1716 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 1717 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 1718 | * error occurred, and the result's error type should be checked. | |
| 1719 | ||
| 1720 | * | |
| 1721 | * @param handle | |
| 1722 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1723 | * contains the state related to processing this operation. | |
| 1724 | * @param epr | |
| 1725 | * Endpoint Reference of the service and resource which will process | |
| 1726 | * the operation. | |
| 1727 | * @param input | |
| 1728 | * Input parameter to the operation. | |
| 1729 | ||
| 1730 | * @param output | |
| 1731 | * The output of the operation, if the operation succeeded. | |
| 1732 | * @param fault_type | |
| 1733 | * The type of fault sent as a result of the operation, if the operation | |
| 1734 | * failed. If the operation succeeded, this will be NULL. | |
| 1735 | * @param fault | |
| 1736 | * The fault element which was received, if the operation failed. | |
| 1737 | * If the operation succeeded, this will be NULL. | |
| 1738 | ||
| 1739 | */ | |
| 1740 | globus_result_t | |
| 1741 | NotificationProducerTestPortType_Subscribe_epr( | |
| 1742 | NotificationProducerTestService_client_handle_t handle, | |
| 1743 | const wsa_EndpointReferenceType * epr, | |
| 1744 | const wsnt_SubscribeType * input, | |
| 1745 | wsnt_SubscribeResponseType * * output, | |
| 1746 | NotificationProducerTestPortType_Subscribe_fault_t * fault_type, | |
| 1747 | xsd_any * * fault) | |
| 1748 | 24 | { |
| 1749 | globus_result_t result; | |
| 1750 | ||
| 1751 | 24 | result = globus_soap_client_handle_attr_set( |
| 1752 | handle, | |
| 1753 | WSADDR_EPR_KEY, | |
| 1754 | wsa_EndpointReferenceType_info.copy, | |
| 1755 | wsa_EndpointReferenceType_info.destroy, | |
| 1756 | (void *) epr); | |
| 1757 | ||
| 1758 | 24 | if (result != GLOBUS_SUCCESS) |
| 1759 | { | |
| 1760 | 0 | goto out; |
| 1761 | } | |
| 1762 | 24 | result = globus_soap_client_operation( |
| 1763 | handle, | |
| 1764 | epr->Address.base_value, | |
| 1765 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1766 | (void *) input, | |
| 1767 | ||
| 1768 | (void **) output, | |
| 1769 | (int *) fault_type, | |
| 1770 | fault | |
| 1771 | ); | |
| 1772 | 24 | out: |
| 1773 | 24 | return result; |
| 1774 | } | |
| 1775 | ||
| 1776 | /** | |
| 1777 | * Blocking operation invocation | |
| 1778 | * @ingroup NotificationProducerTestPortType_Subscribe_operation | |
| 1779 | * | |
| 1780 | * Request that an the Subscribe operation be invoked by the service at | |
| 1781 | * @a endpoint. | |
| 1782 | ||
| 1783 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 1784 | * @a output parameter will be set to the result of the operation. | |
| 1785 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 1786 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 1787 | * error occurred, and the result's error type should be checked. | |
| 1788 | ||
| 1789 | * | |
| 1790 | * @param handle | |
| 1791 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1792 | * contains the state related to processing this operation. | |
| 1793 | * @param endpoint | |
| 1794 | * URI of the service endpoint to send the request to. | |
| 1795 | * @param input | |
| 1796 | * Input parameter to the operation. | |
| 1797 | ||
| 1798 | * @param output | |
| 1799 | * The output of the operation, if the operation succeeded. | |
| 1800 | * @param fault_type | |
| 1801 | * The type of fault sent as a result of the operation, if the operation | |
| 1802 | * failed. If the operation succeeded, this will be NULL. | |
| 1803 | * @param fault | |
| 1804 | * The fault element which was received, if the operation failed. | |
| 1805 | * If the operation succeeded, this will be NULL. | |
| 1806 | ||
| 1807 | */ | |
| 1808 | globus_result_t | |
| 1809 | NotificationProducerTestPortType_Subscribe( | |
| 1810 | NotificationProducerTestService_client_handle_t handle, | |
| 1811 | const char * endpoint, | |
| 1812 | const wsnt_SubscribeType * input, | |
| 1813 | wsnt_SubscribeResponseType * * output, | |
| 1814 | NotificationProducerTestPortType_Subscribe_fault_t * fault_type, | |
| 1815 | xsd_any * * fault) | |
| 1816 | 0 | { |
| 1817 | 0 | return globus_soap_client_operation( |
| 1818 | handle, | |
| 1819 | endpoint, | |
| 1820 | &NotificationProducerTestPortType_l_Subscribe_operation, | |
| 1821 | (void *) input, | |
| 1822 | ||
| 1823 | (void *) output, | |
| 1824 | (int *) fault_type, | |
| 1825 | fault | |
| 1826 | ); | |
| 1827 | } | |
| 1828 | ||
| 1829 | ||
| 1830 | /** | |
| 1831 | * Nonblocking operation request with EPR | |
| 1832 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 1833 | * Begin sending a request for the <code>SetResourceProperties</code> operation on a | |
| 1834 | * resource handled by the service named by the @a epr. When the operation | |
| 1835 | * request has been sent, the @a callback function will be invoked. | |
| 1836 | * | |
| 1837 | * @param client_handle | |
| 1838 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1839 | * contains the state related to processing this operation. | |
| 1840 | * @param epr | |
| 1841 | * Endpoint Reference of the service and resource which will process | |
| 1842 | * the operation. | |
| 1843 | * @param input | |
| 1844 | * Input parameter to the operation. | |
| 1845 | * @param callback | |
| 1846 | * Callback function which will be called once the request has been | |
| 1847 | * sent | |
| 1848 | * @param callback_arg | |
| 1849 | * Application-specific pointer which will be passed to the callback. | |
| 1850 | */ | |
| 1851 | globus_result_t | |
| 1852 | NotificationProducerTestPortType_SetResourceProperties_epr_register_request( | |
| 1853 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1854 | const wsa_EndpointReferenceType * epr, | |
| 1855 | const wsrp_SetResourcePropertiesType * input, | |
| 1856 | NotificationProducerTestPortType_SetResourceProperties_request_callback_func_t callback, | |
| 1857 | void * callback_arg) | |
| 1858 | 0 | { |
| 1859 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 1860 | ||
| 1861 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 1862 | 0 | globus_assert_string(epr->Address.base_value, |
| 1863 | "NULL EndpointReference Address"); | |
| 1864 | ||
| 1865 | 0 | result = globus_soap_client_handle_attr_set( |
| 1866 | client_handle, | |
| 1867 | WSADDR_EPR_KEY, | |
| 1868 | wsa_EndpointReferenceType_info.copy, | |
| 1869 | wsa_EndpointReferenceType_info.destroy, | |
| 1870 | (void *) epr); | |
| 1871 | ||
| 1872 | 0 | if (result != GLOBUS_SUCCESS) |
| 1873 | { | |
| 1874 | 0 | goto out; |
| 1875 | } | |
| 1876 | ||
| 1877 | 0 | result = globus_soap_client_register_request( |
| 1878 | client_handle, | |
| 1879 | epr->Address.base_value, | |
| 1880 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 1881 | (void *) input, | |
| 1882 | callback, | |
| 1883 | callback_arg); | |
| 1884 | ||
| 1885 | 0 | out: |
| 1886 | 0 | return result; |
| 1887 | } | |
| 1888 | ||
| 1889 | /** | |
| 1890 | * Nonblocking operation request | |
| 1891 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 1892 | * Begin sending a request for the <code>SetResourceProperties</code> operation to | |
| 1893 | * the service at @a endpoint. When the operation | |
| 1894 | * request has been sent, the @a callback function will be invoked. | |
| 1895 | * @param handle | |
| 1896 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1897 | * contains the state related to processing this operation. | |
| 1898 | * @param endpoint | |
| 1899 | * URI of the service endpoint to send the request to. | |
| 1900 | * @param input | |
| 1901 | * Input parameter to the operation. | |
| 1902 | * @param callback | |
| 1903 | * Callback function which will be called once the request has been | |
| 1904 | * sent | |
| 1905 | * @param callback_arg | |
| 1906 | * Application-specific pointer which will be passed to the callback. | |
| 1907 | */ | |
| 1908 | globus_result_t | |
| 1909 | NotificationProducerTestPortType_SetResourceProperties_register_request( | |
| 1910 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1911 | const char * endpoint, | |
| 1912 | const wsrp_SetResourcePropertiesType * input, | |
| 1913 | NotificationProducerTestPortType_SetResourceProperties_request_callback_func_t callback, | |
| 1914 | void * callback_arg) | |
| 1915 | 0 | { |
| 1916 | 0 | return globus_soap_client_register_request( |
| 1917 | client_handle, | |
| 1918 | endpoint, | |
| 1919 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 1920 | (void *) input, | |
| 1921 | callback, | |
| 1922 | callback_arg); | |
| 1923 | } | |
| 1924 | ||
| 1925 | ||
| 1926 | ||
| 1927 | static | |
| 1928 | void | |
| 1929 | NotificationProducerTestPortType_l_SetResourceProperties_deserialize_fault( | |
| 1930 | globus_soap_message_handle_t handle, | |
| 1931 | const xsd_QName * fault_qname, | |
| 1932 | int * fault_type) | |
| 1933 | 0 | { |
| 1934 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_NOFAULT; |
| 1935 | ||
| 1936 | 0 | if(fault_qname) |
| 1937 | { | |
| 1938 | 0 | if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) || |
| 1939 | fault_qname == (&wsr_ResourceUnknownFault_qname)) | |
| 1940 | { | |
| 1941 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_RESOURCEUNKNOWNFAULT; |
| 1942 | } | |
| 1943 | 0 | else if(fault_qname == (&wsrp_SetResourcePropertyRequestFailedFaultType_qname) || |
| 1944 | fault_qname == (&wsrp_SetResourcePropertyRequestFailedFault_qname)) | |
| 1945 | { | |
| 1946 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_SETRESOURCEPROPERTYREQUESTFAILEDFAULT; |
| 1947 | } | |
| 1948 | 0 | else if(fault_qname == (&wsrp_UnableToModifyResourcePropertyFaultType_qname) || |
| 1949 | fault_qname == (&wsrp_UnableToModifyResourcePropertyFault_qname)) | |
| 1950 | { | |
| 1951 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_UNABLETOMODIFYRESOURCEPROPERTYFAULT; |
| 1952 | } | |
| 1953 | 0 | else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) || |
| 1954 | fault_qname == (&wsr_ResourceUnavailableFault_qname)) | |
| 1955 | { | |
| 1956 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_RESOURCEUNAVAILABLEFAULT; |
| 1957 | } | |
| 1958 | 0 | else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) || |
| 1959 | fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname)) | |
| 1960 | { | |
| 1961 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_INVALIDRESOURCEPROPERTYQNAMEFAULT; |
| 1962 | } | |
| 1963 | 0 | else if(fault_qname == (&wsrp_InvalidModificationFaultType_qname) || |
| 1964 | fault_qname == (&wsrp_InvalidModificationFault_qname)) | |
| 1965 | { | |
| 1966 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_INVALIDMODIFICATIONFAULT; |
| 1967 | } | |
| 1968 | else | |
| 1969 | { | |
| 1970 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETRESOURCEPROPERTIES_UNKNOWN_FAULT; |
| 1971 | } | |
| 1972 | } | |
| 1973 | 0 | } |
| 1974 | /* NotificationProducerTestPortType_l_SetResourceProperties_deserialize_fault() */ | |
| 1975 | ||
| 1976 | /** | |
| 1977 | * Nonblocking operation response handling | |
| 1978 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 1979 | * Begin parsing the request for the <code>SetResourceProperties</code> operation begun | |
| 1980 | * by an earlier call to | |
| 1981 | * NotificationProducerTestPortType_SetResourceProperties_register_request() or | |
| 1982 | * NotificationProducerTestPortType_SetResourceProperties_epr_register_request(). Once the response has been parsed. | |
| 1983 | * the @a callback function will be called to pass the result of the operation | |
| 1984 | * to the application. | |
| 1985 | * | |
| 1986 | * @param client_handle | |
| 1987 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 1988 | * contains the state related to processing this operation. | |
| 1989 | * @param callback | |
| 1990 | * Callback function which will be called once the response has been | |
| 1991 | * processed. | |
| 1992 | * @param callback_arg | |
| 1993 | * Application-specific pointer which will be passed to the callback. | |
| 1994 | */ | |
| 1995 | globus_result_t | |
| 1996 | NotificationProducerTestPortType_SetResourceProperties_register_response( | |
| 1997 | NotificationProducerTestService_client_handle_t client_handle, | |
| 1998 | NotificationProducerTestPortType_SetResourceProperties_response_callback_func_t callback, | |
| 1999 | void * callback_arg) | |
| 2000 | 0 | { |
| 2001 | 0 | return globus_soap_client_register_response( |
| 2002 | client_handle, | |
| 2003 | (globus_soap_client_response_callback_func_t) callback, | |
| 2004 | callback_arg); | |
| 2005 | } | |
| 2006 | ||
| 2007 | /** | |
| 2008 | * Nonblocking operation invocation with EPR | |
| 2009 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 2010 | * | |
| 2011 | * Begin processing a request for the SetResourceProperties operation. The operation will | |
| 2012 | * sent to the service named by the @a epr and after the response is received, | |
| 2013 | * the @a callback function will be invoked. | |
| 2014 | * | |
| 2015 | * @param handle | |
| 2016 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2017 | * contains the state related to processing this operation. | |
| 2018 | * @param epr | |
| 2019 | * Endpoint Reference of the service and resource which will process | |
| 2020 | * the operation. | |
| 2021 | * @param input | |
| 2022 | * Input parameter to the operation. | |
| 2023 | * @param callback | |
| 2024 | * Callback function which will be called once the operation has been | |
| 2025 | * processed. | |
| 2026 | * @param callback_arg | |
| 2027 | * Application-specific pointer which will be passed to the callback. | |
| 2028 | */ | |
| 2029 | globus_result_t | |
| 2030 | NotificationProducerTestPortType_SetResourceProperties_epr_register( | |
| 2031 | NotificationProducerTestService_client_handle_t handle, | |
| 2032 | const wsa_EndpointReferenceType * epr, | |
| 2033 | const wsrp_SetResourcePropertiesType * input, | |
| 2034 | NotificationProducerTestPortType_SetResourceProperties_response_callback_func_t callback, | |
| 2035 | void * callback_arg) | |
| 2036 | 0 | { |
| 2037 | globus_result_t result; | |
| 2038 | ||
| 2039 | 0 | result = globus_soap_client_handle_attr_set( |
| 2040 | handle, | |
| 2041 | WSADDR_EPR_KEY, | |
| 2042 | wsa_EndpointReferenceType_info.copy, | |
| 2043 | wsa_EndpointReferenceType_info.destroy, | |
| 2044 | (void *) epr); | |
| 2045 | ||
| 2046 | 0 | if (result != GLOBUS_SUCCESS) |
| 2047 | { | |
| 2048 | 0 | goto out; |
| 2049 | } | |
| 2050 | ||
| 2051 | 0 | result = globus_soap_client_operation_register( |
| 2052 | handle, | |
| 2053 | epr->Address.base_value, | |
| 2054 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 2055 | (void *) input, | |
| 2056 | (globus_soap_client_response_callback_func_t) callback, | |
| 2057 | callback_arg); | |
| 2058 | 0 | out: |
| 2059 | 0 | return result; |
| 2060 | } | |
| 2061 | ||
| 2062 | /** | |
| 2063 | * Nonblocking operation invocation | |
| 2064 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 2065 | * | |
| 2066 | * Begin processing a request for the SetResourceProperties operation. The operation will | |
| 2067 | * sent to the service located at @a endpoint and after the response is | |
| 2068 | * received, the @a callback function will be invoked. | |
| 2069 | * | |
| 2070 | * @param handle | |
| 2071 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2072 | * contains the state related to processing this operation. | |
| 2073 | * @param endpoint | |
| 2074 | * URI of the service endpoint to send the request to. | |
| 2075 | * @param input | |
| 2076 | * Input parameter to the operation. | |
| 2077 | * @param callback | |
| 2078 | * Callback function which will be called once the operation has been | |
| 2079 | * processed. | |
| 2080 | * @param callback_arg | |
| 2081 | * Application-specific pointer which will be passed to the callback. | |
| 2082 | */ | |
| 2083 | globus_result_t | |
| 2084 | NotificationProducerTestPortType_SetResourceProperties_register( | |
| 2085 | NotificationProducerTestService_client_handle_t handle, | |
| 2086 | const char * endpoint, | |
| 2087 | const wsrp_SetResourcePropertiesType * input, | |
| 2088 | NotificationProducerTestPortType_SetResourceProperties_response_callback_func_t callback, | |
| 2089 | void * callback_arg) | |
| 2090 | 0 | { |
| 2091 | 0 | return globus_soap_client_operation_register( |
| 2092 | handle, | |
| 2093 | endpoint, | |
| 2094 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 2095 | (void *) input, | |
| 2096 | (globus_soap_client_response_callback_func_t) callback, | |
| 2097 | callback_arg); | |
| 2098 | } | |
| 2099 | ||
| 2100 | ||
| 2101 | ||
| 2102 | /** | |
| 2103 | * Blocking operation invocation with EPR | |
| 2104 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 2105 | * | |
| 2106 | * Request that an the SetResourceProperties operation be invoked by the service and | |
| 2107 | * resource named by the @a epr parameter. | |
| 2108 | ||
| 2109 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2110 | * @a output parameter will be set to the result of the operation. | |
| 2111 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2112 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2113 | * error occurred, and the result's error type should be checked. | |
| 2114 | ||
| 2115 | * | |
| 2116 | * @param handle | |
| 2117 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2118 | * contains the state related to processing this operation. | |
| 2119 | * @param epr | |
| 2120 | * Endpoint Reference of the service and resource which will process | |
| 2121 | * the operation. | |
| 2122 | * @param input | |
| 2123 | * Input parameter to the operation. | |
| 2124 | ||
| 2125 | * @param output | |
| 2126 | * The output of the operation, if the operation succeeded. | |
| 2127 | * @param fault_type | |
| 2128 | * The type of fault sent as a result of the operation, if the operation | |
| 2129 | * failed. If the operation succeeded, this will be NULL. | |
| 2130 | * @param fault | |
| 2131 | * The fault element which was received, if the operation failed. | |
| 2132 | * If the operation succeeded, this will be NULL. | |
| 2133 | ||
| 2134 | */ | |
| 2135 | globus_result_t | |
| 2136 | NotificationProducerTestPortType_SetResourceProperties_epr( | |
| 2137 | NotificationProducerTestService_client_handle_t handle, | |
| 2138 | const wsa_EndpointReferenceType * epr, | |
| 2139 | const wsrp_SetResourcePropertiesType * input, | |
| 2140 | wsrp_SetResourcePropertiesResponseType * * output, | |
| 2141 | NotificationProducerTestPortType_SetResourceProperties_fault_t * fault_type, | |
| 2142 | xsd_any * * fault) | |
| 2143 | 0 | { |
| 2144 | globus_result_t result; | |
| 2145 | ||
| 2146 | 0 | result = globus_soap_client_handle_attr_set( |
| 2147 | handle, | |
| 2148 | WSADDR_EPR_KEY, | |
| 2149 | wsa_EndpointReferenceType_info.copy, | |
| 2150 | wsa_EndpointReferenceType_info.destroy, | |
| 2151 | (void *) epr); | |
| 2152 | ||
| 2153 | 0 | if (result != GLOBUS_SUCCESS) |
| 2154 | { | |
| 2155 | 0 | goto out; |
| 2156 | } | |
| 2157 | 0 | result = globus_soap_client_operation( |
| 2158 | handle, | |
| 2159 | epr->Address.base_value, | |
| 2160 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 2161 | (void *) input, | |
| 2162 | ||
| 2163 | (void **) output, | |
| 2164 | (int *) fault_type, | |
| 2165 | fault | |
| 2166 | ); | |
| 2167 | 0 | out: |
| 2168 | 0 | return result; |
| 2169 | } | |
| 2170 | ||
| 2171 | /** | |
| 2172 | * Blocking operation invocation | |
| 2173 | * @ingroup NotificationProducerTestPortType_SetResourceProperties_operation | |
| 2174 | * | |
| 2175 | * Request that an the SetResourceProperties operation be invoked by the service at | |
| 2176 | * @a endpoint. | |
| 2177 | ||
| 2178 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2179 | * @a output parameter will be set to the result of the operation. | |
| 2180 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2181 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2182 | * error occurred, and the result's error type should be checked. | |
| 2183 | ||
| 2184 | * | |
| 2185 | * @param handle | |
| 2186 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2187 | * contains the state related to processing this operation. | |
| 2188 | * @param endpoint | |
| 2189 | * URI of the service endpoint to send the request to. | |
| 2190 | * @param input | |
| 2191 | * Input parameter to the operation. | |
| 2192 | ||
| 2193 | * @param output | |
| 2194 | * The output of the operation, if the operation succeeded. | |
| 2195 | * @param fault_type | |
| 2196 | * The type of fault sent as a result of the operation, if the operation | |
| 2197 | * failed. If the operation succeeded, this will be NULL. | |
| 2198 | * @param fault | |
| 2199 | * The fault element which was received, if the operation failed. | |
| 2200 | * If the operation succeeded, this will be NULL. | |
| 2201 | ||
| 2202 | */ | |
| 2203 | globus_result_t | |
| 2204 | NotificationProducerTestPortType_SetResourceProperties( | |
| 2205 | NotificationProducerTestService_client_handle_t handle, | |
| 2206 | const char * endpoint, | |
| 2207 | const wsrp_SetResourcePropertiesType * input, | |
| 2208 | wsrp_SetResourcePropertiesResponseType * * output, | |
| 2209 | NotificationProducerTestPortType_SetResourceProperties_fault_t * fault_type, | |
| 2210 | xsd_any * * fault) | |
| 2211 | 0 | { |
| 2212 | 0 | return globus_soap_client_operation( |
| 2213 | handle, | |
| 2214 | endpoint, | |
| 2215 | &NotificationProducerTestPortType_l_SetResourceProperties_operation, | |
| 2216 | (void *) input, | |
| 2217 | ||
| 2218 | (void *) output, | |
| 2219 | (int *) fault_type, | |
| 2220 | fault | |
| 2221 | ); | |
| 2222 | } | |
| 2223 | ||
| 2224 | ||
| 2225 | /** | |
| 2226 | * Nonblocking operation request with EPR | |
| 2227 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2228 | * Begin sending a request for the <code>GetResourceProperty</code> operation on a | |
| 2229 | * resource handled by the service named by the @a epr. When the operation | |
| 2230 | * request has been sent, the @a callback function will be invoked. | |
| 2231 | * | |
| 2232 | * @param client_handle | |
| 2233 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2234 | * contains the state related to processing this operation. | |
| 2235 | * @param epr | |
| 2236 | * Endpoint Reference of the service and resource which will process | |
| 2237 | * the operation. | |
| 2238 | * @param input | |
| 2239 | * Input parameter to the operation. | |
| 2240 | * @param callback | |
| 2241 | * Callback function which will be called once the request has been | |
| 2242 | * sent | |
| 2243 | * @param callback_arg | |
| 2244 | * Application-specific pointer which will be passed to the callback. | |
| 2245 | */ | |
| 2246 | globus_result_t | |
| 2247 | NotificationProducerTestPortType_GetResourceProperty_epr_register_request( | |
| 2248 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2249 | const wsa_EndpointReferenceType * epr, | |
| 2250 | const xsd_QName * input, | |
| 2251 | NotificationProducerTestPortType_GetResourceProperty_request_callback_func_t callback, | |
| 2252 | void * callback_arg) | |
| 2253 | 0 | { |
| 2254 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 2255 | ||
| 2256 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 2257 | 0 | globus_assert_string(epr->Address.base_value, |
| 2258 | "NULL EndpointReference Address"); | |
| 2259 | ||
| 2260 | 0 | result = globus_soap_client_handle_attr_set( |
| 2261 | client_handle, | |
| 2262 | WSADDR_EPR_KEY, | |
| 2263 | wsa_EndpointReferenceType_info.copy, | |
| 2264 | wsa_EndpointReferenceType_info.destroy, | |
| 2265 | (void *) epr); | |
| 2266 | ||
| 2267 | 0 | if (result != GLOBUS_SUCCESS) |
| 2268 | { | |
| 2269 | 0 | goto out; |
| 2270 | } | |
| 2271 | ||
| 2272 | 0 | result = globus_soap_client_register_request( |
| 2273 | client_handle, | |
| 2274 | epr->Address.base_value, | |
| 2275 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2276 | (void *) input, | |
| 2277 | callback, | |
| 2278 | callback_arg); | |
| 2279 | ||
| 2280 | 0 | out: |
| 2281 | 0 | return result; |
| 2282 | } | |
| 2283 | ||
| 2284 | /** | |
| 2285 | * Nonblocking operation request | |
| 2286 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2287 | * Begin sending a request for the <code>GetResourceProperty</code> operation to | |
| 2288 | * the service at @a endpoint. When the operation | |
| 2289 | * request has been sent, the @a callback function will be invoked. | |
| 2290 | * @param handle | |
| 2291 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2292 | * contains the state related to processing this operation. | |
| 2293 | * @param endpoint | |
| 2294 | * URI of the service endpoint to send the request to. | |
| 2295 | * @param input | |
| 2296 | * Input parameter to the operation. | |
| 2297 | * @param callback | |
| 2298 | * Callback function which will be called once the request has been | |
| 2299 | * sent | |
| 2300 | * @param callback_arg | |
| 2301 | * Application-specific pointer which will be passed to the callback. | |
| 2302 | */ | |
| 2303 | globus_result_t | |
| 2304 | NotificationProducerTestPortType_GetResourceProperty_register_request( | |
| 2305 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2306 | const char * endpoint, | |
| 2307 | const xsd_QName * input, | |
| 2308 | NotificationProducerTestPortType_GetResourceProperty_request_callback_func_t callback, | |
| 2309 | void * callback_arg) | |
| 2310 | 0 | { |
| 2311 | 0 | return globus_soap_client_register_request( |
| 2312 | client_handle, | |
| 2313 | endpoint, | |
| 2314 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2315 | (void *) input, | |
| 2316 | callback, | |
| 2317 | callback_arg); | |
| 2318 | } | |
| 2319 | ||
| 2320 | ||
| 2321 | ||
| 2322 | static | |
| 2323 | void | |
| 2324 | NotificationProducerTestPortType_l_GetResourceProperty_deserialize_fault( | |
| 2325 | globus_soap_message_handle_t handle, | |
| 2326 | const xsd_QName * fault_qname, | |
| 2327 | int * fault_type) | |
| 2328 | 0 | { |
| 2329 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETRESOURCEPROPERTY_NOFAULT; |
| 2330 | ||
| 2331 | 0 | if(fault_qname) |
| 2332 | { | |
| 2333 | 0 | if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) || |
| 2334 | fault_qname == (&wsr_ResourceUnknownFault_qname)) | |
| 2335 | { | |
| 2336 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETRESOURCEPROPERTY_RESOURCEUNKNOWNFAULT; |
| 2337 | } | |
| 2338 | 0 | else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) || |
| 2339 | fault_qname == (&wsr_ResourceUnavailableFault_qname)) | |
| 2340 | { | |
| 2341 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETRESOURCEPROPERTY_RESOURCEUNAVAILABLEFAULT; |
| 2342 | } | |
| 2343 | 0 | else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) || |
| 2344 | fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname)) | |
| 2345 | { | |
| 2346 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETRESOURCEPROPERTY_INVALIDRESOURCEPROPERTYQNAMEFAULT; |
| 2347 | } | |
| 2348 | else | |
| 2349 | { | |
| 2350 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_GETRESOURCEPROPERTY_UNKNOWN_FAULT; |
| 2351 | } | |
| 2352 | } | |
| 2353 | 0 | } |
| 2354 | /* NotificationProducerTestPortType_l_GetResourceProperty_deserialize_fault() */ | |
| 2355 | ||
| 2356 | /** | |
| 2357 | * Nonblocking operation response handling | |
| 2358 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2359 | * Begin parsing the request for the <code>GetResourceProperty</code> operation begun | |
| 2360 | * by an earlier call to | |
| 2361 | * NotificationProducerTestPortType_GetResourceProperty_register_request() or | |
| 2362 | * NotificationProducerTestPortType_GetResourceProperty_epr_register_request(). Once the response has been parsed. | |
| 2363 | * the @a callback function will be called to pass the result of the operation | |
| 2364 | * to the application. | |
| 2365 | * | |
| 2366 | * @param client_handle | |
| 2367 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2368 | * contains the state related to processing this operation. | |
| 2369 | * @param callback | |
| 2370 | * Callback function which will be called once the response has been | |
| 2371 | * processed. | |
| 2372 | * @param callback_arg | |
| 2373 | * Application-specific pointer which will be passed to the callback. | |
| 2374 | */ | |
| 2375 | globus_result_t | |
| 2376 | NotificationProducerTestPortType_GetResourceProperty_register_response( | |
| 2377 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2378 | NotificationProducerTestPortType_GetResourceProperty_response_callback_func_t callback, | |
| 2379 | void * callback_arg) | |
| 2380 | 0 | { |
| 2381 | 0 | return globus_soap_client_register_response( |
| 2382 | client_handle, | |
| 2383 | (globus_soap_client_response_callback_func_t) callback, | |
| 2384 | callback_arg); | |
| 2385 | } | |
| 2386 | ||
| 2387 | /** | |
| 2388 | * Nonblocking operation invocation with EPR | |
| 2389 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2390 | * | |
| 2391 | * Begin processing a request for the GetResourceProperty operation. The operation will | |
| 2392 | * sent to the service named by the @a epr and after the response is received, | |
| 2393 | * the @a callback function will be invoked. | |
| 2394 | * | |
| 2395 | * @param handle | |
| 2396 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2397 | * contains the state related to processing this operation. | |
| 2398 | * @param epr | |
| 2399 | * Endpoint Reference of the service and resource which will process | |
| 2400 | * the operation. | |
| 2401 | * @param input | |
| 2402 | * Input parameter to the operation. | |
| 2403 | * @param callback | |
| 2404 | * Callback function which will be called once the operation has been | |
| 2405 | * processed. | |
| 2406 | * @param callback_arg | |
| 2407 | * Application-specific pointer which will be passed to the callback. | |
| 2408 | */ | |
| 2409 | globus_result_t | |
| 2410 | NotificationProducerTestPortType_GetResourceProperty_epr_register( | |
| 2411 | NotificationProducerTestService_client_handle_t handle, | |
| 2412 | const wsa_EndpointReferenceType * epr, | |
| 2413 | const xsd_QName * input, | |
| 2414 | NotificationProducerTestPortType_GetResourceProperty_response_callback_func_t callback, | |
| 2415 | void * callback_arg) | |
| 2416 | 0 | { |
| 2417 | globus_result_t result; | |
| 2418 | ||
| 2419 | 0 | result = globus_soap_client_handle_attr_set( |
| 2420 | handle, | |
| 2421 | WSADDR_EPR_KEY, | |
| 2422 | wsa_EndpointReferenceType_info.copy, | |
| 2423 | wsa_EndpointReferenceType_info.destroy, | |
| 2424 | (void *) epr); | |
| 2425 | ||
| 2426 | 0 | if (result != GLOBUS_SUCCESS) |
| 2427 | { | |
| 2428 | 0 | goto out; |
| 2429 | } | |
| 2430 | ||
| 2431 | 0 | result = globus_soap_client_operation_register( |
| 2432 | handle, | |
| 2433 | epr->Address.base_value, | |
| 2434 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2435 | (void *) input, | |
| 2436 | (globus_soap_client_response_callback_func_t) callback, | |
| 2437 | callback_arg); | |
| 2438 | 0 | out: |
| 2439 | 0 | return result; |
| 2440 | } | |
| 2441 | ||
| 2442 | /** | |
| 2443 | * Nonblocking operation invocation | |
| 2444 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2445 | * | |
| 2446 | * Begin processing a request for the GetResourceProperty operation. The operation will | |
| 2447 | * sent to the service located at @a endpoint and after the response is | |
| 2448 | * received, the @a callback function will be invoked. | |
| 2449 | * | |
| 2450 | * @param handle | |
| 2451 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2452 | * contains the state related to processing this operation. | |
| 2453 | * @param endpoint | |
| 2454 | * URI of the service endpoint to send the request to. | |
| 2455 | * @param input | |
| 2456 | * Input parameter to the operation. | |
| 2457 | * @param callback | |
| 2458 | * Callback function which will be called once the operation has been | |
| 2459 | * processed. | |
| 2460 | * @param callback_arg | |
| 2461 | * Application-specific pointer which will be passed to the callback. | |
| 2462 | */ | |
| 2463 | globus_result_t | |
| 2464 | NotificationProducerTestPortType_GetResourceProperty_register( | |
| 2465 | NotificationProducerTestService_client_handle_t handle, | |
| 2466 | const char * endpoint, | |
| 2467 | const xsd_QName * input, | |
| 2468 | NotificationProducerTestPortType_GetResourceProperty_response_callback_func_t callback, | |
| 2469 | void * callback_arg) | |
| 2470 | 0 | { |
| 2471 | 0 | return globus_soap_client_operation_register( |
| 2472 | handle, | |
| 2473 | endpoint, | |
| 2474 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2475 | (void *) input, | |
| 2476 | (globus_soap_client_response_callback_func_t) callback, | |
| 2477 | callback_arg); | |
| 2478 | } | |
| 2479 | ||
| 2480 | ||
| 2481 | ||
| 2482 | /** | |
| 2483 | * Blocking operation invocation with EPR | |
| 2484 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2485 | * | |
| 2486 | * Request that an the GetResourceProperty operation be invoked by the service and | |
| 2487 | * resource named by the @a epr parameter. | |
| 2488 | ||
| 2489 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2490 | * @a output parameter will be set to the result of the operation. | |
| 2491 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2492 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2493 | * error occurred, and the result's error type should be checked. | |
| 2494 | ||
| 2495 | * | |
| 2496 | * @param handle | |
| 2497 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2498 | * contains the state related to processing this operation. | |
| 2499 | * @param epr | |
| 2500 | * Endpoint Reference of the service and resource which will process | |
| 2501 | * the operation. | |
| 2502 | * @param input | |
| 2503 | * Input parameter to the operation. | |
| 2504 | ||
| 2505 | * @param output | |
| 2506 | * The output of the operation, if the operation succeeded. | |
| 2507 | * @param fault_type | |
| 2508 | * The type of fault sent as a result of the operation, if the operation | |
| 2509 | * failed. If the operation succeeded, this will be NULL. | |
| 2510 | * @param fault | |
| 2511 | * The fault element which was received, if the operation failed. | |
| 2512 | * If the operation succeeded, this will be NULL. | |
| 2513 | ||
| 2514 | */ | |
| 2515 | globus_result_t | |
| 2516 | NotificationProducerTestPortType_GetResourceProperty_epr( | |
| 2517 | NotificationProducerTestService_client_handle_t handle, | |
| 2518 | const wsa_EndpointReferenceType * epr, | |
| 2519 | const xsd_QName * input, | |
| 2520 | wsrp_GetResourcePropertyResponseType * * output, | |
| 2521 | NotificationProducerTestPortType_GetResourceProperty_fault_t * fault_type, | |
| 2522 | xsd_any * * fault) | |
| 2523 | 39 | { |
| 2524 | globus_result_t result; | |
| 2525 | ||
| 2526 | 39 | result = globus_soap_client_handle_attr_set( |
| 2527 | handle, | |
| 2528 | WSADDR_EPR_KEY, | |
| 2529 | wsa_EndpointReferenceType_info.copy, | |
| 2530 | wsa_EndpointReferenceType_info.destroy, | |
| 2531 | (void *) epr); | |
| 2532 | ||
| 2533 | 39 | if (result != GLOBUS_SUCCESS) |
| 2534 | { | |
| 2535 | 0 | goto out; |
| 2536 | } | |
| 2537 | 39 | result = globus_soap_client_operation( |
| 2538 | handle, | |
| 2539 | epr->Address.base_value, | |
| 2540 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2541 | (void *) input, | |
| 2542 | ||
| 2543 | (void **) output, | |
| 2544 | (int *) fault_type, | |
| 2545 | fault | |
| 2546 | ); | |
| 2547 | 39 | out: |
| 2548 | 39 | return result; |
| 2549 | } | |
| 2550 | ||
| 2551 | /** | |
| 2552 | * Blocking operation invocation | |
| 2553 | * @ingroup NotificationProducerTestPortType_GetResourceProperty_operation | |
| 2554 | * | |
| 2555 | * Request that an the GetResourceProperty operation be invoked by the service at | |
| 2556 | * @a endpoint. | |
| 2557 | ||
| 2558 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2559 | * @a output parameter will be set to the result of the operation. | |
| 2560 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2561 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2562 | * error occurred, and the result's error type should be checked. | |
| 2563 | ||
| 2564 | * | |
| 2565 | * @param handle | |
| 2566 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2567 | * contains the state related to processing this operation. | |
| 2568 | * @param endpoint | |
| 2569 | * URI of the service endpoint to send the request to. | |
| 2570 | * @param input | |
| 2571 | * Input parameter to the operation. | |
| 2572 | ||
| 2573 | * @param output | |
| 2574 | * The output of the operation, if the operation succeeded. | |
| 2575 | * @param fault_type | |
| 2576 | * The type of fault sent as a result of the operation, if the operation | |
| 2577 | * failed. If the operation succeeded, this will be NULL. | |
| 2578 | * @param fault | |
| 2579 | * The fault element which was received, if the operation failed. | |
| 2580 | * If the operation succeeded, this will be NULL. | |
| 2581 | ||
| 2582 | */ | |
| 2583 | globus_result_t | |
| 2584 | NotificationProducerTestPortType_GetResourceProperty( | |
| 2585 | NotificationProducerTestService_client_handle_t handle, | |
| 2586 | const char * endpoint, | |
| 2587 | const xsd_QName * input, | |
| 2588 | wsrp_GetResourcePropertyResponseType * * output, | |
| 2589 | NotificationProducerTestPortType_GetResourceProperty_fault_t * fault_type, | |
| 2590 | xsd_any * * fault) | |
| 2591 | 0 | { |
| 2592 | 0 | return globus_soap_client_operation( |
| 2593 | handle, | |
| 2594 | endpoint, | |
| 2595 | &NotificationProducerTestPortType_l_GetResourceProperty_operation, | |
| 2596 | (void *) input, | |
| 2597 | ||
| 2598 | (void *) output, | |
| 2599 | (int *) fault_type, | |
| 2600 | fault | |
| 2601 | ); | |
| 2602 | } | |
| 2603 | ||
| 2604 | ||
| 2605 | /** | |
| 2606 | * Nonblocking operation request with EPR | |
| 2607 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2608 | * Begin sending a request for the <code>SetTopicValue</code> operation on a | |
| 2609 | * resource handled by the service named by the @a epr. When the operation | |
| 2610 | * request has been sent, the @a callback function will be invoked. | |
| 2611 | * | |
| 2612 | * @param client_handle | |
| 2613 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2614 | * contains the state related to processing this operation. | |
| 2615 | * @param epr | |
| 2616 | * Endpoint Reference of the service and resource which will process | |
| 2617 | * the operation. | |
| 2618 | * @param input | |
| 2619 | * Input parameter to the operation. | |
| 2620 | * @param callback | |
| 2621 | * Callback function which will be called once the request has been | |
| 2622 | * sent | |
| 2623 | * @param callback_arg | |
| 2624 | * Application-specific pointer which will be passed to the callback. | |
| 2625 | */ | |
| 2626 | globus_result_t | |
| 2627 | NotificationProducerTestPortType_SetTopicValue_epr_register_request( | |
| 2628 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2629 | const wsa_EndpointReferenceType * epr, | |
| 2630 | const nptest_SetTopicValueType * input, | |
| 2631 | NotificationProducerTestPortType_SetTopicValue_request_callback_func_t callback, | |
| 2632 | void * callback_arg) | |
| 2633 | 0 | { |
| 2634 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 2635 | ||
| 2636 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 2637 | 0 | globus_assert_string(epr->Address.base_value, |
| 2638 | "NULL EndpointReference Address"); | |
| 2639 | ||
| 2640 | 0 | result = globus_soap_client_handle_attr_set( |
| 2641 | client_handle, | |
| 2642 | WSADDR_EPR_KEY, | |
| 2643 | wsa_EndpointReferenceType_info.copy, | |
| 2644 | wsa_EndpointReferenceType_info.destroy, | |
| 2645 | (void *) epr); | |
| 2646 | ||
| 2647 | 0 | if (result != GLOBUS_SUCCESS) |
| 2648 | { | |
| 2649 | 0 | goto out; |
| 2650 | } | |
| 2651 | ||
| 2652 | 0 | result = globus_soap_client_register_request( |
| 2653 | client_handle, | |
| 2654 | epr->Address.base_value, | |
| 2655 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2656 | (void *) input, | |
| 2657 | callback, | |
| 2658 | callback_arg); | |
| 2659 | ||
| 2660 | 0 | out: |
| 2661 | 0 | return result; |
| 2662 | } | |
| 2663 | ||
| 2664 | /** | |
| 2665 | * Nonblocking operation request | |
| 2666 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2667 | * Begin sending a request for the <code>SetTopicValue</code> operation to | |
| 2668 | * the service at @a endpoint. When the operation | |
| 2669 | * request has been sent, the @a callback function will be invoked. | |
| 2670 | * @param handle | |
| 2671 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2672 | * contains the state related to processing this operation. | |
| 2673 | * @param endpoint | |
| 2674 | * URI of the service endpoint to send the request to. | |
| 2675 | * @param input | |
| 2676 | * Input parameter to the operation. | |
| 2677 | * @param callback | |
| 2678 | * Callback function which will be called once the request has been | |
| 2679 | * sent | |
| 2680 | * @param callback_arg | |
| 2681 | * Application-specific pointer which will be passed to the callback. | |
| 2682 | */ | |
| 2683 | globus_result_t | |
| 2684 | NotificationProducerTestPortType_SetTopicValue_register_request( | |
| 2685 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2686 | const char * endpoint, | |
| 2687 | const nptest_SetTopicValueType * input, | |
| 2688 | NotificationProducerTestPortType_SetTopicValue_request_callback_func_t callback, | |
| 2689 | void * callback_arg) | |
| 2690 | 0 | { |
| 2691 | 0 | return globus_soap_client_register_request( |
| 2692 | client_handle, | |
| 2693 | endpoint, | |
| 2694 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2695 | (void *) input, | |
| 2696 | callback, | |
| 2697 | callback_arg); | |
| 2698 | } | |
| 2699 | ||
| 2700 | ||
| 2701 | ||
| 2702 | static | |
| 2703 | void | |
| 2704 | NotificationProducerTestPortType_l_SetTopicValue_deserialize_fault( | |
| 2705 | globus_soap_message_handle_t handle, | |
| 2706 | const xsd_QName * fault_qname, | |
| 2707 | int * fault_type) | |
| 2708 | 0 | { |
| 2709 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETTOPICVALUE_NOFAULT; |
| 2710 | ||
| 2711 | 0 | if(fault_qname) |
| 2712 | { | |
| 2713 | ||
| 2714 | { | |
| 2715 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_SETTOPICVALUE_UNKNOWN_FAULT; |
| 2716 | } | |
| 2717 | } | |
| 2718 | 0 | } |
| 2719 | /* NotificationProducerTestPortType_l_SetTopicValue_deserialize_fault() */ | |
| 2720 | ||
| 2721 | /** | |
| 2722 | * Nonblocking operation response handling | |
| 2723 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2724 | * Begin parsing the request for the <code>SetTopicValue</code> operation begun | |
| 2725 | * by an earlier call to | |
| 2726 | * NotificationProducerTestPortType_SetTopicValue_register_request() or | |
| 2727 | * NotificationProducerTestPortType_SetTopicValue_epr_register_request(). Once the response has been parsed. | |
| 2728 | * the @a callback function will be called to pass the result of the operation | |
| 2729 | * to the application. | |
| 2730 | * | |
| 2731 | * @param client_handle | |
| 2732 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2733 | * contains the state related to processing this operation. | |
| 2734 | * @param callback | |
| 2735 | * Callback function which will be called once the response has been | |
| 2736 | * processed. | |
| 2737 | * @param callback_arg | |
| 2738 | * Application-specific pointer which will be passed to the callback. | |
| 2739 | */ | |
| 2740 | globus_result_t | |
| 2741 | NotificationProducerTestPortType_SetTopicValue_register_response( | |
| 2742 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2743 | NotificationProducerTestPortType_SetTopicValue_response_callback_func_t callback, | |
| 2744 | void * callback_arg) | |
| 2745 | 0 | { |
| 2746 | 0 | return globus_soap_client_register_response( |
| 2747 | client_handle, | |
| 2748 | (globus_soap_client_response_callback_func_t) callback, | |
| 2749 | callback_arg); | |
| 2750 | } | |
| 2751 | ||
| 2752 | /** | |
| 2753 | * Nonblocking operation invocation with EPR | |
| 2754 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2755 | * | |
| 2756 | * Begin processing a request for the SetTopicValue operation. The operation will | |
| 2757 | * sent to the service named by the @a epr and after the response is received, | |
| 2758 | * the @a callback function will be invoked. | |
| 2759 | * | |
| 2760 | * @param handle | |
| 2761 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2762 | * contains the state related to processing this operation. | |
| 2763 | * @param epr | |
| 2764 | * Endpoint Reference of the service and resource which will process | |
| 2765 | * the operation. | |
| 2766 | * @param input | |
| 2767 | * Input parameter to the operation. | |
| 2768 | * @param callback | |
| 2769 | * Callback function which will be called once the operation has been | |
| 2770 | * processed. | |
| 2771 | * @param callback_arg | |
| 2772 | * Application-specific pointer which will be passed to the callback. | |
| 2773 | */ | |
| 2774 | globus_result_t | |
| 2775 | NotificationProducerTestPortType_SetTopicValue_epr_register( | |
| 2776 | NotificationProducerTestService_client_handle_t handle, | |
| 2777 | const wsa_EndpointReferenceType * epr, | |
| 2778 | const nptest_SetTopicValueType * input, | |
| 2779 | NotificationProducerTestPortType_SetTopicValue_response_callback_func_t callback, | |
| 2780 | void * callback_arg) | |
| 2781 | 0 | { |
| 2782 | globus_result_t result; | |
| 2783 | ||
| 2784 | 0 | result = globus_soap_client_handle_attr_set( |
| 2785 | handle, | |
| 2786 | WSADDR_EPR_KEY, | |
| 2787 | wsa_EndpointReferenceType_info.copy, | |
| 2788 | wsa_EndpointReferenceType_info.destroy, | |
| 2789 | (void *) epr); | |
| 2790 | ||
| 2791 | 0 | if (result != GLOBUS_SUCCESS) |
| 2792 | { | |
| 2793 | 0 | goto out; |
| 2794 | } | |
| 2795 | ||
| 2796 | 0 | result = globus_soap_client_operation_register( |
| 2797 | handle, | |
| 2798 | epr->Address.base_value, | |
| 2799 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2800 | (void *) input, | |
| 2801 | (globus_soap_client_response_callback_func_t) callback, | |
| 2802 | callback_arg); | |
| 2803 | 0 | out: |
| 2804 | 0 | return result; |
| 2805 | } | |
| 2806 | ||
| 2807 | /** | |
| 2808 | * Nonblocking operation invocation | |
| 2809 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2810 | * | |
| 2811 | * Begin processing a request for the SetTopicValue operation. The operation will | |
| 2812 | * sent to the service located at @a endpoint and after the response is | |
| 2813 | * received, the @a callback function will be invoked. | |
| 2814 | * | |
| 2815 | * @param handle | |
| 2816 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2817 | * contains the state related to processing this operation. | |
| 2818 | * @param endpoint | |
| 2819 | * URI of the service endpoint to send the request to. | |
| 2820 | * @param input | |
| 2821 | * Input parameter to the operation. | |
| 2822 | * @param callback | |
| 2823 | * Callback function which will be called once the operation has been | |
| 2824 | * processed. | |
| 2825 | * @param callback_arg | |
| 2826 | * Application-specific pointer which will be passed to the callback. | |
| 2827 | */ | |
| 2828 | globus_result_t | |
| 2829 | NotificationProducerTestPortType_SetTopicValue_register( | |
| 2830 | NotificationProducerTestService_client_handle_t handle, | |
| 2831 | const char * endpoint, | |
| 2832 | const nptest_SetTopicValueType * input, | |
| 2833 | NotificationProducerTestPortType_SetTopicValue_response_callback_func_t callback, | |
| 2834 | void * callback_arg) | |
| 2835 | 0 | { |
| 2836 | 0 | return globus_soap_client_operation_register( |
| 2837 | handle, | |
| 2838 | endpoint, | |
| 2839 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2840 | (void *) input, | |
| 2841 | (globus_soap_client_response_callback_func_t) callback, | |
| 2842 | callback_arg); | |
| 2843 | } | |
| 2844 | ||
| 2845 | ||
| 2846 | ||
| 2847 | /** | |
| 2848 | * Blocking operation invocation with EPR | |
| 2849 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2850 | * | |
| 2851 | * Request that an the SetTopicValue operation be invoked by the service and | |
| 2852 | * resource named by the @a epr parameter. | |
| 2853 | ||
| 2854 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2855 | * @a output parameter will be set to the result of the operation. | |
| 2856 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2857 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2858 | * error occurred, and the result's error type should be checked. | |
| 2859 | ||
| 2860 | * | |
| 2861 | * @param handle | |
| 2862 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2863 | * contains the state related to processing this operation. | |
| 2864 | * @param epr | |
| 2865 | * Endpoint Reference of the service and resource which will process | |
| 2866 | * the operation. | |
| 2867 | * @param input | |
| 2868 | * Input parameter to the operation. | |
| 2869 | ||
| 2870 | * @param output | |
| 2871 | * The output of the operation, if the operation succeeded. | |
| 2872 | * @param fault_type | |
| 2873 | * The type of fault sent as a result of the operation, if the operation | |
| 2874 | * failed. If the operation succeeded, this will be NULL. | |
| 2875 | * @param fault | |
| 2876 | * The fault element which was received, if the operation failed. | |
| 2877 | * If the operation succeeded, this will be NULL. | |
| 2878 | ||
| 2879 | */ | |
| 2880 | globus_result_t | |
| 2881 | NotificationProducerTestPortType_SetTopicValue_epr( | |
| 2882 | NotificationProducerTestService_client_handle_t handle, | |
| 2883 | const wsa_EndpointReferenceType * epr, | |
| 2884 | const nptest_SetTopicValueType * input, | |
| 2885 | xsd_anyType * * output, | |
| 2886 | NotificationProducerTestPortType_SetTopicValue_fault_t * fault_type, | |
| 2887 | xsd_any * * fault) | |
| 2888 | 30 | { |
| 2889 | globus_result_t result; | |
| 2890 | ||
| 2891 | 30 | result = globus_soap_client_handle_attr_set( |
| 2892 | handle, | |
| 2893 | WSADDR_EPR_KEY, | |
| 2894 | wsa_EndpointReferenceType_info.copy, | |
| 2895 | wsa_EndpointReferenceType_info.destroy, | |
| 2896 | (void *) epr); | |
| 2897 | ||
| 2898 | 30 | if (result != GLOBUS_SUCCESS) |
| 2899 | { | |
| 2900 | 0 | goto out; |
| 2901 | } | |
| 2902 | 30 | result = globus_soap_client_operation( |
| 2903 | handle, | |
| 2904 | epr->Address.base_value, | |
| 2905 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2906 | (void *) input, | |
| 2907 | ||
| 2908 | (void **) output, | |
| 2909 | (int *) fault_type, | |
| 2910 | fault | |
| 2911 | ); | |
| 2912 | 30 | out: |
| 2913 | 30 | return result; |
| 2914 | } | |
| 2915 | ||
| 2916 | /** | |
| 2917 | * Blocking operation invocation | |
| 2918 | * @ingroup NotificationProducerTestPortType_SetTopicValue_operation | |
| 2919 | * | |
| 2920 | * Request that an the SetTopicValue operation be invoked by the service at | |
| 2921 | * @a endpoint. | |
| 2922 | ||
| 2923 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 2924 | * @a output parameter will be set to the result of the operation. | |
| 2925 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 2926 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 2927 | * error occurred, and the result's error type should be checked. | |
| 2928 | ||
| 2929 | * | |
| 2930 | * @param handle | |
| 2931 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2932 | * contains the state related to processing this operation. | |
| 2933 | * @param endpoint | |
| 2934 | * URI of the service endpoint to send the request to. | |
| 2935 | * @param input | |
| 2936 | * Input parameter to the operation. | |
| 2937 | ||
| 2938 | * @param output | |
| 2939 | * The output of the operation, if the operation succeeded. | |
| 2940 | * @param fault_type | |
| 2941 | * The type of fault sent as a result of the operation, if the operation | |
| 2942 | * failed. If the operation succeeded, this will be NULL. | |
| 2943 | * @param fault | |
| 2944 | * The fault element which was received, if the operation failed. | |
| 2945 | * If the operation succeeded, this will be NULL. | |
| 2946 | ||
| 2947 | */ | |
| 2948 | globus_result_t | |
| 2949 | NotificationProducerTestPortType_SetTopicValue( | |
| 2950 | NotificationProducerTestService_client_handle_t handle, | |
| 2951 | const char * endpoint, | |
| 2952 | const nptest_SetTopicValueType * input, | |
| 2953 | xsd_anyType * * output, | |
| 2954 | NotificationProducerTestPortType_SetTopicValue_fault_t * fault_type, | |
| 2955 | xsd_any * * fault) | |
| 2956 | 0 | { |
| 2957 | 0 | return globus_soap_client_operation( |
| 2958 | handle, | |
| 2959 | endpoint, | |
| 2960 | &NotificationProducerTestPortType_l_SetTopicValue_operation, | |
| 2961 | (void *) input, | |
| 2962 | ||
| 2963 | (void *) output, | |
| 2964 | (int *) fault_type, | |
| 2965 | fault | |
| 2966 | ); | |
| 2967 | } | |
| 2968 | ||
| 2969 | ||
| 2970 | /** | |
| 2971 | * Nonblocking operation request with EPR | |
| 2972 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 2973 | * Begin sending a request for the <code>DestroyTopic</code> operation on a | |
| 2974 | * resource handled by the service named by the @a epr. When the operation | |
| 2975 | * request has been sent, the @a callback function will be invoked. | |
| 2976 | * | |
| 2977 | * @param client_handle | |
| 2978 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 2979 | * contains the state related to processing this operation. | |
| 2980 | * @param epr | |
| 2981 | * Endpoint Reference of the service and resource which will process | |
| 2982 | * the operation. | |
| 2983 | * @param input | |
| 2984 | * Input parameter to the operation. | |
| 2985 | * @param callback | |
| 2986 | * Callback function which will be called once the request has been | |
| 2987 | * sent | |
| 2988 | * @param callback_arg | |
| 2989 | * Application-specific pointer which will be passed to the callback. | |
| 2990 | */ | |
| 2991 | globus_result_t | |
| 2992 | NotificationProducerTestPortType_DestroyTopic_epr_register_request( | |
| 2993 | NotificationProducerTestService_client_handle_t client_handle, | |
| 2994 | const wsa_EndpointReferenceType * epr, | |
| 2995 | const wsnt_TopicExpressionType * input, | |
| 2996 | NotificationProducerTestPortType_DestroyTopic_request_callback_func_t callback, | |
| 2997 | void * callback_arg) | |
| 2998 | 0 | { |
| 2999 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 3000 | ||
| 3001 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 3002 | 0 | globus_assert_string(epr->Address.base_value, |
| 3003 | "NULL EndpointReference Address"); | |
| 3004 | ||
| 3005 | 0 | result = globus_soap_client_handle_attr_set( |
| 3006 | client_handle, | |
| 3007 | WSADDR_EPR_KEY, | |
| 3008 | wsa_EndpointReferenceType_info.copy, | |
| 3009 | wsa_EndpointReferenceType_info.destroy, | |
| 3010 | (void *) epr); | |
| 3011 | ||
| 3012 | 0 | if (result != GLOBUS_SUCCESS) |
| 3013 | { | |
| 3014 | 0 | goto out; |
| 3015 | } | |
| 3016 | ||
| 3017 | 0 | result = globus_soap_client_register_request( |
| 3018 | client_handle, | |
| 3019 | epr->Address.base_value, | |
| 3020 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3021 | (void *) input, | |
| 3022 | callback, | |
| 3023 | callback_arg); | |
| 3024 | ||
| 3025 | 0 | out: |
| 3026 | 0 | return result; |
| 3027 | } | |
| 3028 | ||
| 3029 | /** | |
| 3030 | * Nonblocking operation request | |
| 3031 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3032 | * Begin sending a request for the <code>DestroyTopic</code> operation to | |
| 3033 | * the service at @a endpoint. When the operation | |
| 3034 | * request has been sent, the @a callback function will be invoked. | |
| 3035 | * @param handle | |
| 3036 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3037 | * contains the state related to processing this operation. | |
| 3038 | * @param endpoint | |
| 3039 | * URI of the service endpoint to send the request to. | |
| 3040 | * @param input | |
| 3041 | * Input parameter to the operation. | |
| 3042 | * @param callback | |
| 3043 | * Callback function which will be called once the request has been | |
| 3044 | * sent | |
| 3045 | * @param callback_arg | |
| 3046 | * Application-specific pointer which will be passed to the callback. | |
| 3047 | */ | |
| 3048 | globus_result_t | |
| 3049 | NotificationProducerTestPortType_DestroyTopic_register_request( | |
| 3050 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3051 | const char * endpoint, | |
| 3052 | const wsnt_TopicExpressionType * input, | |
| 3053 | NotificationProducerTestPortType_DestroyTopic_request_callback_func_t callback, | |
| 3054 | void * callback_arg) | |
| 3055 | 0 | { |
| 3056 | 0 | return globus_soap_client_register_request( |
| 3057 | client_handle, | |
| 3058 | endpoint, | |
| 3059 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3060 | (void *) input, | |
| 3061 | callback, | |
| 3062 | callback_arg); | |
| 3063 | } | |
| 3064 | ||
| 3065 | ||
| 3066 | ||
| 3067 | static | |
| 3068 | void | |
| 3069 | NotificationProducerTestPortType_l_DestroyTopic_deserialize_fault( | |
| 3070 | globus_soap_message_handle_t handle, | |
| 3071 | const xsd_QName * fault_qname, | |
| 3072 | int * fault_type) | |
| 3073 | 0 | { |
| 3074 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROYTOPIC_NOFAULT; |
| 3075 | ||
| 3076 | 0 | if(fault_qname) |
| 3077 | { | |
| 3078 | ||
| 3079 | { | |
| 3080 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_DESTROYTOPIC_UNKNOWN_FAULT; |
| 3081 | } | |
| 3082 | } | |
| 3083 | 0 | } |
| 3084 | /* NotificationProducerTestPortType_l_DestroyTopic_deserialize_fault() */ | |
| 3085 | ||
| 3086 | /** | |
| 3087 | * Nonblocking operation response handling | |
| 3088 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3089 | * Begin parsing the request for the <code>DestroyTopic</code> operation begun | |
| 3090 | * by an earlier call to | |
| 3091 | * NotificationProducerTestPortType_DestroyTopic_register_request() or | |
| 3092 | * NotificationProducerTestPortType_DestroyTopic_epr_register_request(). Once the response has been parsed. | |
| 3093 | * the @a callback function will be called to pass the result of the operation | |
| 3094 | * to the application. | |
| 3095 | * | |
| 3096 | * @param client_handle | |
| 3097 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3098 | * contains the state related to processing this operation. | |
| 3099 | * @param callback | |
| 3100 | * Callback function which will be called once the response has been | |
| 3101 | * processed. | |
| 3102 | * @param callback_arg | |
| 3103 | * Application-specific pointer which will be passed to the callback. | |
| 3104 | */ | |
| 3105 | globus_result_t | |
| 3106 | NotificationProducerTestPortType_DestroyTopic_register_response( | |
| 3107 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3108 | NotificationProducerTestPortType_DestroyTopic_response_callback_func_t callback, | |
| 3109 | void * callback_arg) | |
| 3110 | 0 | { |
| 3111 | 0 | return globus_soap_client_register_response( |
| 3112 | client_handle, | |
| 3113 | (globus_soap_client_response_callback_func_t) callback, | |
| 3114 | callback_arg); | |
| 3115 | } | |
| 3116 | ||
| 3117 | /** | |
| 3118 | * Nonblocking operation invocation with EPR | |
| 3119 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3120 | * | |
| 3121 | * Begin processing a request for the DestroyTopic operation. The operation will | |
| 3122 | * sent to the service named by the @a epr and after the response is received, | |
| 3123 | * the @a callback function will be invoked. | |
| 3124 | * | |
| 3125 | * @param handle | |
| 3126 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3127 | * contains the state related to processing this operation. | |
| 3128 | * @param epr | |
| 3129 | * Endpoint Reference of the service and resource which will process | |
| 3130 | * the operation. | |
| 3131 | * @param input | |
| 3132 | * Input parameter to the operation. | |
| 3133 | * @param callback | |
| 3134 | * Callback function which will be called once the operation has been | |
| 3135 | * processed. | |
| 3136 | * @param callback_arg | |
| 3137 | * Application-specific pointer which will be passed to the callback. | |
| 3138 | */ | |
| 3139 | globus_result_t | |
| 3140 | NotificationProducerTestPortType_DestroyTopic_epr_register( | |
| 3141 | NotificationProducerTestService_client_handle_t handle, | |
| 3142 | const wsa_EndpointReferenceType * epr, | |
| 3143 | const wsnt_TopicExpressionType * input, | |
| 3144 | NotificationProducerTestPortType_DestroyTopic_response_callback_func_t callback, | |
| 3145 | void * callback_arg) | |
| 3146 | 0 | { |
| 3147 | globus_result_t result; | |
| 3148 | ||
| 3149 | 0 | result = globus_soap_client_handle_attr_set( |
| 3150 | handle, | |
| 3151 | WSADDR_EPR_KEY, | |
| 3152 | wsa_EndpointReferenceType_info.copy, | |
| 3153 | wsa_EndpointReferenceType_info.destroy, | |
| 3154 | (void *) epr); | |
| 3155 | ||
| 3156 | 0 | if (result != GLOBUS_SUCCESS) |
| 3157 | { | |
| 3158 | 0 | goto out; |
| 3159 | } | |
| 3160 | ||
| 3161 | 0 | result = globus_soap_client_operation_register( |
| 3162 | handle, | |
| 3163 | epr->Address.base_value, | |
| 3164 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3165 | (void *) input, | |
| 3166 | (globus_soap_client_response_callback_func_t) callback, | |
| 3167 | callback_arg); | |
| 3168 | 0 | out: |
| 3169 | 0 | return result; |
| 3170 | } | |
| 3171 | ||
| 3172 | /** | |
| 3173 | * Nonblocking operation invocation | |
| 3174 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3175 | * | |
| 3176 | * Begin processing a request for the DestroyTopic operation. The operation will | |
| 3177 | * sent to the service located at @a endpoint and after the response is | |
| 3178 | * received, the @a callback function will be invoked. | |
| 3179 | * | |
| 3180 | * @param handle | |
| 3181 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3182 | * contains the state related to processing this operation. | |
| 3183 | * @param endpoint | |
| 3184 | * URI of the service endpoint to send the request to. | |
| 3185 | * @param input | |
| 3186 | * Input parameter to the operation. | |
| 3187 | * @param callback | |
| 3188 | * Callback function which will be called once the operation has been | |
| 3189 | * processed. | |
| 3190 | * @param callback_arg | |
| 3191 | * Application-specific pointer which will be passed to the callback. | |
| 3192 | */ | |
| 3193 | globus_result_t | |
| 3194 | NotificationProducerTestPortType_DestroyTopic_register( | |
| 3195 | NotificationProducerTestService_client_handle_t handle, | |
| 3196 | const char * endpoint, | |
| 3197 | const wsnt_TopicExpressionType * input, | |
| 3198 | NotificationProducerTestPortType_DestroyTopic_response_callback_func_t callback, | |
| 3199 | void * callback_arg) | |
| 3200 | 0 | { |
| 3201 | 0 | return globus_soap_client_operation_register( |
| 3202 | handle, | |
| 3203 | endpoint, | |
| 3204 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3205 | (void *) input, | |
| 3206 | (globus_soap_client_response_callback_func_t) callback, | |
| 3207 | callback_arg); | |
| 3208 | } | |
| 3209 | ||
| 3210 | ||
| 3211 | ||
| 3212 | /** | |
| 3213 | * Blocking operation invocation with EPR | |
| 3214 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3215 | * | |
| 3216 | * Request that an the DestroyTopic operation be invoked by the service and | |
| 3217 | * resource named by the @a epr parameter. | |
| 3218 | ||
| 3219 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 3220 | * @a output parameter will be set to the result of the operation. | |
| 3221 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 3222 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 3223 | * error occurred, and the result's error type should be checked. | |
| 3224 | ||
| 3225 | * | |
| 3226 | * @param handle | |
| 3227 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3228 | * contains the state related to processing this operation. | |
| 3229 | * @param epr | |
| 3230 | * Endpoint Reference of the service and resource which will process | |
| 3231 | * the operation. | |
| 3232 | * @param input | |
| 3233 | * Input parameter to the operation. | |
| 3234 | ||
| 3235 | * @param output | |
| 3236 | * The output of the operation, if the operation succeeded. | |
| 3237 | * @param fault_type | |
| 3238 | * The type of fault sent as a result of the operation, if the operation | |
| 3239 | * failed. If the operation succeeded, this will be NULL. | |
| 3240 | * @param fault | |
| 3241 | * The fault element which was received, if the operation failed. | |
| 3242 | * If the operation succeeded, this will be NULL. | |
| 3243 | ||
| 3244 | */ | |
| 3245 | globus_result_t | |
| 3246 | NotificationProducerTestPortType_DestroyTopic_epr( | |
| 3247 | NotificationProducerTestService_client_handle_t handle, | |
| 3248 | const wsa_EndpointReferenceType * epr, | |
| 3249 | const wsnt_TopicExpressionType * input, | |
| 3250 | xsd_anyType * * output, | |
| 3251 | NotificationProducerTestPortType_DestroyTopic_fault_t * fault_type, | |
| 3252 | xsd_any * * fault) | |
| 3253 | 3 | { |
| 3254 | globus_result_t result; | |
| 3255 | ||
| 3256 | 3 | result = globus_soap_client_handle_attr_set( |
| 3257 | handle, | |
| 3258 | WSADDR_EPR_KEY, | |
| 3259 | wsa_EndpointReferenceType_info.copy, | |
| 3260 | wsa_EndpointReferenceType_info.destroy, | |
| 3261 | (void *) epr); | |
| 3262 | ||
| 3263 | 3 | if (result != GLOBUS_SUCCESS) |
| 3264 | { | |
| 3265 | 0 | goto out; |
| 3266 | } | |
| 3267 | 3 | result = globus_soap_client_operation( |
| 3268 | handle, | |
| 3269 | epr->Address.base_value, | |
| 3270 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3271 | (void *) input, | |
| 3272 | ||
| 3273 | (void **) output, | |
| 3274 | (int *) fault_type, | |
| 3275 | fault | |
| 3276 | ); | |
| 3277 | 3 | out: |
| 3278 | 3 | return result; |
| 3279 | } | |
| 3280 | ||
| 3281 | /** | |
| 3282 | * Blocking operation invocation | |
| 3283 | * @ingroup NotificationProducerTestPortType_DestroyTopic_operation | |
| 3284 | * | |
| 3285 | * Request that an the DestroyTopic operation be invoked by the service at | |
| 3286 | * @a endpoint. | |
| 3287 | ||
| 3288 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 3289 | * @a output parameter will be set to the result of the operation. | |
| 3290 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 3291 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 3292 | * error occurred, and the result's error type should be checked. | |
| 3293 | ||
| 3294 | * | |
| 3295 | * @param handle | |
| 3296 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3297 | * contains the state related to processing this operation. | |
| 3298 | * @param endpoint | |
| 3299 | * URI of the service endpoint to send the request to. | |
| 3300 | * @param input | |
| 3301 | * Input parameter to the operation. | |
| 3302 | ||
| 3303 | * @param output | |
| 3304 | * The output of the operation, if the operation succeeded. | |
| 3305 | * @param fault_type | |
| 3306 | * The type of fault sent as a result of the operation, if the operation | |
| 3307 | * failed. If the operation succeeded, this will be NULL. | |
| 3308 | * @param fault | |
| 3309 | * The fault element which was received, if the operation failed. | |
| 3310 | * If the operation succeeded, this will be NULL. | |
| 3311 | ||
| 3312 | */ | |
| 3313 | globus_result_t | |
| 3314 | NotificationProducerTestPortType_DestroyTopic( | |
| 3315 | NotificationProducerTestService_client_handle_t handle, | |
| 3316 | const char * endpoint, | |
| 3317 | const wsnt_TopicExpressionType * input, | |
| 3318 | xsd_anyType * * output, | |
| 3319 | NotificationProducerTestPortType_DestroyTopic_fault_t * fault_type, | |
| 3320 | xsd_any * * fault) | |
| 3321 | 0 | { |
| 3322 | 0 | return globus_soap_client_operation( |
| 3323 | handle, | |
| 3324 | endpoint, | |
| 3325 | &NotificationProducerTestPortType_l_DestroyTopic_operation, | |
| 3326 | (void *) input, | |
| 3327 | ||
| 3328 | (void *) output, | |
| 3329 | (int *) fault_type, | |
| 3330 | fault | |
| 3331 | ); | |
| 3332 | } | |
| 3333 | ||
| 3334 | ||
| 3335 | /** | |
| 3336 | * Nonblocking operation request with EPR | |
| 3337 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3338 | * Begin sending a request for the <code>CreateTopic</code> operation on a | |
| 3339 | * resource handled by the service named by the @a epr. When the operation | |
| 3340 | * request has been sent, the @a callback function will be invoked. | |
| 3341 | * | |
| 3342 | * @param client_handle | |
| 3343 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3344 | * contains the state related to processing this operation. | |
| 3345 | * @param epr | |
| 3346 | * Endpoint Reference of the service and resource which will process | |
| 3347 | * the operation. | |
| 3348 | * @param input | |
| 3349 | * Input parameter to the operation. | |
| 3350 | * @param callback | |
| 3351 | * Callback function which will be called once the request has been | |
| 3352 | * sent | |
| 3353 | * @param callback_arg | |
| 3354 | * Application-specific pointer which will be passed to the callback. | |
| 3355 | */ | |
| 3356 | globus_result_t | |
| 3357 | NotificationProducerTestPortType_CreateTopic_epr_register_request( | |
| 3358 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3359 | const wsa_EndpointReferenceType * epr, | |
| 3360 | const nptest_CreateTopicType * input, | |
| 3361 | NotificationProducerTestPortType_CreateTopic_request_callback_func_t callback, | |
| 3362 | void * callback_arg) | |
| 3363 | 0 | { |
| 3364 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 3365 | ||
| 3366 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 3367 | 0 | globus_assert_string(epr->Address.base_value, |
| 3368 | "NULL EndpointReference Address"); | |
| 3369 | ||
| 3370 | 0 | result = globus_soap_client_handle_attr_set( |
| 3371 | client_handle, | |
| 3372 | WSADDR_EPR_KEY, | |
| 3373 | wsa_EndpointReferenceType_info.copy, | |
| 3374 | wsa_EndpointReferenceType_info.destroy, | |
| 3375 | (void *) epr); | |
| 3376 | ||
| 3377 | 0 | if (result != GLOBUS_SUCCESS) |
| 3378 | { | |
| 3379 | 0 | goto out; |
| 3380 | } | |
| 3381 | ||
| 3382 | 0 | result = globus_soap_client_register_request( |
| 3383 | client_handle, | |
| 3384 | epr->Address.base_value, | |
| 3385 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3386 | (void *) input, | |
| 3387 | callback, | |
| 3388 | callback_arg); | |
| 3389 | ||
| 3390 | 0 | out: |
| 3391 | 0 | return result; |
| 3392 | } | |
| 3393 | ||
| 3394 | /** | |
| 3395 | * Nonblocking operation request | |
| 3396 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3397 | * Begin sending a request for the <code>CreateTopic</code> operation to | |
| 3398 | * the service at @a endpoint. When the operation | |
| 3399 | * request has been sent, the @a callback function will be invoked. | |
| 3400 | * @param handle | |
| 3401 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3402 | * contains the state related to processing this operation. | |
| 3403 | * @param endpoint | |
| 3404 | * URI of the service endpoint to send the request to. | |
| 3405 | * @param input | |
| 3406 | * Input parameter to the operation. | |
| 3407 | * @param callback | |
| 3408 | * Callback function which will be called once the request has been | |
| 3409 | * sent | |
| 3410 | * @param callback_arg | |
| 3411 | * Application-specific pointer which will be passed to the callback. | |
| 3412 | */ | |
| 3413 | globus_result_t | |
| 3414 | NotificationProducerTestPortType_CreateTopic_register_request( | |
| 3415 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3416 | const char * endpoint, | |
| 3417 | const nptest_CreateTopicType * input, | |
| 3418 | NotificationProducerTestPortType_CreateTopic_request_callback_func_t callback, | |
| 3419 | void * callback_arg) | |
| 3420 | 0 | { |
| 3421 | 0 | return globus_soap_client_register_request( |
| 3422 | client_handle, | |
| 3423 | endpoint, | |
| 3424 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3425 | (void *) input, | |
| 3426 | callback, | |
| 3427 | callback_arg); | |
| 3428 | } | |
| 3429 | ||
| 3430 | ||
| 3431 | ||
| 3432 | static | |
| 3433 | void | |
| 3434 | NotificationProducerTestPortType_l_CreateTopic_deserialize_fault( | |
| 3435 | globus_soap_message_handle_t handle, | |
| 3436 | const xsd_QName * fault_qname, | |
| 3437 | int * fault_type) | |
| 3438 | 0 | { |
| 3439 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_CREATETOPIC_NOFAULT; |
| 3440 | ||
| 3441 | 0 | if(fault_qname) |
| 3442 | { | |
| 3443 | ||
| 3444 | { | |
| 3445 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_CREATETOPIC_UNKNOWN_FAULT; |
| 3446 | } | |
| 3447 | } | |
| 3448 | 0 | } |
| 3449 | /* NotificationProducerTestPortType_l_CreateTopic_deserialize_fault() */ | |
| 3450 | ||
| 3451 | /** | |
| 3452 | * Nonblocking operation response handling | |
| 3453 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3454 | * Begin parsing the request for the <code>CreateTopic</code> operation begun | |
| 3455 | * by an earlier call to | |
| 3456 | * NotificationProducerTestPortType_CreateTopic_register_request() or | |
| 3457 | * NotificationProducerTestPortType_CreateTopic_epr_register_request(). Once the response has been parsed. | |
| 3458 | * the @a callback function will be called to pass the result of the operation | |
| 3459 | * to the application. | |
| 3460 | * | |
| 3461 | * @param client_handle | |
| 3462 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3463 | * contains the state related to processing this operation. | |
| 3464 | * @param callback | |
| 3465 | * Callback function which will be called once the response has been | |
| 3466 | * processed. | |
| 3467 | * @param callback_arg | |
| 3468 | * Application-specific pointer which will be passed to the callback. | |
| 3469 | */ | |
| 3470 | globus_result_t | |
| 3471 | NotificationProducerTestPortType_CreateTopic_register_response( | |
| 3472 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3473 | NotificationProducerTestPortType_CreateTopic_response_callback_func_t callback, | |
| 3474 | void * callback_arg) | |
| 3475 | 0 | { |
| 3476 | 0 | return globus_soap_client_register_response( |
| 3477 | client_handle, | |
| 3478 | (globus_soap_client_response_callback_func_t) callback, | |
| 3479 | callback_arg); | |
| 3480 | } | |
| 3481 | ||
| 3482 | /** | |
| 3483 | * Nonblocking operation invocation with EPR | |
| 3484 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3485 | * | |
| 3486 | * Begin processing a request for the CreateTopic operation. The operation will | |
| 3487 | * sent to the service named by the @a epr and after the response is received, | |
| 3488 | * the @a callback function will be invoked. | |
| 3489 | * | |
| 3490 | * @param handle | |
| 3491 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3492 | * contains the state related to processing this operation. | |
| 3493 | * @param epr | |
| 3494 | * Endpoint Reference of the service and resource which will process | |
| 3495 | * the operation. | |
| 3496 | * @param input | |
| 3497 | * Input parameter to the operation. | |
| 3498 | * @param callback | |
| 3499 | * Callback function which will be called once the operation has been | |
| 3500 | * processed. | |
| 3501 | * @param callback_arg | |
| 3502 | * Application-specific pointer which will be passed to the callback. | |
| 3503 | */ | |
| 3504 | globus_result_t | |
| 3505 | NotificationProducerTestPortType_CreateTopic_epr_register( | |
| 3506 | NotificationProducerTestService_client_handle_t handle, | |
| 3507 | const wsa_EndpointReferenceType * epr, | |
| 3508 | const nptest_CreateTopicType * input, | |
| 3509 | NotificationProducerTestPortType_CreateTopic_response_callback_func_t callback, | |
| 3510 | void * callback_arg) | |
| 3511 | 0 | { |
| 3512 | globus_result_t result; | |
| 3513 | ||
| 3514 | 0 | result = globus_soap_client_handle_attr_set( |
| 3515 | handle, | |
| 3516 | WSADDR_EPR_KEY, | |
| 3517 | wsa_EndpointReferenceType_info.copy, | |
| 3518 | wsa_EndpointReferenceType_info.destroy, | |
| 3519 | (void *) epr); | |
| 3520 | ||
| 3521 | 0 | if (result != GLOBUS_SUCCESS) |
| 3522 | { | |
| 3523 | 0 | goto out; |
| 3524 | } | |
| 3525 | ||
| 3526 | 0 | result = globus_soap_client_operation_register( |
| 3527 | handle, | |
| 3528 | epr->Address.base_value, | |
| 3529 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3530 | (void *) input, | |
| 3531 | (globus_soap_client_response_callback_func_t) callback, | |
| 3532 | callback_arg); | |
| 3533 | 0 | out: |
| 3534 | 0 | return result; |
| 3535 | } | |
| 3536 | ||
| 3537 | /** | |
| 3538 | * Nonblocking operation invocation | |
| 3539 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3540 | * | |
| 3541 | * Begin processing a request for the CreateTopic operation. The operation will | |
| 3542 | * sent to the service located at @a endpoint and after the response is | |
| 3543 | * received, the @a callback function will be invoked. | |
| 3544 | * | |
| 3545 | * @param handle | |
| 3546 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3547 | * contains the state related to processing this operation. | |
| 3548 | * @param endpoint | |
| 3549 | * URI of the service endpoint to send the request to. | |
| 3550 | * @param input | |
| 3551 | * Input parameter to the operation. | |
| 3552 | * @param callback | |
| 3553 | * Callback function which will be called once the operation has been | |
| 3554 | * processed. | |
| 3555 | * @param callback_arg | |
| 3556 | * Application-specific pointer which will be passed to the callback. | |
| 3557 | */ | |
| 3558 | globus_result_t | |
| 3559 | NotificationProducerTestPortType_CreateTopic_register( | |
| 3560 | NotificationProducerTestService_client_handle_t handle, | |
| 3561 | const char * endpoint, | |
| 3562 | const nptest_CreateTopicType * input, | |
| 3563 | NotificationProducerTestPortType_CreateTopic_response_callback_func_t callback, | |
| 3564 | void * callback_arg) | |
| 3565 | 0 | { |
| 3566 | 0 | return globus_soap_client_operation_register( |
| 3567 | handle, | |
| 3568 | endpoint, | |
| 3569 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3570 | (void *) input, | |
| 3571 | (globus_soap_client_response_callback_func_t) callback, | |
| 3572 | callback_arg); | |
| 3573 | } | |
| 3574 | ||
| 3575 | ||
| 3576 | ||
| 3577 | /** | |
| 3578 | * Blocking operation invocation with EPR | |
| 3579 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3580 | * | |
| 3581 | * Request that an the CreateTopic operation be invoked by the service and | |
| 3582 | * resource named by the @a epr parameter. | |
| 3583 | ||
| 3584 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 3585 | * @a output parameter will be set to the result of the operation. | |
| 3586 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 3587 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 3588 | * error occurred, and the result's error type should be checked. | |
| 3589 | ||
| 3590 | * | |
| 3591 | * @param handle | |
| 3592 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3593 | * contains the state related to processing this operation. | |
| 3594 | * @param epr | |
| 3595 | * Endpoint Reference of the service and resource which will process | |
| 3596 | * the operation. | |
| 3597 | * @param input | |
| 3598 | * Input parameter to the operation. | |
| 3599 | ||
| 3600 | * @param output | |
| 3601 | * The output of the operation, if the operation succeeded. | |
| 3602 | * @param fault_type | |
| 3603 | * The type of fault sent as a result of the operation, if the operation | |
| 3604 | * failed. If the operation succeeded, this will be NULL. | |
| 3605 | * @param fault | |
| 3606 | * The fault element which was received, if the operation failed. | |
| 3607 | * If the operation succeeded, this will be NULL. | |
| 3608 | ||
| 3609 | */ | |
| 3610 | globus_result_t | |
| 3611 | NotificationProducerTestPortType_CreateTopic_epr( | |
| 3612 | NotificationProducerTestService_client_handle_t handle, | |
| 3613 | const wsa_EndpointReferenceType * epr, | |
| 3614 | const nptest_CreateTopicType * input, | |
| 3615 | xsd_anyType * * output, | |
| 3616 | NotificationProducerTestPortType_CreateTopic_fault_t * fault_type, | |
| 3617 | xsd_any * * fault) | |
| 3618 | 57 | { |
| 3619 | globus_result_t result; | |
| 3620 | ||
| 3621 | 57 | result = globus_soap_client_handle_attr_set( |
| 3622 | handle, | |
| 3623 | WSADDR_EPR_KEY, | |
| 3624 | wsa_EndpointReferenceType_info.copy, | |
| 3625 | wsa_EndpointReferenceType_info.destroy, | |
| 3626 | (void *) epr); | |
| 3627 | ||
| 3628 | 57 | if (result != GLOBUS_SUCCESS) |
| 3629 | { | |
| 3630 | 0 | goto out; |
| 3631 | } | |
| 3632 | 57 | result = globus_soap_client_operation( |
| 3633 | handle, | |
| 3634 | epr->Address.base_value, | |
| 3635 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3636 | (void *) input, | |
| 3637 | ||
| 3638 | (void **) output, | |
| 3639 | (int *) fault_type, | |
| 3640 | fault | |
| 3641 | ); | |
| 3642 | 57 | out: |
| 3643 | 57 | return result; |
| 3644 | } | |
| 3645 | ||
| 3646 | /** | |
| 3647 | * Blocking operation invocation | |
| 3648 | * @ingroup NotificationProducerTestPortType_CreateTopic_operation | |
| 3649 | * | |
| 3650 | * Request that an the CreateTopic operation be invoked by the service at | |
| 3651 | * @a endpoint. | |
| 3652 | ||
| 3653 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 3654 | * @a output parameter will be set to the result of the operation. | |
| 3655 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 3656 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 3657 | * error occurred, and the result's error type should be checked. | |
| 3658 | ||
| 3659 | * | |
| 3660 | * @param handle | |
| 3661 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3662 | * contains the state related to processing this operation. | |
| 3663 | * @param endpoint | |
| 3664 | * URI of the service endpoint to send the request to. | |
| 3665 | * @param input | |
| 3666 | * Input parameter to the operation. | |
| 3667 | ||
| 3668 | * @param output | |
| 3669 | * The output of the operation, if the operation succeeded. | |
| 3670 | * @param fault_type | |
| 3671 | * The type of fault sent as a result of the operation, if the operation | |
| 3672 | * failed. If the operation succeeded, this will be NULL. | |
| 3673 | * @param fault | |
| 3674 | * The fault element which was received, if the operation failed. | |
| 3675 | * If the operation succeeded, this will be NULL. | |
| 3676 | ||
| 3677 | */ | |
| 3678 | globus_result_t | |
| 3679 | NotificationProducerTestPortType_CreateTopic( | |
| 3680 | NotificationProducerTestService_client_handle_t handle, | |
| 3681 | const char * endpoint, | |
| 3682 | const nptest_CreateTopicType * input, | |
| 3683 | xsd_anyType * * output, | |
| 3684 | NotificationProducerTestPortType_CreateTopic_fault_t * fault_type, | |
| 3685 | xsd_any * * fault) | |
| 3686 | 0 | { |
| 3687 | 0 | return globus_soap_client_operation( |
| 3688 | handle, | |
| 3689 | endpoint, | |
| 3690 | &NotificationProducerTestPortType_l_CreateTopic_operation, | |
| 3691 | (void *) input, | |
| 3692 | ||
| 3693 | (void *) output, | |
| 3694 | (int *) fault_type, | |
| 3695 | fault | |
| 3696 | ); | |
| 3697 | } | |
| 3698 | ||
| 3699 | ||
| 3700 | /** | |
| 3701 | * Nonblocking operation request with EPR | |
| 3702 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3703 | * Begin sending a request for the <code>CreateNotificationProducerTest</code> operation on a | |
| 3704 | * resource handled by the service named by the @a epr. When the operation | |
| 3705 | * request has been sent, the @a callback function will be invoked. | |
| 3706 | * | |
| 3707 | * @param client_handle | |
| 3708 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3709 | * contains the state related to processing this operation. | |
| 3710 | * @param epr | |
| 3711 | * Endpoint Reference of the service and resource which will process | |
| 3712 | * the operation. | |
| 3713 | * @param input | |
| 3714 | * Input parameter to the operation. | |
| 3715 | * @param callback | |
| 3716 | * Callback function which will be called once the request has been | |
| 3717 | * sent | |
| 3718 | * @param callback_arg | |
| 3719 | * Application-specific pointer which will be passed to the callback. | |
| 3720 | */ | |
| 3721 | globus_result_t | |
| 3722 | NotificationProducerTestPortType_CreateNotificationProducerTest_epr_register_request( | |
| 3723 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3724 | const wsa_EndpointReferenceType * epr, | |
| 3725 | const xsd_anyType * input, | |
| 3726 | NotificationProducerTestPortType_CreateNotificationProducerTest_request_callback_func_t callback, | |
| 3727 | void * callback_arg) | |
| 3728 | 0 | { |
| 3729 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 3730 | ||
| 3731 | 0 | globus_assert_string(epr, "NULL EndpointReference"); |
| 3732 | 0 | globus_assert_string(epr->Address.base_value, |
| 3733 | "NULL EndpointReference Address"); | |
| 3734 | ||
| 3735 | 0 | result = globus_soap_client_handle_attr_set( |
| 3736 | client_handle, | |
| 3737 | WSADDR_EPR_KEY, | |
| 3738 | wsa_EndpointReferenceType_info.copy, | |
| 3739 | wsa_EndpointReferenceType_info.destroy, | |
| 3740 | (void *) epr); | |
| 3741 | ||
| 3742 | 0 | if (result != GLOBUS_SUCCESS) |
| 3743 | { | |
| 3744 | 0 | goto out; |
| 3745 | } | |
| 3746 | ||
| 3747 | 0 | result = globus_soap_client_register_request( |
| 3748 | client_handle, | |
| 3749 | epr->Address.base_value, | |
| 3750 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 3751 | (void *) input, | |
| 3752 | callback, | |
| 3753 | callback_arg); | |
| 3754 | ||
| 3755 | 0 | out: |
| 3756 | 0 | return result; |
| 3757 | } | |
| 3758 | ||
| 3759 | /** | |
| 3760 | * Nonblocking operation request | |
| 3761 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3762 | * Begin sending a request for the <code>CreateNotificationProducerTest</code> operation to | |
| 3763 | * the service at @a endpoint. When the operation | |
| 3764 | * request has been sent, the @a callback function will be invoked. | |
| 3765 | * @param handle | |
| 3766 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3767 | * contains the state related to processing this operation. | |
| 3768 | * @param endpoint | |
| 3769 | * URI of the service endpoint to send the request to. | |
| 3770 | * @param input | |
| 3771 | * Input parameter to the operation. | |
| 3772 | * @param callback | |
| 3773 | * Callback function which will be called once the request has been | |
| 3774 | * sent | |
| 3775 | * @param callback_arg | |
| 3776 | * Application-specific pointer which will be passed to the callback. | |
| 3777 | */ | |
| 3778 | globus_result_t | |
| 3779 | NotificationProducerTestPortType_CreateNotificationProducerTest_register_request( | |
| 3780 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3781 | const char * endpoint, | |
| 3782 | const xsd_anyType * input, | |
| 3783 | NotificationProducerTestPortType_CreateNotificationProducerTest_request_callback_func_t callback, | |
| 3784 | void * callback_arg) | |
| 3785 | 0 | { |
| 3786 | 0 | return globus_soap_client_register_request( |
| 3787 | client_handle, | |
| 3788 | endpoint, | |
| 3789 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 3790 | (void *) input, | |
| 3791 | callback, | |
| 3792 | callback_arg); | |
| 3793 | } | |
| 3794 | ||
| 3795 | ||
| 3796 | ||
| 3797 | static | |
| 3798 | void | |
| 3799 | NotificationProducerTestPortType_l_CreateNotificationProducerTest_deserialize_fault( | |
| 3800 | globus_soap_message_handle_t handle, | |
| 3801 | const xsd_QName * fault_qname, | |
| 3802 | int * fault_type) | |
| 3803 | 0 | { |
| 3804 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_CREATENOTIFICATIONPRODUCERTEST_NOFAULT; |
| 3805 | ||
| 3806 | 0 | if(fault_qname) |
| 3807 | { | |
| 3808 | ||
| 3809 | { | |
| 3810 | 0 | *fault_type = NOTIFICATIONPRODUCERTESTPORTTYPE_CREATENOTIFICATIONPRODUCERTEST_UNKNOWN_FAULT; |
| 3811 | } | |
| 3812 | } | |
| 3813 | 0 | } |
| 3814 | /* NotificationProducerTestPortType_l_CreateNotificationProducerTest_deserialize_fault() */ | |
| 3815 | ||
| 3816 | /** | |
| 3817 | * Nonblocking operation response handling | |
| 3818 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3819 | * Begin parsing the request for the <code>CreateNotificationProducerTest</code> operation begun | |
| 3820 | * by an earlier call to | |
| 3821 | * NotificationProducerTestPortType_CreateNotificationProducerTest_register_request() or | |
| 3822 | * NotificationProducerTestPortType_CreateNotificationProducerTest_epr_register_request(). Once the response has been parsed. | |
| 3823 | * the @a callback function will be called to pass the result of the operation | |
| 3824 | * to the application. | |
| 3825 | * | |
| 3826 | * @param client_handle | |
| 3827 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3828 | * contains the state related to processing this operation. | |
| 3829 | * @param callback | |
| 3830 | * Callback function which will be called once the response has been | |
| 3831 | * processed. | |
| 3832 | * @param callback_arg | |
| 3833 | * Application-specific pointer which will be passed to the callback. | |
| 3834 | */ | |
| 3835 | globus_result_t | |
| 3836 | NotificationProducerTestPortType_CreateNotificationProducerTest_register_response( | |
| 3837 | NotificationProducerTestService_client_handle_t client_handle, | |
| 3838 | NotificationProducerTestPortType_CreateNotificationProducerTest_response_callback_func_t callback, | |
| 3839 | void * callback_arg) | |
| 3840 | 0 | { |
| 3841 | 0 | return globus_soap_client_register_response( |
| 3842 | client_handle, | |
| 3843 | (globus_soap_client_response_callback_func_t) callback, | |
| 3844 | callback_arg); | |
| 3845 | } | |
| 3846 | ||
| 3847 | /** | |
| 3848 | * Nonblocking operation invocation with EPR | |
| 3849 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3850 | * | |
| 3851 | * Begin processing a request for the CreateNotificationProducerTest operation. The operation will | |
| 3852 | * sent to the service named by the @a epr and after the response is received, | |
| 3853 | * the @a callback function will be invoked. | |
| 3854 | * | |
| 3855 | * @param handle | |
| 3856 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3857 | * contains the state related to processing this operation. | |
| 3858 | * @param epr | |
| 3859 | * Endpoint Reference of the service and resource which will process | |
| 3860 | * the operation. | |
| 3861 | * @param input | |
| 3862 | * Input parameter to the operation. | |
| 3863 | * @param callback | |
| 3864 | * Callback function which will be called once the operation has been | |
| 3865 | * processed. | |
| 3866 | * @param callback_arg | |
| 3867 | * Application-specific pointer which will be passed to the callback. | |
| 3868 | */ | |
| 3869 | globus_result_t | |
| 3870 | NotificationProducerTestPortType_CreateNotificationProducerTest_epr_register( | |
| 3871 | NotificationProducerTestService_client_handle_t handle, | |
| 3872 | const wsa_EndpointReferenceType * epr, | |
| 3873 | const xsd_anyType * input, | |
| 3874 | NotificationProducerTestPortType_CreateNotificationProducerTest_response_callback_func_t callback, | |
| 3875 | void * callback_arg) | |
| 3876 | 0 | { |
| 3877 | globus_result_t result; | |
| 3878 | ||
| 3879 | 0 | result = globus_soap_client_handle_attr_set( |
| 3880 | handle, | |
| 3881 | WSADDR_EPR_KEY, | |
| 3882 | wsa_EndpointReferenceType_info.copy, | |
| 3883 | wsa_EndpointReferenceType_info.destroy, | |
| 3884 | (void *) epr); | |
| 3885 | ||
| 3886 | 0 | if (result != GLOBUS_SUCCESS) |
| 3887 | { | |
| 3888 | 0 | goto out; |
| 3889 | } | |
| 3890 | ||
| 3891 | 0 | result = globus_soap_client_operation_register( |
| 3892 | handle, | |
| 3893 | epr->Address.base_value, | |
| 3894 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 3895 | (void *) input, | |
| 3896 | (globus_soap_client_response_callback_func_t) callback, | |
| 3897 | callback_arg); | |
| 3898 | 0 | out: |
| 3899 | 0 | return result; |
| 3900 | } | |
| 3901 | ||
| 3902 | /** | |
| 3903 | * Nonblocking operation invocation | |
| 3904 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3905 | * | |
| 3906 | * Begin processing a request for the CreateNotificationProducerTest operation. The operation will | |
| 3907 | * sent to the service located at @a endpoint and after the response is | |
| 3908 | * received, the @a callback function will be invoked. | |
| 3909 | * | |
| 3910 | * @param handle | |
| 3911 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3912 | * contains the state related to processing this operation. | |
| 3913 | * @param endpoint | |
| 3914 | * URI of the service endpoint to send the request to. | |
| 3915 | * @param input | |
| 3916 | * Input parameter to the operation. | |
| 3917 | * @param callback | |
| 3918 | * Callback function which will be called once the operation has been | |
| 3919 | * processed. | |
| 3920 | * @param callback_arg | |
| 3921 | * Application-specific pointer which will be passed to the callback. | |
| 3922 | */ | |
| 3923 | globus_result_t | |
| 3924 | NotificationProducerTestPortType_CreateNotificationProducerTest_register( | |
| 3925 | NotificationProducerTestService_client_handle_t handle, | |
| 3926 | const char * endpoint, | |
| 3927 | const xsd_anyType * input, | |
| 3928 | NotificationProducerTestPortType_CreateNotificationProducerTest_response_callback_func_t callback, | |
| 3929 | void * callback_arg) | |
| 3930 | 0 | { |
| 3931 | 0 | return globus_soap_client_operation_register( |
| 3932 | handle, | |
| 3933 | endpoint, | |
| 3934 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 3935 | (void *) input, | |
| 3936 | (globus_soap_client_response_callback_func_t) callback, | |
| 3937 | callback_arg); | |
| 3938 | } | |
| 3939 | ||
| 3940 | ||
| 3941 | ||
| 3942 | /** | |
| 3943 | * Blocking operation invocation with EPR | |
| 3944 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 3945 | * | |
| 3946 | * Request that an the CreateNotificationProducerTest operation be invoked by the service and | |
| 3947 | * resource named by the @a epr parameter. | |
| 3948 | ||
| 3949 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 3950 | * @a output parameter will be set to the result of the operation. | |
| 3951 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 3952 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 3953 | * error occurred, and the result's error type should be checked. | |
| 3954 | ||
| 3955 | * | |
| 3956 | * @param handle | |
| 3957 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 3958 | * contains the state related to processing this operation. | |
| 3959 | * @param epr | |
| 3960 | * Endpoint Reference of the service and resource which will process | |
| 3961 | * the operation. | |
| 3962 | * @param input | |
| 3963 | * Input parameter to the operation. | |
| 3964 | ||
| 3965 | * @param output | |
| 3966 | * The output of the operation, if the operation succeeded. | |
| 3967 | * @param fault_type | |
| 3968 | * The type of fault sent as a result of the operation, if the operation | |
| 3969 | * failed. If the operation succeeded, this will be NULL. | |
| 3970 | * @param fault | |
| 3971 | * The fault element which was received, if the operation failed. | |
| 3972 | * If the operation succeeded, this will be NULL. | |
| 3973 | ||
| 3974 | */ | |
| 3975 | globus_result_t | |
| 3976 | NotificationProducerTestPortType_CreateNotificationProducerTest_epr( | |
| 3977 | NotificationProducerTestService_client_handle_t handle, | |
| 3978 | const wsa_EndpointReferenceType * epr, | |
| 3979 | const xsd_anyType * input, | |
| 3980 | nptest_CreateNotificationProducerTestResponseType * * output, | |
| 3981 | NotificationProducerTestPortType_CreateNotificationProducerTest_fault_t * fault_type, | |
| 3982 | xsd_any * * fault) | |
| 3983 | 0 | { |
| 3984 | globus_result_t result; | |
| 3985 | ||
| 3986 | 0 | result = globus_soap_client_handle_attr_set( |
| 3987 | handle, | |
| 3988 | WSADDR_EPR_KEY, | |
| 3989 | wsa_EndpointReferenceType_info.copy, | |
| 3990 | wsa_EndpointReferenceType_info.destroy, | |
| 3991 | (void *) epr); | |
| 3992 | ||
| 3993 | 0 | if (result != GLOBUS_SUCCESS) |
| 3994 | { | |
| 3995 | 0 | goto out; |
| 3996 | } | |
| 3997 | 0 | result = globus_soap_client_operation( |
| 3998 | handle, | |
| 3999 | epr->Address.base_value, | |
| 4000 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 4001 | (void *) input, | |
| 4002 | ||
| 4003 | (void **) output, | |
| 4004 | (int *) fault_type, | |
| 4005 | fault | |
| 4006 | ); | |
| 4007 | 0 | out: |
| 4008 | 0 | return result; |
| 4009 | } | |
| 4010 | ||
| 4011 | /** | |
| 4012 | * Blocking operation invocation | |
| 4013 | * @ingroup NotificationProducerTestPortType_CreateNotificationProducerTest_operation | |
| 4014 | * | |
| 4015 | * Request that an the CreateNotificationProducerTest operation be invoked by the service at | |
| 4016 | * @a endpoint. | |
| 4017 | ||
| 4018 | * If the result is <code>GLOBUS_SUCCESS</code>, then the | |
| 4019 | * @a output parameter will be set to the result of the operation. | |
| 4020 | * Otherwise, if the @a fault and @a fault_type parameters are non-NULL, | |
| 4021 | * they indicate the SOAP fault type. If they are NULL, then some non-SOAP | |
| 4022 | * error occurred, and the result's error type should be checked. | |
| 4023 | ||
| 4024 | * | |
| 4025 | * @param handle | |
| 4026 | * The @link #NotificationProducerTestService_client_handle_t client handle @endlink which | |
| 4027 | * contains the state related to processing this operation. | |
| 4028 | * @param endpoint | |
| 4029 | * URI of the service endpoint to send the request to. | |
| 4030 | * @param input | |
| 4031 | * Input parameter to the operation. | |
| 4032 | ||
| 4033 | * @param output | |
| 4034 | * The output of the operation, if the operation succeeded. | |
| 4035 | * @param fault_type | |
| 4036 | * The type of fault sent as a result of the operation, if the operation | |
| 4037 | * failed. If the operation succeeded, this will be NULL. | |
| 4038 | * @param fault | |
| 4039 | * The fault element which was received, if the operation failed. | |
| 4040 | * If the operation succeeded, this will be NULL. | |
| 4041 | ||
| 4042 | */ | |
| 4043 | globus_result_t | |
| 4044 | NotificationProducerTestPortType_CreateNotificationProducerTest( | |
| 4045 | NotificationProducerTestService_client_handle_t handle, | |
| 4046 | const char * endpoint, | |
| 4047 | const xsd_anyType * input, | |
| 4048 | nptest_CreateNotificationProducerTestResponseType * * output, | |
| 4049 | NotificationProducerTestPortType_CreateNotificationProducerTest_fault_t * fault_type, | |
| 4050 | xsd_any * * fault) | |
| 4051 | 36 | { |
| 4052 | 36 | return globus_soap_client_operation( |
| 4053 | handle, | |
| 4054 | endpoint, | |
| 4055 | &NotificationProducerTestPortType_l_CreateNotificationProducerTest_operation, | |
| 4056 | (void *) input, | |
| 4057 | ||
| 4058 | (void *) output, | |
| 4059 | (int *) fault_type, | |
| 4060 | fault | |
| 4061 | ); |