axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre Casenove (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3043) wsdl2java using jaxbri data binding fails
Date Wed, 01 Aug 2007 06:56:53 GMT

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

Pierre Casenove updated AXIS2-3043:
-----------------------------------

    Attachment: faultywsdl.zip

Attaching the faulty wsdl. The issue seems to be linked with the xsd import as the code is
correctly generated if I don't do any imports.

> 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
>         Attachments: 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


Mime
View raw message