Loading ...
Sorry, an error occurred while loading the content.

Not an ARRAY reference at ... when using a .NET Client

Expand Messages
  • julio_delgado_garcia
    Hi, I am a newbie at accessing a SOAP:LITE Server from a .NET Client. The SOAP Server doesn t have a WSDL so I built a ASP.NET server with just the methods
    Message 1 of 1 , May 2, 2006
    View Source
    • 0 Attachment
      Hi,

      I am a newbie at accessing a SOAP:LITE Server from a .NET Client.
      The SOAP Server doesn't have a WSDL so I built a ASP.NET server with
      just the methods names so generate the WSDL document. When I test
      the call I get an exception "Not an ARRAY reference at ..."

      My WSDL document is


      <?xml version="1.0" encoding="utf-8"?>
      <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
      xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
      xmlns:tns="urn:Rfid" xmlns:s="http://www.w3.org/2001/XMLSchema"
      xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
      xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
      targetNamespace="urn:Rfid"
      xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:types>
      <s:schema elementFormDefault="qualified"
      targetNamespace="urn:Rfid">
      <s:element name="RfidBotEvent">
      <s:complexType>
      <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="MessageId"
      type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="HostId"
      type="s:string" />
      <s:element minOccurs="0" maxOccurs="1" name="Message"
      type="tns:ArrayOfString" />
      </s:sequence>
      </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfString">
      <s:sequence>
      <s:element minOccurs="0" maxOccurs="unbounded"
      name="string" nillable="true" type="s:string" />
      </s:sequence>
      </s:complexType>
      <s:element name="RfidBotEventResponse">
      <s:complexType>
      <s:sequence>
      <s:element minOccurs="0" maxOccurs="1"
      name="RfidBotEventResult" type="s:string" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </wsdl:types>
      <wsdl:message name="RfidBotEventSoapIn">
      <wsdl:part name="parameters" element="tns:RfidBotEvent" />
      </wsdl:message>
      <wsdl:message name="RfidBotEventSoapOut">
      <wsdl:part name="parameters"
      element="tns:RfidBotEventResponse" />
      </wsdl:message>
      <wsdl:portType name="RfidSoap">
      <wsdl:operation name="RfidBotEvent">
      <wsdl:input message="tns:RfidBotEventSoapIn" />
      <wsdl:output message="tns:RfidBotEventSoapOut" />
      </wsdl:operation>
      </wsdl:portType>
      <wsdl:binding name="RfidSoap" type="tns:RfidSoap">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
      <wsdl:operation name="RfidBotEvent">
      <soap:operation soapAction="urn:Rfid/RfidBotEvent"
      style="document" />
      <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:binding name="RfidSoap12" type="tns:RfidSoap">
      <soap12:binding
      transport="http://schemas.xmlsoap.org/soap/http" />
      <wsdl:operation name="RfidBotEvent">
      <soap12:operation soapAction="urn:Rfid/RfidBotEvent"
      style="document" />
      <wsdl:input>
      <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
      <soap12:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
      <wsdl:service name="Rfid">
      <wsdl:port name="RfidSoap" binding="tns:RfidSoap">
      <soap:address location="http://rocldev1:50002/Rfid" />
      </wsdl:port>
      <wsdl:port name="RfidSoap12" binding="tns:RfidSoap12">
      <soap12:address location="http://rocldev1:50002/Rfid" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
    Your message has been successfully submitted and would be delivered to recipients shortly.