You can pass a bean as a parameter, yes. The big difference is that you may pass multiple beans and parameters using WRAPPED, but you may pass only one bean when using unwrapped.
Anne On 7/4/05, Patrick Quinn <[EMAIL PROTECTED]> wrote: > Hi Anne > > Given what you have said below, is acceptable to pass a bean using the > WRAPPED style as well as unwrapped doc/lit? > > Pat > > -----Original Message----- > From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] > Sent: 04 July 2005 16:19 > To: [email protected] > Subject: Re: Question about doc\literal? > > > WRAPPED *is* document/literal. WRAPPED just uses a convention that wraps > the input document in an element that has the same name as your > operation. By doing so, it makes it much easier for Axis to figure out > how to dispatch the request. Wrapped also allows you to send multiple > parameters in your request. (SOAP allows only one input element per > operation.) > > If you want to use unwrapped doc/literal, then you must do the > following: > - you must wrap your multiple input parameters into a single bean > - you must define a mapping of your input element qname to the desired > Java method using the <operation> element in the WSDD (see > http://www.osmoticweb.com/axis-wsdd/operation.htm) > > But it's really much easier if you use the WRAPPED convention. > > Anne > > On 7/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi All, > > I write a simple Java file: > > package sample; > > public class Hello{ > > public String echo(String str,int a){ > > return str+"------"+a; > > } > > } > > Then I obtain a wsdl file through Java2WSDL tool which specifies the > > style is DOCUMENT and the use is Literal.After get the wsdl > > file,generate associated java files through WSDL2Java.When invoke the > > service,it throws NullPointerException both the client and server. > > > > But if I specifies the style of the service is WRAPPED and the use is > > LITERAL,it's OK! > > > > Please let me know if anyone has encountered such > > problem before and any pointers would be very useful. > > > > Thanks in Advance, > > > > Best Regards, > > > > Robert Zhang > > Email:[EMAIL PROTECTED] > > Tel:86-010-62014411-2437 > > > > > This e-mail and any attachments may be confidential and/or legally > privileged. If you have received this e-mail and you are not a named > addressee, please inform Evolving Systems TIS at [EMAIL PROTECTED] and then > delete the e-mail from your system. If you are not a named addressee you must > not use, disclose, distribute, copy, print or rely on this e-mail. To ensure > regulatory compliance and for the protection of our clients and business, > Evolving Systems may monitor and read e-mails sent to and from its servers. > Although Evolving Systems routinely screens for viruses, addressees should > scan this e-mail and any attachments for viruses. Evolving Systems makes no > representation or warranty as to the absence of viruses in this e-mail or any > attachments. > > Registered Office: One Angel Square, Torrents Street, London. EC1V 1PL. > Registered number 2325854 >
