WSDL2Java to handle multi porttypes in WSDL
-------------------------------------------

                 Key: TUSCANY-2008
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2008
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Tools
         Environment: Windows XP
            Reporter: Sean Zhou


Three problems with WSDL2Java handling multi porttypes in WSDL:

1) WSDL2Java should not require the port info to generate Java interfaces 
for porttypes.
If a WSDL document has porttypes but no wsdl:service and wsdl:port elements, 
no Java interfaces are generated although SDO classes are generated for the 
schema. When we use a WSDL document to define an interface, it is only the 
porttype and schema definition that matters. I don't see why WSDL2Java 
requires service/port to generate Java interface for porttype.

2) All schema data types are processed even if only some ports are 
selected when running WSDL2Java.
The WSDL2JavaGenerator.generateFromWSDL() method accepts a String[] 
parameter (this parameter is not exposed on command line) that specifies 
an array of port names. WSDL2Java generates Java interfaces only for 
porttypes that used by the selected ports. While the defined scope works 
on porttypes, the whole schema is processed and SDO classes are generated 
for all data types.

3) Cannot select porttypes for code generation.
As mentioned in 1), we may care about only porttype and schema if we 
use the WSDL document for interface definition. If there are multiple 
porttypes in the WSDL document, WSDL2Java should be able to allow the 
user to select target porttypes. Currently, WSDL2Java allows to specify 
ports only.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to