Thank you Henry and Mike for your replies. I am using axis 1.1 nightly build 30 August For the illustration of this effect I have developed a very simple Web service. Which returns a Bean containing an array
---------------------------------------------------------------------------- Service code ---------------------------------------------------------------------------- public class service1 { public bean1 returnarr() { bean1 a=new bean1(); int[] b=new int[3]; b[0]=1; b[1]=2; b[2]=3; a.setMyArr(b); a.setA(6); return a; } } ------------------------------------------------------------------------------------------------------------- Bean Code ------------------------------------------------------------------------------------------------------------- public class bean1 { public int myArr[]; public int a; public int[] getMyArr(){ return myArr; } public void setMyArr(int[] myArr) { this.myArr=myArr; } public int getA() { return a; } public void setA(int a) { this.a=a; } } -------------------------------------------------------------------------------------------------------------------- Wsdl used for generating .net client stubs -------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://DefaultNamespace" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://DefaultNamespace" xmlns:intf="http://DefaultNamespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types><schema elementFormDefault="qualified" targetNamespace="http://DefaultNamespace" xmlns="http://www.w3.org/2001/XMLSchema"><complexType name="ArrayOf_xsd_int"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]"/></restriction></complexContent></complexType><complexType name="bean1"><sequence><element name="a" type="xsd:int"/><element name="myArr" nillable="true" type="xsd:int" minOccurs="0" maxOccurs="unbounded"/></sequence></complexType><element name="returnarr"><complexType/></element><element name="returnarrResponse"><complexType><sequence><element name="returnarrReturn" type="impl:bean1"/></sequence></complexType></element></schema></wsdl:types> <wsdl:message name="returnarrResponse"> <wsdl:part element="intf:returnarrResponse" name="parameters"/> </wsdl:message> <wsdl:message name="returnarrRequest"> <wsdl:part element="intf:returnarr" name="parameters"/> </wsdl:message> <wsdl:portType name="service1"> <wsdl:operation name="returnarr"> <wsdl:input message="intf:returnarrRequest" name="returnarrRequest"/> <wsdl:output message="intf:returnarrResponse" name="returnarrResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="service1SoapBinding" type="intf:service1"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="returnarr"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="returnarrRequest"> <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/> </wsdl:input> <wsdl:output name="returnarrResponse"> <wsdlsoap:body namespace="http://DefaultNamespace" use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="service1Service"> <wsdl:port binding="intf:service1SoapBinding" name="service1"> <wsdlsoap:address location="http://127.0.0.1:4000/axis/services/service1"/> </wsdl:port> </wsdl:service> </wsdl:definitions> ------------------------------------------------------------------------------------------------------------------- Axis response on wire ----------------------------------------------------------------------------------------------------------------- HTTP/1.1 100 Continue HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Transfer-Encoding: chunked Date: Mon, 29 Sep 2003 06:37:17 GMT Server: Apache Coyote/1.0 259 <?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> <returnarrResponse xmlns="http://DefaultNamespace"> <returnarrReturn> <a>6</a> <myArr soapenc:arrayType="xsd:int[3]" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <item xmlns="">1</item> <item xmlns="">2</item> <item xmlns="">3</item> </myArr> </returnarrReturn> </returnarrResponse> </soapenv:Body> </soapenv:Envelope> 0 --------------------------------------------------------------------------------------------------------------------------------------- .Net exception trace ------------------------------------------------------------------------------------------------------------------------------------- _message=(0x04a772d0) "There is an error in XML document (8, 7)." _innerException=(0x04a72918) <System.Xml.XmlException> Ankit Gupta