Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-08-04 Thread Nabeel Naseem Ahsan
I realized that "axis2_msg_ctx_get_property " works with axis2c simple http server. I am running apache2. The last response to the request for fetching peer ip with apache 2 was : " > > Okay, I think we can go ahead with this. The method > axis2_apache2_worker_process_request() has access to the a

Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-08-03 Thread Rajika Kumarasiri
Can you send the stack trace? On Mon, Aug 3, 2009 at 6:17 PM, Nabeel Naseem Ahsan wrote: > I tried using this property with axis2 1.5.0, but i got an segmentation > fault. Can anyone help me out? > > Nabeel Ahsan > > > On Fri, Jul 10, 2009 at 4:48 PM, Sam Carleton wrote: > >> Thank you for posti

Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-08-03 Thread Nabeel Naseem Ahsan
I tried using this property with axis2 1.5.0, but i got an segmentation fault. Can anyone help me out? Nabeel Ahsan On Fri, Jul 10, 2009 at 4:48 PM, Sam Carleton wrote: > Thank you for posting the answer, this could be very useful! > > On Fri, Jul 10, 2009 at 7:10 AM, Stefan Hristov wrote: > >

Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-07-10 Thread Sam Carleton
Thank you for posting the answer, this could be very useful! On Fri, Jul 10, 2009 at 7:10 AM, Stefan Hristov wrote: > Well, looking at the source usually helps :) > > There is a property in msg_ctx called AXIS2_SVR_PEER_IP_ADDR which contains > the remote peer IP address. > So basically this is

Re: Obtaining consumer address from Axis2/C service - SOLVED

2009-07-10 Thread Stefan Hristov
Well, looking at the source usually helps :) There is a property in msg_ctx called AXIS2_SVR_PEER_IP_ADDR which contains the remote peer IP address. So basically this is how one could get the web-service consumer IP address: axutil_property_t *peer = axis2_msg_ctx_get_property (

Obtaining consumer address from Axis2/C service

2009-07-09 Thread Stefan Hristov
Hi all, I am writing a web-service using Axis2/C v1.6.0. The service is deployed with Apache2 mod-axis2.so. I need to get the sender IP address (or anything which can be used to identify the consumer) when my service is called (meaning, in axis2_svc_skel_XXX_invoke function). I have searched