• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web service context is null

 
dale con
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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;
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic