Senaka Fernando wrote:
Hi Mougey, Samisa, and Dumindu,

On Jan 19, 2008 12:53 AM, Senaka Fernando <[EMAIL PROTECTED]> wrote:
Sébastien Mougey wrote:
How can I get this address with Apache server ? Is it possible ?

I think it should be possible, however, I need to look into the code
to
give you a definite answer. I will have a look and let you know.
Yes, indeed it is possible. We need to use ap_get_remote_host().
However,
I'm not quite sure what other methods, data are required to call this
method, and how we could access them. Looking into that.

ap_get_remote_host() tries to lookup the remote server's DNS name.
Only if that fails will it return the ip address. You can however get
the ip address of the remote host at the axis2_handler as follows:

char* remote_ip = req->connection->remote_ip;

Okay, I think we can go ahead with this. The method
axis2_apache2_worker_process_request() has access to the above data as
well as the msg_ctx, and therefore, it can be made available, as in the
simple axis server.

Please raise a Jira on this to track the fixing.

Thanks,
Samisa...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to