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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/09/06 16:27:30 UTC

[jira] Updated: (AXIS2-1089) WSDL2Java is generating invalid inner class, method with XmlBeans binding

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

Davanum Srinivas updated AXIS2-1089:
------------------------------------

    Priority: Blocker  (was: Major)

> WSDL2Java is generating invalid inner class, method with XmlBeans binding
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-1089
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1089
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.0
>         Environment: Windows XP, Axis 2.0 release 1.0 (also latest nightly build 
>            Reporter: Brennan Spies
>            Priority: Blocker
>         Attachments: files.zip
>
>
> Using WSDL2Java for the attached files (specifying -d xmlbeans), I am getting the following errors:
> In toOM():
>         org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new org.apache.axiom.om.impl.builder.StAXOMBuilder(org.apache.axiom.om.OMAbstractFactory.getOMFactory(),
>                 new org.apache.axis2.util.StreamWrapper(param.newXMLStreamReader()));
> where param.newXMLStreamReader() is a non-existent method.
> In fromOM():
>             if (org.apache.axiom.om.OMElement.class.equals(type)) {
>                 if (extraNamespaces != null) {
>                     return org.apache.axiom.om.OMElement.Factory.parse(param.getXMLStreamReaderWithoutCaching(),
>                         new org.apache.xmlbeans.XmlOptions().setLoadAdditionalNamespaces(
>                             extraNamespaces));
>                 } else {
>                     return org.apache.axiom.om.OMElement.Factory.parse(param.getXMLStreamReaderWithoutCaching());
>                 }
> where the inner class org.apache.axiom.om.OMElement.Factory.parse does not exist.
> The full command is: WSDL2Java -uri Query.wsdl -d xmlbeans -o bin -p <package-name> -s -ss -sd
> My issue seems to be the same as Bug-760 (same compilation errors), but this was marked as fixed--and it does not look as if this has really been fixed. Under no circumstances should the generator generate code that cannot compile! This looks to be the case where the code generator has not kept up with changes in Axiom.
> BTW, the WorkflowTypes.xsd, QueryResult.xsd, and QueryInterface.xsd are all in the same namespace, but the Query.wsdl is in its own namespace.

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