Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client problem for my JAX-WS web service

 
Bobby Anderson
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic