Axis2c client fails to receive return if return size is large

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Axis2c client fails to receive return if return size is large

Fan, Jan-fon

Hi,

I have a client written with Axis2C client api, When it tries to receive the return from a web service and if the return data size is large (about 200k) it fails to receive all of the data. If data size is small then it is OK. Below is the way that I set up my client. Is there anything wrong?

 

const axutil_env_t *env = NULL;

const axis2_char_t *address = “http:imorepos/ws/Query.asmx”;

axis2_endpoint_ref_t *endpoint_ref = NULL;

axis2_options_t *options = NULL;

axutil_string_t *soap_action = NULL;

const axis2_char_t *client_home = NULL;

axiom_node_t *payload = NULL;

axiom_node_t *ret_node = NULL;

 

env = axutil_env_create_all(“tool.log”, AXIS2_LOG_LEVEL_DEBUG);

options = axis2_options_create(env);

axis2_options_set_timeout_in_milli_seconds( options, env, 180000);

endpoint_ref = axis2_endpoint_ref_create(env, address);

axis2_options_set_soap_version(options, env,AXIOM_SOAP11);

axis2_options_set_to(options, env, endpoint_ref);

soap_action = axutil_string_create(env, “convert”);

axis2_options_set_soap_action(options, env, soap_action);

client_home = AXIS2_GETENV(“AXIS2C_HOME”);

svc_client = axis2_svc_client_create(env, client_home);

axis2_svc_client_set_options(svc_client, env, options);

payload= build_om_payload(); //this function return the payload

ret_node = axis2_svc_client_send_receive(svc_client, env, payload);

 

 

Thanks,

Jan

 

Reply | Threaded
Open this post in threaded view
|

unsubscribe does not work

Daniel Eduardo Salas Useche

Hi all,

 

The unsubscribe method described for this list is not working. Does anybody knows how to do that?

 

Thanks,

Daniel

 

--------------------------------------------

DANIEL EDUARDO SALAS USECHE

Civil and environmental Engineering

University of Pittsburgh

 

From: Fan, Jan-fon [mailto:[hidden email]]
Sent: Thursday, September 02, 2010 8:36 PM
To: [hidden email]; [hidden email]
Subject: Axis2c client fails to receive return if return size is large

 

Hi,

I have a client written with Axis2C client api, When it tries to receive the return from a web service and if the return data size is large (about 200k) it fails to receive all of the data. If data size is small then it is OK. Below is the way that I set up my client. Is there anything wrong?

 

const axutil_env_t *env = NULL;

const axis2_char_t *address = “http:imorepos/ws/Query.asmx”;

axis2_endpoint_ref_t *endpoint_ref = NULL;

axis2_options_t *options = NULL;

axutil_string_t *soap_action = NULL;

const axis2_char_t *client_home = NULL;

axiom_node_t *payload = NULL;

axiom_node_t *ret_node = NULL;

 

env = axutil_env_create_all(“tool.log”, AXIS2_LOG_LEVEL_DEBUG);

options = axis2_options_create(env);

axis2_options_set_timeout_in_milli_seconds( options, env, 180000);

endpoint_ref = axis2_endpoint_ref_create(env, address);

axis2_options_set_soap_version(options, env,AXIOM_SOAP11);

axis2_options_set_to(options, env, endpoint_ref);

soap_action = axutil_string_create(env, “convert”);

axis2_options_set_soap_action(options, env, soap_action);

client_home = AXIS2_GETENV(“AXIS2C_HOME”);

svc_client = axis2_svc_client_create(env, client_home);

axis2_svc_client_set_options(svc_client, env, options);

payload= build_om_payload(); //this function return the payload

ret_node = axis2_svc_client_send_receive(svc_client, env, payload);

 

 

Thanks,

Jan