axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brennan Spies (JIRA)" <>
Subject [jira] Created: (AXIS2-1107) WSDL2Java code generator not recognizing global element in referenced schema
Date Sun, 03 Sep 2006 17:45:22 GMT
WSDL2Java code generator not recognizing global element in referenced schema

                 Key: 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"

			databindingName="xmlbeans" serviceName="QueryWebService"/>

I am getting the error:

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

     <part name="Retrieve" element="qry:Retrieve"/>


     <part name="Retrieve" type="qry:queryType"/>

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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message