Hi all, I have a detached enum definition.
... <s:element name="GetProducs"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="guid" type="s:string" /> <s:element minOccurs="1" maxOccurs="1" name="id" type="s:int" /> <s:element minOccurs="1" maxOccurs="1" name="abc" type="tns:ABCEnum" /> </s:sequence> </s:complexType> </s:element> <s:simpleType name="ABCEnum"> <s:restriction base="s:string"> <s:enumeration value="AAA" /> <s:enumeration value="BBB" /> <s:enumeration value="CCC" /> </s:restriction> </s:simpleType> ... [echo] Running WSDL2Java task [mkdir] Created dir: /home/zzz/proj/client/gen [java] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Cannot unwrap element {http://an.ns.com/}GetProducs: no format definition found for type {http://an.ns.com/}ABCEnum (used by element {http://an.ns.com/}abc) [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: java.lang.RuntimeException: Cannot unwrap element {http://an.ns.com/}GetProducs: no format definition found for type {http://an.ns.com/}ABCEnum (used by element {http://an.ns.com/}abc) [java] at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:780) [java] at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility.java:382) [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:585) [java] at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtension.java:74) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:209) [java] ... 2 more Could you please advice me how can I solve this issue? Thanks in advance, Andrey. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users