*
The moose likes Web Services and the fly likes web service context is null Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service context is null" Watch "web service context is null" New topic
Author

web service context is null

dale con
Ranch Hand

Joined: Apr 15, 2005
Posts: 93
Dear All

I'm writing a web service that has methods that i expose and methods i don't. the methods i expose call unexposed methods.

One method calls a addsoapheader method, but the messagecontext is null. Can anyone see what is wrong

Many thanks


public static String addSOAPHeader(String token) throws Exception
{
Service service = new Service();

Call call = (Call)service.createCall();

SOAPHeaderElement tokenHeader = new SOAPHeaderElement("","TokenHeader");

tokenHeader.setObjectValue(token);

call.addHeader(tokenHeader);

MessageContext context = MessageContext.getCurrentContext();

SOAPHandler.handleResponse(context);

return token;
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service context is null
 
Similar Threads
How do I read WSS Username Token after validation?
Web service handler could not registered/called in client web service
Axis problems
add soap header method
Sign soap header with handler in WebSphere 6.1