3 * SimanSalomeServiceStub.cpp
5 * This file was auto-generated from WSDL for "SimanSalomeService|http://salome.service.ws_server.splat.org" service
6 * by the Apache Axis2/Java version: 1.0 Built on : Nov 21, 2012 (01:42:27 MSK)
9 #include "SimanSalomeServiceStub.h"
10 #include "ISimanSalomeServiceCallback.h"
11 #include <axis2_msg.h>
12 #include <axis2_policy_include.h>
13 #include <neethi_engine.h>
15 #include <Environment.h>
19 using namespace wso2wsf;
21 using namespace org_splat_ws_server_service_salome;
24 * SimanSalomeServiceStub CPP implementation
26 SimanSalomeServiceStub::SimanSalomeServiceStub(std::string& clientHome)
28 if(clientHome.empty())
30 cout<<"Please specify the client home";
32 std::string endpointUri= getEndpointUriOfSimanSalomeService();
34 init(clientHome,endpointUri);
36 populateServicesForSimanSalomeService();
42 SimanSalomeServiceStub::SimanSalomeServiceStub(std::string& clientHome,std::string& endpointURI)
44 std::string endpointUri;
46 if(clientHome.empty())
48 cout<<"Please specify the client home";
50 endpointUri = endpointURI;
52 if (endpointUri.empty())
54 endpointUri = getEndpointUriOfSimanSalomeService();
58 init(clientHome,endpointUri);
60 populateServicesForSimanSalomeService();
66 SimanSalomeServiceStub::populateServicesForSimanSalomeService()
68 axis2_svc_client_t *svc_client = NULL;
69 axutil_qname_t *svc_qname = NULL;
70 axutil_qname_t *op_qname = NULL;
71 axis2_svc_t *svc = NULL;
72 axis2_op_t *op = NULL;
73 axis2_op_t *annon_op = NULL;
74 axis2_msg_t *msg_out = NULL;
75 axis2_msg_t *msg_in = NULL;
76 axis2_msg_t *msg_out_fault = NULL;
77 axis2_msg_t *msg_in_fault = NULL;
78 axis2_policy_include_t *policy_include = NULL;
80 axis2_desc_t *desc = NULL;
81 axiom_node_t *policy_node = NULL;
82 axiom_element_t *policy_root_ele = NULL;
83 neethi_policy_t *neethi_policy = NULL;
86 /* Modifying the Service */
87 svc_client = serviceClient->getAxis2SvcClient();
88 svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, Environment::getEnv() );
90 annon_op = axis2_svc_get_op_with_name(svc, Environment::getEnv(), AXIS2_ANON_OUT_IN_OP);
91 msg_out = axis2_op_get_msg(annon_op, Environment::getEnv(), AXIS2_MSG_OUT);
92 msg_in = axis2_op_get_msg(annon_op, Environment::getEnv(), AXIS2_MSG_IN);
93 msg_out_fault = axis2_op_get_msg(annon_op, Environment::getEnv(), AXIS2_MSG_OUT_FAULT);
94 msg_in_fault = axis2_op_get_msg(annon_op, Environment::getEnv(), AXIS2_MSG_IN_FAULT);
96 svc_qname = axutil_qname_create(Environment::getEnv(),"SimanSalomeService" ,NULL, NULL);
97 axis2_svc_set_qname (svc, Environment::getEnv(), svc_qname);
98 axutil_qname_free(svc_qname,Environment::getEnv());
100 /* creating the operations*/
103 op_qname = axutil_qname_create(Environment::getEnv(),
105 "http://salome.service.ws_server.splat.org",
107 op = axis2_op_create_with_qname(Environment::getEnv(), op_qname);
108 axutil_qname_free(op_qname,Environment::getEnv());
111 axis2_op_set_msg_exchange_pattern(op, Environment::getEnv(), AXIS2_MEP_URI_OUT_IN);
113 axis2_msg_increment_ref(msg_out, Environment::getEnv());
114 axis2_msg_increment_ref(msg_in, Environment::getEnv());
115 axis2_msg_increment_ref(msg_out_fault, Environment::getEnv());
116 axis2_msg_increment_ref(msg_in_fault, Environment::getEnv());
117 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT, msg_out);
118 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN, msg_in);
119 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT_FAULT, msg_out_fault);
120 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN_FAULT, msg_in_fault);
123 axis2_svc_add_op(svc, Environment::getEnv(), op);
125 op_qname = axutil_qname_create(Environment::getEnv(),
127 "http://salome.service.ws_server.splat.org",
129 op = axis2_op_create_with_qname(Environment::getEnv(), op_qname);
130 axutil_qname_free(op_qname,Environment::getEnv());
133 axis2_op_set_msg_exchange_pattern(op, Environment::getEnv(), AXIS2_MEP_URI_OUT_IN);
135 axis2_msg_increment_ref(msg_out, Environment::getEnv());
136 axis2_msg_increment_ref(msg_in, Environment::getEnv());
137 axis2_msg_increment_ref(msg_out_fault, Environment::getEnv());
138 axis2_msg_increment_ref(msg_in_fault, Environment::getEnv());
139 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT, msg_out);
140 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN, msg_in);
141 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT_FAULT, msg_out_fault);
142 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN_FAULT, msg_in_fault);
145 axis2_svc_add_op(svc, Environment::getEnv(), op);
147 op_qname = axutil_qname_create(Environment::getEnv(),
149 "http://salome.service.ws_server.splat.org",
151 op = axis2_op_create_with_qname(Environment::getEnv(), op_qname);
152 axutil_qname_free(op_qname,Environment::getEnv());
155 axis2_op_set_msg_exchange_pattern(op, Environment::getEnv(), AXIS2_MEP_URI_OUT_IN);
157 axis2_msg_increment_ref(msg_out, Environment::getEnv());
158 axis2_msg_increment_ref(msg_in, Environment::getEnv());
159 axis2_msg_increment_ref(msg_out_fault, Environment::getEnv());
160 axis2_msg_increment_ref(msg_in_fault, Environment::getEnv());
161 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT, msg_out);
162 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN, msg_in);
163 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT_FAULT, msg_out_fault);
164 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN_FAULT, msg_in_fault);
167 axis2_svc_add_op(svc, Environment::getEnv(), op);
169 op_qname = axutil_qname_create(Environment::getEnv(),
171 "http://salome.service.ws_server.splat.org",
173 op = axis2_op_create_with_qname(Environment::getEnv(), op_qname);
174 axutil_qname_free(op_qname,Environment::getEnv());
177 axis2_op_set_msg_exchange_pattern(op, Environment::getEnv(), AXIS2_MEP_URI_OUT_IN);
179 axis2_msg_increment_ref(msg_out, Environment::getEnv());
180 axis2_msg_increment_ref(msg_in, Environment::getEnv());
181 axis2_msg_increment_ref(msg_out_fault, Environment::getEnv());
182 axis2_msg_increment_ref(msg_in_fault, Environment::getEnv());
183 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT, msg_out);
184 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN, msg_in);
185 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_OUT_FAULT, msg_out_fault);
186 axis2_op_add_msg(op, Environment::getEnv(), AXIS2_MSG_IN_FAULT, msg_in_fault);
189 axis2_svc_add_op(svc, Environment::getEnv(), op);
194 *return end point picked from wsdl
197 SimanSalomeServiceStub::getEndpointUriOfSimanSalomeService()
199 std::string endpoint_uri;
200 /* set the address from here */
202 endpoint_uri = string("http://localhost:8080/Siman-WS/services/SimanSalomeService.SimanSalomeServiceHttpSoap12Endpoint/");
210 * Auto generated method signature
211 * For "createConfigFile|http://salome.service.ws_server.splat.org" operation.
213 * @param _createConfigFile of the org_splat_ws_server_service_salome::CreateConfigFile
215 * @return org_splat_ws_server_service_salome::CreateConfigFileResponse*
218 org_splat_ws_server_service_salome::CreateConfigFileResponse* WSF_CALL SimanSalomeServiceStub::createConfigFile(org_splat_ws_server_service_salome::CreateConfigFile* _createConfigFile)
220 axis2_svc_client_t *svc_client = NULL;
221 axis2_options_t *options = NULL;
222 axiom_node_t *ret_node = NULL;
224 const axis2_char_t *soap_action = NULL;
225 axutil_qname_t *op_qname = NULL;
226 axiom_node_t *payload = NULL;
227 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
228 axutil_string_t *soap_act = NULL;
230 org_splat_ws_server_service_salome::CreateConfigFileResponse* ret_val;
232 payload = _createConfigFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
234 svc_client = serviceClient->getAxis2SvcClient();
240 options = clientOptions->getAxis2Options();
243 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
244 AXIS2_LOG_ERROR(Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
245 return (org_splat_ws_server_service_salome::CreateConfigFileResponse*)NULL;
247 soap_act = axis2_options_get_soap_action( options, Environment::getEnv() );
248 if (NULL == soap_act)
250 is_soap_act_set = AXIS2_FALSE;
251 soap_action = "urn:createConfigFile";
252 soap_act = axutil_string_create(Environment::getEnv(), "urn:createConfigFile");
253 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
257 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
259 ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, Environment::getEnv(), op_qname, payload);
261 if (!is_soap_act_set)
264 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
266 axis2_options_set_action( options, Environment::getEnv(), NULL);
270 axutil_string_free(soap_act, Environment::getEnv());
274 if ( NULL == ret_node )
276 return (org_splat_ws_server_service_salome::CreateConfigFileResponse*)NULL;
278 ret_val = new org_splat_ws_server_service_salome::CreateConfigFileResponse();
280 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
287 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the _deserialize: "
288 "This should be due to an invalid XML");
289 return (org_splat_ws_server_service_salome::CreateConfigFileResponse*)NULL;
298 * Auto generated method signature
299 * For "putFile|http://salome.service.ws_server.splat.org" operation.
301 * @param _putFile of the org_splat_ws_server_service_salome::PutFile
303 * @return org_splat_ws_server_service_salome::PutFileResponse*
306 org_splat_ws_server_service_salome::PutFileResponse* WSF_CALL SimanSalomeServiceStub::putFile(org_splat_ws_server_service_salome::PutFile* _putFile)
308 axis2_svc_client_t *svc_client = NULL;
309 axis2_options_t *options = NULL;
310 axiom_node_t *ret_node = NULL;
312 const axis2_char_t *soap_action = NULL;
313 axutil_qname_t *op_qname = NULL;
314 axiom_node_t *payload = NULL;
315 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
316 axutil_string_t *soap_act = NULL;
318 org_splat_ws_server_service_salome::PutFileResponse* ret_val;
320 payload = _putFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
322 svc_client = serviceClient->getAxis2SvcClient();
328 options = clientOptions->getAxis2Options();
331 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
332 AXIS2_LOG_ERROR(Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
333 return (org_splat_ws_server_service_salome::PutFileResponse*)NULL;
335 soap_act = axis2_options_get_soap_action( options, Environment::getEnv() );
336 if (NULL == soap_act)
338 is_soap_act_set = AXIS2_FALSE;
339 soap_action = "urn:putFile";
340 soap_act = axutil_string_create(Environment::getEnv(), "urn:putFile");
341 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
345 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
347 ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, Environment::getEnv(), op_qname, payload);
349 if (!is_soap_act_set)
352 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
354 axis2_options_set_action( options, Environment::getEnv(), NULL);
358 axutil_string_free(soap_act, Environment::getEnv());
362 if ( NULL == ret_node )
364 return (org_splat_ws_server_service_salome::PutFileResponse*)NULL;
366 ret_val = new org_splat_ws_server_service_salome::PutFileResponse();
368 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
375 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the _deserialize: "
376 "This should be due to an invalid XML");
377 return (org_splat_ws_server_service_salome::PutFileResponse*)NULL;
386 * Auto generated method signature
387 * For "checkIn|http://salome.service.ws_server.splat.org" operation.
389 * @param _checkIn of the org_splat_ws_server_service_salome::CheckIn
391 * @return org_splat_ws_server_service_salome::CheckInResponse*
394 org_splat_ws_server_service_salome::CheckInResponse* WSF_CALL SimanSalomeServiceStub::checkIn(org_splat_ws_server_service_salome::CheckIn* _checkIn)
396 axis2_svc_client_t *svc_client = NULL;
397 axis2_options_t *options = NULL;
398 axiom_node_t *ret_node = NULL;
400 const axis2_char_t *soap_action = NULL;
401 axutil_qname_t *op_qname = NULL;
402 axiom_node_t *payload = NULL;
403 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
404 axutil_string_t *soap_act = NULL;
406 org_splat_ws_server_service_salome::CheckInResponse* ret_val;
408 payload = _checkIn->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
410 svc_client = serviceClient->getAxis2SvcClient();
416 options = clientOptions->getAxis2Options();
419 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
420 AXIS2_LOG_ERROR(Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
421 return (org_splat_ws_server_service_salome::CheckInResponse*)NULL;
423 soap_act = axis2_options_get_soap_action( options, Environment::getEnv() );
424 if (NULL == soap_act)
426 is_soap_act_set = AXIS2_FALSE;
427 soap_action = "urn:checkIn";
428 soap_act = axutil_string_create(Environment::getEnv(), "urn:checkIn");
429 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
433 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
435 ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, Environment::getEnv(), op_qname, payload);
437 if (!is_soap_act_set)
440 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
442 axis2_options_set_action( options, Environment::getEnv(), NULL);
446 axutil_string_free(soap_act, Environment::getEnv());
450 if ( NULL == ret_node )
452 return (org_splat_ws_server_service_salome::CheckInResponse*)NULL;
454 ret_val = new org_splat_ws_server_service_salome::CheckInResponse();
456 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
463 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the _deserialize: "
464 "This should be due to an invalid XML");
465 return (org_splat_ws_server_service_salome::CheckInResponse*)NULL;
474 * Auto generated method signature
475 * For "getFile|http://salome.service.ws_server.splat.org" operation.
477 * @param _getFile of the org_splat_ws_server_service_salome::GetFile
479 * @return org_splat_ws_server_service_salome::GetFileResponse*
482 org_splat_ws_server_service_salome::GetFileResponse* WSF_CALL SimanSalomeServiceStub::getFile(org_splat_ws_server_service_salome::GetFile* _getFile)
484 axis2_svc_client_t *svc_client = NULL;
485 axis2_options_t *options = NULL;
486 axiom_node_t *ret_node = NULL;
488 const axis2_char_t *soap_action = NULL;
489 axutil_qname_t *op_qname = NULL;
490 axiom_node_t *payload = NULL;
491 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
492 axutil_string_t *soap_act = NULL;
494 org_splat_ws_server_service_salome::GetFileResponse* ret_val;
496 payload = _getFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
498 svc_client = serviceClient->getAxis2SvcClient();
504 options = clientOptions->getAxis2Options();
507 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
508 AXIS2_LOG_ERROR(Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
509 return (org_splat_ws_server_service_salome::GetFileResponse*)NULL;
511 soap_act = axis2_options_get_soap_action( options, Environment::getEnv() );
512 if (NULL == soap_act)
514 is_soap_act_set = AXIS2_FALSE;
515 soap_action = "urn:getFile";
516 soap_act = axutil_string_create(Environment::getEnv(), "urn:getFile");
517 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
521 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
523 ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, Environment::getEnv(), op_qname, payload);
525 if (!is_soap_act_set)
528 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
530 axis2_options_set_action( options, Environment::getEnv(), NULL);
534 axutil_string_free(soap_act, Environment::getEnv());
538 if ( NULL == ret_node )
540 return (org_splat_ws_server_service_salome::GetFileResponse*)NULL;
542 ret_val = new org_splat_ws_server_service_salome::GetFileResponse();
544 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
551 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the _deserialize: "
552 "This should be due to an invalid XML");
553 return (org_splat_ws_server_service_salome::GetFileResponse*)NULL;
562 struct axis2_stub_SimanSalomeService_createConfigFile_callback_data
564 ISimanSalomeServiceCallback *callback;
568 static axis2_status_t WSF_CALL axis2_stub_on_error_SimanSalomeService_createConfigFile(axis2_callback_t *axis_callback, const axutil_env_t *env, int exception)
570 struct axis2_stub_SimanSalomeService_createConfigFile_callback_data* callback_data = NULL;
571 callback_data = (struct axis2_stub_SimanSalomeService_createConfigFile_callback_data*)axis2_callback_get_data(axis_callback);
573 ISimanSalomeServiceCallback* callback = NULL;
574 callback = callback_data->callback;
575 callback->receiveError_createConfigFile(exception);
576 return AXIS2_SUCCESS;
579 axis2_status_t AXIS2_CALL axis2_stub_on_complete_SimanSalomeService_createConfigFile(axis2_callback_t *axis_callback, const axutil_env_t *env)
581 struct axis2_stub_SimanSalomeService_createConfigFile_callback_data* callback_data = NULL;
582 axis2_status_t status = AXIS2_SUCCESS;
583 org_splat_ws_server_service_salome::CreateConfigFileResponse* ret_val;
586 axiom_node_t *ret_node = NULL;
587 axiom_soap_envelope_t *soap_envelope = NULL;
591 ISimanSalomeServiceCallback *callback = NULL;
593 callback_data = (struct axis2_stub_SimanSalomeService_createConfigFile_callback_data*)axis2_callback_get_data(axis_callback);
595 callback = callback_data->callback;
597 soap_envelope = axis2_callback_get_envelope(axis_callback, Environment::getEnv());
600 axiom_soap_body_t *soap_body;
601 soap_body = axiom_soap_envelope_get_body(soap_envelope, Environment::getEnv());
604 axiom_soap_fault_t *soap_fault = NULL;
605 axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, Environment::getEnv());
609 ret_node = axiom_node_get_first_child(body_node, Environment::getEnv());
620 ret_val = new org_splat_ws_server_service_salome::CreateConfigFileResponse();
622 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
624 WSF_LOG_ERROR_MSG( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the LendResponse_deserialize: "
625 "This should be due to an invalid XML");
636 callback->receiveResult_createConfigFile(ret_val);
641 AXIS2_FREE(Environment::getEnv()->allocator, callback_data);
643 return AXIS2_SUCCESS;
647 * auto generated method signature for asynchronous invocations
648 * for "createConfigFile|http://salome.service.ws_server.splat.org" operation.
649 * @param stub The stub
650 * @param env environment ( mandatory)
651 * @param _createConfigFile of the org_splat_ws_server_service_salome::CreateConfigFile
652 * @param user_data user data to be accessed by the callbacks
653 * @param on_complete callback to handle on complete
654 * @param on_error callback to handle on error
658 SimanSalomeServiceStub::start_createConfigFile(org_splat_ws_server_service_salome::CreateConfigFile* _createConfigFile,
659 ISimanSalomeServiceCallback* cb)
662 axis2_callback_t *callback = NULL;
664 axis2_svc_client_t *svc_client = NULL;
665 axis2_options_t *options = NULL;
667 const axis2_char_t *soap_action = NULL;
668 axiom_node_t *payload = NULL;
670 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
671 axutil_string_t *soap_act = NULL;
675 struct axis2_stub_SimanSalomeService_createConfigFile_callback_data *callback_data;
677 callback_data = (struct axis2_stub_SimanSalomeService_createConfigFile_callback_data*) AXIS2_MALLOC(Environment::getEnv()->allocator,
678 sizeof(struct axis2_stub_SimanSalomeService_createConfigFile_callback_data));
679 if(NULL == callback_data)
681 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
682 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "Can not allocate memory for the callback data structures");
688 payload = _createConfigFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
691 svc_client = serviceClient->getAxis2SvcClient();
697 options = clientOptions->getAxis2Options();
700 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
701 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
705 soap_act =axis2_options_get_soap_action (options, Environment::getEnv());
706 if (NULL == soap_act)
708 is_soap_act_set = AXIS2_FALSE;
709 soap_action = "urn:createConfigFile";
710 soap_act = axutil_string_create(Environment::getEnv(), "urn:createConfigFile");
711 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
714 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
717 callback = axis2_callback_create(Environment::getEnv());
718 /* Set our on_complete function pointer to the callback object */
719 axis2_callback_set_on_complete(callback, axis2_stub_on_complete_SimanSalomeService_createConfigFile);
720 /* Set our on_error function pointer to the callback object */
721 axis2_callback_set_on_error(callback, axis2_stub_on_error_SimanSalomeService_createConfigFile);
723 callback_data->callback = cb;
724 axis2_callback_set_data(callback, (void*)callback_data);
727 axis2_svc_client_send_receive_non_blocking(svc_client, Environment::getEnv(), payload, callback);
729 if (!is_soap_act_set)
732 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
734 axis2_options_set_action(options, Environment::getEnv(), NULL);
740 struct axis2_stub_SimanSalomeService_putFile_callback_data
742 ISimanSalomeServiceCallback *callback;
746 static axis2_status_t WSF_CALL axis2_stub_on_error_SimanSalomeService_putFile(axis2_callback_t *axis_callback, const axutil_env_t *env, int exception)
748 struct axis2_stub_SimanSalomeService_putFile_callback_data* callback_data = NULL;
749 callback_data = (struct axis2_stub_SimanSalomeService_putFile_callback_data*)axis2_callback_get_data(axis_callback);
751 ISimanSalomeServiceCallback* callback = NULL;
752 callback = callback_data->callback;
753 callback->receiveError_putFile(exception);
754 return AXIS2_SUCCESS;
757 axis2_status_t AXIS2_CALL axis2_stub_on_complete_SimanSalomeService_putFile(axis2_callback_t *axis_callback, const axutil_env_t *env)
759 struct axis2_stub_SimanSalomeService_putFile_callback_data* callback_data = NULL;
760 axis2_status_t status = AXIS2_SUCCESS;
761 org_splat_ws_server_service_salome::PutFileResponse* ret_val;
764 axiom_node_t *ret_node = NULL;
765 axiom_soap_envelope_t *soap_envelope = NULL;
769 ISimanSalomeServiceCallback *callback = NULL;
771 callback_data = (struct axis2_stub_SimanSalomeService_putFile_callback_data*)axis2_callback_get_data(axis_callback);
773 callback = callback_data->callback;
775 soap_envelope = axis2_callback_get_envelope(axis_callback, Environment::getEnv());
778 axiom_soap_body_t *soap_body;
779 soap_body = axiom_soap_envelope_get_body(soap_envelope, Environment::getEnv());
782 axiom_soap_fault_t *soap_fault = NULL;
783 axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, Environment::getEnv());
787 ret_node = axiom_node_get_first_child(body_node, Environment::getEnv());
798 ret_val = new org_splat_ws_server_service_salome::PutFileResponse();
800 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
802 WSF_LOG_ERROR_MSG( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the LendResponse_deserialize: "
803 "This should be due to an invalid XML");
814 callback->receiveResult_putFile(ret_val);
819 AXIS2_FREE(Environment::getEnv()->allocator, callback_data);
821 return AXIS2_SUCCESS;
825 * auto generated method signature for asynchronous invocations
826 * for "putFile|http://salome.service.ws_server.splat.org" operation.
827 * @param stub The stub
828 * @param env environment ( mandatory)
829 * @param _putFile of the org_splat_ws_server_service_salome::PutFile
830 * @param user_data user data to be accessed by the callbacks
831 * @param on_complete callback to handle on complete
832 * @param on_error callback to handle on error
836 SimanSalomeServiceStub::start_putFile(org_splat_ws_server_service_salome::PutFile* _putFile,
837 ISimanSalomeServiceCallback* cb)
840 axis2_callback_t *callback = NULL;
842 axis2_svc_client_t *svc_client = NULL;
843 axis2_options_t *options = NULL;
845 const axis2_char_t *soap_action = NULL;
846 axiom_node_t *payload = NULL;
848 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
849 axutil_string_t *soap_act = NULL;
853 struct axis2_stub_SimanSalomeService_putFile_callback_data *callback_data;
855 callback_data = (struct axis2_stub_SimanSalomeService_putFile_callback_data*) AXIS2_MALLOC(Environment::getEnv()->allocator,
856 sizeof(struct axis2_stub_SimanSalomeService_putFile_callback_data));
857 if(NULL == callback_data)
859 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
860 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "Can not allocate memory for the callback data structures");
866 payload = _putFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
869 svc_client = serviceClient->getAxis2SvcClient();
875 options = clientOptions->getAxis2Options();
878 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
879 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
883 soap_act =axis2_options_get_soap_action (options, Environment::getEnv());
884 if (NULL == soap_act)
886 is_soap_act_set = AXIS2_FALSE;
887 soap_action = "urn:putFile";
888 soap_act = axutil_string_create(Environment::getEnv(), "urn:putFile");
889 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
892 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
895 callback = axis2_callback_create(Environment::getEnv());
896 /* Set our on_complete function pointer to the callback object */
897 axis2_callback_set_on_complete(callback, axis2_stub_on_complete_SimanSalomeService_putFile);
898 /* Set our on_error function pointer to the callback object */
899 axis2_callback_set_on_error(callback, axis2_stub_on_error_SimanSalomeService_putFile);
901 callback_data->callback = cb;
902 axis2_callback_set_data(callback, (void*)callback_data);
905 axis2_svc_client_send_receive_non_blocking(svc_client, Environment::getEnv(), payload, callback);
907 if (!is_soap_act_set)
910 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
912 axis2_options_set_action(options, Environment::getEnv(), NULL);
918 struct axis2_stub_SimanSalomeService_checkIn_callback_data
920 ISimanSalomeServiceCallback *callback;
924 static axis2_status_t WSF_CALL axis2_stub_on_error_SimanSalomeService_checkIn(axis2_callback_t *axis_callback, const axutil_env_t *env, int exception)
926 struct axis2_stub_SimanSalomeService_checkIn_callback_data* callback_data = NULL;
927 callback_data = (struct axis2_stub_SimanSalomeService_checkIn_callback_data*)axis2_callback_get_data(axis_callback);
929 ISimanSalomeServiceCallback* callback = NULL;
930 callback = callback_data->callback;
931 callback->receiveError_checkIn(exception);
932 return AXIS2_SUCCESS;
935 axis2_status_t AXIS2_CALL axis2_stub_on_complete_SimanSalomeService_checkIn(axis2_callback_t *axis_callback, const axutil_env_t *env)
937 struct axis2_stub_SimanSalomeService_checkIn_callback_data* callback_data = NULL;
938 axis2_status_t status = AXIS2_SUCCESS;
939 org_splat_ws_server_service_salome::CheckInResponse* ret_val;
942 axiom_node_t *ret_node = NULL;
943 axiom_soap_envelope_t *soap_envelope = NULL;
947 ISimanSalomeServiceCallback *callback = NULL;
949 callback_data = (struct axis2_stub_SimanSalomeService_checkIn_callback_data*)axis2_callback_get_data(axis_callback);
951 callback = callback_data->callback;
953 soap_envelope = axis2_callback_get_envelope(axis_callback, Environment::getEnv());
956 axiom_soap_body_t *soap_body;
957 soap_body = axiom_soap_envelope_get_body(soap_envelope, Environment::getEnv());
960 axiom_soap_fault_t *soap_fault = NULL;
961 axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, Environment::getEnv());
965 ret_node = axiom_node_get_first_child(body_node, Environment::getEnv());
976 ret_val = new org_splat_ws_server_service_salome::CheckInResponse();
978 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
980 WSF_LOG_ERROR_MSG( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the LendResponse_deserialize: "
981 "This should be due to an invalid XML");
992 callback->receiveResult_checkIn(ret_val);
997 AXIS2_FREE(Environment::getEnv()->allocator, callback_data);
999 return AXIS2_SUCCESS;
1003 * auto generated method signature for asynchronous invocations
1004 * for "checkIn|http://salome.service.ws_server.splat.org" operation.
1005 * @param stub The stub
1006 * @param env environment ( mandatory)
1007 * @param _checkIn of the org_splat_ws_server_service_salome::CheckIn
1008 * @param user_data user data to be accessed by the callbacks
1009 * @param on_complete callback to handle on complete
1010 * @param on_error callback to handle on error
1014 SimanSalomeServiceStub::start_checkIn(org_splat_ws_server_service_salome::CheckIn* _checkIn,
1015 ISimanSalomeServiceCallback* cb)
1018 axis2_callback_t *callback = NULL;
1020 axis2_svc_client_t *svc_client = NULL;
1021 axis2_options_t *options = NULL;
1023 const axis2_char_t *soap_action = NULL;
1024 axiom_node_t *payload = NULL;
1026 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1027 axutil_string_t *soap_act = NULL;
1031 struct axis2_stub_SimanSalomeService_checkIn_callback_data *callback_data;
1033 callback_data = (struct axis2_stub_SimanSalomeService_checkIn_callback_data*) AXIS2_MALLOC(Environment::getEnv()->allocator,
1034 sizeof(struct axis2_stub_SimanSalomeService_checkIn_callback_data));
1035 if(NULL == callback_data)
1037 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
1038 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "Can not allocate memory for the callback data structures");
1044 payload = _checkIn->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
1047 svc_client = serviceClient->getAxis2SvcClient();
1053 options = clientOptions->getAxis2Options();
1054 if (NULL == options)
1056 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1057 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
1061 soap_act =axis2_options_get_soap_action (options, Environment::getEnv());
1062 if (NULL == soap_act)
1064 is_soap_act_set = AXIS2_FALSE;
1065 soap_action = "urn:checkIn";
1066 soap_act = axutil_string_create(Environment::getEnv(), "urn:checkIn");
1067 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
1070 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
1073 callback = axis2_callback_create(Environment::getEnv());
1074 /* Set our on_complete function pointer to the callback object */
1075 axis2_callback_set_on_complete(callback, axis2_stub_on_complete_SimanSalomeService_checkIn);
1076 /* Set our on_error function pointer to the callback object */
1077 axis2_callback_set_on_error(callback, axis2_stub_on_error_SimanSalomeService_checkIn);
1079 callback_data->callback = cb;
1080 axis2_callback_set_data(callback, (void*)callback_data);
1083 axis2_svc_client_send_receive_non_blocking(svc_client, Environment::getEnv(), payload, callback);
1085 if (!is_soap_act_set)
1088 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
1090 axis2_options_set_action(options, Environment::getEnv(), NULL);
1096 struct axis2_stub_SimanSalomeService_getFile_callback_data
1098 ISimanSalomeServiceCallback *callback;
1102 static axis2_status_t WSF_CALL axis2_stub_on_error_SimanSalomeService_getFile(axis2_callback_t *axis_callback, const axutil_env_t *env, int exception)
1104 struct axis2_stub_SimanSalomeService_getFile_callback_data* callback_data = NULL;
1105 callback_data = (struct axis2_stub_SimanSalomeService_getFile_callback_data*)axis2_callback_get_data(axis_callback);
1107 ISimanSalomeServiceCallback* callback = NULL;
1108 callback = callback_data->callback;
1109 callback->receiveError_getFile(exception);
1110 return AXIS2_SUCCESS;
1113 axis2_status_t AXIS2_CALL axis2_stub_on_complete_SimanSalomeService_getFile(axis2_callback_t *axis_callback, const axutil_env_t *env)
1115 struct axis2_stub_SimanSalomeService_getFile_callback_data* callback_data = NULL;
1116 axis2_status_t status = AXIS2_SUCCESS;
1117 org_splat_ws_server_service_salome::GetFileResponse* ret_val;
1120 axiom_node_t *ret_node = NULL;
1121 axiom_soap_envelope_t *soap_envelope = NULL;
1125 ISimanSalomeServiceCallback *callback = NULL;
1127 callback_data = (struct axis2_stub_SimanSalomeService_getFile_callback_data*)axis2_callback_get_data(axis_callback);
1129 callback = callback_data->callback;
1131 soap_envelope = axis2_callback_get_envelope(axis_callback, Environment::getEnv());
1134 axiom_soap_body_t *soap_body;
1135 soap_body = axiom_soap_envelope_get_body(soap_envelope, Environment::getEnv());
1138 axiom_soap_fault_t *soap_fault = NULL;
1139 axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, Environment::getEnv());
1143 ret_node = axiom_node_get_first_child(body_node, Environment::getEnv());
1152 if(ret_node != NULL)
1154 ret_val = new org_splat_ws_server_service_salome::GetFileResponse();
1156 if(ret_val->deserialize(&ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1158 WSF_LOG_ERROR_MSG( Environment::getEnv()->log, AXIS2_LOG_SI, "NULL returned from the LendResponse_deserialize: "
1159 "This should be due to an invalid XML");
1170 callback->receiveResult_getFile(ret_val);
1175 AXIS2_FREE(Environment::getEnv()->allocator, callback_data);
1177 return AXIS2_SUCCESS;
1181 * auto generated method signature for asynchronous invocations
1182 * for "getFile|http://salome.service.ws_server.splat.org" operation.
1183 * @param stub The stub
1184 * @param env environment ( mandatory)
1185 * @param _getFile of the org_splat_ws_server_service_salome::GetFile
1186 * @param user_data user data to be accessed by the callbacks
1187 * @param on_complete callback to handle on complete
1188 * @param on_error callback to handle on error
1192 SimanSalomeServiceStub::start_getFile(org_splat_ws_server_service_salome::GetFile* _getFile,
1193 ISimanSalomeServiceCallback* cb)
1196 axis2_callback_t *callback = NULL;
1198 axis2_svc_client_t *svc_client = NULL;
1199 axis2_options_t *options = NULL;
1201 const axis2_char_t *soap_action = NULL;
1202 axiom_node_t *payload = NULL;
1204 axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1205 axutil_string_t *soap_act = NULL;
1209 struct axis2_stub_SimanSalomeService_getFile_callback_data *callback_data;
1211 callback_data = (struct axis2_stub_SimanSalomeService_getFile_callback_data*) AXIS2_MALLOC(Environment::getEnv()->allocator,
1212 sizeof(struct axis2_stub_SimanSalomeService_getFile_callback_data));
1213 if(NULL == callback_data)
1215 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
1216 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "Can not allocate memory for the callback data structures");
1222 payload = _getFile->serialize(NULL, NULL, AXIS2_TRUE, NULL, NULL);
1225 svc_client = serviceClient->getAxis2SvcClient();
1231 options = clientOptions->getAxis2Options();
1232 if (NULL == options)
1234 AXIS2_ERROR_SET(Environment::getEnv()->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1235 AXIS2_LOG_ERROR( Environment::getEnv()->log, AXIS2_LOG_SI, "options is null in stub");
1239 soap_act =axis2_options_get_soap_action (options, Environment::getEnv());
1240 if (NULL == soap_act)
1242 is_soap_act_set = AXIS2_FALSE;
1243 soap_action = "urn:getFile";
1244 soap_act = axutil_string_create(Environment::getEnv(), "urn:getFile");
1245 axis2_options_set_soap_action(options, Environment::getEnv(), soap_act);
1248 axis2_options_set_soap_version(options, Environment::getEnv(), AXIOM_SOAP12);
1251 callback = axis2_callback_create(Environment::getEnv());
1252 /* Set our on_complete function pointer to the callback object */
1253 axis2_callback_set_on_complete(callback, axis2_stub_on_complete_SimanSalomeService_getFile);
1254 /* Set our on_error function pointer to the callback object */
1255 axis2_callback_set_on_error(callback, axis2_stub_on_error_SimanSalomeService_getFile);
1257 callback_data->callback = cb;
1258 axis2_callback_set_data(callback, (void*)callback_data);
1261 axis2_svc_client_send_receive_non_blocking(svc_client, Environment::getEnv(), payload, callback);
1263 if (!is_soap_act_set)
1266 axis2_options_set_soap_action(options, Environment::getEnv(), NULL);
1268 axis2_options_set_action(options, Environment::getEnv(), NULL);