Hi, I believe the JiBX has not got an extensive support for unwrapped document style. Hence you had to change the WSDL as well as the binding file. I suggest you go in for the wrapped style which is also a preffered option over unwrapped. The way you are passing the binding file to the code gen task is correct i.e. using the "-Ebindingfile" option. Hope this helps :-) Regards Nile
Benoit Decherf <[EMAIL PROTECTED]> wrote: Hi, I'm trying to create a webservice using jibx. So first, I create my business class and my dto. Then, I create the jibx binding: java -cp ~/tools/jibx-genbinding.jar:~/jibx/lib/jibx-bind.jar:src/ org.jibx.binding.BindingGenerator -f resources/binding.xml -m samples.quickstart.dto.Person Then, the wsdl: java2wsdl.sh -o resources/ -cp build -cn samples.quickstart.service.jibx.TestService And now, I want to create the message receiver and the skeleton interface. But when if I just execute: wsdl2java.sh -uri TestService.wsdl -o build -d jibx -Ebindingfile resources/binding.xml -uw -sd -ss --ssi I've got an error: Caused by: java.lang.RuntimeException: Cannot unwrap element {http://jibx.service.quickstart.samples/xsd}getPersonResponse: no abstract mapping definition found for type {http://dto.quickstart.samples/xsd}Person (used by element {http://jibx.service.quickstart.samples/xsd}return) at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGenerationUtility.java:576) To generate the classes I need first to modify the binding and the wsdl. What is wrong with the commands ? My other question is : How can I pass the binding file to the codegen task ? --------------------------------- Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com