axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manjula Peiris <manj...@wso2.com>
Subject Re: Rampart client: Policy is NULL
Date Tue, 27 Jan 2009 16:10:58 GMT
I think you need to call neethi_util_create_policy_from_file()function
and set the policy in the svc_client. You need to add this code to the
generated stub. This may not be generated.

Thanks,
-Manjula.

On Tue, 2009-01-27 at 10:22 +0200, Aapo Mäkinen wrote:
> Hello,
> 
> I am having trouble with following scenario:
> 
> 1. I need to write a client
> 2. Server uses SSL and WSsecurity with UsernameToken with plain text 
> password
> 3. Username and password are provided to rampart via rampart_config at 
> runtime as suggested here:
> https://issues.apache.org/jira/browse/RAMPARTC-56?focusedCommentId=12562482
> 
> I generated source files from the WSDL. From various sources I tried to 
> figure out the function calls needed to achieve my needs. I ended up with:
> 
> axutil_env_t * axutil_env = 
> axutil_env_create_all(logFileName.c_str(),AXIS2_LOG_LEVEL_DEBUG);
> axis2_stub_t * axis2_stub = 
> axis2_stub_create_WebTrainerTraineeServiceService(axutil_env,repositoryPath.c_str(),traineeServiceEndpoint.c_str()); 
> // Product of sources generated from WSDL
> axis2_svc_client_t * axis2_svc_client = 
> axis2_stub_get_svc_client(axis2_stub,axutil_env);
> axis2_options_t * axis2_options = axis2_stub_get_options( axis2_stub, 
> axutil_env);
> rampart_config_t * rampart_config = rampart_config_create(axutil_env);
> rampart_config_set_username(rampart_config, axutil_env, 
> LabeledEditUsername->Text.t_str());
> rampart_config_set_password(rampart_config, axutil_env, 
> LabeledEditPassword->Text.t_str());
> rampart_config_set_password_type(rampart_config, axutil_env, 
> RAMPART_PASSWORD_TEXT);
>     //rampart_config_set_ttl(rampart_config, axutil_env, 10);
> axutil_property_t * axutil_property = 
> axutil_property_create_with_args(axutil_env,AXIS2_SCOPE_REQUEST,AXIS2_FALSE,0,rampart_config);
> axis2_options_set_property(axis2_options, axutil_env, 
> RAMPART_CLIENT_CONFIGURATION, axutil_property);
> adb_isAccountValid_t * adb_isAccountValid = 
> adb_isAccountValid_create(axutil_env);
> adb_isAccountValidResponse1_t * adb_isAccountValidResponse1 = 
> axis2_stub_op_WebTrainerTraineeServiceService_isAccountValid(axis2_stub,axutil_env,adb_isAccountValid);
> 
> executing the above runs fine until in 
> axis2_stub_WebTrainerTraineeServiceService.c in function 
> axis2_stub_op_WebTrainerTraineeServiceService_isAccountValid it does:
> 
> ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, 
> env, op_qname, payload);
> if (!is_soap_act_set)
> {
>   axis2_options_set_soap_action(options, env, NULL);   
>   axis2_options_set_action( options, env, NULL);
> }
> if ( NULL == ret_node )
>   return NULL; // This gets executed
> }
> 
> I have no idea what that means or why it does that, just that the 
> isAccountValid operation does not get fully executed.
> 
> If I interpret the log correctly the first signs of trouble are:
> 
> [Tue Jan 27 09:49:52 2009] [info]  Starting addressing out handler
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\core\engine\phase.c(210) 
> Invoke the handler RampartOutHandler within the phase Security
> [Tue Jan 27 09:49:52 2009] [error] ..\..\src\util\rampart_engine.c(314) 
> [rampart][rampart_engine] Policy is NULL.
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) 
> [rampart][axiom] Checking node Body for Subcode
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) 
> [rampart][axiom] Checking node Fault for Subcode
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) 
> [rampart][axiom] Checking node Code for Subcode
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) 
> [rampart][axiom] Checking node Value for Subcode
> [Tue Jan 27 09:49:52 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) 
> [rampart][axiom] Checking node Subcode for Subcode
> [Tue Jan 27 09:49:52 2009] [error] ..\..\src\util\rampart_engine.c(85) 
> [rampart][rampart_engine] Policy creation failed.
> [Tue Jan 27 09:49:52 2009] [error] 
> ..\..\src\handlers\rampart_out_handler.c(126) 
> [rampart][rampart_out_handler] ramaprt_context creation failed.
> [Tue Jan 27 09:49:52 2009] [error] ..\..\src\core\engine\phase.c(216) 
> Handler RampartOutHandler invoke failed within phase Security
> [Tue Jan 27 09:49:52 2009] [error] ..\..\src\core\engine\engine.c(696) 
> Invoking phase Security failed
> 
> This seems to point to a missing policy.xml file in the repository. 
> However policy.xml does exist in the same folder with axis2.xml. But the 
> log output remains unchanged even if I remove the file!
> 
> -- 
> Aapo Mäkinen
> aapo.makinen@firstbeattechnologies.com
> 
> plain text document attachment (log.txt)
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *addressing_based_dispatcher added to the index 1 of the phase Transport
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *rest_dispatcher added to the index 0 of the phase Dispatch
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_message_body_based_dispatcher added to the index 1 of the phase Dispatch
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *soap_action_based_dispatcher added to the index 2 of the phase Dispatch
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *dispatch_post_conditions_evaluator added to the index 0 of the phase PostDispatch
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(121) axis2_handler_t *context_handler added to the index 1 of the phase PostDispatch
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\conf_builder.c(233) No custom dispatching order found. Continue with the default dispatching order
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module addressing found in axis2.xml
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\conf_builder.c(378) Module rampart found in axis2.xml
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/lib/axis2_http_sender.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/lib/axis2_http_sender.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/lib/axis2_http_receiver.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/lib/axis2_http_receiver.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [info]  No files in the path C:\sources\WebTrainer\Uploader\Bin\Repository/services.
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : C:\sources\WebTrainer\Uploader\Bin\Repository/modules/addressing/axis2_mod_addr.dll
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/modules/addressing/axis2_mod_addr.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : C:\sources\WebTrainer\Uploader\Bin\Repository/modules/logging/axis2_mod_log.dll
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/modules/logging/axis2_mod_log.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\deployment\dep_engine.c(1283) axis2_dep_engine_load_module_dll: DLL path is : C:\sources\WebTrainer\Uploader\Bin\Repository/modules/rampart/mod_rampart.dll
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\util\src\class_loader.c(140) C:\sources\WebTrainer\Uploader\Bin\Repository/modules/rampart/mod_rampart.dll shared lib loaded successfully
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingInHandler to phase Transport
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartInHandler to phase PreDispatch
> [Tue Jan 27 09:50:41 2009] [info]  [rampart][rampart_mod] rampart_mod initialized
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(139) Service name is : __ANONYMOUS_SERVICE__
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler RampartInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase Security
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler RampartInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase Security
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler AddressingInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(2058) Trying to add this handler RampartInHandler to system pre defined phases , but those handlers are already added to global chain which run irrespective of the service
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase Security
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:addressing
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_resolver.c(723) Module name is:rampart
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler AddressingOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\phaseresolver\phase_holder.c(139) Add handler RampartOutHandler to phase MessageOut
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\clientapi\op_client.c(881) Start:axis2_op_client_infer_transport
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\clientapi\op_client.c(940) End:axis2_op_client_infer_transport
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(210) Invoke the handler AddressingOutHandler within the phase MessageOut
> [Tue Jan 27 09:50:41 2009] [info]  Starting addressing out handler
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\core\engine\phase.c(210) Invoke the handler RampartOutHandler within the phase Security
> [Tue Jan 27 09:50:41 2009] [error] ..\..\src\util\rampart_engine.c(314) [rampart][rampart_engine] Policy is NULL.
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) [rampart][axiom] Checking node Body for Subcode
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) [rampart][axiom] Checking node Fault for Subcode
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) [rampart][axiom] Checking node Code for Subcode
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) [rampart][axiom] Checking node Value for Subcode
> [Tue Jan 27 09:50:41 2009] [debug] ..\..\src\omxmlsec\axiom.c(111) [rampart][axiom] Checking node Subcode for Subcode
> [Tue Jan 27 09:50:41 2009] [error] ..\..\src\util\rampart_engine.c(85) [rampart][rampart_engine] Policy creation failed.
> [Tue Jan 27 09:50:41 2009] [error] ..\..\src\handlers\rampart_out_handler.c(126) [rampart][rampart_out_handler] ramaprt_context creation failed.
> [Tue Jan 27 09:50:41 2009] [error] ..\..\src\core\engine\phase.c(216) Handler RampartOutHandler invoke failed within phase Security
> [Tue Jan 27 09:50:41 2009] [error] ..\..\src\core\engine\engine.c(696) Invoking phase Security failed
> plain text document attachment
> (axis2_stub_WebTrainerTraineeServiceService.c)
> /** * axis2_stub_WebTrainerTraineeServiceService.c * * This file was auto-generated from WSDL for "WebTrainerTraineeServiceService|http://ws.trainee.webtrainer.firstbeat.fi/" service * by the Apache Axis2/Java version: 1.4.1 Built on : Aug 13, 2008 (05:03:35 LKT) */ #include "axis2_stub_WebTrainerTraineeServiceService.h" #include <axis2_msg.h> /** * axis2_stub_WebTrainerTraineeServiceService C implementation */ axis2_stub_t* axis2_stub_create_WebTrainerTraineeServiceService(const axutil_env_t *env, axis2_char_t *client_home, axis2_char_t *endpoint_uri) { axis2_stub_t *stub = NULL; axis2_endpoint_ref_t *endpoint_ref = NULL; AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL) if (NULL == endpoint_uri) { endpoint_uri = axis2_stub_get_endpoint_uri_of_WebTrainerTraineeServiceService(env); } endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri); stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home); if (NULL == stub) { if(NULL != endpoint_ref) { axis2_endpoint_ref_free(endpoint_ref, env); } return NULL; } axis2_stub_populate_services_for_WebTrainerTraineeServiceService(stub, env); return stub; } void axis2_stub_populate_services_for_WebTrainerTraineeServiceService(axis2_stub_t *stub, const axutil_env_t *env) { axis2_svc_client_t *svc_client = NULL; axutil_qname_t *svc_qname = NULL; axutil_qname_t *op_qname = NULL; axis2_svc_t *svc = NULL; axis2_op_t *op = NULL; axis2_op_t *annon_op = NULL; axis2_msg_t *msg_out = NULL; axis2_msg_t *msg_in = NULL; axis2_msg_t *msg_out_fault = NULL; axis2_msg_t *msg_in_fault = NULL; /* Modifying the Service */ svc_client = axis2_stub_get_svc_client (stub, env ); svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env ); annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP); msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT); msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN); msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT); msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT); svc_qname = axutil_qname_create(env,"WebTrainerTraineeServiceService" ,NULL, NULL); axis2_svc_set_qname (svc, env, svc_qname); /* creating the operations*/ op_qname = axutil_qname_create(env, "getVersionNumber" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "setPersonalInfo" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getExercises" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getTETables" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "setUserInfo" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "updateExercise" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getUserInfo" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getPersonalProgress" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getCustomerPreferences" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "getPersonalInfo" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "isAccountValid" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); op_qname = axutil_qname_create(env, "checkUsernameAvailability" , "http://ws.trainee.webtrainer.firstbeat.fi/", NULL); op = axis2_op_create_with_qname(env, op_qname); axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN); axis2_msg_increment_ref(msg_out, env); axis2_msg_increment_ref(msg_in, env); axis2_msg_increment_ref(msg_out_fault, env); axis2_msg_increment_ref(msg_in_fault, env); axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out); axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in); axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault); axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault); axis2_svc_add_op(svc, env, op); } /** *return end point picked from wsdl */ axis2_char_t* axis2_stub_get_endpoint_uri_of_WebTrainerTraineeServiceService( const axutil_env_t *env ) { axis2_char_t *endpoint_uri = NULL; /* set the address from here */ endpoint_uri = "http://127.0.0.1:8080/WebTrainer/TraineeService"; return endpoint_uri; } /** * auto generated method signature * for "getVersionNumber|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getVersionNumber * * @return adb_getVersionNumberResponse8_t* */ adb_getVersionNumberResponse8_t* axis2_stub_op_WebTrainerTraineeServiceService_getVersionNumber( axis2_stub_t *stub, const axutil_env_t *env, adb_getVersionNumber_t* _getVersionNumber) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getVersionNumberResponse8_t* ret_val = NULL; payload = adb_getVersionNumber_serialize(_getVersionNumber, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getVersionNumberResponse8_create(env); if(adb_getVersionNumberResponse8_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getVersionNumberResponse8_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getVersionNumberResponse8_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "setPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _setPersonalInfo * * @return adb_setPersonalInfoResponse10_t* */ adb_setPersonalInfoResponse10_t* axis2_stub_op_WebTrainerTraineeServiceService_setPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setPersonalInfo_t* _setPersonalInfo) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_setPersonalInfoResponse10_t* ret_val = NULL; payload = adb_setPersonalInfo_serialize(_setPersonalInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_setPersonalInfoResponse10_create(env); if(adb_setPersonalInfoResponse10_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_setPersonalInfoResponse10_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the setPersonalInfoResponse10_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getExercises|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getExercises * * @return adb_getExercisesResponse9_t* */ adb_getExercisesResponse9_t* axis2_stub_op_WebTrainerTraineeServiceService_getExercises( axis2_stub_t *stub, const axutil_env_t *env, adb_getExercises_t* _getExercises) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getExercisesResponse9_t* ret_val = NULL; payload = adb_getExercises_serialize(_getExercises, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getExercisesResponse9_create(env); if(adb_getExercisesResponse9_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getExercisesResponse9_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getExercisesResponse9_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getTETables|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getTETables * * @return adb_getTETablesResponse6_t* */ adb_getTETablesResponse6_t* axis2_stub_op_WebTrainerTraineeServiceService_getTETables( axis2_stub_t *stub, const axutil_env_t *env, adb_getTETables_t* _getTETables) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getTETablesResponse6_t* ret_val = NULL; payload = adb_getTETables_serialize(_getTETables, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getTETablesResponse6_create(env); if(adb_getTETablesResponse6_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getTETablesResponse6_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getTETablesResponse6_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "setUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _setUserInfo * * @return adb_setUserInfoResponse3_t* */ adb_setUserInfoResponse3_t* axis2_stub_op_WebTrainerTraineeServiceService_setUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setUserInfo_t* _setUserInfo) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_setUserInfoResponse3_t* ret_val = NULL; payload = adb_setUserInfo_serialize(_setUserInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_setUserInfoResponse3_create(env); if(adb_setUserInfoResponse3_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_setUserInfoResponse3_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the setUserInfoResponse3_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "updateExercise|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _updateExercise * * @return adb_updateExerciseResponse4_t* */ adb_updateExerciseResponse4_t* axis2_stub_op_WebTrainerTraineeServiceService_updateExercise( axis2_stub_t *stub, const axutil_env_t *env, adb_updateExercise_t* _updateExercise) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_updateExerciseResponse4_t* ret_val = NULL; payload = adb_updateExercise_serialize(_updateExercise, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_updateExerciseResponse4_create(env); if(adb_updateExerciseResponse4_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_updateExerciseResponse4_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the updateExerciseResponse4_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getUserInfo * * @return adb_getUserInfoResponse2_t* */ adb_getUserInfoResponse2_t* axis2_stub_op_WebTrainerTraineeServiceService_getUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getUserInfo_t* _getUserInfo) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getUserInfoResponse2_t* ret_val = NULL; payload = adb_getUserInfo_serialize(_getUserInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getUserInfoResponse2_create(env); if(adb_getUserInfoResponse2_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getUserInfoResponse2_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getUserInfoResponse2_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getPersonalProgress|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getPersonalProgress * * @return adb_getPersonalProgressResponse0_t* */ adb_getPersonalProgressResponse0_t* axis2_stub_op_WebTrainerTraineeServiceService_getPersonalProgress( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalProgress_t* _getPersonalProgress) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getPersonalProgressResponse0_t* ret_val = NULL; payload = adb_getPersonalProgress_serialize(_getPersonalProgress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getPersonalProgressResponse0_create(env); if(adb_getPersonalProgressResponse0_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getPersonalProgressResponse0_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getPersonalProgressResponse0_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getCustomerPreferences|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getCustomerPreferences * * @return adb_getCustomerPreferencesResponse7_t* */ adb_getCustomerPreferencesResponse7_t* axis2_stub_op_WebTrainerTraineeServiceService_getCustomerPreferences( axis2_stub_t *stub, const axutil_env_t *env, adb_getCustomerPreferences_t* _getCustomerPreferences) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getCustomerPreferencesResponse7_t* ret_val = NULL; payload = adb_getCustomerPreferences_serialize(_getCustomerPreferences, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getCustomerPreferencesResponse7_create(env); if(adb_getCustomerPreferencesResponse7_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getCustomerPreferencesResponse7_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getCustomerPreferencesResponse7_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "getPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getPersonalInfo * * @return adb_getPersonalInfoResponse11_t* */ adb_getPersonalInfoResponse11_t* axis2_stub_op_WebTrainerTraineeServiceService_getPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalInfo_t* _getPersonalInfo) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_getPersonalInfoResponse11_t* ret_val = NULL; payload = adb_getPersonalInfo_serialize(_getPersonalInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_getPersonalInfoResponse11_create(env); if(adb_getPersonalInfoResponse11_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_getPersonalInfoResponse11_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the getPersonalInfoResponse11_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "isAccountValid|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _isAccountValid * * @return adb_isAccountValidResponse1_t* */ adb_isAccountValidResponse1_t* axis2_stub_op_WebTrainerTraineeServiceService_isAccountValid( axis2_stub_t *stub, const axutil_env_t *env, adb_isAccountValid_t* _isAccountValid) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_isAccountValidResponse1_t* ret_val = NULL; payload = adb_isAccountValid_serialize(_isAccountValid, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_isAccountValidResponse1_create(env); if(adb_isAccountValidResponse1_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_isAccountValidResponse1_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the isAccountValidResponse1_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } /** * auto generated method signature * for "checkUsernameAvailability|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _checkUsernameAvailability * * @return adb_checkUsernameAvailabilityResponse5_t* */ adb_checkUsernameAvailabilityResponse5_t* axis2_stub_op_WebTrainerTraineeServiceService_checkUsernameAvailability( axis2_stub_t *stub, const axutil_env_t *env, adb_checkUsernameAvailability_t* _checkUsernameAvailability) { axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; axiom_node_t *ret_node = NULL; const axis2_char_t *soap_action = NULL; axutil_qname_t *op_qname = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; adb_checkUsernameAvailabilityResponse5_t* ret_val = NULL; payload = adb_checkUsernameAvailability_serialize(_checkUsernameAvailability, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); svc_client = axis2_stub_get_svc_client(stub, env ); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub"); return NULL; } soap_action = axis2_options_get_action( options, env ); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action ); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11 ); ret_node = axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action( options, env, NULL); } if ( NULL == ret_node ) { return NULL; } ret_val = adb_checkUsernameAvailabilityResponse5_create(env); if(adb_checkUsernameAvailabilityResponse5_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { if(ret_val != NULL) { adb_checkUsernameAvailabilityResponse5_free(ret_val, env); } AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the checkUsernameAvailabilityResponse5_deserialize: " "This should be due to an invalid XML"); return NULL; } return ret_val; } struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getVersionNumberResponse8_t* _getVersionNumberResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getVersionNumber(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getVersionNumber(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getVersionNumberResponse8_t* _getVersionNumberResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getVersionNumberResponse8_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getVersionNumberResponse8_create(env); if(adb_getVersionNumberResponse8_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getVersionNumberResponse8_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getVersionNumber|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getVersionNumber * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getVersionNumber( axis2_stub_t *stub, const axutil_env_t *env, adb_getVersionNumber_t* _getVersionNumber, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getVersionNumberResponse8_t* _getVersionNumberResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getVersionNumber_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getVersionNumber_serialize(_getVersionNumber, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getVersionNumber); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getVersionNumber); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setPersonalInfoResponse10_t* _setPersonalInfoResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_setPersonalInfo(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_setPersonalInfo(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setPersonalInfoResponse10_t* _setPersonalInfoResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_setPersonalInfoResponse10_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_setPersonalInfoResponse10_create(env); if(adb_setPersonalInfoResponse10_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_setPersonalInfoResponse10_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "setPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _setPersonalInfo * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_setPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setPersonalInfo_t* _setPersonalInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setPersonalInfoResponse10_t* _setPersonalInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_setPersonalInfo_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_setPersonalInfo_serialize(_setPersonalInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_setPersonalInfo); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_setPersonalInfo); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getExercisesResponse9_t* _getExercisesResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getExercises(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getExercises(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getExercisesResponse9_t* _getExercisesResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getExercisesResponse9_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getExercisesResponse9_create(env); if(adb_getExercisesResponse9_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getExercisesResponse9_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getExercises|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getExercises * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getExercises( axis2_stub_t *stub, const axutil_env_t *env, adb_getExercises_t* _getExercises, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getExercisesResponse9_t* _getExercisesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getExercises_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getExercises_serialize(_getExercises, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getExercises); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getExercises); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getTETablesResponse6_t* _getTETablesResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getTETables(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getTETables(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getTETablesResponse6_t* _getTETablesResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getTETablesResponse6_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getTETablesResponse6_create(env); if(adb_getTETablesResponse6_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getTETablesResponse6_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getTETables|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getTETables * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getTETables( axis2_stub_t *stub, const axutil_env_t *env, adb_getTETables_t* _getTETables, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getTETablesResponse6_t* _getTETablesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getTETables_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getTETables_serialize(_getTETables, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getTETables); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getTETables); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setUserInfoResponse3_t* _setUserInfoResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_setUserInfo(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_setUserInfo(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setUserInfoResponse3_t* _setUserInfoResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_setUserInfoResponse3_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_setUserInfoResponse3_create(env); if(adb_setUserInfoResponse3_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_setUserInfoResponse3_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "setUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _setUserInfo * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_setUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setUserInfo_t* _setUserInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setUserInfoResponse3_t* _setUserInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_setUserInfo_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_setUserInfo_serialize(_setUserInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_setUserInfo); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_setUserInfo); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_updateExerciseResponse4_t* _updateExerciseResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_updateExercise(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_updateExercise(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_updateExerciseResponse4_t* _updateExerciseResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_updateExerciseResponse4_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_updateExerciseResponse4_create(env); if(adb_updateExerciseResponse4_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_updateExerciseResponse4_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "updateExercise|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _updateExercise * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_updateExercise( axis2_stub_t *stub, const axutil_env_t *env, adb_updateExercise_t* _updateExercise, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_updateExerciseResponse4_t* _updateExerciseResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_updateExercise_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_updateExercise_serialize(_updateExercise, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_updateExercise); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_updateExercise); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getUserInfoResponse2_t* _getUserInfoResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getUserInfo(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getUserInfo(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getUserInfoResponse2_t* _getUserInfoResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getUserInfoResponse2_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getUserInfoResponse2_create(env); if(adb_getUserInfoResponse2_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getUserInfoResponse2_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getUserInfo * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getUserInfo_t* _getUserInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getUserInfoResponse2_t* _getUserInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getUserInfo_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getUserInfo_serialize(_getUserInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getUserInfo); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getUserInfo); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalProgressResponse0_t* _getPersonalProgressResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getPersonalProgress(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getPersonalProgress(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalProgressResponse0_t* _getPersonalProgressResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getPersonalProgressResponse0_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getPersonalProgressResponse0_create(env); if(adb_getPersonalProgressResponse0_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getPersonalProgressResponse0_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getPersonalProgress|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getPersonalProgress * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getPersonalProgress( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalProgress_t* _getPersonalProgress, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalProgressResponse0_t* _getPersonalProgressResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getPersonalProgress_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getPersonalProgress_serialize(_getPersonalProgress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getPersonalProgress); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getPersonalProgress); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getCustomerPreferencesResponse7_t* _getCustomerPreferencesResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getCustomerPreferences(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getCustomerPreferences(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getCustomerPreferencesResponse7_t* _getCustomerPreferencesResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getCustomerPreferencesResponse7_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getCustomerPreferencesResponse7_create(env); if(adb_getCustomerPreferencesResponse7_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getCustomerPreferencesResponse7_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getCustomerPreferences|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getCustomerPreferences * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getCustomerPreferences( axis2_stub_t *stub, const axutil_env_t *env, adb_getCustomerPreferences_t* _getCustomerPreferences, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getCustomerPreferencesResponse7_t* _getCustomerPreferencesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getCustomerPreferences_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getCustomerPreferences_serialize(_getCustomerPreferences, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getCustomerPreferences); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getCustomerPreferences); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalInfoResponse11_t* _getPersonalInfoResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_getPersonalInfo(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_getPersonalInfo(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalInfoResponse11_t* _getPersonalInfoResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_getPersonalInfoResponse11_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_getPersonalInfoResponse11_create(env); if(adb_getPersonalInfoResponse11_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_getPersonalInfoResponse11_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "getPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _getPersonalInfo * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalInfo_t* _getPersonalInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalInfoResponse11_t* _getPersonalInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_getPersonalInfo_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_getPersonalInfo_serialize(_getPersonalInfo, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_getPersonalInfo); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_getPersonalInfo); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_isAccountValidResponse1_t* _isAccountValidResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_isAccountValid(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_isAccountValid(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_isAccountValidResponse1_t* _isAccountValidResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_isAccountValidResponse1_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_isAccountValidResponse1_create(env); if(adb_isAccountValidResponse1_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_isAccountValidResponse1_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "isAccountValid|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _isAccountValid * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_isAccountValid( axis2_stub_t *stub, const axutil_env_t *env, adb_isAccountValid_t* _isAccountValid, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_isAccountValidResponse1_t* _isAccountValidResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_isAccountValid_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_isAccountValid_serialize(_isAccountValid, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_isAccountValid); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_isAccountValid); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data { void *data; axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_checkUsernameAvailabilityResponse5_t* _checkUsernameAvailabilityResponse, void *data); axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data); }; static axis2_status_t AXIS2_CALL axis2_stub_on_error_WebTrainerTraineeServiceService_checkUsernameAvailability(axis2_callback_t *callback, const axutil_env_t *env, int exception) { axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data); struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data*)axis2_callback_get_data(callback); user_data = callback_data->data; on_error = callback_data->on_error; status = on_error(env, exception, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } axis2_status_t AXIS2_CALL axis2_stub_on_complete_WebTrainerTraineeServiceService_checkUsernameAvailability(axis2_callback_t *callback, const axutil_env_t *env) { axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_checkUsernameAvailabilityResponse5_t* _checkUsernameAvailabilityResponse, void *data); struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data* callback_data = NULL; void *user_data = NULL; axis2_status_t status = AXIS2_SUCCESS; adb_checkUsernameAvailabilityResponse5_t* ret_val = NULL; axiom_node_t *ret_node = NULL; axiom_soap_envelope_t *soap_envelope = NULL; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data*)axis2_callback_get_data(callback); soap_envelope = axis2_callback_get_envelope(callback, env); if(soap_envelope) { axiom_soap_body_t *soap_body; soap_body = axiom_soap_envelope_get_body(soap_envelope, env); if(soap_body) { axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env); if(body_node) { ret_node = axiom_node_get_first_child(body_node, env); } } } user_data = callback_data->data; on_complete = callback_data->on_complete; if(ret_node != NULL) { ret_val = adb_checkUsernameAvailabilityResponse5_create(env); if(adb_checkUsernameAvailabilityResponse5_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: " "This should be due to an invalid XML"); adb_checkUsernameAvailabilityResponse5_free(ret_val, env); ret_val = NULL; } } else { ret_val = NULL; } status = on_complete(env, ret_val, user_data); if(callback_data) { AXIS2_FREE(env->allocator, callback_data); } return status; } /** * auto generated method signature for asynchronous invocations * for "checkUsernameAvailability|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * * @param _checkUsernameAvailability * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_checkUsernameAvailability( axis2_stub_t *stub, const axutil_env_t *env, adb_checkUsernameAvailability_t* _checkUsernameAvailability, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_checkUsernameAvailabilityResponse5_t* _checkUsernameAvailabilityResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ) { axis2_callback_t *callback = NULL; axis2_svc_client_t *svc_client = NULL; axis2_options_t *options = NULL; const axis2_char_t *soap_action = NULL; axiom_node_t *payload = NULL; axis2_bool_t is_soap_act_set = AXIS2_TRUE; axutil_string_t *soap_act = NULL; struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data *callback_data; callback_data = (struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data*) AXIS2_MALLOC(env->allocator, sizeof(struct axis2_stub_WebTrainerTraineeServiceService_checkUsernameAvailability_callback_data)); if(NULL == callback_data) { AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures"); return; } payload = adb_checkUsernameAvailability_serialize(_checkUsernameAvailability, env, NULL, NULL, AXIS2_TRUE, NULL, NULL); options = axis2_stub_get_options( stub, env); if (NULL == options) { AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE); AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub"); return; } svc_client = axis2_stub_get_svc_client (stub, env); soap_action =axis2_options_get_action (options, env); if (NULL == soap_action) { is_soap_act_set = AXIS2_FALSE; soap_action = "\"\""; soap_act = axutil_string_create(env, "\"\""); axis2_options_set_soap_action(options, env, soap_act); axis2_options_set_action( options, env, soap_action); } axis2_options_set_soap_version(options, env, AXIOM_SOAP11); callback = axis2_callback_create(env); /* Set our on_complete fucntion pointer to the callback object */ axis2_callback_set_on_complete(callback, axis2_stub_on_complete_WebTrainerTraineeServiceService_checkUsernameAvailability); /* Set our on_error function pointer to the callback object */ axis2_callback_set_on_error(callback, axis2_stub_on_error_WebTrainerTraineeServiceService_checkUsernameAvailability); callback_data-> data = user_data; callback_data-> on_complete = on_complete; callback_data-> on_error = on_error; axis2_callback_set_data(callback, (void*)callback_data); /* Send request */ axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback); if (!is_soap_act_set) { axis2_options_set_soap_action(options, env, NULL); axis2_options_set_action(options, env, NULL); } } /** * function to free any soap input headers */ /** * function to free any soap output headers */ 
> plain text document attachment
> (axis2_stub_WebTrainerTraineeServiceService.h)
> /** * axis2_stub_WebTrainerTraineeServiceService.h * * This file was auto-generated from WSDL for "WebTrainerTraineeServiceService|http://ws.trainee.webtrainer.firstbeat.fi/" service * by the Apache Axis2/Java version: 1.4.1 Built on : Aug 13, 2008 (05:03:35 LKT) */ #include <stdio.h> #include <axiom.h> #include <axutil_utils.h> #include <axiom_soap.h> #include <axis2_client.h> #include <axis2_stub.h> #include "adb_getVersionNumber.h" #include "adb_getVersionNumberResponse8.h" #include "adb_setPersonalInfo.h" #include "adb_setPersonalInfoResponse10.h" #include "adb_getExercises.h" #include "adb_getExercisesResponse9.h" #include "adb_getTETables.h" #include "adb_getTETablesResponse6.h" #include "adb_setUserInfo.h" #include "adb_setUserInfoResponse3.h" #include "adb_updateExercise.h" #include "adb_updateExerciseResponse4.h" #include "adb_getUserInfo.h" #include "adb_getUserInfoResponse2.h" #include "adb_getPersonalProgress.h" #include "adb_getPersonalProgressResponse0.h" #include "adb_getCustomerPreferences.h" #include "adb_getCustomerPreferencesResponse7.h" #include "adb_getPersonalInfo.h" #include "adb_getPersonalInfoResponse11.h" #include "adb_isAccountValid.h" #include "adb_isAccountValidResponse1.h" #include "adb_checkUsernameAvailability.h" #include "adb_checkUsernameAvailabilityResponse5.h" 	#ifdef __cplusplus 	extern "C" { 	#endif /***************** function prototypes - for header file *************/ /** * axis2_stub_create_WebTrainerTraineeServiceService * Create and return the stub with services populated * @param env Environment ( mandatory) * @param client_home Axis2/C home ( mandatory ) * @param endpoint_uri Service endpoint uri( optional ) - if NULL default picked from WSDL used * @return Newly created stub object */ axis2_stub_t* axis2_stub_create_WebTrainerTraineeServiceService(const axutil_env_t *env, axis2_char_t *client_home, axis2_char_t *endpoint_uri); /** * axis2_stub_populate_services_for_WebTrainerTraineeServiceService * populate the svc in stub with the service and operations * @param stub The stub * @param env environment ( mandatory) */ void axis2_stub_populate_services_for_WebTrainerTraineeServiceService( axis2_stub_t *stub, const axutil_env_t *env); /** * axis2_stub_get_endpoint_uri_of_WebTrainerTraineeServiceService * Return the endpoint URI picked from WSDL * @param env environment ( mandatory) * @return The endpoint picked from WSDL */ axis2_char_t * axis2_stub_get_endpoint_uri_of_WebTrainerTraineeServiceService(const axutil_env_t *env); /** * Auto generated function declaration * for "getVersionNumber|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getVersionNumber * * @return adb_getVersionNumberResponse8_t* */ adb_getVersionNumberResponse8_t* axis2_stub_op_WebTrainerTraineeServiceService_getVersionNumber( axis2_stub_t *stub, const axutil_env_t *env, adb_getVersionNumber_t* _getVersionNumber); /** * Auto generated function declaration * for "setPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _setPersonalInfo * * @return adb_setPersonalInfoResponse10_t* */ adb_setPersonalInfoResponse10_t* axis2_stub_op_WebTrainerTraineeServiceService_setPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setPersonalInfo_t* _setPersonalInfo); /** * Auto generated function declaration * for "getExercises|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getExercises * * @return adb_getExercisesResponse9_t* */ adb_getExercisesResponse9_t* axis2_stub_op_WebTrainerTraineeServiceService_getExercises( axis2_stub_t *stub, const axutil_env_t *env, adb_getExercises_t* _getExercises); /** * Auto generated function declaration * for "getTETables|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getTETables * * @return adb_getTETablesResponse6_t* */ adb_getTETablesResponse6_t* axis2_stub_op_WebTrainerTraineeServiceService_getTETables( axis2_stub_t *stub, const axutil_env_t *env, adb_getTETables_t* _getTETables); /** * Auto generated function declaration * for "setUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _setUserInfo * * @return adb_setUserInfoResponse3_t* */ adb_setUserInfoResponse3_t* axis2_stub_op_WebTrainerTraineeServiceService_setUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setUserInfo_t* _setUserInfo); /** * Auto generated function declaration * for "updateExercise|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _updateExercise * * @return adb_updateExerciseResponse4_t* */ adb_updateExerciseResponse4_t* axis2_stub_op_WebTrainerTraineeServiceService_updateExercise( axis2_stub_t *stub, const axutil_env_t *env, adb_updateExercise_t* _updateExercise); /** * Auto generated function declaration * for "getUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getUserInfo * * @return adb_getUserInfoResponse2_t* */ adb_getUserInfoResponse2_t* axis2_stub_op_WebTrainerTraineeServiceService_getUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getUserInfo_t* _getUserInfo); /** * Auto generated function declaration * for "getPersonalProgress|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getPersonalProgress * * @return adb_getPersonalProgressResponse0_t* */ adb_getPersonalProgressResponse0_t* axis2_stub_op_WebTrainerTraineeServiceService_getPersonalProgress( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalProgress_t* _getPersonalProgress); /** * Auto generated function declaration * for "getCustomerPreferences|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getCustomerPreferences * * @return adb_getCustomerPreferencesResponse7_t* */ adb_getCustomerPreferencesResponse7_t* axis2_stub_op_WebTrainerTraineeServiceService_getCustomerPreferences( axis2_stub_t *stub, const axutil_env_t *env, adb_getCustomerPreferences_t* _getCustomerPreferences); /** * Auto generated function declaration * for "getPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _getPersonalInfo * * @return adb_getPersonalInfoResponse11_t* */ adb_getPersonalInfoResponse11_t* axis2_stub_op_WebTrainerTraineeServiceService_getPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalInfo_t* _getPersonalInfo); /** * Auto generated function declaration * for "isAccountValid|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _isAccountValid * * @return adb_isAccountValidResponse1_t* */ adb_isAccountValidResponse1_t* axis2_stub_op_WebTrainerTraineeServiceService_isAccountValid( axis2_stub_t *stub, const axutil_env_t *env, adb_isAccountValid_t* _isAccountValid); /** * Auto generated function declaration * for "checkUsernameAvailability|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub (axis2_stub_t) * @param env environment ( mandatory) * * @param _checkUsernameAvailability * * @return adb_checkUsernameAvailabilityResponse5_t* */ adb_checkUsernameAvailabilityResponse5_t* axis2_stub_op_WebTrainerTraineeServiceService_checkUsernameAvailability( axis2_stub_t *stub, const axutil_env_t *env, adb_checkUsernameAvailability_t* _checkUsernameAvailability); /** * Auto generated function for asynchronous invocations * for "getVersionNumber|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getVersionNumber * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getVersionNumber( axis2_stub_t *stub, const axutil_env_t *env, adb_getVersionNumber_t* _getVersionNumber, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getVersionNumberResponse8_t* _getVersionNumberResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "setPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _setPersonalInfo * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_setPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setPersonalInfo_t* _setPersonalInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setPersonalInfoResponse10_t* _setPersonalInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getExercises|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getExercises * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getExercises( axis2_stub_t *stub, const axutil_env_t *env, adb_getExercises_t* _getExercises, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getExercisesResponse9_t* _getExercisesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getTETables|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getTETables * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getTETables( axis2_stub_t *stub, const axutil_env_t *env, adb_getTETables_t* _getTETables, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getTETablesResponse6_t* _getTETablesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "setUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _setUserInfo * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_setUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_setUserInfo_t* _setUserInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_setUserInfoResponse3_t* _setUserInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "updateExercise|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _updateExercise * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_updateExercise( axis2_stub_t *stub, const axutil_env_t *env, adb_updateExercise_t* _updateExercise, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_updateExerciseResponse4_t* _updateExerciseResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getUserInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getUserInfo * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getUserInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getUserInfo_t* _getUserInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getUserInfoResponse2_t* _getUserInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getPersonalProgress|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getPersonalProgress * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getPersonalProgress( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalProgress_t* _getPersonalProgress, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalProgressResponse0_t* _getPersonalProgressResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getCustomerPreferences|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getCustomerPreferences * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getCustomerPreferences( axis2_stub_t *stub, const axutil_env_t *env, adb_getCustomerPreferences_t* _getCustomerPreferences, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getCustomerPreferencesResponse7_t* _getCustomerPreferencesResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "getPersonalInfo|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _getPersonalInfo * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_getPersonalInfo( axis2_stub_t *stub, const axutil_env_t *env, adb_getPersonalInfo_t* _getPersonalInfo, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_getPersonalInfoResponse11_t* _getPersonalInfoResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "isAccountValid|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _isAccountValid * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_isAccountValid( axis2_stub_t *stub, const axutil_env_t *env, adb_isAccountValid_t* _isAccountValid, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_isAccountValidResponse1_t* _isAccountValidResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * Auto generated function for asynchronous invocations * for "checkUsernameAvailability|http://ws.trainee.webtrainer.firstbeat.fi/" operation. * @param stub The stub * @param env environment ( mandatory) * @param _checkUsernameAvailability * @param user_data user data to be accessed by the callbacks * @param on_complete callback to handle on complete * @param on_error callback to handle on error */ void axis2_stub_start_op_WebTrainerTraineeServiceService_checkUsernameAvailability( axis2_stub_t *stub, const axutil_env_t *env, adb_checkUsernameAvailability_t* _checkUsernameAvailability, void *user_data, axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_checkUsernameAvailabilityResponse5_t* _checkUsernameAvailabilityResponse, void *data) , axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) ); /** * function to free any soap input headers * @param env environment ( mandatory) */ /** * function to free any soap output headers * @param env environment ( mandatory) */ 	#ifdef __cplusplus 	} 	#endif 


Mime
View raw message