You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "HHDirecto.Net" <hh...@gmail.com> on 2006/08/22 13:35:45 UTC

Re: HELP ME PLEASE!! Problem returning and array inside of another array

I read you solved to Eduardo this issue

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200511.mbox/%3Cbf414ee60511080327u10df39eao1730042442d48a9c@mail.gmail.com%3E



I have the same problem but I can't solve it. My wsdd description is:



  <service name="InterfazWeb" provider="java:RPC" style="wrapped"
use="literal">

    <parameter name="className" value="
es.ceit.moduloingenieria.serviciosweb.interfazweb.InterfazWeb"/>

    <parameter name="allowedMethods" value="*"/>



  <beanMapping qname="ns:PlantaIW" xmlns:ns="
http://interfazweb.serviciosweb.moduloingenieria.ceit.es"

    languageSpecificType="java:
es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.PlantaIW"/>



  <beanMapping qname="ns:UsuarioIW" xmlns:ns="
http://interfazweb.serviciosweb.moduloingenieria.ceit.es"

    languageSpecificType="java:
es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.UsuarioIW"/>



 <requestFlow>

   <handler type="java:
es.ceit.moduloingenieria.serviciosweb.AutenticacionSoap"></handler>

  </requestFlow>

 </service>



The returned object is UsuarioIW, and it have an array of plantaIW elements
but the return of 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.moduloingenieria.sample.es
"><validarReturn><apellidos>Uno</apellidos><email>usuario1@sample.es
</email><esCliente>true</esCliente><nombre>Usuario</nombre><notificacionesPendientes>false</notificacionesPendientes>

*<permisos><permisos>1</permisos><permisos>2</permisos></permisos>*

*<plantas><plantas><direccion>midir</direccion><idEmpresa>1</idEmpresa><idPlanta>1</idPlanta><nombre>planta1</nombre><tecnologia
xsi:nil="true"/><telefono>948</telefono></plantas></plantas>*

<telefono>943556685</telefono><usuario>usuario1</usuario></validarReturn></validarResponse></soapenv:Body></soapenv:Envelope>



And I think it should be:

*<permisos><int>1</ int >< int >2</ int ></permisos>*

*<plantas>< PlantaIW
><direccion>midir</direccion><idEmpresa>1</idEmpresa><idPlanta>1</idPlanta><nombre>planta1</nombre><tecnologia
xsi:nil="true"/><telefono>948</telefono></ PlantaIW ></plantas>*

* *

The .net client don't read successfull this arrays

Thanks in advance

Re: HELP ME PLEASE!! Problem returning and array inside of another array

Posted by Anne Thomas Manes <at...@gmail.com>.
Make sure that you are using Axis 1.4.
Also, start with your WSDL file and generate the code from it.

Anne

On 8/22/06, HHDirecto. Net <hh...@gmail.com> wrote:
>
>
> I read you solved to Eduardo this issue
>
> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200511.mbox/%3Cbf414ee60511080327u10df39eao1730042442d48a9c@mail.gmail.com%3E
>
>
>
> I have the same problem but I can't solve it. My wsdd description is:
>
>
>
>    <service name="InterfazWeb" provider="java:RPC" style="wrapped"
> use="literal">
>
>      <parameter name="className"
> value="es.ceit.moduloingenieria.serviciosweb.interfazweb.InterfazWeb"/>
>
>      <parameter name="allowedMethods" value="*"/>
>
>
>
>    <beanMapping qname="ns:PlantaIW"
> xmlns:ns="http://interfazweb.serviciosweb.moduloingenieria.ceit.es"
>
>
> languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.PlantaIW"/>
>
>
>
>    <beanMapping qname="ns:UsuarioIW"
> xmlns:ns="http://interfazweb.serviciosweb.moduloingenieria.ceit.es"
>
>
> languageSpecificType="java:es.ceit.moduloingenieria.serviciosweb.interfazweb.elementos.UsuarioIW"/>
>
>
>
>   <requestFlow>
>
>     <handler
> type="java:es.ceit.moduloingenieria.serviciosweb.AutenticacionSoap"></handler>
>
>    </requestFlow>
>
>   </service>
>
>
>
> The returned object is UsuarioIW, and it have an array of plantaIW elements
> but the return of 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.moduloingenieria.sample.es"><validarReturn><apellidos>Uno</apellidos><email>
> usuario1@sample.es</email><esCliente>true</esCliente><nombre>Usuario</nombre><notificacionesPendientes>false</notificacionesPendientes>
>
> <permisos><permisos>1</permisos><permisos>2</permisos></permisos>
>
> <plantas><plantas><direccion>midir</direccion><idEmpresa>1</idEmpresa><idPlanta>1</idPlanta><nombre>planta1</nombre><tecnologia
> xsi:nil="true"/><telefono>948</telefono></plantas></plantas>
>
> <telefono>943556685</telefono><usuario>usuario1</usuario></validarReturn></validarResponse></soapenv:Body></soapenv:Envelope>
>
>
>
> And I think it should be:
>
> <permisos><int>1</ int >< int >2</ int ></permisos>
>
> <plantas>< PlantaIW
> ><direccion>midir</direccion><idEmpresa>1</idEmpresa><idPlanta>1</idPlanta><nombre>planta1</nombre><tecnologia
> xsi:nil="true"/><telefono>948</telefono></ PlantaIW
> ></plantas>
>
>
>
> The .net client don't read successfull this arrays
>
> Thanks in advance
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org