Can't deploy webserivce client
I'm writing a webservice client application that connects to a .Net webservice with the JWSDP 2.0. My development environment is Windows XP and Studio Enterprise 8.
I know the app works because it runs in the development environment. The problem is getting it to run outside of the development environment. It keeps returning:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/ws/Service
I've thrown everything into the CLASSPATH including the kitchen sink but still no luck. I even copied out the classpath that the development environment makes and that doesn't work.
Any ideas?
Also, why is this so complicated? Webservices are supposed to make development easy.
Hey!
First: what tool do you use to generate the classes on the client side?
Personnally, I use JAX-WS and the only thing I need is the wsdl file generated by the server that describe the WS. With that WSDL file in hand, you just have to look examples available in JWSDP 2.0. Look at the "fromwsdl" example in JWSDP/jaxws directory, in the build.xml file the target that you're interested in is "generate-client". Customize it so it will generate all classes needed to "understand" your web service. To know how to call the web service in your client application, take a look at the "AddNumbersClient.java" file in the client directory, it's pretty straight forward and it alway work the same way with any web service.
Good luck!
Korg
Korga at 2007-7-13 9:35:36 >

Sorry for the late reply. I really appreciate your time to reply to my post. I'm using JWSDP 2.0 as well and I was able to get it working, but I had to copy all of the DLLs built in the JWSDP into the endorsed directory. I was hoping to get it to work by modifying the classpath, but no such luck.
thanks again for the reply.