Specified array type is not recognized in web service response

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tomi Laamanen

    Specified array type is not recognized in web service response

    we have problems in WebService -> .NET response

    Response look OK in XMLSpy and tcpTrace

    <m:AGW014N1Resp onse xmlns:m="urn:co m-softwareag-entirex-rpc:AGW014N1">< ArrayOfMAA SOAP-ENC:arrayType=" MAA[100]" xsi:type="SOAP-ENC:Array"><MAA ><MAATUNNUS xsi:type="xsd:s tring">AT</MAATUNNUS><MAAN IMI xsi:type="xsd:s tring">IT#VALTA </MAANIMI></MAA><MAA><MAATU NNUS xsi:type="xsd:s tring">BE</MAATUNNUS><MAAN IMI xsi:type="xsd:s tring">BELGIA</MAANIMI></MAA><MAA><MAATU NNUS xsi:type="xsd:s tring">DE</MAATUNNUS><MAAN IMI xsi:type="xsd:s tring">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

    In JAVA environment this seems to work correctly. Is there any way to get this working in .NET ?
  • Tomi Laamanen

    #2
    RE: More information: Specified array type is not recognized in web service response

    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.softw areag.com/entirex/xml/mapping
    xmlns='http://schemas.xmlsoap .org/wsdl/' xmlns:xsd='http ://www.w3.org/2001/XMLSchema
    xmlns:soap='htt p://schemas.xmlsoap .org/wsdl/soap/
    xmlns:wsdl='htt p://schemas.xmlsoap .org/wsdl/' xmlns:SOAP-ENC='http://schemas.xmlsoap .org/soap/encoding/
    xmlns:tns='http ://namespace.softw areag.com/entirex/xml/mapping
    [color=blue]
    ><types><sche ma targetNamespace ='http://namespace.softw areag.com/entirex/xml/mapping' xmlns='http://www.w3.org/2001/XMLSchema'><xsd :complexType name='ArrayOfst ring'><complexC ontent><restric tion base='SOAP-ENC:Array'><att ribute ref='SOAP-ENC:arrayType' wsdl:arrayType= 'xsd:string[100]'/></restriction></complexContent> </xsd:complexType ><xsd:complexTy pe name='ArrayOfMA A'><complexCont ent><restrictio n base='SOAP-ENC:Array'><att ribute ref='SOAP-ENC:arrayType' wsdl:arrayType= 'tns:ArrayOfMAA 2[100]'/></restriction></complexContent> </xsd:complexType ><xsd:complexTy pe name='ArrayOfMA A2'><xsd:sequen ce><xsd:element name='MAA' type='tns:MAA'/></xsd:sequence></xsd:complexType ><xsd:complexTy pe name='MAA'><xsd :sequence><xsd: element name='MAATUNNUS ' type='xsd:strin g'/><xsd:element name='MAANIMI' type='xsd:strin g'/><xsd:element name='VALUUTTA_ TUNNUS' type='xsd:strin g'/></xsd:sequence></xsd:complexType ></schema></types><message name='AGW014N1' ><part name='P-KIELIKOODI' type='xsd:strin g'/><part name='P-MAATUNNUS' type='tns:Array Ofstring'/></message><messag e name='AGW014N1R esponse'><part name='ArrayOfMA A' type='tns:Array OfMAA'/><part name='P-PALUUKOODI' type='xsd:strin g'/></message><portTy pe name='AGW014N1P ort'><operation name='AGW014N1' ><input message='tns:AG W014N1'/><output message='tns:AG W014N1Response'/></operation></portType><bindi ng name='AGW014N1S oapBinding' type='tns:AGW01 4N1Port'><soap: binding style='rpc' transport='http ://schemas.xmlsoap .org/soap/http'/><operation name='AGW014N1' ><soap:operatio n soapAction='AGW 014N1'/><input><soap:b ody use='encoded' encodingStyle=' http://schemas.xmlsoap .org/soap/encoding/[/color]
    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
    /></output></operation></binding><servic e name='agw014n1' ><port name='AGW014N1P ort' binding='tns:AG W014N1SoapBindi ng'><soap:addre ss location='http://192.130.109.127 :8080/entirex/xmlrt'/></port></service></definitions>

    Comment

    Working...