axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajagopal. V (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1795) wsdl2java handling multiple classes
Date Mon, 31 Jan 2005 05:50:17 GMT
wsdl2java handling multiple classes
-----------------------------------

         Key: AXIS-1795
         URL: http://issues.apache.org/jira/browse/AXIS-1795
     Project: Axis
        Type: Improvement
  Components: WSDL processing  
    Versions: 1.2RC2    
 Environment: Redhat 9, JDK1.4.2_04 and Axis 1.2RC2
    Reporter: Rajagopal. V


The wsdl2java can only handle a single class now to generate a wsdl from it. This can be improved
to handle multiple classes instead of passing in -I option to every other class. For e.g.
in my case to generate wsdl for 2 classes, i create a wsdl , say, test.wsdl and use -Itest.wsdl
as a parameter for the next class. This becomes unwieldy in some cases.
I have a patch to handle multiple classes. This is how it works.
1. Every class needs to have an option prefix of -z . So my wsdl2java command looks like
    wsdl2java .... -zcom.xxx.Webservice1 -zcom.yyy.WebService2 

2. The Servicename, portname, binding name are all derived from the name of the class. This
is because we cannot pass in a array of values for every class from the command line. I have
ideas to do this from XDoclet as to parse these values from the class, then pass it in, but
for now, the Service name, SErvice port name, Binding name are <ClassName>Service, <ClassName>Port
and <ClassName>SoapBinding respectively.

If this approach looks okay, i can attach a patch to it and maybe we can take it for testing.

Thanks
Raja

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message