Pravin Barton · Aug 11, 2022

How to get IP address of client calling SOAP web service

I have a SOAP web service on an IRIS system. From within the code of the WebMethod I would like to log the remote IP address of the client. Is there any way to get access to the client's IP address from the ObjectScript code in the SOAP service? This will save me some headaches correlating logs from IRIS with web server logs.

Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1.1 (Build 408U) Sun Mar 21 2021 22:04:09 EDT
1 218
Discussion (2)1
Log in or sign up to continue

Try: $SYSTEM.Process.ClientIPAddress($J)

As replacement for: $ZUTIL(67,15,$J)

Thank you Alex! $SYSTEM.Process.ClientIPAddress($J) does it, that gives me the IP of the SOAP client.