You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Samuel Isokpunwu (JIRA)" <ji...@apache.org> on 2006/06/06 22:22:30 UTC

[jira] Updated: (AXIS2-806) Compilation errors in Axis2 tools package.

     [ http://issues.apache.org/jira/browse/AXIS2-806?page=all ]

Samuel Isokpunwu updated AXIS2-806:
-----------------------------------

    Attachment: WSDL2JavaGenerator-patch.txt

This quick fix assume that the wsdlURI parameter points to a wsdl 1.1 verssion.
A better fix should be to determine which builder to use based on the wsdl version.
The current implementation of the wsdl builder classes did not allow for this. I will suggest that the determination of which builder to use should be done in the builder classes, preferably in the parent builder class accessable through a static reference to a method like getBuilderInstance(String wsdlURI) in the parent builder class or through a builder Abstract Factor or Abstract Factory methods.

> Compilation errors in Axis2 tools package.
> ------------------------------------------
>
>          Key: AXIS2-806
>          URL: http://issues.apache.org/jira/browse/AXIS2-806
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>   Components: Tools
>     Versions: 1.0
>  Environment: Win XP
>     Reporter: Samuel Isokpunwu
>     Priority: Blocker
>  Attachments: WSDL2JavaGenerator-patch.txt
>
>   
> 1. The org.apache.axis2.tool.codegen.WSDL2JavaGenerator is referencing org.apache.axis2.description.WSDL2AxisServiceBuilder builder class that no longer exist in the current org.apache.axis2.description package. The description package now contains WSDLToAxisServiceBuilder.java as parent builder class with WSDL11ToAxisServiceBuilder and  WSDL20ToAxisServiceBuilder as subclasses.
> 2. Also, the following line of code in org.apache.axis2.tool.codegen.WSDL2JavaGenerator class --
> WSDL2AxisServiceBuilder builder = new WSDL2AxisServiceBuilder(url.openConnection().getInputStream());
> will not only fail to compile because the class no longer exist in the Axis2 description package, it will also fail to compile because the one-argument Constructor that is being referenced in this line of code does not exist in the newly created builder classes.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org