Run java2wsdl. Edit the generated WSDL file. Run wsdl2java. Deploy using the <wsdlFile> option.
On 8/22/06, HHDirecto. Net <[EMAIL PROTECTED]> wrote:
Thanks, I'm using 1.4 version. My wsdl file is generated automatically by axis, how can I say to axis to generate wsdl as your example? Thankss a lot 2006/8/22, Anne Thomas Manes < [EMAIL PROTECTED]>: > This is an unresolved bug in Axis. > Define your internal array as unwrapped: > > <complexType name="MyUser"> > <sequence> > <element name="name" nillable="true" type="xsd:string"/> > <element name="email" nillable="true" type="xsd:string"/> > <element name="permisos" nillable="true" type="xsd:int" maxOccurs="unbounded"/> > </sequence> > </complexType> > > Anne > > On 8/22/06, HHDirecto. Net < [EMAIL PROTECTED]> wrote: > > > > I use "soapenv:Envelope ". > > > > My array is defined in wsdl as: > > <complexType name="MyUser"> > > <sequence> > > <element name="name" nillable="true" type="xsd:string"/> > > <element name="email" nillable="true" type="xsd:string"/> > > <element name="permisos" nillable="true" type="impl:ArrayOf_xsd_int "/> > > </sequence> > > </complexType> > > > > And then: > > <complexType name="ArrayOf_xsd_int"> > > <sequence> > > <element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:int"/> > > </sequence> > > > > The response of my webservice is: > > <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope > > xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi=" > > http://www.w3.org/2001/XMLSchema-instance "><soapenv:Body> > > <validarResponse > > xmlns="http://interfazweb.serviciosweb.myapp.com"> > > <validarReturn><name>Juan</name><email> [EMAIL PROTECTED]</email> > > <permisos><permisos>1</permisos><permisos>2</permisos></permisos> > > </validarReturn></validarResponse></soapenv:Body></soapenv:Envelope> > > > > I think the response should be > > <permisos><int>1</ int><int>2</int ></permisos> > > > > What is the problem? > > > > Thanksss > > > > > > > > > ----- Original Message ----- > > From: "Anne Thomas Manes" <[EMAIL PROTECTED]> > > To: <[email protected] >; "Martin Gainty" < [EMAIL PROTECTED]> > > Sent: Monday, August 21, 2006 4:34 PM > > Subject: Re: Axis array serialization problem > > > > > > > These are not good samples. You don't want to extend soapenc:Array > > > unless you are using SOAP encoding, and if you are using SOAP > > > encoding, then you don't want to specify maxOccurs="unbounded", and > > > you should specify the wsdl:arrayType attribute. An example of a > > > proper definition of an array that extends soapenc:Array is: > > > > > > <complexType name="ArrayOfFloat"> > > > <complexContent> > > > <restriction base="soapenc:Array"> > > > <attribute ref="soapenc:arrayType" > > > wsdl:arrayType="xsd:float[]"/> > > > </restriction> > > > </complexContent> > > > </complexType> > > > > > > If you are not using SOAP encoding, then an example of a proper > > > definition of an array is: > > > > > > <complexType name="aliasArray"> > > > <sequence> > > > <element name="Alias" type="string" > > > maxOccurs="unbounded"/> > > > </sequence> > > > </complexType> > > > > > > Anne > > > > > > On 8/21/06, Martin Gainty < [EMAIL PROTECTED]> wrote: > > >> > > >> > > >> <!-- excerpts from > > >> /axis-1_4/test/wsdl/arrays/ArrayTest.wsdl --> > > >> > > >> <!-- An example of an array of Strings --> > > >> <xsd:complexType name="petArray"> > > >> <xsd:complexContent> > > >> <xsd:restriction base="soapenc:Array"> > > >> <xsd:sequence> > > >> <xsd:element name="alias" type="xsd:string" > > >> maxOccurs="unbounded"/> > > >> </xsd:sequence> > > >> </xsd:restriction> > > >> </xsd:complexContent> > > >> </xsd:complexType> > > >> > > >> <!---- An example of an Array of ints ---------->\ > > >> <xsd:complexType name="intArray"> > > >> <xsd:complexContent> > > >> <xsd:restriction base="soapenc:Array"> > > >> <xsd:sequence> > > >> <xsd:element name="alias" type="xsd:int" > > >> maxOccurs="unbounded"/> > > >> </xsd:sequence> > > >> </xsd:restriction> > > >> </xsd:complexContent> > > >> </xsd:complexType> > > >> > > >> HTH, > > >> M- > > >> > > ********************************************************************* > > >> This email message and any files transmitted with it contain confidential > > >> information intended only for the person(s) to whom this email message is > > >> addressed. If you have received this email message in error, please > > >> notify > > >> the sender immediately by telephone or email and destroy the original > > >> message without making a copy. Thank you. > > >> > > >> > > >> > > >> > > >> > > >> ----- Original Message ----- > > >> From: HHDirecto.Net > > >> To: [email protected] > > >> Sent: Monday, August 21, 2006 7:11 AM > > >> Subject: Axis array serialization problem > > >> > > >> I have a problem returning a array in axis. > > >> I read about it in > > >> > > http://marc2.theaimsgroup.com/?l=axis-dev&m=114909771503014&w=2 > > >> > > >> And I read about this solution > > >> > > http://marc.theaimsgroup.com/?l=axis-user&m=109631383200039&w=2 > > >> > > http://www.mail-archive.com/[email protected]/msg26566.html > > >> > > >> But this patch don't run in axis 1-4. > > >> > > >> Anyone knows about it? > > >> > > >> Thanks in advance > > >> > > >> http://www.hhdirecto.net > > >> http://www.dechiste.com > > >> > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
