[color=blue][size=large]客户端:
必须在进行了真实的接口调用之后才能获取到MessageContext
stub._getCall().getMessageContext().getRequestMessage().getSOAPPartAsString()
stub._getCall().getMessageContext().getResponseMessage().getSOAPPartAsString()
服务端:
MessageContext mc = MessageContext.getCurrentContext();
服务端获取HTTPServletRequest:
HttpServletRequest httpreq = (HttpServletRequest) mc.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);[/size][/color]
必须在进行了真实的接口调用之后才能获取到MessageContext
stub._getCall().getMessageContext().getRequestMessage().getSOAPPartAsString()
stub._getCall().getMessageContext().getResponseMessage().getSOAPPartAsString()
服务端:
MessageContext mc = MessageContext.getCurrentContext();
服务端获取HTTPServletRequest:
HttpServletRequest httpreq = (HttpServletRequest) mc.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);[/size][/color]