Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 11621 invoked from network); 9 Mar 2007 18:52:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2007 18:52:58 -0000 Received: (qmail 25134 invoked by uid 500); 9 Mar 2007 18:52:59 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 25015 invoked by uid 500); 9 Mar 2007 18:52:59 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 25004 invoked by uid 99); 9 Mar 2007 18:52:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 10:52:59 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.123.75.163] (HELO sosnoski.com) (206.123.75.163) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2007 10:52:47 -0800 Received: from [192.168.0.2] (ip-58-28-158-218.ubs-dsl.xnet.co.nz [58.28.158.218]) (authenticated bits=0) by sosnoski.com (8.12.10/8.12.10) with ESMTP id l29IqJlm009384 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 Mar 2007 13:52:26 -0500 Message-ID: <45F1ACE3.7090801@sosnoski.com> Date: Sat, 10 Mar 2007 07:52:19 +1300 From: Dennis Sosnoski User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: Unexpected creaton of an intermediate layer (wrapper class) by using Axis v1.1.1 References: <7888D4976326AA489AC7FC5FF2E1DA7E01034253@WEVEX001.de.corp.danet.com> <88f5d710703090442h2effa373s4c905f0f9ad41d9c@mail.gmail.com> In-Reply-To: <88f5d710703090442h2effa373s4c905f0f9ad41d9c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just to clarify, the limitation on unwrapping only parameters and not responses in 1.1.1 applies to ADB. Using JiBX data binding gives full unwrapping of both parameters and responses. XMLBeans doesn't support unwrapping at all, AFAIK. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Paul Fremantle wrote: > Karl > > The wrapping is basically part of how many toolkits create WSDLs these > days. Its based on an approach from Microsoft. > > The simple answer is add "-uw" (unwrap) to your WSDL2Java command line. > > In 1.1.1 this only unwraps parameters not responses but in 1.2 its > fixed to do both. > > If you want to understand the convention more, this explanation from > Anne Thomas Manes is probably the clearest available: > http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html > > > Paul > > On 3/9/07, Philipp, Karl wrote: >> Hi, >> >> Using the invocation >> >> %AXIS2_HOME%\bin\wsdl2java -uri addServicePort.wsdl -p danet -d adb -s >> >> I created the stub AddServicePortServiceStub.java. Surprisingly an >> additional intermediate layer represented by the class >> AddService0(...) has been created. This class is needed for a proper >> call of the service: >> >> public AddServiceResponse addService(AddService0 param) { >> >> EIMessageContext context = >> param.getAddService().getEiMessageContext(); >> ... >> } >> >> That is, the AddService0 wraps the original AddService class I'm >> interested in. But why is this wrapping needed? >> >> If I try the Axis2UserGuideService example >> >> >> http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html#createcl >> ients >> >> such intermediate layers will be not created. For example there is no >> TwoWayOneParameterEchoRequest0 class: >> >> TwoWayOneParameterEchoResponse >> TwoWayOneParameterEcho(TwoWayOneParameterEchoRequest param) { >> ... >> } >> >> At the present time we plan to migrate our connector from JBossWS to >> Axis2. But the additional AddService0 class is a migration issue. >> >> Is there an approach to avoid this "wrapper class"? >> >> Because I used the same invocation as for the Axis2UserGuideService >> example I guess it depends on the entries of the WSDL. >> >> -- >> Karl >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org >> For additional commands, e-mail: axis-user-help@ws.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org