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 "Brennan Spies (JIRA)" <ji...@apache.org> on 2006/09/06 22:54:24 UTC
[jira] Created: (AXIS2-1116) WSDL2Java with Xmlbeans binding is not
generating classes for all schema
WSDL2Java with Xmlbeans binding is not generating classes for all schema
------------------------------------------------------------------------
Key: AXIS2-1116
URL: http://issues.apache.org/jira/browse/AXIS2-1116
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: databinding
Affects Versions: 1.0
Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
Reporter: Brennan Spies
Attachments: files.zip
I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
<codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
testcase="true" unpackclasses="true"/>
There are 3 problems here:
1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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
[jira] Updated: (AXIS2-1116) WSDL2Java with Xmlbeans binding is not
generating classes for all schema
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1116?page=all ]
Davanum Srinivas updated AXIS2-1116:
------------------------------------
Priority: Blocker (was: Major)
> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
> Key: AXIS2-1116
> URL: http://issues.apache.org/jira/browse/AXIS2-1116
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.0
> Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
> Reporter: Brennan Spies
> Priority: Blocker
> Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> <codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
> generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
> namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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
[jira] Commented: (AXIS2-1116) WSDL2Java with Xmlbeans binding is
not generating classes for all schema
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1116?page=comments#action_12433011 ]
Davanum Srinivas commented on AXIS2-1116:
-----------------------------------------
#1 is already fixed. please try a nightly.
> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
> Key: AXIS2-1116
> URL: http://issues.apache.org/jira/browse/AXIS2-1116
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.0
> Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
> Reporter: Brennan Spies
> Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> <codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
> generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
> namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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
[jira] Commented: (AXIS2-1116) WSDL2Java with Xmlbeans binding is
not generating classes for all schema
Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1116?page=comments#action_12433671 ]
Ajith Harshana Ranabahu commented on AXIS2-1116:
------------------------------------------------
#2 is fixed and the code checked in. Please test against the latest nightly and let us know
> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
> Key: AXIS2-1116
> URL: http://issues.apache.org/jira/browse/AXIS2-1116
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.0
> Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
> Reporter: Brennan Spies
> Priority: Blocker
> Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> <codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
> generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
> namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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
[jira] Commented: (AXIS2-1116) WSDL2Java with Xmlbeans binding is
not generating classes for all schema
Posted by "Brennan Spies (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1116?page=comments#action_12433158 ]
Brennan Spies commented on AXIS2-1116:
--------------------------------------
Downloaded nightly build (2006-09-07), and it looks like all of the issues except #2 have been fixed.
> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
> Key: AXIS2-1116
> URL: http://issues.apache.org/jira/browse/AXIS2-1116
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.0
> Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
> Reporter: Brennan Spies
> Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> <codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
> generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
> namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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
[jira] Resolved: (AXIS2-1116) WSDL2Java with Xmlbeans binding is
not generating classes for all schema
Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2-1116?page=all ]
Davanum Srinivas resolved AXIS2-1116.
-------------------------------------
Resolution: Fixed
#3 is because of a typo in your build.xml
urn:ejgallo:worklfow:service=com.ejgallo.workflow.service
should be
urn:ejgallo:workflow:service=com.ejgallo.workflow.service
Note the typo for "workflow"
-- dims
> WSDL2Java with Xmlbeans binding is not generating classes for all schema
> ------------------------------------------------------------------------
>
> Key: AXIS2-1116
> URL: http://issues.apache.org/jira/browse/AXIS2-1116
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: 1.0
> Environment: Windows XP, Axis 2.0 nightly build (2006-09-02)
> Reporter: Brennan Spies
> Priority: Blocker
> Attachments: files.zip
>
>
> I have 3 XML Schemas that are used by my service definition in Query.wsdl. I am specifying 'xmlbeans' as the databinding option and doing the code generation with the following ant task (see attached for source):
> <codegen wsdlfilename="${basedir}/xml/Query.wsdl" output="${basedir}" serverside="true"
> generateservicexml="true" packagename="com.ejgallo.workflow.service.query" synconly="true"
> namespaceToPackages="urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing,urn:ejgallo:worklfow:service=com.ejgallo.workflow.service,urn:ejgallo:workflow:service:query=com.ejgallo.workflow.service.query"
> databindingName="xmlbeans" serviceName="QueryWebService" generateAllClasses="true" serverSideInterface="true"
> testcase="true" unpackclasses="true"/>
> There are 3 problems here:
> 1) Only one of the schema files, workflowTypes.xsd, has XMLBeans source files generated for it, though the console output indicates that all 3 are found/referenced. (No problem when Xmlbeans' ant task is used instead).
> 2) Under the /resources directory, the referenced schema files are generated as 'xsd0.xsd', 'xsd1.xsd', and 'xsd2.xsd'. Because the original schema file names are referenced in the WSDL and XSD files, this leads to the appropriate files not being found when it is deployed as an .aar.
> 3) The 'namespaceToPackages' attribute on the ant task is not being honored, leading the source files for the generated Xmlbeans classes to be the default that Axis chooses for them based on the 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