In my interceptor code, I'm trying to obtain the servlet's HTTP port using
the following code:


      HttpServletRequest request =
(HttpServletRequest)message.get(AbstractHTTPDestination.HTTP_REQUEST);

      int port = request.getLocalPort();

If the message is for a request/response operation, this works fine, and the
port is reported correctly as 8080. If the operation is a one-way operation
(e.g., using hello_world_soap12 sample's greetMeOneWay operation), the port
is reported as -1, and additionally, the headers map is null, as are most of
the ServletRequest properties, like contextPath, requestUrl, etc.

Any insights would be appreciated.

--

Roy

-- 
View this message in context: 
http://www.nabble.com/Partial-incomplete-HttpServletRequest-for-a-one-way-operation-tp22851951p22851951.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to