Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mork
Post subject: Web Services Code Issue  PostPosted: Mar 04, 2010 - 09:29 PM
Veteran Member
Veteran Member


Joined: Dec 09, 2004
Posts: 586

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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits