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