Hi. I'm getting the following error from my Java client that uses code from WSDL2Java:
org.xml.sax.SAXException: Invalid element in com.foo.ws.ArrayOfAnyType - anyType I am returning in my response a System.Collections.ArrayList from a C# web service. For XML Request: POST /FooService/Service1.asmx HTTP/1.0 Content-Length: 320 Host: localhost Content-Type: text/xml; charset=utf-8 SOAPAction: "http://tempuri.org/GetFooSystems" <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <GetFooSystems xmlns="http://tempuri.org/"/> </SOAP-ENV:Body> </SOAP-ENV:Envelope> -------------------------------------------------------- XML Response: HTTP/1.1 200 OK Server: Microsoft-IIS/5.1 Date: Wed, 13 Mar 2002 14:15:04 GMT Cache-Control: private, max-age=0 Content-Type: text/xml; charset=utf-8 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetFooSystemsResponse xmlns="http://tempuri.org/"><GetFooSystemsResult><anyType xsi:type="xsd:string">DOO</anyType><anyType xsi:type="xsd:string">BOO</anyType><anyType xsi:type="xsd:string">HOO</anyType></GetFooSystemsResult></GetFooSystemsResponse></soap:Body></soap:Envelope> Would anyone know why I'm getting the exception? Any info appreciated. TS _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com