Thanks for the reply! Your code worked nicely and for future reference here is another way I found to get the same data:
// pipeline
Session sessionObject = Service.getSession();
String clientIp = sessionObject.getName();
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
IDataUtil.put( pipelineCursor, “clientIp”, clientIp );
pipelineCursor.destroy();
#webMethods#webmethods-Protocol-and-Transport#Integration-Server-and-ESB