axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From balaji hari <to.haribal...@gmail.com>
Subject org.apache.axis2.wsdl.codegen.CodeGenerationException: Element QName is null for RateRankError!
Date Tue, 28 Aug 2007 15:43:10 GMT

Hi,

I tried using wsdl2java with no data binding option on the attached wsdl
file and ran into following exception. (Axis2 1.2)

Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Element QName is null for RateRankError!
     [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:256)
     [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
     [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [java] Caused by:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Element QName is null for RateRankError!
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1281)
     [java] at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:238)
     [java] ... 2 more
     [java] Caused by: java.lang.RuntimeException: Element QName is null for
RateRankError!
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultParamElements(AxisServiceBasedMultiLanguageEmitter.java:2617)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getFaultElement(AxisServiceBasedMultiLanguageEmitter.java:2554)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2118)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2024)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1940)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1871)
     [java] at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1246)
     [java] ... 3 more
     [java] Java Result: 1

I found that the problem is with the soap:fault element.

<wsdl:message name="RateRankError">
	<wsdl:part element="ns3:RateRankError" name="errorMessage"/>
</wsdl:message>

<wsdl:fault message="tns:RateRankError"/>

I have used the following ant task

<target name="wsdl2java">
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"
classpathref="jarfiles">
			<arg line="-uri ${wsdl.uri}"/>
			<arg line="-ss"/>
			<arg line="-sd"/>
			<arg line="-p fmweb.wps.websvc"/>
			<arg line="-d none"/>
			<arg line="-o ./temp"/>
			<arg line="-S ./temp"/>
		</java>
</target>


Does code generation tool handle this case? Anyone faced similar issues?

   http://www.nabble.com/file/p12370480/RateRankService.wsdl
RateRankService.wsdl  http://www.nabble.com/file/p12370480/RateRankError.xsd
RateRankError.xsd 
Thanks in advance
Balaji

-- 
View this message in context: http://www.nabble.com/org.apache.axis2.wsdl.codegen.CodeGenerationException%3A-Element-QName-is-null-for-RateRankError%21-tf4342522.html#a12370480
Sent from the Axis - Dev mailing list archive at Nabble.com.


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