axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "R J Scheuerle Jr" <sc...@us.ibm.com>
Subject Re: Java2Wsdl problem
Date Tue, 05 Feb 2002 00:39:39 GMT
Muhammad,

Please make sure that you have a recent copy of Axis.

Here is the help text of the current tool:

$ java org.apache.axis.wsdl.Java2WSDL
Java2WSDL emitter
Usage: java org.apache.axis.wsdl.Java2WSDL [options] class-of-portType
Options:
        -h, --help
                print this message and exit
        -o, --output <argument>
                output Wsdl filename
        -l, --location <argument>
                service location url
        -s, --service <argument>
                service name (obtained from --location if not specified)
        -n, --namespace <argument>
                target namespace
        -p, --PkgtoNS <argument>=<value>
                package=namespace, name value pairs
        -m, --methods <argument>
                space or comma separated list of methods to export
        -a, --all
                look for allowed methods in inherited class
        -w, --outputWsdlMode <argument>
                output WSDL mode: All, Interface, Implementation
        -L, --locationImport <argument>
                location of interface wsdl
        -N, --namespaceImpl <argument>
                target namespace for implementation wsdl
        -O, --outputImpl <argument>
                output Implementation Wsdl filename, setting this causes
--o
                utputWsdlMode to be ignored
        -f, --factory <argument>
                name of the Java2WSDLFactory class for extending WSDL
genera
                tion functions
        -i, --implClass <argument>
                optional class that contains implementation of methods in
cl
                ass-of-portType.  The debug information in the class is
used
                 to obtain the method parameter names, which are used to
set
                 the WSDL part names.
        -x, --exclude <argument>
                space or comma separated list of methods not to export
        -c, --stopClasses <argument>
                space or comma separated list of class names which will
stop
                 inheritance search if --all switch is given
Details:
   portType    name= <class-of-portType name>
   binding     name= <--service value>SoapBinding
   service     name= <--service value>Service
   port        name= <--service value>
   address location= <--location value>

---------------------------------------------------------------------------------------------------------------------
Note that the portType name is the name of the interface/class specified on
the command line.

There are a couple of ways to get the behaviour you want for overloaded
methods:

1) The easiest way is to construct an interface that contains only the
methods you desire and
run the tool against this interface.

2) A more complicated solution is to write your own Java2WSDLFactory
extension...

Thanks for the note.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


                                                                                         
                                        
                      "Muhammad Ali                                                      
                                        
                      Siddiqui"                To:       <axis-dev@xml.apache.org> 
                                              
                      <asiddiqui@netpac        cc:                                    
                                           
                      e.com>                   Subject:  Java2Wsdl problem            
                                           
                                                                                         
                                        
                      02/04/2002 03:08                                                   
                                        
                      PM                                                                 
                                        
                      Please respond to                                                  
                                        
                      axis-dev                                                           
                                        
                                                                                         
                                        
                                                                                         
                                        



Hi,

I am using Java2Wsdl command line interface class for generating WSDL file
from a give class file. Is there any way I can restrict some of the
overloaded methods from being published in WSDL file. I mean if I have a
method foo() and another one foo(int) is there any way I can restrict
foo(int) from being published in generated WSDL, and let foo() only be
published there.

I know -m works for list of methods to be published in WSDL, but can anyone
tell me in detail how to specify overloaded methods with this command-line
param.

Also, how do I specify Port Name in WSDL using this utility?

I appreciate your help.

Best Regards

Ali



Mime
View raw message