Hi Anne, Here my wsdl and wsdd files: (axis 1.4)

WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace=" http://pcacastro:8080/ModuloIngenieria/services/InterfazWeb" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl=" http://pcacastro:8080/ModuloIngenieria/services/InterfazWeb" xmlns:intf="http://pcacastro:8080/ModuloIngenieria/services/InterfazWeb" xmlns:tns1=" http://interfazweb.serviciosweb.moduloingenieria.xxx.es" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/ " xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema ">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
  <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace=" http://interfazweb.serviciosweb.moduloingenieria.xxx.es" xmlns="http://www.w3.org/2001/XMLSchema">
      <element name="validar">
        <complexType/>
      </element>
      <element name="validarResponse">
        <complexType>
          <sequence>
            <element name="validarReturn" type="tns1:UsuarioIW"/>
          </sequence>
        </complexType>
      </element>
      <complexType name="PlantaIW">
        <sequence>
          <element name="idPlanta" type="xsd:int"/>
          <element name="nombre" nillable="true" type="xsd:string"/>
        </sequence>
      </complexType>
      <complexType name="UsuarioIW">
        <sequence>
          <element name="email" nillable="true" type="xsd:string"/>
          <element name="nombre" nillable="true" type="xsd:string"/>
          <element maxOccurs="unbounded" name="permisos" nillable="true" type="xsd:int"/>
          <element maxOccurs="unbounded" name="plantas" nillable="true" type="tns1:PlantaIW"/>
        </sequence>
      </complexType>
      <element name="damePlanta">
        <complexType/>
      </element>
      <element name="damePlantaResponse">
        <complexType>
          <sequence>
            <element name="damePlantaReturn" type="tns1:PlantaIW"/>
          </sequence>
        </complexType>
      </element>
    </schema>
  </wsdl:types>
    <wsdl:message name="validarResponse">
        <wsdl:part element="tns1:validarResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="damePlantaRequest">
        <wsdl:part element="tns1:damePlanta" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="damePlantaResponse">
        <wsdl:part element="tns1:damePlantaResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="validarRequest">
        <wsdl:part element="tns1:validar" name="parameters"/>
    </wsdl:message>

    <wsdl:portType name="InterfazWeb">
        <wsdl:operation name="validar">
            <wsdl:input message="impl:validarRequest" name="validarRequest"/>
            <wsdl:output message="impl:validarResponse" name="validarResponse"/>
        </wsdl:operation>
        <wsdl:operation name="damePlanta">
            <wsdl:input message="impl:damePlantaRequest" name="damePlantaRequest"/>
            <wsdl:output message="impl:damePlantaResponse" name="damePlantaResponse"/>
        </wsdl:operation>
    </wsdl:portType>


    <wsdl:binding name="InterfazWebSoapBinding" type="impl:InterfazWeb">
        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="validar">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="validarRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="validarResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="damePlanta">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="damePlantaRequest">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="damePlantaResponse">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="InterfazWebService">
        <wsdl:port binding="impl:InterfazWebSoapBinding" name="InterfazWeb">
            <wsdlsoap:address location=" http://pcacastro:8080/ModuloIngenieria/services/InterfazWeb"/>
        </wsdl:port>
    </wsdl:service>

server-config.wsdd
<service name="InterfazWeb" provider="java:RPC" style="wrapped" use="literal">
  <wsdlFile>C:\Program Files\Apache Software Foundation\apache- tomcat-5.5.16\webapps\ModuloIngenieria\WEB-INF\InterfazWeb.xml</wsdlFile>
  <requestFlow>
   <handler type="java:es.xxx.moduloingenieria.serviciosweb.AutenticacionSoap"/>
  </requestFlow>
  <parameter name="allowedMethods" value="*"/>
  <parameter name="className" value="es.xxx.moduloingenieria.serviciosweb.interfazweb.InterfazWeb"/>
  <beanMapping languageSpecificType="java: es.xxx.moduloingenieria.serviciosweb.interfazweb.elementos.HistoricoAnaliticaIW" qname="ns1:HistoricoAnaliticaIW" xmlns:ns1="http://interfazweb.serviciosweb.moduloingenieria.xxx.es "/>
  <beanMapping languageSpecificType="java:es.xxx.moduloingenieria.serviciosweb.interfazweb.elementos.PlantaIW" qname="ns2:PlantaIW" xmlns:ns2=" http://interfazweb.serviciosweb.moduloingenieria.xxx.es"/>
  <beanMapping languageSpecificType="java:es.xxx.moduloingenieria.serviciosweb.interfazweb.elementos.UsuarioIW" qname="ns3:UsuarioIW" xmlns:ns3=" http://interfazweb.serviciosweb.moduloingenieria.xxx.es"/>
 </service>


Thanks in advance!


----- Original Message -----
From: "Anne Thomas Manes" < [EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, August 23, 2006 8:46 PM
Subject: Re: Axis array serialization problem


> For some reason you have an extra layer of wrapping in the second
> array. (and you still have the inner element with the same name as the
> wrapping element, which is an error).
>
> Please post the schema, WSDL, and WSDD.
>
> Anne
>
> On 8/23/06, HHDirecto. Net < [EMAIL PROTECTED]> wrote:
>> Axis web service response is ok (I think) but, .net client don't get
>> "plantas" array it get null (Now It get int array successfull).
>>
>> web service response:
>>
>> <?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">
>> <?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><validarRespons
e
>> xmlns="http://interfazweb.serviciosweb.moduloingenieria.xxx.es
>> ">
>> <validarReturn><email>[EMAIL PROTECTED]</email><nombre>Usuario</nombre>
>>
>> <permisos><permisos>1</permisos><permisos>2</permisos></permisos>
>>
<plantas><plantas><idPlanta>1</idPlanta><nombre>planta1</nombre></planta
s></plantas>
>>
>> </validarReturn></validarResponse>
>> </soapenv:Body></soapenv:Envelope>
>>
>> Thanks in advance
>>
>> 2006/8/23, Anne Thomas Manes <[EMAIL PROTECTED]>:
>> > How does it fail?
>> >
>> > On 8/23/06, HHDirecto. Net <[EMAIL PROTECTED]> wrote:
>> > >
>> > >
>> > > Thanks. I solved it with a array of int. But I have too an array
of
>> class
>> > > and it fails. This is my wsdl:
>> > >
>> > > <complexType name="PlantaIW">
>> > > <sequence>
>> > > <element name="idPlanta" type="xsd:int"/>
>> > > <element name="nombre" nillable="true" type="xsd:string"/>
>> > > </sequence>
>> > > </complexType>
>> > >
>> > > <complexType name="UsuarioIW">
>> > > <sequence>
>> > >
>> > >  <element name="email" nillable="true" type="xsd:string"/>
>> > > <element name="nombre" nillable="true" type="xsd:string"/>
>> > > <element maxOccurs="unbounded" name="permisos" nillable="true"
>> > > type="xsd:int"/>
>> > > <element maxOccurs="unbounded" name="plantas" nillable="true"
>> > > type="tns1:PlantaIW"/>
>> > > </sequence>
>> > > </complexType>
>> > >
>> > >
>> > > Thanks in advance
>> > >
>> > > > >> 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]
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>> ---------------------------------------------------------------------
>> > 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]
>


Reply via email to