axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fan, Jan-fon" <>
Subject Axis2c client fails to receive return if return size is large
Date Fri, 03 Sep 2010 00:36:02 GMT
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);


View raw message