I have written a web service in myeclipse 7.5 that works fine.
Today, however, I tried to add
@Resource WebServiceContext context;
under the @WebService annotation, then in a WebMethod, I added:
MessageContext ctxt = context.getMessageContext();
However, I get a NullPointerException on this line of code.
(I didn't modify the client code.)
I've posted messages on various programming forums and gotten no replies, which usually means I could be doing something wrong.
However, this example follows a book and several web site examples, so I'm just trying to make sure there's nothing in MyEclipse 7.5 (that you know of) that could cause this problem.
Your simple Calculator example works fine, of course. :)
Thanks in advance for you reply and for any suggestions.
- M |