axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexis Gruet (JIRA)" <>
Subject [jira] [Commented] (AXIS2C-1686) Can't reuse svc_client ?
Date Tue, 09 Aug 2016 01:30:20 GMT


Alexis Gruet commented on AXIS2C-1686:

Hi Rafa and thanks for your answer !

Trust me, happy to see at least someone using ( and maintaining ) this project.. 

Actually i tried a couple of ways and the one you suggested using the IF statement was my
first attempt, meaning reading the response through axiom ( om_buffer etc. ) but is was not

Unfortunately and according to the logs i can't confirm the behaviour you mentioned in your
post for both approach ( w/o IF //reading or w/ IF //reading ) 

2 requests are sent ( according to the axis2 logs ) and the only response i can read is ret_node1.

ret_node2 is lost b/c of a seg fault ( mentioned in my first post, during soap_env creation

I felt a ptr was free'd during the first request.. 

However, to be honest w/ you i'm not a C/C++ dev and i discovered this language by writing
from scratch a PHP Extension for Axis2/c, maybe the way i'm doing it is wrong, so be smart
with me :)

( just fyi )

> Can't reuse svc_client ?
> ------------------------
>                 Key: AXIS2C-1686
>                 URL:
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>         Environment: Linux / Ubuntu 14.04
> Mac OS X
>            Reporter: Alexis Gruet
>            Priority: Minor
>             Fix For: 1.7.0
> When a single svc_client is created i've send two requests, like this pseudo code : 
> ret_node1 = axis2_svc_client_send_receive (svc_client, _env.get, payload);
> ret_node2 = axis2_svc_client_send_receive (svc_client, _env.get, payload);
> but the http client crash when building the soap_env, somewhere in soap_builder.c:281
( axiom_soap_builder_next() ) 
> svc_client can't not be reused ? for each request we have to recreate a new svc_client
? However, In the axis2c samples ( echo service ) i can almost see the same case, so i suppose
this should be supported. 
> ( I use the SVN Trunk )

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message