axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stadelmann Josef" <josef.stadelm...@axa-winterthur.ch>
Subject AW: Axis2c client fails to receive return if return size is large
Date Mon, 13 Sep 2010 08:16:32 GMT
Can you get/log the length of the payload-to-server-string on the client?
Can you get/log the received string at the server before you pass it to axiom/axutil/guthila
or libxml routines?
 
I recently had the following problem; 
I used the wrong pointer type (16bit) to pass on a well received 92kByte string to some axiom/axtuil/libxml
routines to deserialise it. This is a real no go and I got an error back telling me about
invalid xml and the like. 

Using a 32 or 64bit pointer to my string an all was fine.

Josef

 

-----Urspr√ľngliche Nachricht-----
Von: Selvaratnam Uthaiyashankar [mailto:uthaiyashankar@gmail.com] 
Gesendet: Montag, 6. September 2010 06:46
An: Apache AXIS C User List
Betreff: Re: Axis2c client fails to receive return if return size is large

Hi,

What is the Axis2/C version you are using? Can you try with Axis2/C
1.7 RC and see whether it works? AFAIK, we fixed some bugs in
guththila.

Regards,
Shankar

On Fri, Sep 3, 2010 at 5:55 AM, Fan, Jan-fon <jan-fon.fan@intel.com> wrote:
> 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



-- 
S.Uthaiyashankar
Senior Software Architect
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message