Hi All, I am new ot webservices and axis. I developed an axis webservice with JBuilder2005, which returns an object which contains an array of the following custom class-
public class Layer { private String name; private boolean visible; private String type; public Layer() { } } When I access this webservice I get the following error- org.xml.sax.SAXException: Invalid element in omwebservice.Layer - item org.apache.axis.AxisFault.makeFault (AxisFault.java:101) org.apache.axis.client.Call.invoke(Call.java:2423) org.apache.axis.client.Call.invoke(Call.java:2319) org.apache.axis.client.Call.invoke(Call.java:1776) omwebservice.OMServiceSoapBindingStub.getMap (OMServiceSoapBindingStub.java:383) ------------------------------------------ This is the response from webservice come like this- - <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/enc oding/" xsi:type="ns2:MapInfo" ....... - <layers soapenc:arrayType="ns2:Layer[6]" xsi:type="ns2:ArrayOfLayer"> <item href="#id2" /> <item href="#id3" /> <item href="#id4" /> <item href="#id5" /> <item href="#id6" /> <item href="#id7" /> </layers> </multiRef> ..... - <multiRef id="id7" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/enc oding/" xsi:type="ns3:Layer" xmlns:ns3="http://helper.om.rmsi.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <visible href="#id8" /> <type xsi:type="soapenc:string">geometry</type> <name xsi:type="soapenc:string">THEME_DEMO_BIGCITIES</name> </multiRef> ... ------------------------------- Here I see 'item' refers to location of the array element. Can anybody help me how to solve this problem. Thanks in advnce, Vinod