This code snippet shows how...
 
public void getRate(Envelope reqEnv, SOAPContext reqCtx, SOAPContext respCtx)
              throws SOAPException
{
       HttpServletRequest request = (HttpServletRequest) reqCtx.getProperty(
                                                  Constants.BAG_HTTPSERVLETREQUEST );
 
      String host = request.getServerName();  // servername
      int port = request.getServerPort();  // port #
      String protocol = request.getScheme();  // http/https
      String wsuri = request.getRequestURI();
      // My web service processing...
}
-----Original Message-----
From: C Santosh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 10:13 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Client specific processing

Hi
 
For my document style SOAP service,
I would like to process the SOAP message
depending on who has sent the message.
 
How do I know from SOAPContext what the
remote host is ?
 
thanks
-csk

Reply via email to