all groups > dotnet xml > april 2004 >
You're in the

dotnet xml

group:

Specified array type is not recognized in web service response


Specified array type is not recognized in web service response Tomi Laamanen
4/29/2004 5:16:04 AM
dotnet xml:
we have problems in WebService -> .NET response

Response look OK in XMLSpy and tcpTrace

<m:AGW014N1Response xmlns:m="urn:com-softwareag-entirex-rpc:AGW014N1"><ArrayOfMAA SOAP-ENC:arrayType="MAA[100]" xsi:type="SOAP-ENC:Array"><MAA><MAATUNNUS xsi:type="xsd:string">AT</MAATUNNUS><MAANIMI xsi:type="xsd:string">IT#VALTA</MAANIMI></MAA><MAA><MAATUNNUS xsi:type="xsd:string">BE</MAATUNNUS><MAANIMI xsi:type="xsd:string">BELGIA</MAANIMI></MAA><MAA><MAATUNNUS xsi:type="xsd:string">DE</MAATUNNUS><MAANIMI xsi:type="xsd:string">SAKSA</MAANIMI></MAA></ArrayOfMAA

When trying in .NET it shows error
"There is an error in XML document (1, 435)."
"The specified type was not recognized: name='MAA', namespace='', at <ArrayOfMAA xmlns=''>.
which is this tag <ArrayOfMAA SOAP-ENC:arrayType="MAA[100]" xsi:type="SOAP-ENC:Array"

It seems that .NET doesn't like SOAP-ENC:arrayType="MAA[100]" -part

RE: More information: Specified array type is not recognized in web service response Tomi Laamanen
4/29/2004 5:51:05 AM
Here is the content of WSDL -file we used when calling Web service

<?xml version='1.0' encoding='utf-8'?><!-- Generated 21.4.2004 12:19:49 by Software AG SOAP Toolkit Wizard, Version 7.1.1.30 --><definitions name='AGW014N1' targetNamespace='http://namespace.softwareag.com/entirex/xml/mapping
xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:xsd='http://www.w3.org/2001/XMLSchema
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/
xmlns:tns='http://namespace.softwareag.com/entirex/xml/mapping

[quoted text, click to view]
namespace='urn:com-softwareag-entirex-rpc:AGW014N1
/></input><output><soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/
namespace='urn:com-softwareag-entirex-rpc:AGW014N1
AddThis Social Bookmark Button