What is the difference between RequestContext and MessageContext in JAX-WS?
相关问题
- The message with Action '' cannot be proce
- Set assignee field when creating an issue in JIRA
- How do you call a web service in Java with only XS
- Element or attribute do not match QName production
- QUERY method of Soap request for SSRS and WCF test
相关文章
- Using JAX-WS 2.2.5 client with JDK/JRE 1.5
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- PHP SoapClient constructor very slow
- How to deserialize a WCF soap response message fro
- .NET tool to generate wrapper for proxy classes
- Soap version mismatch in java
- SAP DI Server - How to issue first request?
- SOAP response MTOM attachment can't be decrypt
MessageContext provides access to the current inbound or outbound message in a JAX-WS call, specifically for JAX-WS handlers. Inbound to a service provider is the request message while outbound is the response; For a JAX-WS client handler, outbound is the request and inbound is the response.
I had to look up RequestContext - it isn't technically a JAX-WS class. It's a proprietary (read: implementation) class in the JAX-WS reference implementation. I don't think you'd want to couple/compile your code against this, but I do expect you'd see it during debugger sessions if you're using the JAX-WS RI.
If by chance you're referring to BindingProvider.getRequestContext(), this is a
Map<String, Object>
that is a map that contains values for initializing the outbound request message for a JAX-WS client. For example, to programmatically set the endpoint URL: