• Post Reply Bookmark Topic Watch Topic
  • New Topic

web service context is null  RSS feed

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");



MessageContext context = MessageContext.getCurrentContext();


return token;
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!