axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Chabanois <>
Subject RE: New Java2WSDL Feature: Parameter Names -> WSDL Part Names
Date Wed, 09 Jan 2002 09:53:34 GMT

I tried this new feature but I failed to make it work.

I first compiled my web service using -g to include debug information.
I have 3 classes :

and here is the method :
  public String ECHO(String PARAM) throws java.rmi.RemoteException

First I tried to get the wsdl using

The parameter is still in0, not PARAM
<wsdl:message name="ECHORequest">
  <wsdl:part name="in0" type="xsd:string" /> 
<wsdl:message name="ECHOResponse">
  <wsdl:part name="return" type="xsd:string" /> 

i then tried using 
java org.apache.axis.wsdl.Java2WSDL -i hello.HelloBindingImpl

or java org.apache.axis.wsdl.Java2WSDL hello.HelloBindingImpl

with no more success.

I tried Jade to see if parameters names are available and they are.

I don't know what I did wrong ...


> New Java2WSDL Feature
> ---------------------
> Previously, the Java2WSDL emitter used names such as in0 and 
> inOut1 for
> the WSDL message part names.
> Now, Java2WSDL will query the debug information in the web 
> service class
> file
> to determine the method parameter names.  These names are used to
> generate the WSDL message part names; thus there is no longer any
> loss of information.
> If the web service class file describes an interface, or if the class
> file was not compiled with -g, then the parameter names are 
> not available.
> In such cases, the new -i <impl-class> option can be used to pass
> an alternate class.  This <impl-class> is only used to 
> determine the names
> of the method parameters.  The <impl-class> can be an 
> implementation class,
> a stub class or a skeleton class.
> In the event that Java2WSDL cannot access the parameter names, it will
> fallback and use the default in# and inOut## parameter names.
> Enjoy!
> Rich Scheuerle
> XML & Web Services Development
> 512-838-5115  (IBM TL 678-5115)

View raw message