axis-java-dev mailing list archives

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

Actually, it looks like I've looks like I've made an error with the namespaces above, but
this is not the case: I've simply changed the namespace from urn:ejgallo:workflow:query to
urn:ejgallo:workflow:service since I filed the original bug (1089). The error remains the

> WSDL2Java code generator not recognizing global element in referenced schema
> ----------------------------------------------------------------------------
>                 Key: AXIS2-1107
>                 URL:
>             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:
> 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:
For more information on JIRA, see:


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

View raw message