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 "Pierre Casenove (JIRA)" <ji...@apache.org> on 2007/08/03 16:16:52 UTC

[jira] Closed: (AXIS2-3043) wsdl2java using jaxbri data binding fails

     [ https://issues.apache.org/jira/browse/AXIS2-3043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Casenove closed AXIS2-3043.
----------------------------------


Test OK using Axis2-1.3 RC3.
Code is correctly generated.

> wsdl2java using jaxbri data binding fails
> -----------------------------------------
>
>                 Key: AXIS2-3043
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3043
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: nightly
>         Environment: Axis2 1.3 Nightly; websphere6; eclipse 3.3
>            Reporter: Pierre Casenove
>            Assignee: Amila Chinthaka Suriarachchi
>         Attachments: AXIS2-3043.patch, faultywsdl.zip
>
>
> When trying to generate the java code from the attached wsdl using jaxbri databinding, an Exception is returned:
>  [java] Exception in thread "main" 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 TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265) 
>     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) 
>     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) 
>     [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException:No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1363 ) 
>     [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247) 
>     [java] ... 2 more 
>     [java] Caused by: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name TEST_REQUETE with namespace http://www.almerys.com/services/FSAServiceTest/xsd 
>     [java] at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputParamElement(AxisServiceBasedMultiLanguageEmitter.java:2823 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2623 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2191 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2117 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:2033 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1964 ) 
>     [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1320 ) 
>     [java] ... 3 more 
> Using the xjc.bat script provided in the offcial JAXB2.0.5 release, the classes are generated correctly.
> Java code is also generated correctly with xmlbeans and adb databinding.
> Ant task:
> <target name="wsdl2java" depends="clean,prepare">
> 	<delete dir="output" />
> 	<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
> 		<classpath refid="axis.classpath" />
> 		<arg value="-d" />
> 		<arg value="jaxbri" />
> 		<arg value="-u" />
> 		<arg value="-uri" />
> 		<arg file="${dir.wsdl}/${uri.wsdl}" />
> 		<arg value="-ss" />
> 		<arg value="-wv" />
> 		<arg value="1.1" />
> 		<arg value="-g" />
> 		<arg value="-sd" />
> 		<arg value="-o" />
> 		<arg file="output" />
> 		<arg value="-p" />
> 		<arg value="${package.prefix}" />
> 	</java>
> 	<mkdir dir="output/resources/META-INF" />
> 	<move todir="output/resources/META-INF">
> 		<fileset dir="output/resources">
> 			<!-- axis2 web services definitions file -->
> 			<include name="services.xml" />
> 			<include name="*.wsdl" />
> 			<include name="*.xsd" />
> 		</fileset>
> 	</move>
> </target>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org