The Artima Developer Community
Sponsored Link

Web Services Forum
Axis: problem returning object with arrays

1 reply on 1 page. Most recent reply: Feb 28, 2007 10:09 PM by harry wellnes

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
alberto martin

Posts: 6
Nickname: wakeup
Registered: Oct, 2005

Axis: problem returning object with arrays Posted: Aug 22, 2006 3:03 AM
Reply to this message Reply
Advertisement
The webservice don't throw error. But the .net client don't get values of array. The xml response 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@ceit.es</email>
<plantas><plantas><direccion>m idir</direccion><idEmpresa>1</idEmpresa><idPlanta>1</ idPlanta><nombre>planta1</nombre><tecnologia xsi:nil="true"/><telefono>948</telefono></plantas></pla ntas>
</validarReturn></validarResponse></soapenv:Body>< /soapenv:Envelope>

I think the correct response should be with:
<plantas><PlantaIW><direccion>midir</direccion>&l t;idEmpresa>1</idEmpresa><idPlanta>1</idPlanta><nombre&g t;planta1</nombre><tecnologia xsi:nil="true"/><telefono>948</telefono></PlantaIW></pl antas>



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

The generated wsdl file:
<complexType name="UsuarioIW">
<sequence>
<element name="apellidos" nillable="true" type="xsd:string"/>
<element name="email" nillable="true" type="xsd:string"/>
<element name="nombre" nillable="true" type="xsd:string"/>
<element name="plantas" nillable="true" type="impl:ArrayOf_tns1_PlantaIW"/>
</sequence>
</complexType>

<complexType name="ArrayOf_tns1_PlantaIW">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="tns1:PlantaIW"/>
</sequence>
</complexType>

Could be because name property don't have a name?
How can I change name="item" to a real name?

Thanks in advance


harry wellnes

Posts: 3
Nickname: winnipeg
Registered: Feb, 2007

Re: Axis: problem returning object with arrays Posted: Feb 28, 2007 10:09 PM
Reply to this message Reply
hi gay,

i read ur problem i think this is some coding error in your programming so check it out what happans when you compile your code. otherwise go to the suitable links of website to solve this problem. one website is

http://www.webdesigningcompany.net

Flat View: This topic has 1 reply on 1 page
Topic: Questions about web services? Previous Topic   Next Topic Topic: Embedded Jetty6 with Axis2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use