my dog learned polymorphism
The moose likes Web Services and the fly likes what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC" Watch "what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC" New topic
Author

what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC

gupta prakash
Greenhorn

Joined: Jan 25, 2008
Posts: 5
Hi,
Can any one please tell me what is the difference between javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageContext.

1) What is the main purpose of WebServiceContext. Is it used internally within the service to store some data and processing?
2) Can we access the SOAPHeaders through this WebServiceContext?

I am having 2 EJB stateless web services. first service used the @Resource annotation to get a reference to the WebServiceContext.
what does this contains? Does it holds the reference to the SOAP Headers? And my first service(say A) will invoke the service(B) internally. So this WebServiceContext in A will be available in B?


 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: what is the difference b/w javax.xml.ws.WebServiceContext and javax.xml.ws.handler.soap.SOAPMessageC
 
Similar Threads
how to read config file when web service starts up
WebServiceContext.getUserPrincipal() Question
NullPointerException Trying to Get RemoteIP (why?)
JAX WS: WebServiceContext not getting populated
Stack n Heap