This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply 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
Bartender

Joined: Oct 04, 2006
Posts: 2193
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
 
Similar Threads
How to access a remote SOAP using JAX-WS
Exception thrown While Running a Client
Help me in writing client foe this JAX ws Web service
JNDI Name in EJB3
problem with stateful service