Hello.
I am using axis2c 1.6 and I am trying to get the ip address (or hostname) of
the host that generate the web service requests. I was attempting to use
axis2_msg_ctx_get_from and then axis2_endpoint_ref_get_address to do this.
Unfortunately this is giving me the address of the server, not the client.
Am I mis-using this API call? Is there a better/different way to get this
information?
This is how my code looks:
fromRef = axis2_msg_ctx_get_from(pMsgCtx, pEnv);
if (fromRef) {
from = (axis2_char_t*)axis2_endpoint_ref_get_address(fromRef, pEnv);
}
Any help is greatly appreciated.
Thanks,
Murphey