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 "Dawid Loubser (JIRA)" <ji...@apache.org> on 2005/09/02 13:53:12 UTC

[jira] Created: (AXIS2-199) Non-compilable data binding code generated - duplicate 'toOM(...)' method

Non-compilable data binding code generated - duplicate 'toOM(...)' method
-------------------------------------------------------------------------

         Key: AXIS2-199
         URL: http://issues.apache.org/jira/browse/AXIS2-199
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: Tools  
    Versions: 0.91    
 Environment: Mac OS X, Java SDK 5.0 Update 1
 Reporter: Dawid Loubser
    Priority: Critical


When WSDL2Java is run on a pretty complex (but valid) WSDL with an external schema, all types are created (seemingly correctly) but the Data Binding supporters (in package myPackage.databinding) are all incorrect, as they all contain two exact copies of the same "public  static org.apache.axis2.om.OMElement  toOM(...)" method. I have not tested on a very simple case, but it certainly fails for a schema which worked correctly in Axis 1.x

-- 
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


Re: [jira] Created: (AXIS2-199) Non-compilable data binding code generated - duplicate 'toOM(...)' method

Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi Dawid,
Please attach the WSDL (or the link). A similar problem occured and was 
fixed but need to check whether it's still there.

On 9/2/05, Dawid Loubser (JIRA) <ji...@apache.org> wrote:
> 
> Non-compilable data binding code generated - duplicate 'toOM(...)' method
> -------------------------------------------------------------------------
> 
> Key: AXIS2-199
> URL: http://issues.apache.org/jira/browse/AXIS2-199
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: Tools
> Versions: 0.91
> Environment: Mac OS X, Java SDK 5.0 Update 1
> Reporter: Dawid Loubser
> Priority: Critical
> 
> 
> When WSDL2Java is run on a pretty complex (but valid) WSDL with an 
> external schema, all types are created (seemingly correctly) but the Data 
> Binding supporters (in package myPackage.databinding) are all incorrect, 
> as they all contain two exact copies of the same "public static 
> org.apache.axis2.om.OMElement toOM(...)" method. I have not tested on a 
> very simple case, but it certainly fails for a schema which worked correctly 
> in Axis 1.x
> 
> --
> 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
> 
> 


-- 
Ajith Ranabahu

[jira] Updated: (AXIS2-199) Non-compilable data binding code generated - duplicate 'toOM(...)' method

Posted by "Dawid Loubser (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-199?page=all ]

Dawid Loubser updated AXIS2-199:
--------------------------------

    Attachment: axis2Test.wsdl

I am unable to attach my original mentioned WSDL, but attached is a (silly) schema specifically written to illustrate the problem. Runnign WSDL2Java on this generates duplicate methods in the data binding supporter.

> Non-compilable data binding code generated - duplicate 'toOM(...)' method
> -------------------------------------------------------------------------
>
>          Key: AXIS2-199
>          URL: http://issues.apache.org/jira/browse/AXIS2-199
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: Tools
>     Versions: 0.91
>  Environment: Mac OS X, Java SDK 5.0 Update 1
>     Reporter: Dawid Loubser
>     Priority: Critical
>  Attachments: axis2Test.wsdl
>
> When WSDL2Java is run on a pretty complex (but valid) WSDL with an external schema, all types are created (seemingly correctly) but the Data Binding supporters (in package myPackage.databinding) are all incorrect, as they all contain two exact copies of the same "public  static org.apache.axis2.om.OMElement  toOM(...)" method. I have not tested on a very simple case, but it certainly fails for a schema which worked correctly in Axis 1.x

-- 
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


[jira] Commented: (AXIS2-199) Non-compilable data binding code generated - duplicate 'toOM(...)' method

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-199?page=comments#action_12320890 ] 

Ajith Harshana Ranabahu commented on AXIS2-199:
-----------------------------------------------

Please attach the WSDL

> Non-compilable data binding code generated - duplicate 'toOM(...)' method
> -------------------------------------------------------------------------
>
>          Key: AXIS2-199
>          URL: http://issues.apache.org/jira/browse/AXIS2-199
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: Tools
>     Versions: 0.91
>  Environment: Mac OS X, Java SDK 5.0 Update 1
>     Reporter: Dawid Loubser
>     Priority: Critical

>
> When WSDL2Java is run on a pretty complex (but valid) WSDL with an external schema, all types are created (seemingly correctly) but the Data Binding supporters (in package myPackage.databinding) are all incorrect, as they all contain two exact copies of the same "public  static org.apache.axis2.om.OMElement  toOM(...)" method. I have not tested on a very simple case, but it certainly fails for a schema which worked correctly in Axis 1.x

-- 
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


[jira] Resolved: (AXIS2-199) Non-compilable data binding code generated - duplicate 'toOM(...)' method

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-199?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-199:
-------------------------------------------

    Resolution: Fixed

This issue is solved some time back. Please take the latest code from SVN and try

> Non-compilable data binding code generated - duplicate 'toOM(...)' method
> -------------------------------------------------------------------------
>
>          Key: AXIS2-199
>          URL: http://issues.apache.org/jira/browse/AXIS2-199
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: Tools
>     Versions: 0.91
>  Environment: Mac OS X, Java SDK 5.0 Update 1
>     Reporter: Dawid Loubser
>     Priority: Critical
>  Attachments: axis2Test.wsdl
>
> When WSDL2Java is run on a pretty complex (but valid) WSDL with an external schema, all types are created (seemingly correctly) but the Data Binding supporters (in package myPackage.databinding) are all incorrect, as they all contain two exact copies of the same "public  static org.apache.axis2.om.OMElement  toOM(...)" method. I have not tested on a very simple case, but it certainly fails for a schema which worked correctly in Axis 1.x

-- 
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