On 3/6/07, Florian Wachs <[EMAIL PROTECTED]> wrote:
Hello, I´m from Germany, so please excuse my bad english :-) . Is it possible to configure Axis2 so that response objects aren´t wrapped ? For example: When I create a stub class with wsdl2java, I have to use the service the following way: VersionStub v = new VersionStub(); String version = v.getVersion().get_return(); But I want the String result directly: String version = v.getVersion(); I need this because of interoperability with other clients and I don´t understand the benifits from wrapping anyway. Maby it´s better for the XML Parser ? I know that wsdl2java (should) support this with the -uw option on the client side, but this won´t help me. Is there any setting to stop Axis2 from doing it (maybe my Question is simply stupid) So, I hope you´re not to confused because of my language skills :-) Thanks a lot
The message which should pass in the soap body is defined in the wsdl file itself. When you generate the code (by giving a wsdl) the ultimate message send in the body is in the same form that wsdl defines it. Unwrapping has nothing to do with this. It simply provides a simple method signature without outer (wrapping) classes. So if you want to change the message you send (in soapbody) you have to change the wsdl accordingly and reproduce the code. if you can send you wsdl and the request you want to sent it can further help you on this. -- Amila Suriarachchi, WSO2 Inc.
