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 "ResourcePropertiesTestService_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 * ResourcePropertiesTestService_l_extensions = NULL;
33 static globus_mutex_t ResourcePropertiesTestService_l_extensions_mutex;
34
35 static
36 int
37 ResourcePropertiesTestService_l_client_module_activate();
38
39 static
40 int
41 ResourcePropertiesTestService_l_client_module_deactivate();
42
43 globus_module_descriptor_t
44 ResourcePropertiesTestService_i_module =
45 {
46 "ResourcePropertiesTestService",
47 ResourcePropertiesTestService_l_client_module_activate,
48 ResourcePropertiesTestService_l_client_module_deactivate
49 };
50
51
52 static
53 void
54 ResourcePropertiesTestPortType_l_SetTerminationTime_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 ResourcePropertiesTestPortType_l_SetTerminationTime_operation =
62 {
63 { "http://docs.oasis-open.org/wsrf/rl-2", "SetTerminationTime" } ,
64 &wsrl_SetTerminationTimeType_info,
65
66 { "http://docs.oasis-open.org/wsrf/rl-2", "SetTerminationTimeResponse" },
67 &wsrl_SetTerminationTimeResponseType_info,
68
69 "http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination/SetTerminationTimeRequest",
70
71 "http://docs.oasis-open.org/wsrf/rlw-2/ScheduledResourceTermination/SetTerminationTimeResponse",
72
73
74 ResourcePropertiesTestPortType_l_SetTerminationTime_deserialize_fault
75
76 };
77
78
79 static
80 void
81 ResourcePropertiesTestPortType_l_Destroy_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 ResourcePropertiesTestPortType_l_Destroy_operation =
89 {
90 { "http://docs.oasis-open.org/wsrf/rl-2", "Destroy" } ,
91 &wsrl_DestroyType_info,
92
93 { "http://docs.oasis-open.org/wsrf/rl-2", "DestroyResponse" },
94 &wsrl_DestroyResponseType_info,
95
96 "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/DestroyRequest",
97
98 "http://docs.oasis-open.org/wsrf/rlw-2/ImmediateResourceTermination/DestroyResponse",
99
100
101 ResourcePropertiesTestPortType_l_Destroy_deserialize_fault
102
103 };
104
105
106 static
107 void
108 ResourcePropertiesTestPortType_l_SetResourceProperties_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 ResourcePropertiesTestPortType_l_SetResourceProperties_operation =
116 {
117 { "http://docs.oasis-open.org/wsrf/rp-2", "SetResourceProperties" } ,
118 &wsrp_SetResourcePropertiesType_info,
119
120 { "http://docs.oasis-open.org/wsrf/rp-2", "SetResourcePropertiesResponse" },
121 &wsrp_SetResourcePropertiesResponseType_info,
122
123 "http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesRequest",
124
125 "http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesResponse",
126
127
128 ResourcePropertiesTestPortType_l_SetResourceProperties_deserialize_fault
129
130 };
131
132
133 static
134 void
135 ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_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 ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation =
143 {
144 { "http://docs.oasis-open.org/wsrf/rp-2", "GetMultipleResourceProperties" } ,
145 &wsrp_GetMultipleResourcePropertiesType_info,
146
147 { "http://docs.oasis-open.org/wsrf/rp-2", "GetMultipleResourcePropertiesResponse" },
148 &wsrp_GetMultipleResourcePropertiesResponseType_info,
149
150 "http://docs.oasis-open.org/wsrf/rpw-2/GetMultipleResourceProperties/GetMultipleResourcePropertiesRequest",
151
152 "http://docs.oasis-open.org/wsrf/rpw-2/GetMultipleResourceProperties/GetMultipleResourcePropertiesResponse",
153
154
155 ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_deserialize_fault
156
157 };
158
159
160 static
161 void
162 ResourcePropertiesTestPortType_l_QueryResourceProperties_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 ResourcePropertiesTestPortType_l_QueryResourceProperties_operation =
170 {
171 { "http://docs.oasis-open.org/wsrf/rp-2", "QueryResourceProperties" } ,
172 &wsrp_QueryResourcePropertiesType_info,
173
174 { "http://docs.oasis-open.org/wsrf/rp-2", "QueryResourcePropertiesResponse" },
175 &wsrp_QueryResourcePropertiesResponseType_info,
176
177 "http://docs.oasis-open.org/wsrf/rpw-2/QueryResourceProperties/QueryResourcePropertiesRequest",
178
179 "http://docs.oasis-open.org/wsrf/rpw-2/QueryResourceProperties/QueryResourcePropertiesResponse",
180
181
182 ResourcePropertiesTestPortType_l_QueryResourceProperties_deserialize_fault
183
184 };
185
186
187 static
188 void
189 ResourcePropertiesTestPortType_l_GetResourceProperty_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 ResourcePropertiesTestPortType_l_GetResourceProperty_operation =
197 {
198 { "http://docs.oasis-open.org/wsrf/rp-2", "GetResourceProperty" } ,
199 &xsd_QName_info,
200
201 { "http://docs.oasis-open.org/wsrf/rp-2", "GetResourcePropertyResponse" },
202 &wsrp_GetResourcePropertyResponseType_info,
203
204 "http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest",
205
206 "http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse",
207
208
209 ResourcePropertiesTestPortType_l_GetResourceProperty_deserialize_fault
210
211 };
212
213
214 static
215 void
216 ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_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 ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation =
224 {
225 { "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest", "CreateResourcePropertiesTest" } ,
226 &rptest_CreateResourcePropertiesTestType_info,
227
228 { "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest", "CreateResourcePropertiesTestResponse" },
229 &rptest_CreateResourcePropertiesTestResponseType_info,
230
231 "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest/ResourcePropertiesTestPortType/CreateResourcePropertiesTestRequest",
232
233 "http://www.globus.org/namespaces/2007/06/ResourcePropertiesTest/ResourcePropertiesTestPortType/CreateResourcePropertiesTestResponse",
234
235
236 ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_deserialize_fault
237
238 };
239
240
241 static
242 int
243 ResourcePropertiesTestService_l_client_module_activate()
244 180 {
245 180 int res = 0;
246 180 globus_result_t result = GLOBUS_SUCCESS;
247 180 res = globus_module_activate(GLOBUS_SOAP_MESSAGE_MODULE);
248 180 if(res != GLOBUS_SUCCESS)
249 {
250 0 return res;
251 }
252
253 180 result = ResourcePropertiesTestService_registry_add_types(GLOBUS_GLOBAL_TYPE_REGISTRY);
254 180 if(result != GLOBUS_SUCCESS)
255 {
256 0 result = GlobusSoapMessageErrorFailedClientInit(
257 result, "ResourcePropertiesTestService");
258 }
259
260
261 180 globus_mutex_init(&ResourcePropertiesTestService_l_extensions_mutex, NULL);
262
263 180 return res;
264 }
265
266 static
267 void
268 ResourcePropertiesTestService_l_extension_destroy(
269 void * sym)
270 180 {
271 180 char * symbol = (char *) sym;
272
273 180 globus_extension_deactivate(symbol);
274 180 globus_free(symbol);
275 180 }
276
277 static
278 int
279 ResourcePropertiesTestService_l_client_module_deactivate()
280 180 {
281 180 int res = 0;
282
283 180 globus_module_deactivate(GLOBUS_SOAP_MESSAGE_MODULE);
284
285 180 globus_mutex_lock(&ResourcePropertiesTestService_l_extensions_mutex);
286 180 globus_list_destroy_all(
287 ResourcePropertiesTestService_l_extensions,
288 ResourcePropertiesTestService_l_extension_destroy);
289 180 ResourcePropertiesTestService_l_extensions = NULL;
290 180 globus_mutex_unlock(&ResourcePropertiesTestService_l_extensions_mutex);
291 180 globus_mutex_destroy(&ResourcePropertiesTestService_l_extensions_mutex);
292
293 180 return res;
294 }
295
296 /**
297 * Initialize a client handle
298 * @ingroup ResourcePropertiesTestService_client_handle
299 * Initialize new client handle state for use with operation-related functions.
300 *
301 * @param handle
302 * Pointer to the handle to initialize.
303 * @param attrs
304 * Default attributes to use with this handle. This parameter may be NULL.
305 * Certain atttributes may cause different handlers to be pushed onto the
306 * default handler chain for this client.
307 * @param handlers
308 * Handle chain to use with this handle. This parameter may be NULL.
309 * Typically the default handler chain used by this function is sufficient.
310 */
311 globus_result_t
312 ResourcePropertiesTestService_client_init(
313 ResourcePropertiesTestService_client_handle_t * handle,
314 globus_soap_message_attr_t attrs,
315 globus_handler_chain_t chain)
316 180 {
317 180 ResourcePropertiesTestService_client_handle_t client_handle = NULL;
318 180 globus_result_t result = GLOBUS_SUCCESS;
319 180 globus_handler_chain_t tmp_chain = NULL;
320 GlobusFuncName(ResourcePropertiesTestService_client_init);
321 180 GlobusSoapMessageDebugEnter();
322
323 180 if (chain == NULL)
324 {
325 180 globus_handler_chain_init(&tmp_chain);
326
327 180 if(attrs &&
328 ((int)globus_soap_message_attr_get(
329 attrs,
330 GLOBUS_SOAP_MESSAGE_AUTHENTICATION_METHOD_KEY)) ==
331 GLOBUS_SOAP_MESSAGE_AUTH_SECURE_MESSAGE)
332 {
333 0 result = globus_extension_activate(
334 "globus_handler_ws_secure_message");
335 0 if(result != GLOBUS_SUCCESS)
336 {
337 0 result = GlobusSoapMessageErrorFailedClientInit(
338 result, "ResourcePropertiesTestPortType_CreateResourcePropertiesTest");
339 0 goto error;
340 }
341
342 0 globus_mutex_lock(&ResourcePropertiesTestService_l_extensions_mutex);
343 0 globus_list_insert(
344 &ResourcePropertiesTestService_l_extensions,
345 strdup("globus_handler_ws_secure_message"));
346 0 globus_mutex_unlock(&ResourcePropertiesTestService_l_extensions_mutex);
347
348 0 result = globus_handler_chain_push(
349 tmp_chain,
350 GLOBUS_HANDLER_TYPE_ALL,
351 "globus_handler_ws_secure_message_client");
352 0 if(result != GLOBUS_SUCCESS)
353 {
354 0 result = GlobusSoapMessageErrorFailedClientInit(
355 result, "ResourcePropertiesTestPortType_CreateResourcePropertiesTest");
356 0 goto error;
357 }
358 }
359
360 180 result = globus_extension_activate(GLOBUS_HANDLER_WS_ADDRESSING_LIB);
361 180 if(result != GLOBUS_SUCCESS)
362 {
363 0 result = GlobusSoapMessageErrorFailedClientInit(
364 result, "ResourcePropertiesTestPortType_CreateResourcePropertiesTest");
365 0 goto error;
366 }
367
368 180 globus_mutex_lock(&ResourcePropertiesTestService_l_extensions_mutex);
369 180 globus_list_insert(
370 &ResourcePropertiesTestService_l_extensions,
371 strdup(GLOBUS_HANDLER_WS_ADDRESSING_LIB));
372 180 globus_mutex_unlock(&ResourcePropertiesTestService_l_extensions_mutex);
373
374 180 result = globus_handler_chain_push(
375 tmp_chain,
376 GLOBUS_HANDLER_TYPE_REQUEST_ALL,
377 GLOBUS_HANDLER_WS_ADDRESSING_CLIENT);
378 180 if(result != GLOBUS_SUCCESS)
379 {
380 0 result = GlobusSoapMessageErrorFailedClientInit(
381 result, "ResourcePropertiesTestPortType_CreateResourcePropertiesTest");
382 0 goto error;
383 }
384
385 180 result = globus_handler_chain_push(
386 tmp_chain,
387 GLOBUS_HANDLER_TYPE_RESPONSE_ALL,
388 GLOBUS_HANDLER_WS_ADDRESSING_CLIENT);
389 180 if(result != GLOBUS_SUCCESS)
390 {
391 0 result = GlobusSoapMessageErrorFailedClientInit(
392 result, "ResourcePropertiesTestPortType_CreateResourcePropertiesTest");
393 0 goto error;
394 }
395
396 180 chain = tmp_chain;
397 }
398
399 180 result = globus_soap_client_handle_init(
400 handle,
401 attrs,
402 chain);
403
404 180 GlobusSoapMessageDebugExit();
405 180 return result;
406
407 0 error:
408 0 if (tmp_chain != NULL)
409 {
410 0 globus_handler_chain_destroy(tmp_chain);
411 }
412 0 if (client_handle != NULL)
413 {
414 0 globus_free(client_handle);
415 }
416 0 GlobusSoapMessageDebugExit();
417 0 return result;
418 }
419 /* ResourcePropertiesTestService_client_init() */
420
421 /**
422 * Destroy a client handle
423 * @ingroup ResourcePropertiesTestService_client_handle
424 *
425 * Destroys the state associated with this client handle.
426 *
427 * @param handle
428 * Handle to destroy.
429 */
430 void
431 ResourcePropertiesTestService_client_destroy(
432 ResourcePropertiesTestService_client_handle_t handle)
433 180 {
434 180 globus_soap_client_handle_destroy(handle);
435 180 }
436
437 /**
438 * Cancel the current operation associated with this handle.
439 * @ingroup ResourcePropertiesTestService_client_handle
440 *
441 * @param handle
442 * Handle which has the operation to cancel.
443 */
444 globus_result_t
445 ResourcePropertiesTestService_client_operation_cancel(
446 ResourcePropertiesTestService_client_handle_t handle)
447 0 {
448 0 globus_result_t result = GLOBUS_SUCCESS;
449 GlobusFuncName(ResourcePropertiesTestService_client_message_cancel);
450 0 GlobusSoapMessageDebugEnter();
451
452 0 result = globus_soap_client_operation_cancel(handle);
453
454 0 return result;
455 }
456
457 /**
458 * Get handle's handler chain
459 * @ingroup ResourcePropertiesTestService_client_handle
460 *
461 * The handler chain contains information about which handlers (typically
462 * SOAP header processors) will be invoked when a request is sent or a
463 * response is received. Applications which want to add custom handlers at
464 * run time may wish to push additional handlers onto this chain.
465 *
466 * @param handle
467 * The handle to query.
468 * @param handlers
469 * A pointer to a handler chain which will be set to the handle's
470 * chain.
471 */
472 globus_result_t
473 ResourcePropertiesTestService_client_get_handler_chain(
474 ResourcePropertiesTestService_client_handle_t handle,
475 globus_handler_chain_t * handlers)
476 0 {
477 0 globus_result_t result = GLOBUS_SUCCESS;
478 GlobusFuncName(ResourcePropertiesTestService_client_get_handle_chain);
479 0 GlobusSoapMessageDebugEnter();
480
481 0 result = globus_soap_client_handle_get_handler_chain(handle, handlers);
482
483 0 GlobusSoapMessageDebugExit();
484 0 return result;
485 }
486
487 /**
488 * Set a SOAP attribute on a handle
489 * @ingroup ResourcePropertiesTestService_client_handle
490 *
491 * Set a SOAP attribute on a handle. This can be used to change how
492 * the SOAP engine will process operations sent via this handle.
493 *
494 * @param handle
495 * The handle to modify.
496 * @param prop_name
497 * The attribute name. This should be one of the
498 * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values.
499 * @param copy
500 * A function to copy the value. This is required if @a value will go
501 * out of scope.
502 * @param destroy
503 * A function to destroy a copy of the value. Required if @a copy is set.
504 * @param value
505 * The new value of the attribute.
506 */
507 globus_result_t
508 ResourcePropertiesTestService_client_attr_set(
509 ResourcePropertiesTestService_client_handle_t handle,
510 const char * prop_name,
511 globus_soap_message_attr_copy_func_t copy,
512 globus_soap_message_attr_destroy_func_t destroy,
513 void * value)
514 0 {
515 0 return globus_soap_client_handle_attr_set(
516 handle,
517 prop_name,
518 copy,
519 destroy,
520 value);
521 }
522
523 /**
524 * Remove a SOAP attribute from a handle
525 * @ingroup ResourcePropertiesTestService_client_handle
526 *
527 * Remove a SOAP attribute on a handle. This can be used to change how
528 * the SOAP engine will process operations sent via this handle.
529 *
530 * @param handle
531 * The handle to modify.
532 * @param prop_name
533 * The attribute name. This should be one of the
534 * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values.
535 *
536 * @return
537 * This function returns the current value of the attribute.
538 */
539 void *
540 ResourcePropertiesTestService_client_attr_remove(
541 ResourcePropertiesTestService_client_handle_t handle,
542 const char * prop_name)
543 0 {
544 0 return globus_soap_client_handle_attr_remove(
545 handle,
546 prop_name);
547 }
548
549 /**
550 * Get a SOAP attribute from a handle
551 * @ingroup ResourcePropertiesTestService_client_handle
552 *
553 * Get the current value of a SOAP attribute set on a handle.
554 *
555 * @param handle
556 * The handle to query.
557 * @param prop_name
558 * The attribute name. This should be one of the
559 * <code>GLOBUS_SOAP_MESSAGE_*_KEY</code> values.
560 *
561 * @return
562 * This function returns the current value of the attribute.
563 */
564 void *
565 ResourcePropertiesTestService_client_attr_get(
566 ResourcePropertiesTestService_client_handle_t handle,
567 const char * prop_name)
568 0 {
569 0 return globus_soap_client_handle_attr_get(
570 handle,
571 prop_name);
572 }
573
574
575
576 /**
577 * Nonblocking operation request with EPR
578 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
579 * Begin sending a request for the <code>SetTerminationTime</code> operation on a
580 * resource handled by the service named by the @a epr. When the operation
581 * request has been sent, the @a callback function will be invoked.
582 *
583 * @param client_handle
584 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
585 * contains the state related to processing this operation.
586 * @param epr
587 * Endpoint Reference of the service and resource which will process
588 * the operation.
589 * @param input
590 * Input parameter to the operation.
591 * @param callback
592 * Callback function which will be called once the request has been
593 * sent
594 * @param callback_arg
595 * Application-specific pointer which will be passed to the callback.
596 */
597 globus_result_t
598 ResourcePropertiesTestPortType_SetTerminationTime_epr_register_request(
599 ResourcePropertiesTestService_client_handle_t client_handle,
600 const wsa_EndpointReferenceType * epr,
601 const wsrl_SetTerminationTimeType * input,
602 ResourcePropertiesTestPortType_SetTerminationTime_request_callback_func_t callback,
603 void * callback_arg)
604 0 {
605 0 globus_result_t result = GLOBUS_SUCCESS;
606
607 0 globus_assert_string(epr, "NULL EndpointReference");
608 0 globus_assert_string(epr->Address.base_value,
609 "NULL EndpointReference Address");
610
611 0 result = globus_soap_client_handle_attr_set(
612 client_handle,
613 WSADDR_EPR_KEY,
614 wsa_EndpointReferenceType_info.copy,
615 wsa_EndpointReferenceType_info.destroy,
616 (void *) epr);
617
618 0 if (result != GLOBUS_SUCCESS)
619 {
620 0 goto out;
621 }
622
623 0 result = globus_soap_client_register_request(
624 client_handle,
625 epr->Address.base_value,
626 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
627 (void *) input,
628 callback,
629 callback_arg);
630
631 0 out:
632 0 return result;
633 }
634
635 /**
636 * Nonblocking operation request
637 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
638 * Begin sending a request for the <code>SetTerminationTime</code> operation to
639 * the service at @a endpoint. When the operation
640 * request has been sent, the @a callback function will be invoked.
641 * @param handle
642 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
643 * contains the state related to processing this operation.
644 * @param endpoint
645 * URI of the service endpoint to send the request to.
646 * @param input
647 * Input parameter to the operation.
648 * @param callback
649 * Callback function which will be called once the request has been
650 * sent
651 * @param callback_arg
652 * Application-specific pointer which will be passed to the callback.
653 */
654 globus_result_t
655 ResourcePropertiesTestPortType_SetTerminationTime_register_request(
656 ResourcePropertiesTestService_client_handle_t client_handle,
657 const char * endpoint,
658 const wsrl_SetTerminationTimeType * input,
659 ResourcePropertiesTestPortType_SetTerminationTime_request_callback_func_t callback,
660 void * callback_arg)
661 0 {
662 0 return globus_soap_client_register_request(
663 client_handle,
664 endpoint,
665 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
666 (void *) input,
667 callback,
668 callback_arg);
669 }
670
671
672
673 static
674 void
675 ResourcePropertiesTestPortType_l_SetTerminationTime_deserialize_fault(
676 globus_soap_message_handle_t handle,
677 const xsd_QName * fault_qname,
678 int * fault_type)
679 0 {
680 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_NOFAULT;
681
682 0 if(fault_qname)
683 {
684 0 if(fault_qname == (&wsrl_TerminationTimeChangeRejectedFaultType_qname) ||
685 fault_qname == (&wsrl_TerminationTimeChangeRejectedFault_qname))
686 {
687 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_TERMINATIONTIMECHANGEREJECTEDFAULT;
688 }
689 0 else if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
690 fault_qname == (&wsr_ResourceUnknownFault_qname))
691 {
692 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_RESOURCEUNKNOWNFAULT;
693 }
694 0 else if(fault_qname == (&wsrl_UnableToSetTerminationTimeFaultType_qname) ||
695 fault_qname == (&wsrl_UnableToSetTerminationTimeFault_qname))
696 {
697 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_UNABLETOSETTERMINATIONTIMEFAULT;
698 }
699 0 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
700 fault_qname == (&wsr_ResourceUnavailableFault_qname))
701 {
702 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_RESOURCEUNAVAILABLEFAULT;
703 }
704 else
705 {
706 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETTERMINATIONTIME_UNKNOWN_FAULT;
707 }
708 }
709 0 }
710 /* ResourcePropertiesTestPortType_l_SetTerminationTime_deserialize_fault() */
711
712 /**
713 * Nonblocking operation response handling
714 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
715 * Begin parsing the request for the <code>SetTerminationTime</code> operation begun
716 * by an earlier call to
717 * ResourcePropertiesTestPortType_SetTerminationTime_register_request() or
718 * ResourcePropertiesTestPortType_SetTerminationTime_epr_register_request(). Once the response has been parsed.
719 * the @a callback function will be called to pass the result of the operation
720 * to the application.
721 *
722 * @param client_handle
723 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
724 * contains the state related to processing this operation.
725 * @param callback
726 * Callback function which will be called once the response has been
727 * processed.
728 * @param callback_arg
729 * Application-specific pointer which will be passed to the callback.
730 */
731 globus_result_t
732 ResourcePropertiesTestPortType_SetTerminationTime_register_response(
733 ResourcePropertiesTestService_client_handle_t client_handle,
734 ResourcePropertiesTestPortType_SetTerminationTime_response_callback_func_t callback,
735 void * callback_arg)
736 0 {
737 0 return globus_soap_client_register_response(
738 client_handle,
739 (globus_soap_client_response_callback_func_t) callback,
740 callback_arg);
741 }
742
743 /**
744 * Nonblocking operation invocation with EPR
745 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
746 *
747 * Begin processing a request for the SetTerminationTime operation. The operation will
748 * sent to the service named by the @a epr and after the response is received,
749 * the @a callback function will be invoked.
750 *
751 * @param handle
752 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
753 * contains the state related to processing this operation.
754 * @param epr
755 * Endpoint Reference of the service and resource which will process
756 * the operation.
757 * @param input
758 * Input parameter to the operation.
759 * @param callback
760 * Callback function which will be called once the operation has been
761 * processed.
762 * @param callback_arg
763 * Application-specific pointer which will be passed to the callback.
764 */
765 globus_result_t
766 ResourcePropertiesTestPortType_SetTerminationTime_epr_register(
767 ResourcePropertiesTestService_client_handle_t handle,
768 const wsa_EndpointReferenceType * epr,
769 const wsrl_SetTerminationTimeType * input,
770 ResourcePropertiesTestPortType_SetTerminationTime_response_callback_func_t callback,
771 void * callback_arg)
772 0 {
773 globus_result_t result;
774
775 0 result = globus_soap_client_handle_attr_set(
776 handle,
777 WSADDR_EPR_KEY,
778 wsa_EndpointReferenceType_info.copy,
779 wsa_EndpointReferenceType_info.destroy,
780 (void *) epr);
781
782 0 if (result != GLOBUS_SUCCESS)
783 {
784 0 goto out;
785 }
786
787 0 result = globus_soap_client_operation_register(
788 handle,
789 epr->Address.base_value,
790 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
791 (void *) input,
792 (globus_soap_client_response_callback_func_t) callback,
793 callback_arg);
794 0 out:
795 0 return result;
796 }
797
798 /**
799 * Nonblocking operation invocation
800 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
801 *
802 * Begin processing a request for the SetTerminationTime operation. The operation will
803 * sent to the service located at @a endpoint and after the response is
804 * received, the @a callback function will be invoked.
805 *
806 * @param handle
807 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
808 * contains the state related to processing this operation.
809 * @param endpoint
810 * URI of the service endpoint to send the request to.
811 * @param input
812 * Input parameter to the operation.
813 * @param callback
814 * Callback function which will be called once the operation has been
815 * processed.
816 * @param callback_arg
817 * Application-specific pointer which will be passed to the callback.
818 */
819 globus_result_t
820 ResourcePropertiesTestPortType_SetTerminationTime_register(
821 ResourcePropertiesTestService_client_handle_t handle,
822 const char * endpoint,
823 const wsrl_SetTerminationTimeType * input,
824 ResourcePropertiesTestPortType_SetTerminationTime_response_callback_func_t callback,
825 void * callback_arg)
826 0 {
827 0 return globus_soap_client_operation_register(
828 handle,
829 endpoint,
830 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
831 (void *) input,
832 (globus_soap_client_response_callback_func_t) callback,
833 callback_arg);
834 }
835
836
837
838 /**
839 * Blocking operation invocation with EPR
840 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
841 *
842 * Request that an the SetTerminationTime operation be invoked by the service and
843 * resource named by the @a epr parameter.
844
845 * If the result is <code>GLOBUS_SUCCESS</code>, then the
846 * @a output parameter will be set to the result of the operation.
847 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
848 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
849 * error occurred, and the result's error type should be checked.
850
851 *
852 * @param handle
853 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
854 * contains the state related to processing this operation.
855 * @param epr
856 * Endpoint Reference of the service and resource which will process
857 * the operation.
858 * @param input
859 * Input parameter to the operation.
860
861 * @param output
862 * The output of the operation, if the operation succeeded.
863 * @param fault_type
864 * The type of fault sent as a result of the operation, if the operation
865 * failed. If the operation succeeded, this will be NULL.
866 * @param fault
867 * The fault element which was received, if the operation failed.
868 * If the operation succeeded, this will be NULL.
869
870 */
871 globus_result_t
872 ResourcePropertiesTestPortType_SetTerminationTime_epr(
873 ResourcePropertiesTestService_client_handle_t handle,
874 const wsa_EndpointReferenceType * epr,
875 const wsrl_SetTerminationTimeType * input,
876 wsrl_SetTerminationTimeResponseType * * output,
877 ResourcePropertiesTestPortType_SetTerminationTime_fault_t * fault_type,
878 xsd_any * * fault)
879 0 {
880 globus_result_t result;
881
882 0 result = globus_soap_client_handle_attr_set(
883 handle,
884 WSADDR_EPR_KEY,
885 wsa_EndpointReferenceType_info.copy,
886 wsa_EndpointReferenceType_info.destroy,
887 (void *) epr);
888
889 0 if (result != GLOBUS_SUCCESS)
890 {
891 0 goto out;
892 }
893 0 result = globus_soap_client_operation(
894 handle,
895 epr->Address.base_value,
896 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
897 (void *) input,
898
899 (void **) output,
900 (int *) fault_type,
901 fault
902 );
903 0 out:
904 0 return result;
905 }
906
907 /**
908 * Blocking operation invocation
909 * @ingroup ResourcePropertiesTestPortType_SetTerminationTime_operation
910 *
911 * Request that an the SetTerminationTime operation be invoked by the service at
912 * @a endpoint.
913
914 * If the result is <code>GLOBUS_SUCCESS</code>, then the
915 * @a output parameter will be set to the result of the operation.
916 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
917 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
918 * error occurred, and the result's error type should be checked.
919
920 *
921 * @param handle
922 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
923 * contains the state related to processing this operation.
924 * @param endpoint
925 * URI of the service endpoint to send the request to.
926 * @param input
927 * Input parameter to the operation.
928
929 * @param output
930 * The output of the operation, if the operation succeeded.
931 * @param fault_type
932 * The type of fault sent as a result of the operation, if the operation
933 * failed. If the operation succeeded, this will be NULL.
934 * @param fault
935 * The fault element which was received, if the operation failed.
936 * If the operation succeeded, this will be NULL.
937
938 */
939 globus_result_t
940 ResourcePropertiesTestPortType_SetTerminationTime(
941 ResourcePropertiesTestService_client_handle_t handle,
942 const char * endpoint,
943 const wsrl_SetTerminationTimeType * input,
944 wsrl_SetTerminationTimeResponseType * * output,
945 ResourcePropertiesTestPortType_SetTerminationTime_fault_t * fault_type,
946 xsd_any * * fault)
947 0 {
948 0 return globus_soap_client_operation(
949 handle,
950 endpoint,
951 &ResourcePropertiesTestPortType_l_SetTerminationTime_operation,
952 (void *) input,
953
954 (void *) output,
955 (int *) fault_type,
956 fault
957 );
958 }
959
960
961 /**
962 * Nonblocking operation request with EPR
963 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
964 * Begin sending a request for the <code>Destroy</code> operation on a
965 * resource handled by the service named by the @a epr. When the operation
966 * request has been sent, the @a callback function will be invoked.
967 *
968 * @param client_handle
969 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
970 * contains the state related to processing this operation.
971 * @param epr
972 * Endpoint Reference of the service and resource which will process
973 * the operation.
974 * @param input
975 * Input parameter to the operation.
976 * @param callback
977 * Callback function which will be called once the request has been
978 * sent
979 * @param callback_arg
980 * Application-specific pointer which will be passed to the callback.
981 */
982 globus_result_t
983 ResourcePropertiesTestPortType_Destroy_epr_register_request(
984 ResourcePropertiesTestService_client_handle_t client_handle,
985 const wsa_EndpointReferenceType * epr,
986 const wsrl_DestroyType * input,
987 ResourcePropertiesTestPortType_Destroy_request_callback_func_t callback,
988 void * callback_arg)
989 0 {
990 0 globus_result_t result = GLOBUS_SUCCESS;
991
992 0 globus_assert_string(epr, "NULL EndpointReference");
993 0 globus_assert_string(epr->Address.base_value,
994 "NULL EndpointReference Address");
995
996 0 result = globus_soap_client_handle_attr_set(
997 client_handle,
998 WSADDR_EPR_KEY,
999 wsa_EndpointReferenceType_info.copy,
1000 wsa_EndpointReferenceType_info.destroy,
1001 (void *) epr);
1002
1003 0 if (result != GLOBUS_SUCCESS)
1004 {
1005 0 goto out;
1006 }
1007
1008 0 result = globus_soap_client_register_request(
1009 client_handle,
1010 epr->Address.base_value,
1011 &ResourcePropertiesTestPortType_l_Destroy_operation,
1012 (void *) input,
1013 callback,
1014 callback_arg);
1015
1016 0 out:
1017 0 return result;
1018 }
1019
1020 /**
1021 * Nonblocking operation request
1022 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1023 * Begin sending a request for the <code>Destroy</code> operation to
1024 * the service at @a endpoint. When the operation
1025 * request has been sent, the @a callback function will be invoked.
1026 * @param handle
1027 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1028 * contains the state related to processing this operation.
1029 * @param endpoint
1030 * URI of the service endpoint to send the request to.
1031 * @param input
1032 * Input parameter to the operation.
1033 * @param callback
1034 * Callback function which will be called once the request has been
1035 * sent
1036 * @param callback_arg
1037 * Application-specific pointer which will be passed to the callback.
1038 */
1039 globus_result_t
1040 ResourcePropertiesTestPortType_Destroy_register_request(
1041 ResourcePropertiesTestService_client_handle_t client_handle,
1042 const char * endpoint,
1043 const wsrl_DestroyType * input,
1044 ResourcePropertiesTestPortType_Destroy_request_callback_func_t callback,
1045 void * callback_arg)
1046 0 {
1047 0 return globus_soap_client_register_request(
1048 client_handle,
1049 endpoint,
1050 &ResourcePropertiesTestPortType_l_Destroy_operation,
1051 (void *) input,
1052 callback,
1053 callback_arg);
1054 }
1055
1056
1057
1058 static
1059 void
1060 ResourcePropertiesTestPortType_l_Destroy_deserialize_fault(
1061 globus_soap_message_handle_t handle,
1062 const xsd_QName * fault_qname,
1063 int * fault_type)
1064 0 {
1065 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_DESTROY_NOFAULT;
1066
1067 0 if(fault_qname)
1068 {
1069 0 if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
1070 fault_qname == (&wsr_ResourceUnknownFault_qname))
1071 {
1072 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_DESTROY_RESOURCEUNKNOWNFAULT;
1073 }
1074 0 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
1075 fault_qname == (&wsr_ResourceUnavailableFault_qname))
1076 {
1077 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_DESTROY_RESOURCEUNAVAILABLEFAULT;
1078 }
1079 0 else if(fault_qname == (&wsrl_ResourceNotDestroyedFaultType_qname) ||
1080 fault_qname == (&wsrl_ResourceNotDestroyedFault_qname))
1081 {
1082 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_DESTROY_RESOURCENOTDESTROYEDFAULT;
1083 }
1084 else
1085 {
1086 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_DESTROY_UNKNOWN_FAULT;
1087 }
1088 }
1089 0 }
1090 /* ResourcePropertiesTestPortType_l_Destroy_deserialize_fault() */
1091
1092 /**
1093 * Nonblocking operation response handling
1094 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1095 * Begin parsing the request for the <code>Destroy</code> operation begun
1096 * by an earlier call to
1097 * ResourcePropertiesTestPortType_Destroy_register_request() or
1098 * ResourcePropertiesTestPortType_Destroy_epr_register_request(). Once the response has been parsed.
1099 * the @a callback function will be called to pass the result of the operation
1100 * to the application.
1101 *
1102 * @param client_handle
1103 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1104 * contains the state related to processing this operation.
1105 * @param callback
1106 * Callback function which will be called once the response has been
1107 * processed.
1108 * @param callback_arg
1109 * Application-specific pointer which will be passed to the callback.
1110 */
1111 globus_result_t
1112 ResourcePropertiesTestPortType_Destroy_register_response(
1113 ResourcePropertiesTestService_client_handle_t client_handle,
1114 ResourcePropertiesTestPortType_Destroy_response_callback_func_t callback,
1115 void * callback_arg)
1116 0 {
1117 0 return globus_soap_client_register_response(
1118 client_handle,
1119 (globus_soap_client_response_callback_func_t) callback,
1120 callback_arg);
1121 }
1122
1123 /**
1124 * Nonblocking operation invocation with EPR
1125 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1126 *
1127 * Begin processing a request for the Destroy operation. The operation will
1128 * sent to the service named by the @a epr and after the response is received,
1129 * the @a callback function will be invoked.
1130 *
1131 * @param handle
1132 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1133 * contains the state related to processing this operation.
1134 * @param epr
1135 * Endpoint Reference of the service and resource which will process
1136 * the operation.
1137 * @param input
1138 * Input parameter to the operation.
1139 * @param callback
1140 * Callback function which will be called once the operation has been
1141 * processed.
1142 * @param callback_arg
1143 * Application-specific pointer which will be passed to the callback.
1144 */
1145 globus_result_t
1146 ResourcePropertiesTestPortType_Destroy_epr_register(
1147 ResourcePropertiesTestService_client_handle_t handle,
1148 const wsa_EndpointReferenceType * epr,
1149 const wsrl_DestroyType * input,
1150 ResourcePropertiesTestPortType_Destroy_response_callback_func_t callback,
1151 void * callback_arg)
1152 0 {
1153 globus_result_t result;
1154
1155 0 result = globus_soap_client_handle_attr_set(
1156 handle,
1157 WSADDR_EPR_KEY,
1158 wsa_EndpointReferenceType_info.copy,
1159 wsa_EndpointReferenceType_info.destroy,
1160 (void *) epr);
1161
1162 0 if (result != GLOBUS_SUCCESS)
1163 {
1164 0 goto out;
1165 }
1166
1167 0 result = globus_soap_client_operation_register(
1168 handle,
1169 epr->Address.base_value,
1170 &ResourcePropertiesTestPortType_l_Destroy_operation,
1171 (void *) input,
1172 (globus_soap_client_response_callback_func_t) callback,
1173 callback_arg);
1174 0 out:
1175 0 return result;
1176 }
1177
1178 /**
1179 * Nonblocking operation invocation
1180 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1181 *
1182 * Begin processing a request for the Destroy operation. The operation will
1183 * sent to the service located at @a endpoint and after the response is
1184 * received, the @a callback function will be invoked.
1185 *
1186 * @param handle
1187 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1188 * contains the state related to processing this operation.
1189 * @param endpoint
1190 * URI of the service endpoint to send the request to.
1191 * @param input
1192 * Input parameter to the operation.
1193 * @param callback
1194 * Callback function which will be called once the operation has been
1195 * processed.
1196 * @param callback_arg
1197 * Application-specific pointer which will be passed to the callback.
1198 */
1199 globus_result_t
1200 ResourcePropertiesTestPortType_Destroy_register(
1201 ResourcePropertiesTestService_client_handle_t handle,
1202 const char * endpoint,
1203 const wsrl_DestroyType * input,
1204 ResourcePropertiesTestPortType_Destroy_response_callback_func_t callback,
1205 void * callback_arg)
1206 0 {
1207 0 return globus_soap_client_operation_register(
1208 handle,
1209 endpoint,
1210 &ResourcePropertiesTestPortType_l_Destroy_operation,
1211 (void *) input,
1212 (globus_soap_client_response_callback_func_t) callback,
1213 callback_arg);
1214 }
1215
1216
1217
1218 /**
1219 * Blocking operation invocation with EPR
1220 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1221 *
1222 * Request that an the Destroy operation be invoked by the service and
1223 * resource named by the @a epr parameter.
1224
1225 * If the result is <code>GLOBUS_SUCCESS</code>, then the
1226 * @a output parameter will be set to the result of the operation.
1227 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
1228 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
1229 * error occurred, and the result's error type should be checked.
1230
1231 *
1232 * @param handle
1233 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1234 * contains the state related to processing this operation.
1235 * @param epr
1236 * Endpoint Reference of the service and resource which will process
1237 * the operation.
1238 * @param input
1239 * Input parameter to the operation.
1240
1241 * @param output
1242 * The output of the operation, if the operation succeeded.
1243 * @param fault_type
1244 * The type of fault sent as a result of the operation, if the operation
1245 * failed. If the operation succeeded, this will be NULL.
1246 * @param fault
1247 * The fault element which was received, if the operation failed.
1248 * If the operation succeeded, this will be NULL.
1249
1250 */
1251 globus_result_t
1252 ResourcePropertiesTestPortType_Destroy_epr(
1253 ResourcePropertiesTestService_client_handle_t handle,
1254 const wsa_EndpointReferenceType * epr,
1255 const wsrl_DestroyType * input,
1256 wsrl_DestroyResponseType * * output,
1257 ResourcePropertiesTestPortType_Destroy_fault_t * fault_type,
1258 xsd_any * * fault)
1259 180 {
1260 globus_result_t result;
1261
1262 180 result = globus_soap_client_handle_attr_set(
1263 handle,
1264 WSADDR_EPR_KEY,
1265 wsa_EndpointReferenceType_info.copy,
1266 wsa_EndpointReferenceType_info.destroy,
1267 (void *) epr);
1268
1269 180 if (result != GLOBUS_SUCCESS)
1270 {
1271 0 goto out;
1272 }
1273 180 result = globus_soap_client_operation(
1274 handle,
1275 epr->Address.base_value,
1276 &ResourcePropertiesTestPortType_l_Destroy_operation,
1277 (void *) input,
1278
1279 (void **) output,
1280 (int *) fault_type,
1281 fault
1282 );
1283 180 out:
1284 180 return result;
1285 }
1286
1287 /**
1288 * Blocking operation invocation
1289 * @ingroup ResourcePropertiesTestPortType_Destroy_operation
1290 *
1291 * Request that an the Destroy operation be invoked by the service at
1292 * @a endpoint.
1293
1294 * If the result is <code>GLOBUS_SUCCESS</code>, then the
1295 * @a output parameter will be set to the result of the operation.
1296 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
1297 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
1298 * error occurred, and the result's error type should be checked.
1299
1300 *
1301 * @param handle
1302 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1303 * contains the state related to processing this operation.
1304 * @param endpoint
1305 * URI of the service endpoint to send the request to.
1306 * @param input
1307 * Input parameter to the operation.
1308
1309 * @param output
1310 * The output of the operation, if the operation succeeded.
1311 * @param fault_type
1312 * The type of fault sent as a result of the operation, if the operation
1313 * failed. If the operation succeeded, this will be NULL.
1314 * @param fault
1315 * The fault element which was received, if the operation failed.
1316 * If the operation succeeded, this will be NULL.
1317
1318 */
1319 globus_result_t
1320 ResourcePropertiesTestPortType_Destroy(
1321 ResourcePropertiesTestService_client_handle_t handle,
1322 const char * endpoint,
1323 const wsrl_DestroyType * input,
1324 wsrl_DestroyResponseType * * output,
1325 ResourcePropertiesTestPortType_Destroy_fault_t * fault_type,
1326 xsd_any * * fault)
1327 0 {
1328 0 return globus_soap_client_operation(
1329 handle,
1330 endpoint,
1331 &ResourcePropertiesTestPortType_l_Destroy_operation,
1332 (void *) input,
1333
1334 (void *) output,
1335 (int *) fault_type,
1336 fault
1337 );
1338 }
1339
1340
1341 /**
1342 * Nonblocking operation request with EPR
1343 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1344 * Begin sending a request for the <code>SetResourceProperties</code> operation on a
1345 * resource handled by the service named by the @a epr. When the operation
1346 * request has been sent, the @a callback function will be invoked.
1347 *
1348 * @param client_handle
1349 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1350 * contains the state related to processing this operation.
1351 * @param epr
1352 * Endpoint Reference of the service and resource which will process
1353 * the operation.
1354 * @param input
1355 * Input parameter to the operation.
1356 * @param callback
1357 * Callback function which will be called once the request has been
1358 * sent
1359 * @param callback_arg
1360 * Application-specific pointer which will be passed to the callback.
1361 */
1362 globus_result_t
1363 ResourcePropertiesTestPortType_SetResourceProperties_epr_register_request(
1364 ResourcePropertiesTestService_client_handle_t client_handle,
1365 const wsa_EndpointReferenceType * epr,
1366 const wsrp_SetResourcePropertiesType * input,
1367 ResourcePropertiesTestPortType_SetResourceProperties_request_callback_func_t callback,
1368 void * callback_arg)
1369 0 {
1370 0 globus_result_t result = GLOBUS_SUCCESS;
1371
1372 0 globus_assert_string(epr, "NULL EndpointReference");
1373 0 globus_assert_string(epr->Address.base_value,
1374 "NULL EndpointReference Address");
1375
1376 0 result = globus_soap_client_handle_attr_set(
1377 client_handle,
1378 WSADDR_EPR_KEY,
1379 wsa_EndpointReferenceType_info.copy,
1380 wsa_EndpointReferenceType_info.destroy,
1381 (void *) epr);
1382
1383 0 if (result != GLOBUS_SUCCESS)
1384 {
1385 0 goto out;
1386 }
1387
1388 0 result = globus_soap_client_register_request(
1389 client_handle,
1390 epr->Address.base_value,
1391 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1392 (void *) input,
1393 callback,
1394 callback_arg);
1395
1396 0 out:
1397 0 return result;
1398 }
1399
1400 /**
1401 * Nonblocking operation request
1402 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1403 * Begin sending a request for the <code>SetResourceProperties</code> operation to
1404 * the service at @a endpoint. When the operation
1405 * request has been sent, the @a callback function will be invoked.
1406 * @param handle
1407 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1408 * contains the state related to processing this operation.
1409 * @param endpoint
1410 * URI of the service endpoint to send the request to.
1411 * @param input
1412 * Input parameter to the operation.
1413 * @param callback
1414 * Callback function which will be called once the request has been
1415 * sent
1416 * @param callback_arg
1417 * Application-specific pointer which will be passed to the callback.
1418 */
1419 globus_result_t
1420 ResourcePropertiesTestPortType_SetResourceProperties_register_request(
1421 ResourcePropertiesTestService_client_handle_t client_handle,
1422 const char * endpoint,
1423 const wsrp_SetResourcePropertiesType * input,
1424 ResourcePropertiesTestPortType_SetResourceProperties_request_callback_func_t callback,
1425 void * callback_arg)
1426 0 {
1427 0 return globus_soap_client_register_request(
1428 client_handle,
1429 endpoint,
1430 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1431 (void *) input,
1432 callback,
1433 callback_arg);
1434 }
1435
1436
1437
1438 static
1439 void
1440 ResourcePropertiesTestPortType_l_SetResourceProperties_deserialize_fault(
1441 globus_soap_message_handle_t handle,
1442 const xsd_QName * fault_qname,
1443 int * fault_type)
1444 156 {
1445 156 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_NOFAULT;
1446
1447 156 if(fault_qname)
1448 {
1449 156 if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
1450 fault_qname == (&wsr_ResourceUnknownFault_qname))
1451 {
1452 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_RESOURCEUNKNOWNFAULT;
1453 }
1454 156 else if(fault_qname == (&wsrp_SetResourcePropertyRequestFailedFaultType_qname) ||
1455 fault_qname == (&wsrp_SetResourcePropertyRequestFailedFault_qname))
1456 {
1457 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_SETRESOURCEPROPERTYREQUESTFAILEDFAULT;
1458 }
1459 156 else if(fault_qname == (&wsrp_UnableToModifyResourcePropertyFaultType_qname) ||
1460 fault_qname == (&wsrp_UnableToModifyResourcePropertyFault_qname))
1461 {
1462 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_UNABLETOMODIFYRESOURCEPROPERTYFAULT;
1463 }
1464 156 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
1465 fault_qname == (&wsr_ResourceUnavailableFault_qname))
1466 {
1467 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_RESOURCEUNAVAILABLEFAULT;
1468 }
1469 204 else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) ||
1470 fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname))
1471 {
1472 48 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_INVALIDRESOURCEPROPERTYQNAMEFAULT;
1473 }
1474 216 else if(fault_qname == (&wsrp_InvalidModificationFaultType_qname) ||
1475 fault_qname == (&wsrp_InvalidModificationFault_qname))
1476 {
1477 108 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_INVALIDMODIFICATIONFAULT;
1478 }
1479 else
1480 {
1481 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_SETRESOURCEPROPERTIES_UNKNOWN_FAULT;
1482 }
1483 }
1484 156 }
1485 /* ResourcePropertiesTestPortType_l_SetResourceProperties_deserialize_fault() */
1486
1487 /**
1488 * Nonblocking operation response handling
1489 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1490 * Begin parsing the request for the <code>SetResourceProperties</code> operation begun
1491 * by an earlier call to
1492 * ResourcePropertiesTestPortType_SetResourceProperties_register_request() or
1493 * ResourcePropertiesTestPortType_SetResourceProperties_epr_register_request(). Once the response has been parsed.
1494 * the @a callback function will be called to pass the result of the operation
1495 * to the application.
1496 *
1497 * @param client_handle
1498 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1499 * contains the state related to processing this operation.
1500 * @param callback
1501 * Callback function which will be called once the response has been
1502 * processed.
1503 * @param callback_arg
1504 * Application-specific pointer which will be passed to the callback.
1505 */
1506 globus_result_t
1507 ResourcePropertiesTestPortType_SetResourceProperties_register_response(
1508 ResourcePropertiesTestService_client_handle_t client_handle,
1509 ResourcePropertiesTestPortType_SetResourceProperties_response_callback_func_t callback,
1510 void * callback_arg)
1511 0 {
1512 0 return globus_soap_client_register_response(
1513 client_handle,
1514 (globus_soap_client_response_callback_func_t) callback,
1515 callback_arg);
1516 }
1517
1518 /**
1519 * Nonblocking operation invocation with EPR
1520 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1521 *
1522 * Begin processing a request for the SetResourceProperties operation. The operation will
1523 * sent to the service named by the @a epr and after the response is received,
1524 * the @a callback function will be invoked.
1525 *
1526 * @param handle
1527 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1528 * contains the state related to processing this operation.
1529 * @param epr
1530 * Endpoint Reference of the service and resource which will process
1531 * the operation.
1532 * @param input
1533 * Input parameter to the operation.
1534 * @param callback
1535 * Callback function which will be called once the operation has been
1536 * processed.
1537 * @param callback_arg
1538 * Application-specific pointer which will be passed to the callback.
1539 */
1540 globus_result_t
1541 ResourcePropertiesTestPortType_SetResourceProperties_epr_register(
1542 ResourcePropertiesTestService_client_handle_t handle,
1543 const wsa_EndpointReferenceType * epr,
1544 const wsrp_SetResourcePropertiesType * input,
1545 ResourcePropertiesTestPortType_SetResourceProperties_response_callback_func_t callback,
1546 void * callback_arg)
1547 0 {
1548 globus_result_t result;
1549
1550 0 result = globus_soap_client_handle_attr_set(
1551 handle,
1552 WSADDR_EPR_KEY,
1553 wsa_EndpointReferenceType_info.copy,
1554 wsa_EndpointReferenceType_info.destroy,
1555 (void *) epr);
1556
1557 0 if (result != GLOBUS_SUCCESS)
1558 {
1559 0 goto out;
1560 }
1561
1562 0 result = globus_soap_client_operation_register(
1563 handle,
1564 epr->Address.base_value,
1565 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1566 (void *) input,
1567 (globus_soap_client_response_callback_func_t) callback,
1568 callback_arg);
1569 0 out:
1570 0 return result;
1571 }
1572
1573 /**
1574 * Nonblocking operation invocation
1575 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1576 *
1577 * Begin processing a request for the SetResourceProperties operation. The operation will
1578 * sent to the service located at @a endpoint and after the response is
1579 * received, the @a callback function will be invoked.
1580 *
1581 * @param handle
1582 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1583 * contains the state related to processing this operation.
1584 * @param endpoint
1585 * URI of the service endpoint to send the request to.
1586 * @param input
1587 * Input parameter to the operation.
1588 * @param callback
1589 * Callback function which will be called once the operation has been
1590 * processed.
1591 * @param callback_arg
1592 * Application-specific pointer which will be passed to the callback.
1593 */
1594 globus_result_t
1595 ResourcePropertiesTestPortType_SetResourceProperties_register(
1596 ResourcePropertiesTestService_client_handle_t handle,
1597 const char * endpoint,
1598 const wsrp_SetResourcePropertiesType * input,
1599 ResourcePropertiesTestPortType_SetResourceProperties_response_callback_func_t callback,
1600 void * callback_arg)
1601 0 {
1602 0 return globus_soap_client_operation_register(
1603 handle,
1604 endpoint,
1605 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1606 (void *) input,
1607 (globus_soap_client_response_callback_func_t) callback,
1608 callback_arg);
1609 }
1610
1611
1612
1613 /**
1614 * Blocking operation invocation with EPR
1615 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1616 *
1617 * Request that an the SetResourceProperties operation be invoked by the service and
1618 * resource named by the @a epr parameter.
1619
1620 * If the result is <code>GLOBUS_SUCCESS</code>, then the
1621 * @a output parameter will be set to the result of the operation.
1622 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
1623 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
1624 * error occurred, and the result's error type should be checked.
1625
1626 *
1627 * @param handle
1628 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1629 * contains the state related to processing this operation.
1630 * @param epr
1631 * Endpoint Reference of the service and resource which will process
1632 * the operation.
1633 * @param input
1634 * Input parameter to the operation.
1635
1636 * @param output
1637 * The output of the operation, if the operation succeeded.
1638 * @param fault_type
1639 * The type of fault sent as a result of the operation, if the operation
1640 * failed. If the operation succeeded, this will be NULL.
1641 * @param fault
1642 * The fault element which was received, if the operation failed.
1643 * If the operation succeeded, this will be NULL.
1644
1645 */
1646 globus_result_t
1647 ResourcePropertiesTestPortType_SetResourceProperties_epr(
1648 ResourcePropertiesTestService_client_handle_t handle,
1649 const wsa_EndpointReferenceType * epr,
1650 const wsrp_SetResourcePropertiesType * input,
1651 wsrp_SetResourcePropertiesResponseType * * output,
1652 ResourcePropertiesTestPortType_SetResourceProperties_fault_t * fault_type,
1653 xsd_any * * fault)
1654 480 {
1655 globus_result_t result;
1656
1657 480 result = globus_soap_client_handle_attr_set(
1658 handle,
1659 WSADDR_EPR_KEY,
1660 wsa_EndpointReferenceType_info.copy,
1661 wsa_EndpointReferenceType_info.destroy,
1662 (void *) epr);
1663
1664 480 if (result != GLOBUS_SUCCESS)
1665 {
1666 0 goto out;
1667 }
1668 480 result = globus_soap_client_operation(
1669 handle,
1670 epr->Address.base_value,
1671 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1672 (void *) input,
1673
1674 (void **) output,
1675 (int *) fault_type,
1676 fault
1677 );
1678 480 out:
1679 480 return result;
1680 }
1681
1682 /**
1683 * Blocking operation invocation
1684 * @ingroup ResourcePropertiesTestPortType_SetResourceProperties_operation
1685 *
1686 * Request that an the SetResourceProperties operation be invoked by the service at
1687 * @a endpoint.
1688
1689 * If the result is <code>GLOBUS_SUCCESS</code>, then the
1690 * @a output parameter will be set to the result of the operation.
1691 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
1692 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
1693 * error occurred, and the result's error type should be checked.
1694
1695 *
1696 * @param handle
1697 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1698 * contains the state related to processing this operation.
1699 * @param endpoint
1700 * URI of the service endpoint to send the request to.
1701 * @param input
1702 * Input parameter to the operation.
1703
1704 * @param output
1705 * The output of the operation, if the operation succeeded.
1706 * @param fault_type
1707 * The type of fault sent as a result of the operation, if the operation
1708 * failed. If the operation succeeded, this will be NULL.
1709 * @param fault
1710 * The fault element which was received, if the operation failed.
1711 * If the operation succeeded, this will be NULL.
1712
1713 */
1714 globus_result_t
1715 ResourcePropertiesTestPortType_SetResourceProperties(
1716 ResourcePropertiesTestService_client_handle_t handle,
1717 const char * endpoint,
1718 const wsrp_SetResourcePropertiesType * input,
1719 wsrp_SetResourcePropertiesResponseType * * output,
1720 ResourcePropertiesTestPortType_SetResourceProperties_fault_t * fault_type,
1721 xsd_any * * fault)
1722 0 {
1723 0 return globus_soap_client_operation(
1724 handle,
1725 endpoint,
1726 &ResourcePropertiesTestPortType_l_SetResourceProperties_operation,
1727 (void *) input,
1728
1729 (void *) output,
1730 (int *) fault_type,
1731 fault
1732 );
1733 }
1734
1735
1736 /**
1737 * Nonblocking operation request with EPR
1738 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1739 * Begin sending a request for the <code>GetMultipleResourceProperties</code> operation on a
1740 * resource handled by the service named by the @a epr. When the operation
1741 * request has been sent, the @a callback function will be invoked.
1742 *
1743 * @param client_handle
1744 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1745 * contains the state related to processing this operation.
1746 * @param epr
1747 * Endpoint Reference of the service and resource which will process
1748 * the operation.
1749 * @param input
1750 * Input parameter to the operation.
1751 * @param callback
1752 * Callback function which will be called once the request has been
1753 * sent
1754 * @param callback_arg
1755 * Application-specific pointer which will be passed to the callback.
1756 */
1757 globus_result_t
1758 ResourcePropertiesTestPortType_GetMultipleResourceProperties_epr_register_request(
1759 ResourcePropertiesTestService_client_handle_t client_handle,
1760 const wsa_EndpointReferenceType * epr,
1761 const wsrp_GetMultipleResourcePropertiesType * input,
1762 ResourcePropertiesTestPortType_GetMultipleResourceProperties_request_callback_func_t callback,
1763 void * callback_arg)
1764 0 {
1765 0 globus_result_t result = GLOBUS_SUCCESS;
1766
1767 0 globus_assert_string(epr, "NULL EndpointReference");
1768 0 globus_assert_string(epr->Address.base_value,
1769 "NULL EndpointReference Address");
1770
1771 0 result = globus_soap_client_handle_attr_set(
1772 client_handle,
1773 WSADDR_EPR_KEY,
1774 wsa_EndpointReferenceType_info.copy,
1775 wsa_EndpointReferenceType_info.destroy,
1776 (void *) epr);
1777
1778 0 if (result != GLOBUS_SUCCESS)
1779 {
1780 0 goto out;
1781 }
1782
1783 0 result = globus_soap_client_register_request(
1784 client_handle,
1785 epr->Address.base_value,
1786 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
1787 (void *) input,
1788 callback,
1789 callback_arg);
1790
1791 0 out:
1792 0 return result;
1793 }
1794
1795 /**
1796 * Nonblocking operation request
1797 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1798 * Begin sending a request for the <code>GetMultipleResourceProperties</code> operation to
1799 * the service at @a endpoint. When the operation
1800 * request has been sent, the @a callback function will be invoked.
1801 * @param handle
1802 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1803 * contains the state related to processing this operation.
1804 * @param endpoint
1805 * URI of the service endpoint to send the request to.
1806 * @param input
1807 * Input parameter to the operation.
1808 * @param callback
1809 * Callback function which will be called once the request has been
1810 * sent
1811 * @param callback_arg
1812 * Application-specific pointer which will be passed to the callback.
1813 */
1814 globus_result_t
1815 ResourcePropertiesTestPortType_GetMultipleResourceProperties_register_request(
1816 ResourcePropertiesTestService_client_handle_t client_handle,
1817 const char * endpoint,
1818 const wsrp_GetMultipleResourcePropertiesType * input,
1819 ResourcePropertiesTestPortType_GetMultipleResourceProperties_request_callback_func_t callback,
1820 void * callback_arg)
1821 0 {
1822 0 return globus_soap_client_register_request(
1823 client_handle,
1824 endpoint,
1825 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
1826 (void *) input,
1827 callback,
1828 callback_arg);
1829 }
1830
1831
1832
1833 static
1834 void
1835 ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_deserialize_fault(
1836 globus_soap_message_handle_t handle,
1837 const xsd_QName * fault_qname,
1838 int * fault_type)
1839 0 {
1840 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETMULTIPLERESOURCEPROPERTIES_NOFAULT;
1841
1842 0 if(fault_qname)
1843 {
1844 0 if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
1845 fault_qname == (&wsr_ResourceUnknownFault_qname))
1846 {
1847 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETMULTIPLERESOURCEPROPERTIES_RESOURCEUNKNOWNFAULT;
1848 }
1849 0 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
1850 fault_qname == (&wsr_ResourceUnavailableFault_qname))
1851 {
1852 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETMULTIPLERESOURCEPROPERTIES_RESOURCEUNAVAILABLEFAULT;
1853 }
1854 0 else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) ||
1855 fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname))
1856 {
1857 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETMULTIPLERESOURCEPROPERTIES_INVALIDRESOURCEPROPERTYQNAMEFAULT;
1858 }
1859 else
1860 {
1861 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETMULTIPLERESOURCEPROPERTIES_UNKNOWN_FAULT;
1862 }
1863 }
1864 0 }
1865 /* ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_deserialize_fault() */
1866
1867 /**
1868 * Nonblocking operation response handling
1869 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1870 * Begin parsing the request for the <code>GetMultipleResourceProperties</code> operation begun
1871 * by an earlier call to
1872 * ResourcePropertiesTestPortType_GetMultipleResourceProperties_register_request() or
1873 * ResourcePropertiesTestPortType_GetMultipleResourceProperties_epr_register_request(). Once the response has been parsed.
1874 * the @a callback function will be called to pass the result of the operation
1875 * to the application.
1876 *
1877 * @param client_handle
1878 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1879 * contains the state related to processing this operation.
1880 * @param callback
1881 * Callback function which will be called once the response has been
1882 * processed.
1883 * @param callback_arg
1884 * Application-specific pointer which will be passed to the callback.
1885 */
1886 globus_result_t
1887 ResourcePropertiesTestPortType_GetMultipleResourceProperties_register_response(
1888 ResourcePropertiesTestService_client_handle_t client_handle,
1889 ResourcePropertiesTestPortType_GetMultipleResourceProperties_response_callback_func_t callback,
1890 void * callback_arg)
1891 0 {
1892 0 return globus_soap_client_register_response(
1893 client_handle,
1894 (globus_soap_client_response_callback_func_t) callback,
1895 callback_arg);
1896 }
1897
1898 /**
1899 * Nonblocking operation invocation with EPR
1900 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1901 *
1902 * Begin processing a request for the GetMultipleResourceProperties operation. The operation will
1903 * sent to the service named by the @a epr and after the response is received,
1904 * the @a callback function will be invoked.
1905 *
1906 * @param handle
1907 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1908 * contains the state related to processing this operation.
1909 * @param epr
1910 * Endpoint Reference of the service and resource which will process
1911 * the operation.
1912 * @param input
1913 * Input parameter to the operation.
1914 * @param callback
1915 * Callback function which will be called once the operation has been
1916 * processed.
1917 * @param callback_arg
1918 * Application-specific pointer which will be passed to the callback.
1919 */
1920 globus_result_t
1921 ResourcePropertiesTestPortType_GetMultipleResourceProperties_epr_register(
1922 ResourcePropertiesTestService_client_handle_t handle,
1923 const wsa_EndpointReferenceType * epr,
1924 const wsrp_GetMultipleResourcePropertiesType * input,
1925 ResourcePropertiesTestPortType_GetMultipleResourceProperties_response_callback_func_t callback,
1926 void * callback_arg)
1927 0 {
1928 globus_result_t result;
1929
1930 0 result = globus_soap_client_handle_attr_set(
1931 handle,
1932 WSADDR_EPR_KEY,
1933 wsa_EndpointReferenceType_info.copy,
1934 wsa_EndpointReferenceType_info.destroy,
1935 (void *) epr);
1936
1937 0 if (result != GLOBUS_SUCCESS)
1938 {
1939 0 goto out;
1940 }
1941
1942 0 result = globus_soap_client_operation_register(
1943 handle,
1944 epr->Address.base_value,
1945 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
1946 (void *) input,
1947 (globus_soap_client_response_callback_func_t) callback,
1948 callback_arg);
1949 0 out:
1950 0 return result;
1951 }
1952
1953 /**
1954 * Nonblocking operation invocation
1955 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1956 *
1957 * Begin processing a request for the GetMultipleResourceProperties operation. The operation will
1958 * sent to the service located at @a endpoint and after the response is
1959 * received, the @a callback function will be invoked.
1960 *
1961 * @param handle
1962 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
1963 * contains the state related to processing this operation.
1964 * @param endpoint
1965 * URI of the service endpoint to send the request to.
1966 * @param input
1967 * Input parameter to the operation.
1968 * @param callback
1969 * Callback function which will be called once the operation has been
1970 * processed.
1971 * @param callback_arg
1972 * Application-specific pointer which will be passed to the callback.
1973 */
1974 globus_result_t
1975 ResourcePropertiesTestPortType_GetMultipleResourceProperties_register(
1976 ResourcePropertiesTestService_client_handle_t handle,
1977 const char * endpoint,
1978 const wsrp_GetMultipleResourcePropertiesType * input,
1979 ResourcePropertiesTestPortType_GetMultipleResourceProperties_response_callback_func_t callback,
1980 void * callback_arg)
1981 0 {
1982 0 return globus_soap_client_operation_register(
1983 handle,
1984 endpoint,
1985 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
1986 (void *) input,
1987 (globus_soap_client_response_callback_func_t) callback,
1988 callback_arg);
1989 }
1990
1991
1992
1993 /**
1994 * Blocking operation invocation with EPR
1995 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
1996 *
1997 * Request that an the GetMultipleResourceProperties operation be invoked by the service and
1998 * resource named by the @a epr parameter.
1999
2000 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2001 * @a output parameter will be set to the result of the operation.
2002 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2003 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2004 * error occurred, and the result's error type should be checked.
2005
2006 *
2007 * @param handle
2008 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2009 * contains the state related to processing this operation.
2010 * @param epr
2011 * Endpoint Reference of the service and resource which will process
2012 * the operation.
2013 * @param input
2014 * Input parameter to the operation.
2015
2016 * @param output
2017 * The output of the operation, if the operation succeeded.
2018 * @param fault_type
2019 * The type of fault sent as a result of the operation, if the operation
2020 * failed. If the operation succeeded, this will be NULL.
2021 * @param fault
2022 * The fault element which was received, if the operation failed.
2023 * If the operation succeeded, this will be NULL.
2024
2025 */
2026 globus_result_t
2027 ResourcePropertiesTestPortType_GetMultipleResourceProperties_epr(
2028 ResourcePropertiesTestService_client_handle_t handle,
2029 const wsa_EndpointReferenceType * epr,
2030 const wsrp_GetMultipleResourcePropertiesType * input,
2031 wsrp_GetMultipleResourcePropertiesResponseType * * output,
2032 ResourcePropertiesTestPortType_GetMultipleResourceProperties_fault_t * fault_type,
2033 xsd_any * * fault)
2034 24 {
2035 globus_result_t result;
2036
2037 24 result = globus_soap_client_handle_attr_set(
2038 handle,
2039 WSADDR_EPR_KEY,
2040 wsa_EndpointReferenceType_info.copy,
2041 wsa_EndpointReferenceType_info.destroy,
2042 (void *) epr);
2043
2044 24 if (result != GLOBUS_SUCCESS)
2045 {
2046 0 goto out;
2047 }
2048 24 result = globus_soap_client_operation(
2049 handle,
2050 epr->Address.base_value,
2051 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
2052 (void *) input,
2053
2054 (void **) output,
2055 (int *) fault_type,
2056 fault
2057 );
2058 24 out:
2059 24 return result;
2060 }
2061
2062 /**
2063 * Blocking operation invocation
2064 * @ingroup ResourcePropertiesTestPortType_GetMultipleResourceProperties_operation
2065 *
2066 * Request that an the GetMultipleResourceProperties operation be invoked by the service at
2067 * @a endpoint.
2068
2069 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2070 * @a output parameter will be set to the result of the operation.
2071 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2072 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2073 * error occurred, and the result's error type should be checked.
2074
2075 *
2076 * @param handle
2077 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2078 * contains the state related to processing this operation.
2079 * @param endpoint
2080 * URI of the service endpoint to send the request to.
2081 * @param input
2082 * Input parameter to the operation.
2083
2084 * @param output
2085 * The output of the operation, if the operation succeeded.
2086 * @param fault_type
2087 * The type of fault sent as a result of the operation, if the operation
2088 * failed. If the operation succeeded, this will be NULL.
2089 * @param fault
2090 * The fault element which was received, if the operation failed.
2091 * If the operation succeeded, this will be NULL.
2092
2093 */
2094 globus_result_t
2095 ResourcePropertiesTestPortType_GetMultipleResourceProperties(
2096 ResourcePropertiesTestService_client_handle_t handle,
2097 const char * endpoint,
2098 const wsrp_GetMultipleResourcePropertiesType * input,
2099 wsrp_GetMultipleResourcePropertiesResponseType * * output,
2100 ResourcePropertiesTestPortType_GetMultipleResourceProperties_fault_t * fault_type,
2101 xsd_any * * fault)
2102 0 {
2103 0 return globus_soap_client_operation(
2104 handle,
2105 endpoint,
2106 &ResourcePropertiesTestPortType_l_GetMultipleResourceProperties_operation,
2107 (void *) input,
2108
2109 (void *) output,
2110 (int *) fault_type,
2111 fault
2112 );
2113 }
2114
2115
2116 /**
2117 * Nonblocking operation request with EPR
2118 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2119 * Begin sending a request for the <code>QueryResourceProperties</code> operation on a
2120 * resource handled by the service named by the @a epr. When the operation
2121 * request has been sent, the @a callback function will be invoked.
2122 *
2123 * @param client_handle
2124 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2125 * contains the state related to processing this operation.
2126 * @param epr
2127 * Endpoint Reference of the service and resource which will process
2128 * the operation.
2129 * @param input
2130 * Input parameter to the operation.
2131 * @param callback
2132 * Callback function which will be called once the request has been
2133 * sent
2134 * @param callback_arg
2135 * Application-specific pointer which will be passed to the callback.
2136 */
2137 globus_result_t
2138 ResourcePropertiesTestPortType_QueryResourceProperties_epr_register_request(
2139 ResourcePropertiesTestService_client_handle_t client_handle,
2140 const wsa_EndpointReferenceType * epr,
2141 const wsrp_QueryResourcePropertiesType * input,
2142 ResourcePropertiesTestPortType_QueryResourceProperties_request_callback_func_t callback,
2143 void * callback_arg)
2144 0 {
2145 0 globus_result_t result = GLOBUS_SUCCESS;
2146
2147 0 globus_assert_string(epr, "NULL EndpointReference");
2148 0 globus_assert_string(epr->Address.base_value,
2149 "NULL EndpointReference Address");
2150
2151 0 result = globus_soap_client_handle_attr_set(
2152 client_handle,
2153 WSADDR_EPR_KEY,
2154 wsa_EndpointReferenceType_info.copy,
2155 wsa_EndpointReferenceType_info.destroy,
2156 (void *) epr);
2157
2158 0 if (result != GLOBUS_SUCCESS)
2159 {
2160 0 goto out;
2161 }
2162
2163 0 result = globus_soap_client_register_request(
2164 client_handle,
2165 epr->Address.base_value,
2166 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2167 (void *) input,
2168 callback,
2169 callback_arg);
2170
2171 0 out:
2172 0 return result;
2173 }
2174
2175 /**
2176 * Nonblocking operation request
2177 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2178 * Begin sending a request for the <code>QueryResourceProperties</code> operation to
2179 * the service at @a endpoint. When the operation
2180 * request has been sent, the @a callback function will be invoked.
2181 * @param handle
2182 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2183 * contains the state related to processing this operation.
2184 * @param endpoint
2185 * URI of the service endpoint to send the request to.
2186 * @param input
2187 * Input parameter to the operation.
2188 * @param callback
2189 * Callback function which will be called once the request has been
2190 * sent
2191 * @param callback_arg
2192 * Application-specific pointer which will be passed to the callback.
2193 */
2194 globus_result_t
2195 ResourcePropertiesTestPortType_QueryResourceProperties_register_request(
2196 ResourcePropertiesTestService_client_handle_t client_handle,
2197 const char * endpoint,
2198 const wsrp_QueryResourcePropertiesType * input,
2199 ResourcePropertiesTestPortType_QueryResourceProperties_request_callback_func_t callback,
2200 void * callback_arg)
2201 0 {
2202 0 return globus_soap_client_register_request(
2203 client_handle,
2204 endpoint,
2205 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2206 (void *) input,
2207 callback,
2208 callback_arg);
2209 }
2210
2211
2212
2213 static
2214 void
2215 ResourcePropertiesTestPortType_l_QueryResourceProperties_deserialize_fault(
2216 globus_soap_message_handle_t handle,
2217 const xsd_QName * fault_qname,
2218 int * fault_type)
2219 12 {
2220 12 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_NOFAULT;
2221
2222 12 if(fault_qname)
2223 {
2224 12 if(fault_qname == (&wsrp_UnknownQueryExpressionDialectFaultType_qname) ||
2225 fault_qname == (&wsrp_UnknownQueryExpressionDialectFault_qname))
2226 {
2227 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_UNKNOWNQUERYEXPRESSIONDIALECTFAULT;
2228 }
2229 12 else if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
2230 fault_qname == (&wsr_ResourceUnknownFault_qname))
2231 {
2232 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_RESOURCEUNKNOWNFAULT;
2233 }
2234 12 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
2235 fault_qname == (&wsr_ResourceUnavailableFault_qname))
2236 {
2237 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_RESOURCEUNAVAILABLEFAULT;
2238 }
2239 24 else if(fault_qname == (&wsrp_QueryEvaluationErrorFaultType_qname) ||
2240 fault_qname == (&wsrp_QueryEvaluationErrorFault_qname))
2241 {
2242 12 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_QUERYEVALUATIONERRORFAULT;
2243 }
2244 0 else if(fault_qname == (&wsrp_InvalidQueryExpressionFaultType_qname) ||
2245 fault_qname == (&wsrp_InvalidQueryExpressionFault_qname))
2246 {
2247 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_INVALIDQUERYEXPRESSIONFAULT;
2248 }
2249 0 else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) ||
2250 fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname))
2251 {
2252 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_INVALIDRESOURCEPROPERTYQNAMEFAULT;
2253 }
2254 else
2255 {
2256 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_QUERYRESOURCEPROPERTIES_UNKNOWN_FAULT;
2257 }
2258 }
2259 12 }
2260 /* ResourcePropertiesTestPortType_l_QueryResourceProperties_deserialize_fault() */
2261
2262 /**
2263 * Nonblocking operation response handling
2264 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2265 * Begin parsing the request for the <code>QueryResourceProperties</code> operation begun
2266 * by an earlier call to
2267 * ResourcePropertiesTestPortType_QueryResourceProperties_register_request() or
2268 * ResourcePropertiesTestPortType_QueryResourceProperties_epr_register_request(). Once the response has been parsed.
2269 * the @a callback function will be called to pass the result of the operation
2270 * to the application.
2271 *
2272 * @param client_handle
2273 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2274 * contains the state related to processing this operation.
2275 * @param callback
2276 * Callback function which will be called once the response has been
2277 * processed.
2278 * @param callback_arg
2279 * Application-specific pointer which will be passed to the callback.
2280 */
2281 globus_result_t
2282 ResourcePropertiesTestPortType_QueryResourceProperties_register_response(
2283 ResourcePropertiesTestService_client_handle_t client_handle,
2284 ResourcePropertiesTestPortType_QueryResourceProperties_response_callback_func_t callback,
2285 void * callback_arg)
2286 0 {
2287 0 return globus_soap_client_register_response(
2288 client_handle,
2289 (globus_soap_client_response_callback_func_t) callback,
2290 callback_arg);
2291 }
2292
2293 /**
2294 * Nonblocking operation invocation with EPR
2295 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2296 *
2297 * Begin processing a request for the QueryResourceProperties operation. The operation will
2298 * sent to the service named by the @a epr and after the response is received,
2299 * the @a callback function will be invoked.
2300 *
2301 * @param handle
2302 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2303 * contains the state related to processing this operation.
2304 * @param epr
2305 * Endpoint Reference of the service and resource which will process
2306 * the operation.
2307 * @param input
2308 * Input parameter to the operation.
2309 * @param callback
2310 * Callback function which will be called once the operation has been
2311 * processed.
2312 * @param callback_arg
2313 * Application-specific pointer which will be passed to the callback.
2314 */
2315 globus_result_t
2316 ResourcePropertiesTestPortType_QueryResourceProperties_epr_register(
2317 ResourcePropertiesTestService_client_handle_t handle,
2318 const wsa_EndpointReferenceType * epr,
2319 const wsrp_QueryResourcePropertiesType * input,
2320 ResourcePropertiesTestPortType_QueryResourceProperties_response_callback_func_t callback,
2321 void * callback_arg)
2322 0 {
2323 globus_result_t result;
2324
2325 0 result = globus_soap_client_handle_attr_set(
2326 handle,
2327 WSADDR_EPR_KEY,
2328 wsa_EndpointReferenceType_info.copy,
2329 wsa_EndpointReferenceType_info.destroy,
2330 (void *) epr);
2331
2332 0 if (result != GLOBUS_SUCCESS)
2333 {
2334 0 goto out;
2335 }
2336
2337 0 result = globus_soap_client_operation_register(
2338 handle,
2339 epr->Address.base_value,
2340 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2341 (void *) input,
2342 (globus_soap_client_response_callback_func_t) callback,
2343 callback_arg);
2344 0 out:
2345 0 return result;
2346 }
2347
2348 /**
2349 * Nonblocking operation invocation
2350 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2351 *
2352 * Begin processing a request for the QueryResourceProperties operation. The operation will
2353 * sent to the service located at @a endpoint and after the response is
2354 * received, the @a callback function will be invoked.
2355 *
2356 * @param handle
2357 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2358 * contains the state related to processing this operation.
2359 * @param endpoint
2360 * URI of the service endpoint to send the request to.
2361 * @param input
2362 * Input parameter to the operation.
2363 * @param callback
2364 * Callback function which will be called once the operation has been
2365 * processed.
2366 * @param callback_arg
2367 * Application-specific pointer which will be passed to the callback.
2368 */
2369 globus_result_t
2370 ResourcePropertiesTestPortType_QueryResourceProperties_register(
2371 ResourcePropertiesTestService_client_handle_t handle,
2372 const char * endpoint,
2373 const wsrp_QueryResourcePropertiesType * input,
2374 ResourcePropertiesTestPortType_QueryResourceProperties_response_callback_func_t callback,
2375 void * callback_arg)
2376 0 {
2377 0 return globus_soap_client_operation_register(
2378 handle,
2379 endpoint,
2380 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2381 (void *) input,
2382 (globus_soap_client_response_callback_func_t) callback,
2383 callback_arg);
2384 }
2385
2386
2387
2388 /**
2389 * Blocking operation invocation with EPR
2390 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2391 *
2392 * Request that an the QueryResourceProperties operation be invoked by the service and
2393 * resource named by the @a epr parameter.
2394
2395 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2396 * @a output parameter will be set to the result of the operation.
2397 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2398 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2399 * error occurred, and the result's error type should be checked.
2400
2401 *
2402 * @param handle
2403 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2404 * contains the state related to processing this operation.
2405 * @param epr
2406 * Endpoint Reference of the service and resource which will process
2407 * the operation.
2408 * @param input
2409 * Input parameter to the operation.
2410
2411 * @param output
2412 * The output of the operation, if the operation succeeded.
2413 * @param fault_type
2414 * The type of fault sent as a result of the operation, if the operation
2415 * failed. If the operation succeeded, this will be NULL.
2416 * @param fault
2417 * The fault element which was received, if the operation failed.
2418 * If the operation succeeded, this will be NULL.
2419
2420 */
2421 globus_result_t
2422 ResourcePropertiesTestPortType_QueryResourceProperties_epr(
2423 ResourcePropertiesTestService_client_handle_t handle,
2424 const wsa_EndpointReferenceType * epr,
2425 const wsrp_QueryResourcePropertiesType * input,
2426 wsrp_QueryResourcePropertiesResponseType * * output,
2427 ResourcePropertiesTestPortType_QueryResourceProperties_fault_t * fault_type,
2428 xsd_any * * fault)
2429 126 {
2430 globus_result_t result;
2431
2432 126 result = globus_soap_client_handle_attr_set(
2433 handle,
2434 WSADDR_EPR_KEY,
2435 wsa_EndpointReferenceType_info.copy,
2436 wsa_EndpointReferenceType_info.destroy,
2437 (void *) epr);
2438
2439 126 if (result != GLOBUS_SUCCESS)
2440 {
2441 0 goto out;
2442 }
2443 126 result = globus_soap_client_operation(
2444 handle,
2445 epr->Address.base_value,
2446 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2447 (void *) input,
2448
2449 (void **) output,
2450 (int *) fault_type,
2451 fault
2452 );
2453 126 out:
2454 126 return result;
2455 }
2456
2457 /**
2458 * Blocking operation invocation
2459 * @ingroup ResourcePropertiesTestPortType_QueryResourceProperties_operation
2460 *
2461 * Request that an the QueryResourceProperties operation be invoked by the service at
2462 * @a endpoint.
2463
2464 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2465 * @a output parameter will be set to the result of the operation.
2466 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2467 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2468 * error occurred, and the result's error type should be checked.
2469
2470 *
2471 * @param handle
2472 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2473 * contains the state related to processing this operation.
2474 * @param endpoint
2475 * URI of the service endpoint to send the request to.
2476 * @param input
2477 * Input parameter to the operation.
2478
2479 * @param output
2480 * The output of the operation, if the operation succeeded.
2481 * @param fault_type
2482 * The type of fault sent as a result of the operation, if the operation
2483 * failed. If the operation succeeded, this will be NULL.
2484 * @param fault
2485 * The fault element which was received, if the operation failed.
2486 * If the operation succeeded, this will be NULL.
2487
2488 */
2489 globus_result_t
2490 ResourcePropertiesTestPortType_QueryResourceProperties(
2491 ResourcePropertiesTestService_client_handle_t handle,
2492 const char * endpoint,
2493 const wsrp_QueryResourcePropertiesType * input,
2494 wsrp_QueryResourcePropertiesResponseType * * output,
2495 ResourcePropertiesTestPortType_QueryResourceProperties_fault_t * fault_type,
2496 xsd_any * * fault)
2497 0 {
2498 0 return globus_soap_client_operation(
2499 handle,
2500 endpoint,
2501 &ResourcePropertiesTestPortType_l_QueryResourceProperties_operation,
2502 (void *) input,
2503
2504 (void *) output,
2505 (int *) fault_type,
2506 fault
2507 );
2508 }
2509
2510
2511 /**
2512 * Nonblocking operation request with EPR
2513 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2514 * Begin sending a request for the <code>GetResourceProperty</code> operation on a
2515 * resource handled by the service named by the @a epr. When the operation
2516 * request has been sent, the @a callback function will be invoked.
2517 *
2518 * @param client_handle
2519 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2520 * contains the state related to processing this operation.
2521 * @param epr
2522 * Endpoint Reference of the service and resource which will process
2523 * the operation.
2524 * @param input
2525 * Input parameter to the operation.
2526 * @param callback
2527 * Callback function which will be called once the request has been
2528 * sent
2529 * @param callback_arg
2530 * Application-specific pointer which will be passed to the callback.
2531 */
2532 globus_result_t
2533 ResourcePropertiesTestPortType_GetResourceProperty_epr_register_request(
2534 ResourcePropertiesTestService_client_handle_t client_handle,
2535 const wsa_EndpointReferenceType * epr,
2536 const xsd_QName * input,
2537 ResourcePropertiesTestPortType_GetResourceProperty_request_callback_func_t callback,
2538 void * callback_arg)
2539 0 {
2540 0 globus_result_t result = GLOBUS_SUCCESS;
2541
2542 0 globus_assert_string(epr, "NULL EndpointReference");
2543 0 globus_assert_string(epr->Address.base_value,
2544 "NULL EndpointReference Address");
2545
2546 0 result = globus_soap_client_handle_attr_set(
2547 client_handle,
2548 WSADDR_EPR_KEY,
2549 wsa_EndpointReferenceType_info.copy,
2550 wsa_EndpointReferenceType_info.destroy,
2551 (void *) epr);
2552
2553 0 if (result != GLOBUS_SUCCESS)
2554 {
2555 0 goto out;
2556 }
2557
2558 0 result = globus_soap_client_register_request(
2559 client_handle,
2560 epr->Address.base_value,
2561 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2562 (void *) input,
2563 callback,
2564 callback_arg);
2565
2566 0 out:
2567 0 return result;
2568 }
2569
2570 /**
2571 * Nonblocking operation request
2572 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2573 * Begin sending a request for the <code>GetResourceProperty</code> operation to
2574 * the service at @a endpoint. When the operation
2575 * request has been sent, the @a callback function will be invoked.
2576 * @param handle
2577 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2578 * contains the state related to processing this operation.
2579 * @param endpoint
2580 * URI of the service endpoint to send the request to.
2581 * @param input
2582 * Input parameter to the operation.
2583 * @param callback
2584 * Callback function which will be called once the request has been
2585 * sent
2586 * @param callback_arg
2587 * Application-specific pointer which will be passed to the callback.
2588 */
2589 globus_result_t
2590 ResourcePropertiesTestPortType_GetResourceProperty_register_request(
2591 ResourcePropertiesTestService_client_handle_t client_handle,
2592 const char * endpoint,
2593 const xsd_QName * input,
2594 ResourcePropertiesTestPortType_GetResourceProperty_request_callback_func_t callback,
2595 void * callback_arg)
2596 0 {
2597 0 return globus_soap_client_register_request(
2598 client_handle,
2599 endpoint,
2600 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2601 (void *) input,
2602 callback,
2603 callback_arg);
2604 }
2605
2606
2607
2608 static
2609 void
2610 ResourcePropertiesTestPortType_l_GetResourceProperty_deserialize_fault(
2611 globus_soap_message_handle_t handle,
2612 const xsd_QName * fault_qname,
2613 int * fault_type)
2614 60 {
2615 60 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETRESOURCEPROPERTY_NOFAULT;
2616
2617 60 if(fault_qname)
2618 {
2619 60 if(fault_qname == (&wsr_ResourceUnknownFaultType_qname) ||
2620 fault_qname == (&wsr_ResourceUnknownFault_qname))
2621 {
2622 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETRESOURCEPROPERTY_RESOURCEUNKNOWNFAULT;
2623 }
2624 60 else if(fault_qname == (&wsr_ResourceUnavailableFaultType_qname) ||
2625 fault_qname == (&wsr_ResourceUnavailableFault_qname))
2626 {
2627 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETRESOURCEPROPERTY_RESOURCEUNAVAILABLEFAULT;
2628 }
2629 120 else if(fault_qname == (&wsrp_InvalidResourcePropertyQNameFaultType_qname) ||
2630 fault_qname == (&wsrp_InvalidResourcePropertyQNameFault_qname))
2631 {
2632 60 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETRESOURCEPROPERTY_INVALIDRESOURCEPROPERTYQNAMEFAULT;
2633 }
2634 else
2635 {
2636 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_GETRESOURCEPROPERTY_UNKNOWN_FAULT;
2637 }
2638 }
2639 60 }
2640 /* ResourcePropertiesTestPortType_l_GetResourceProperty_deserialize_fault() */
2641
2642 /**
2643 * Nonblocking operation response handling
2644 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2645 * Begin parsing the request for the <code>GetResourceProperty</code> operation begun
2646 * by an earlier call to
2647 * ResourcePropertiesTestPortType_GetResourceProperty_register_request() or
2648 * ResourcePropertiesTestPortType_GetResourceProperty_epr_register_request(). Once the response has been parsed.
2649 * the @a callback function will be called to pass the result of the operation
2650 * to the application.
2651 *
2652 * @param client_handle
2653 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2654 * contains the state related to processing this operation.
2655 * @param callback
2656 * Callback function which will be called once the response has been
2657 * processed.
2658 * @param callback_arg
2659 * Application-specific pointer which will be passed to the callback.
2660 */
2661 globus_result_t
2662 ResourcePropertiesTestPortType_GetResourceProperty_register_response(
2663 ResourcePropertiesTestService_client_handle_t client_handle,
2664 ResourcePropertiesTestPortType_GetResourceProperty_response_callback_func_t callback,
2665 void * callback_arg)
2666 0 {
2667 0 return globus_soap_client_register_response(
2668 client_handle,
2669 (globus_soap_client_response_callback_func_t) callback,
2670 callback_arg);
2671 }
2672
2673 /**
2674 * Nonblocking operation invocation with EPR
2675 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2676 *
2677 * Begin processing a request for the GetResourceProperty operation. The operation will
2678 * sent to the service named by the @a epr and after the response is received,
2679 * the @a callback function will be invoked.
2680 *
2681 * @param handle
2682 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2683 * contains the state related to processing this operation.
2684 * @param epr
2685 * Endpoint Reference of the service and resource which will process
2686 * the operation.
2687 * @param input
2688 * Input parameter to the operation.
2689 * @param callback
2690 * Callback function which will be called once the operation has been
2691 * processed.
2692 * @param callback_arg
2693 * Application-specific pointer which will be passed to the callback.
2694 */
2695 globus_result_t
2696 ResourcePropertiesTestPortType_GetResourceProperty_epr_register(
2697 ResourcePropertiesTestService_client_handle_t handle,
2698 const wsa_EndpointReferenceType * epr,
2699 const xsd_QName * input,
2700 ResourcePropertiesTestPortType_GetResourceProperty_response_callback_func_t callback,
2701 void * callback_arg)
2702 0 {
2703 globus_result_t result;
2704
2705 0 result = globus_soap_client_handle_attr_set(
2706 handle,
2707 WSADDR_EPR_KEY,
2708 wsa_EndpointReferenceType_info.copy,
2709 wsa_EndpointReferenceType_info.destroy,
2710 (void *) epr);
2711
2712 0 if (result != GLOBUS_SUCCESS)
2713 {
2714 0 goto out;
2715 }
2716
2717 0 result = globus_soap_client_operation_register(
2718 handle,
2719 epr->Address.base_value,
2720 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2721 (void *) input,
2722 (globus_soap_client_response_callback_func_t) callback,
2723 callback_arg);
2724 0 out:
2725 0 return result;
2726 }
2727
2728 /**
2729 * Nonblocking operation invocation
2730 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2731 *
2732 * Begin processing a request for the GetResourceProperty operation. The operation will
2733 * sent to the service located at @a endpoint and after the response is
2734 * received, the @a callback function will be invoked.
2735 *
2736 * @param handle
2737 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2738 * contains the state related to processing this operation.
2739 * @param endpoint
2740 * URI of the service endpoint to send the request to.
2741 * @param input
2742 * Input parameter to the operation.
2743 * @param callback
2744 * Callback function which will be called once the operation has been
2745 * processed.
2746 * @param callback_arg
2747 * Application-specific pointer which will be passed to the callback.
2748 */
2749 globus_result_t
2750 ResourcePropertiesTestPortType_GetResourceProperty_register(
2751 ResourcePropertiesTestService_client_handle_t handle,
2752 const char * endpoint,
2753 const xsd_QName * input,
2754 ResourcePropertiesTestPortType_GetResourceProperty_response_callback_func_t callback,
2755 void * callback_arg)
2756 0 {
2757 0 return globus_soap_client_operation_register(
2758 handle,
2759 endpoint,
2760 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2761 (void *) input,
2762 (globus_soap_client_response_callback_func_t) callback,
2763 callback_arg);
2764 }
2765
2766
2767
2768 /**
2769 * Blocking operation invocation with EPR
2770 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2771 *
2772 * Request that an the GetResourceProperty operation be invoked by the service and
2773 * resource named by the @a epr parameter.
2774
2775 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2776 * @a output parameter will be set to the result of the operation.
2777 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2778 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2779 * error occurred, and the result's error type should be checked.
2780
2781 *
2782 * @param handle
2783 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2784 * contains the state related to processing this operation.
2785 * @param epr
2786 * Endpoint Reference of the service and resource which will process
2787 * the operation.
2788 * @param input
2789 * Input parameter to the operation.
2790
2791 * @param output
2792 * The output of the operation, if the operation succeeded.
2793 * @param fault_type
2794 * The type of fault sent as a result of the operation, if the operation
2795 * failed. If the operation succeeded, this will be NULL.
2796 * @param fault
2797 * The fault element which was received, if the operation failed.
2798 * If the operation succeeded, this will be NULL.
2799
2800 */
2801 globus_result_t
2802 ResourcePropertiesTestPortType_GetResourceProperty_epr(
2803 ResourcePropertiesTestService_client_handle_t handle,
2804 const wsa_EndpointReferenceType * epr,
2805 const xsd_QName * input,
2806 wsrp_GetResourcePropertyResponseType * * output,
2807 ResourcePropertiesTestPortType_GetResourceProperty_fault_t * fault_type,
2808 xsd_any * * fault)
2809 312 {
2810 globus_result_t result;
2811
2812 312 result = globus_soap_client_handle_attr_set(
2813 handle,
2814 WSADDR_EPR_KEY,
2815 wsa_EndpointReferenceType_info.copy,
2816 wsa_EndpointReferenceType_info.destroy,
2817 (void *) epr);
2818
2819 312 if (result != GLOBUS_SUCCESS)
2820 {
2821 0 goto out;
2822 }
2823 312 result = globus_soap_client_operation(
2824 handle,
2825 epr->Address.base_value,
2826 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2827 (void *) input,
2828
2829 (void **) output,
2830 (int *) fault_type,
2831 fault
2832 );
2833 312 out:
2834 312 return result;
2835 }
2836
2837 /**
2838 * Blocking operation invocation
2839 * @ingroup ResourcePropertiesTestPortType_GetResourceProperty_operation
2840 *
2841 * Request that an the GetResourceProperty operation be invoked by the service at
2842 * @a endpoint.
2843
2844 * If the result is <code>GLOBUS_SUCCESS</code>, then the
2845 * @a output parameter will be set to the result of the operation.
2846 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
2847 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
2848 * error occurred, and the result's error type should be checked.
2849
2850 *
2851 * @param handle
2852 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2853 * contains the state related to processing this operation.
2854 * @param endpoint
2855 * URI of the service endpoint to send the request to.
2856 * @param input
2857 * Input parameter to the operation.
2858
2859 * @param output
2860 * The output of the operation, if the operation succeeded.
2861 * @param fault_type
2862 * The type of fault sent as a result of the operation, if the operation
2863 * failed. If the operation succeeded, this will be NULL.
2864 * @param fault
2865 * The fault element which was received, if the operation failed.
2866 * If the operation succeeded, this will be NULL.
2867
2868 */
2869 globus_result_t
2870 ResourcePropertiesTestPortType_GetResourceProperty(
2871 ResourcePropertiesTestService_client_handle_t handle,
2872 const char * endpoint,
2873 const xsd_QName * input,
2874 wsrp_GetResourcePropertyResponseType * * output,
2875 ResourcePropertiesTestPortType_GetResourceProperty_fault_t * fault_type,
2876 xsd_any * * fault)
2877 0 {
2878 0 return globus_soap_client_operation(
2879 handle,
2880 endpoint,
2881 &ResourcePropertiesTestPortType_l_GetResourceProperty_operation,
2882 (void *) input,
2883
2884 (void *) output,
2885 (int *) fault_type,
2886 fault
2887 );
2888 }
2889
2890
2891 /**
2892 * Nonblocking operation request with EPR
2893 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
2894 * Begin sending a request for the <code>CreateResourcePropertiesTest</code> operation on a
2895 * resource handled by the service named by the @a epr. When the operation
2896 * request has been sent, the @a callback function will be invoked.
2897 *
2898 * @param client_handle
2899 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2900 * contains the state related to processing this operation.
2901 * @param epr
2902 * Endpoint Reference of the service and resource which will process
2903 * the operation.
2904 * @param input
2905 * Input parameter to the operation.
2906 * @param callback
2907 * Callback function which will be called once the request has been
2908 * sent
2909 * @param callback_arg
2910 * Application-specific pointer which will be passed to the callback.
2911 */
2912 globus_result_t
2913 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_epr_register_request(
2914 ResourcePropertiesTestService_client_handle_t client_handle,
2915 const wsa_EndpointReferenceType * epr,
2916 const rptest_CreateResourcePropertiesTestType * input,
2917 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_request_callback_func_t callback,
2918 void * callback_arg)
2919 0 {
2920 0 globus_result_t result = GLOBUS_SUCCESS;
2921
2922 0 globus_assert_string(epr, "NULL EndpointReference");
2923 0 globus_assert_string(epr->Address.base_value,
2924 "NULL EndpointReference Address");
2925
2926 0 result = globus_soap_client_handle_attr_set(
2927 client_handle,
2928 WSADDR_EPR_KEY,
2929 wsa_EndpointReferenceType_info.copy,
2930 wsa_EndpointReferenceType_info.destroy,
2931 (void *) epr);
2932
2933 0 if (result != GLOBUS_SUCCESS)
2934 {
2935 0 goto out;
2936 }
2937
2938 0 result = globus_soap_client_register_request(
2939 client_handle,
2940 epr->Address.base_value,
2941 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
2942 (void *) input,
2943 callback,
2944 callback_arg);
2945
2946 0 out:
2947 0 return result;
2948 }
2949
2950 /**
2951 * Nonblocking operation request
2952 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
2953 * Begin sending a request for the <code>CreateResourcePropertiesTest</code> operation to
2954 * the service at @a endpoint. When the operation
2955 * request has been sent, the @a callback function will be invoked.
2956 * @param handle
2957 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
2958 * contains the state related to processing this operation.
2959 * @param endpoint
2960 * URI of the service endpoint to send the request to.
2961 * @param input
2962 * Input parameter to the operation.
2963 * @param callback
2964 * Callback function which will be called once the request has been
2965 * sent
2966 * @param callback_arg
2967 * Application-specific pointer which will be passed to the callback.
2968 */
2969 globus_result_t
2970 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_register_request(
2971 ResourcePropertiesTestService_client_handle_t client_handle,
2972 const char * endpoint,
2973 const rptest_CreateResourcePropertiesTestType * input,
2974 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_request_callback_func_t callback,
2975 void * callback_arg)
2976 0 {
2977 0 return globus_soap_client_register_request(
2978 client_handle,
2979 endpoint,
2980 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
2981 (void *) input,
2982 callback,
2983 callback_arg);
2984 }
2985
2986
2987
2988 static
2989 void
2990 ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_deserialize_fault(
2991 globus_soap_message_handle_t handle,
2992 const xsd_QName * fault_qname,
2993 int * fault_type)
2994 0 {
2995 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_CREATERESOURCEPROPERTIESTEST_NOFAULT;
2996
2997 0 if(fault_qname)
2998 {
2999
3000 {
3001 0 *fault_type = RESOURCEPROPERTIESTESTPORTTYPE_CREATERESOURCEPROPERTIESTEST_UNKNOWN_FAULT;
3002 }
3003 }
3004 0 }
3005 /* ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_deserialize_fault() */
3006
3007 /**
3008 * Nonblocking operation response handling
3009 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
3010 * Begin parsing the request for the <code>CreateResourcePropertiesTest</code> operation begun
3011 * by an earlier call to
3012 * ResourcePropertiesTestPortType_CreateResourcePropertiesTest_register_request() or
3013 * ResourcePropertiesTestPortType_CreateResourcePropertiesTest_epr_register_request(). Once the response has been parsed.
3014 * the @a callback function will be called to pass the result of the operation
3015 * to the application.
3016 *
3017 * @param client_handle
3018 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
3019 * contains the state related to processing this operation.
3020 * @param callback
3021 * Callback function which will be called once the response has been
3022 * processed.
3023 * @param callback_arg
3024 * Application-specific pointer which will be passed to the callback.
3025 */
3026 globus_result_t
3027 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_register_response(
3028 ResourcePropertiesTestService_client_handle_t client_handle,
3029 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_response_callback_func_t callback,
3030 void * callback_arg)
3031 0 {
3032 0 return globus_soap_client_register_response(
3033 client_handle,
3034 (globus_soap_client_response_callback_func_t) callback,
3035 callback_arg);
3036 }
3037
3038 /**
3039 * Nonblocking operation invocation with EPR
3040 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
3041 *
3042 * Begin processing a request for the CreateResourcePropertiesTest operation. The operation will
3043 * sent to the service named by the @a epr and after the response is received,
3044 * the @a callback function will be invoked.
3045 *
3046 * @param handle
3047 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
3048 * contains the state related to processing this operation.
3049 * @param epr
3050 * Endpoint Reference of the service and resource which will process
3051 * the operation.
3052 * @param input
3053 * Input parameter to the operation.
3054 * @param callback
3055 * Callback function which will be called once the operation has been
3056 * processed.
3057 * @param callback_arg
3058 * Application-specific pointer which will be passed to the callback.
3059 */
3060 globus_result_t
3061 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_epr_register(
3062 ResourcePropertiesTestService_client_handle_t handle,
3063 const wsa_EndpointReferenceType * epr,
3064 const rptest_CreateResourcePropertiesTestType * input,
3065 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_response_callback_func_t callback,
3066 void * callback_arg)
3067 0 {
3068 globus_result_t result;
3069
3070 0 result = globus_soap_client_handle_attr_set(
3071 handle,
3072 WSADDR_EPR_KEY,
3073 wsa_EndpointReferenceType_info.copy,
3074 wsa_EndpointReferenceType_info.destroy,
3075 (void *) epr);
3076
3077 0 if (result != GLOBUS_SUCCESS)
3078 {
3079 0 goto out;
3080 }
3081
3082 0 result = globus_soap_client_operation_register(
3083 handle,
3084 epr->Address.base_value,
3085 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
3086 (void *) input,
3087 (globus_soap_client_response_callback_func_t) callback,
3088 callback_arg);
3089 0 out:
3090 0 return result;
3091 }
3092
3093 /**
3094 * Nonblocking operation invocation
3095 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
3096 *
3097 * Begin processing a request for the CreateResourcePropertiesTest operation. The operation will
3098 * sent to the service located at @a endpoint and after the response is
3099 * received, the @a callback function will be invoked.
3100 *
3101 * @param handle
3102 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
3103 * contains the state related to processing this operation.
3104 * @param endpoint
3105 * URI of the service endpoint to send the request to.
3106 * @param input
3107 * Input parameter to the operation.
3108 * @param callback
3109 * Callback function which will be called once the operation has been
3110 * processed.
3111 * @param callback_arg
3112 * Application-specific pointer which will be passed to the callback.
3113 */
3114 globus_result_t
3115 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_register(
3116 ResourcePropertiesTestService_client_handle_t handle,
3117 const char * endpoint,
3118 const rptest_CreateResourcePropertiesTestType * input,
3119 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_response_callback_func_t callback,
3120 void * callback_arg)
3121 0 {
3122 0 return globus_soap_client_operation_register(
3123 handle,
3124 endpoint,
3125 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
3126 (void *) input,
3127 (globus_soap_client_response_callback_func_t) callback,
3128 callback_arg);
3129 }
3130
3131
3132
3133 /**
3134 * Blocking operation invocation with EPR
3135 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
3136 *
3137 * Request that an the CreateResourcePropertiesTest operation be invoked by the service and
3138 * resource named by the @a epr parameter.
3139
3140 * If the result is <code>GLOBUS_SUCCESS</code>, then the
3141 * @a output parameter will be set to the result of the operation.
3142 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
3143 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
3144 * error occurred, and the result's error type should be checked.
3145
3146 *
3147 * @param handle
3148 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
3149 * contains the state related to processing this operation.
3150 * @param epr
3151 * Endpoint Reference of the service and resource which will process
3152 * the operation.
3153 * @param input
3154 * Input parameter to the operation.
3155
3156 * @param output
3157 * The output of the operation, if the operation succeeded.
3158 * @param fault_type
3159 * The type of fault sent as a result of the operation, if the operation
3160 * failed. If the operation succeeded, this will be NULL.
3161 * @param fault
3162 * The fault element which was received, if the operation failed.
3163 * If the operation succeeded, this will be NULL.
3164
3165 */
3166 globus_result_t
3167 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_epr(
3168 ResourcePropertiesTestService_client_handle_t handle,
3169 const wsa_EndpointReferenceType * epr,
3170 const rptest_CreateResourcePropertiesTestType * input,
3171 rptest_CreateResourcePropertiesTestResponseType * * output,
3172 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_fault_t * fault_type,
3173 xsd_any * * fault)
3174 0 {
3175 globus_result_t result;
3176
3177 0 result = globus_soap_client_handle_attr_set(
3178 handle,
3179 WSADDR_EPR_KEY,
3180 wsa_EndpointReferenceType_info.copy,
3181 wsa_EndpointReferenceType_info.destroy,
3182 (void *) epr);
3183
3184 0 if (result != GLOBUS_SUCCESS)
3185 {
3186 0 goto out;
3187 }
3188 0 result = globus_soap_client_operation(
3189 handle,
3190 epr->Address.base_value,
3191 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
3192 (void *) input,
3193
3194 (void **) output,
3195 (int *) fault_type,
3196 fault
3197 );
3198 0 out:
3199 0 return result;
3200 }
3201
3202 /**
3203 * Blocking operation invocation
3204 * @ingroup ResourcePropertiesTestPortType_CreateResourcePropertiesTest_operation
3205 *
3206 * Request that an the CreateResourcePropertiesTest operation be invoked by the service at
3207 * @a endpoint.
3208
3209 * If the result is <code>GLOBUS_SUCCESS</code>, then the
3210 * @a output parameter will be set to the result of the operation.
3211 * Otherwise, if the @a fault and @a fault_type parameters are non-NULL,
3212 * they indicate the SOAP fault type. If they are NULL, then some non-SOAP
3213 * error occurred, and the result's error type should be checked.
3214
3215 *
3216 * @param handle
3217 * The @link #ResourcePropertiesTestService_client_handle_t client handle @endlink which
3218 * contains the state related to processing this operation.
3219 * @param endpoint
3220 * URI of the service endpoint to send the request to.
3221 * @param input
3222 * Input parameter to the operation.
3223
3224 * @param output
3225 * The output of the operation, if the operation succeeded.
3226 * @param fault_type
3227 * The type of fault sent as a result of the operation, if the operation
3228 * failed. If the operation succeeded, this will be NULL.
3229 * @param fault
3230 * The fault element which was received, if the operation failed.
3231 * If the operation succeeded, this will be NULL.
3232
3233 */
3234 globus_result_t
3235 ResourcePropertiesTestPortType_CreateResourcePropertiesTest(
3236 ResourcePropertiesTestService_client_handle_t handle,
3237 const char * endpoint,
3238 const rptest_CreateResourcePropertiesTestType * input,
3239 rptest_CreateResourcePropertiesTestResponseType * * output,
3240 ResourcePropertiesTestPortType_CreateResourcePropertiesTest_fault_t * fault_type,
3241 xsd_any * * fault)
3242 180 {
3243 180 return globus_soap_client_operation(
3244 handle,
3245 endpoint,
3246 &ResourcePropertiesTestPortType_l_CreateResourcePropertiesTest_operation,
3247 (void *) input,
3248
3249 (void *) output,
3250 (int *) fault_type,
3251 fault
3252 );