This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Client problem for my JAX-WS web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Client problem for my JAX-WS web service" Watch "Client problem for my JAX-WS web service" New topic
Author

Client problem for my JAX-WS web service

Bobby Anderson
Ranch Hand

Joined: Oct 28, 2008
Posts: 114
My client for my jax-ws web service is not working.



I get a null pointer exception because the service is not being injected by the @WebServiceRef annotation.

Ok so I just found that the annotation does not get processed because my client is not in the container. How do I make this WS call without the annotation?

Thanks,
Billy
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you are using client artifacts generated from the WSDL, then you can simply add this line of code at appropriate place in your client:

Best wishes!
 
Don't get me started about those stupid light bulbs.
 
subject: Client problem for my JAX-WS web service
 
Similar Threads
JNDI Name in EJB3
Help me in writing client foe this JAX ws Web service
problem with stateful service
How to access a remote SOAP using JAX-WS
Exception thrown While Running a Client