Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • 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");



MessageContext context = MessageContext.getCurrentContext();


return token;
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic