wood burning stoves*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes need help with wscompile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "need help with wscompile" Watch "need help with wscompile" New topic
Author

need help with wscompile

Alex Adam
Greenhorn

Joined: Sep 26, 2003
Posts: 4
Hello.

I tried my hand at creating both a client and a service using Axis 1.4 and was succesfull.

However, I also wanted to use the jwsdp 1.0 and write a client using wscompile[also I did not want to use the Axis apis]. However I could not find the a download for the jwsdp 1.0 version and I downloaded jwsdp 2.0, which includes jax-rpc 1.1. I sholud also mention that I also have another jaxrpc distribution from jax-rpc.dev.java.net.

When trying to run wscompile, however, the wscompile script is asking for my JAXRPC_HOME for my JAXRPC distribution.

If I set the JAXRPC_HOME to the jwsdp2.0 directory I get the following:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/rpc/tools/wscompile/Main


My question is : what should I set the JAXRPC_HOME to in order to run the wscompile? Obviously I am also missing some classpath elements as well!

Many thanks.
Praveen Babu
Ranch Hand

Joined: Jul 30, 2006
Posts: 138
Originally posted by Alex Adam:
Hello.

If I set the JAXRPC_HOME to the jwsdp2.0 directory I get the following:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/rpc/tools/wscompile/Main



I think you are setting to JWSDP_HOME instead of setting to JAXRPC_HOME. There should be a directory named 'jaxrpc' under your home directory (C:\jwsdp2.0\jaxrpc, for example). set your JAXRPC_HOME to it and try.I suggest you use the samples given in the same directory and its build file
instead of manually typing the commands. Working with JAX-RPC is not as simple as using Axis. Axis is a much simpler API to use(IMO).

Regards,
P R A V E E N
[ November 28, 2007: Message edited by: Praveen Babu ]
Mohit Shah
Greenhorn

Joined: Jun 20, 2008
Posts: 1
Hi friends,

I am trying to implement web-service in java. Its first attempt for me.
When I ran "wscompile" command it showed me "command not found".
So is there any need to include or install some files for that?
And please also mention what should be keep in mind when creating web-service?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help with wscompile
 
Similar Threads
Using wscompile
Create an endpoint interface from wsdl using wscompile (jaxrpc)
a jax-rpc as a client of an axis2 + rampart
Dynamic Proxy
How to write pure JAX-RPC client to invoke webservice?