aspose file tools*
The moose likes Web Services and the fly likes what is the difference b/w and Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "what is the difference b/w and" Watch "what is the difference b/w and" New topic

what is the difference b/w and

gupta prakash

Joined: Jan 25, 2008
Posts: 5
Can any one please tell me what is the difference between and

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:
subject: what is the difference b/w and
Similar Threads
Stack n Heap
JAX WS: WebServiceContext not getting populated
NullPointerException Trying to Get RemoteIP (why?)
how to read config file when web service starts up
WebServiceContext.getUserPrincipal() Question