• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help with wscompile

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic