You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by don t <do...@verizonwireless.com> on 2008/09/10 20:47:44 UTC

wsdl2java with JiBX binding cannot unwrap integer param

1.	Use Axis2 1.4

2.	Download Axis2 jibx example
http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/jibx-library.zip

3.	Unzip it and configure axis_home and jibx-home

4.	In library.wsdl (see attached) change line 18 from

		<element name="isbn" type="string"/>

	to
		
		<element name="isbn" type="integer"/>

5.	Run ant generate-server

     [java] Retrieving document at './library.wsdl'.
     [java] log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.WSDL11ToAxisServiceBuilder).
     [java] log4j:WARN Please initialize the log4j system properly.
     [java] Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: Cannot unwrap element
{http://ws.sosnoski.com/library/wsdl}getBook: no format definition found for
type {http://www.w3.org/2001/XMLSchema}integer (used by element
{http://ws.sosnoski.com/library/wsdl}isbn)
     [java]     at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
     [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: java.lang.RuntimeException: Cannot unwrap element
{http://ws.sosnoski.com/library/wsdl}getBook: no format definition found for
type {http://www.w3.org/2001/XMLSchema}integer (used by element
{http://ws.sosnoski.com/library/wsdl}isbn)
     [java]     at
org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:801)
     [java]     at
org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:387)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at
org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:77)
     [java]     at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
     [java]     ... 2 more



http://www.nabble.com/file/p19417565/library.wsdl library.wsdl 
-- 
View this message in context: http://www.nabble.com/wsdl2java-with-JiBX-binding-cannot-unwrap-integer-param-tp19417565p19417565.html
Sent from the Axis - User mailing list archive at Nabble.com.


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