WSDL2Java code generator not recognizing global element in referenced schema
----------------------------------------------------------------------------
Key: AXIS2-1107
URL: http://issues.apache.org/jira/browse/AXIS2-1107
Project: Apache Axis 2.0 (Axis2)
Issue Type: Bug
Components: Tools
Affects Versions: 1.0
Environment: Windows XP, Axis 2.0 version 1.0 as well as 2006-09-02
nightly build, see files attached to bug 1089
Reporter: Brennan Spies
I have an issue doing code generation from my WSDL, and found that WSDL2Java is
unable to recognize an element that is globally defined in an XML schema that
is imported into the Types section. The appropriate files are attached to Bug
1089.
I am using the ant task to do the build:
<taskdef name="codegen"
classname="org.apache.axis2.tool.ant.AntCodegenTask"
classpath="${basedir}/util/axis2-tools.jar" />
<target name="generate">
<codegen wsdlfilename="${basedir}/xml/Query.wsdl"
output="${basedir}" serverside="true"
generateservicexml="true"
packagename="com.ejgallo.workflow.service.query" synconly="true"
namespaceToPackages="urn:ejgallo:workflow:query=com.ejgallo.workflow.service.query,urn:ejgallo:workflow:routing=com.ejgallo.workflow.service.routing"
databindingName="xmlbeans"
serviceName="QueryWebService"/>
</target>
I am getting the error:
BUILD FAILED
C:\Java\Projects\InConcertServiceQueryModule\generate.xml:23:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to
the name Retrieve with namespace urn:ejgallo:workflow:service
I had to switch the following
<message>
<part name="Retrieve" element="qry:Retrieve"/>
</message>
to
<message>
<part name="Retrieve" type="qry:queryType"/>
</message>
in order to get the top-down code generation to work.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]