You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Andrew Borley <aj...@gmail.com> on 2006/07/11 16:24:10 UTC
[Axis2] Calling one service from another
Hi,
I'm using Axis2C 0.92 and trying to call another service from within my
service. The call to my final service works correctly but then the
intermediary service fails when Axis2 tries to return the response to the
original client. This happens after my skeleton invoke method returns.
I can fix my problem by commenting out the call to AXIS2_SVC_CLIENT_FREE in
my intermediary service, but then I have memory leaks.
I have included my service & skeleton code.
Does anyone know what's going on? Can anyone help?
Thanks
Andrew
Re: [Axis2] Calling one service from another
Posted by Andrew Borley <aj...@gmail.com>.
Hi Sahan,
Thanks for your suggestion, but it doesn't seem to work I'm afraid - I get
the same problem whether I do the DETACH before or after the
AXIS2_SVC_CLIENT_FREE.
Cheers
Andrew
On 7/11/06, Sahan Gamage <sa...@wso2.com> wrote:
>
> Hi,
>
> The problem may be that the ret_node returned by the svc_client is a
> part of the om tree which attached svc_client. When you free the
> svc_client the om_tree is also freed. To prevent that, try detaching the
> ret_node from the internal tree. AXIOM_NODE_DETACH()
>
> - sahan
>
> Andrew Borley wrote:
>
> > Hi,
> >
> > I'm using Axis2C 0.92 and trying to call another service from within
> > my service. The call to my final service works correctly but then the
> > intermediary service fails when Axis2 tries to return the response to
> > the original client. This happens after my skeleton invoke method
> > returns.
> > I can fix my problem by commenting out the call to
> > AXIS2_SVC_CLIENT_FREE in my intermediary service, but then I have
> > memory leaks.
> > I have included my service & skeleton code.
> >
> > Does anyone know what's going on? Can anyone help?
> >
> > Thanks
> >
> > Andrew
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> >For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>
Re: [Axis2] Calling one service from another
Posted by Sahan Gamage <sa...@wso2.com>.
Hi,
The problem may be that the ret_node returned by the svc_client is a
part of the om tree which attached svc_client. When you free the
svc_client the om_tree is also freed. To prevent that, try detaching the
ret_node from the internal tree. AXIOM_NODE_DETACH()
- sahan
Andrew Borley wrote:
> Hi,
>
> I'm using Axis2C 0.92 and trying to call another service from within
> my service. The call to my final service works correctly but then the
> intermediary service fails when Axis2 tries to return the response to
> the original client. This happens after my skeleton invoke method
> returns.
> I can fix my problem by commenting out the call to
> AXIS2_SVC_CLIENT_FREE in my intermediary service, but then I have
> memory leaks.
> I have included my service & skeleton code.
>
> Does anyone know what's going on? Can anyone help?
>
> Thanks
>
> Andrew
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
RE: [Axis2] Calling one service from another
Posted by "Ryzhov, Evgeny" <Ev...@billing.ru>.
Hi Andrew,
I was trying to create provided/required interfaces to. But I have
investigated that socket don't close(see network_handler.c). I commented
out recv() function and recompiled Axis, but in this case socket goes to
CLOSE_WAIT state on client side and FIN_WAIT2 state on servise side. If
you will have some progress in this issue, please inform me.
Regards,
Evgeniy
________________________________
From: Andrew Borley [mailto:ajborley@gmail.com]
Sent: Tuesday, July 11, 2006 6:24 PM
To: Apache AXIS C User List
Subject: [Axis2] Calling one service from another
Hi,
I'm using Axis2C 0.92 and trying to call another service from
within my service. The call to my final service works correctly but then
the intermediary service fails when Axis2 tries to return the response
to the original client. This happens after my skeleton invoke method
returns.
I can fix my problem by commenting out the call to
AXIS2_SVC_CLIENT_FREE in my intermediary service, but then I have memory
leaks.
I have included my service & skeleton code.
Does anyone know what's going on? Can anyone help?
Thanks
Andrew