This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client problem for my JAX-WS web service