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

Problem with a SOAP:LITE/Apache web service for VB.NET client

Expand Messages
  • sb_akula
    Hi All, I am trying to execute a method from a web service that was hosted on Apache web server. But i was getting an error from vb.net client. It works fine
    Message 1 of 1 , Oct 24, 2003
    • 0 Attachment
      Hi All,

      I am trying to execute a method from a web service that was hosted on
      Apache web server.
      But i was getting an error from vb.net client. It works fine with
      Java/Weblogic client. My guess is VB.NET can not recognize the
      type "SOAPStruct". Is there any datatype that can be used to make it
      interoperable?

      The following is the exception from VB.NET:

      System.InvalidOperationException: The specified type was not
      recognized: name='SOAPStruct', namespace='http://xml.apache.org/xml-
      soap', at <Array xmlns='http://schemas.xmlsoap.org/soap/encoding/'>.


      ______________________________________________________________________
      _
      Here is the SOAP request/response I intecepted from ASP.NET

      AfterSerialize
      <?xml version="1.0" encoding="utf-8"?><soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:tns="urn:newGetServices"
      xmlns:types="urn:newGetServices/encodedTypes"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:ne
      wGetServices><names href="#id1" /></tns:newGetServices><soapenc:Array
      id="id1" soapenc:arrayType="tns:Customer[2]"><Item
      href="#id2" /><Item href="#id3" /></soapenc:Array><tns:Customer
      id="id2" xsi:type="tns:Customer"><mmid
      xsi:type="xsd:string">le500</mmid><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:string">1</type></tns:Customer><tns:Customer id="id3"
      xsi:type="tns:Customer"><mmid
      xsi:type="xsd:string">wo500</mmid><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:string">1</type></tns:Customer></soap:Body></soap:Envelo
      pe>
      BeforeDeserialize
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
      xmlns:namesp2="http://xml.apache.org/xml-soap"
      xmlns:namesp3="http://namespaces.soaplite.com/perl" SOAP-
      ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
      ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-
      ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-
      ENV:Body><namesp1:newGetServicesResponse
      xmlns:namesp1="urn:newGetServices"><SOAP-ENC:Array SOAP-
      ENC:arrayType="namesp2:SOAPStruct[2]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="namesp2:SOAPStruct"><services SOAP-ENC:arrayType="xsd:string
      [6]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="xsd:string">TDDS</item><item
      xsi:type="xsd:string">LVL1m</item><item
      xsi:type="xsd:string">NTDSm</item><item
      xsi:type="xsd:string">UQDF</item><item
      xsi:type="xsd:string">UTDF</item><item
      xsi:type="xsd:string">NIDS</item></services><customer
      xsi:type="namesp3:Customer"><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:int">1</type><mmid
      xsi:type="xsd:string">le500</mmid></customer></item><item
      xsi:type="namesp2:SOAPStruct"><services SOAP-ENC:arrayType="xsd:string
      [12]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="xsd:string">TDDS</item><item
      xsi:type="xsd:string">NQDSm</item><item
      xsi:type="xsd:string">NTDSm</item><item
      xsi:type="xsd:string">LVL1m</item><item
      xsi:type="xsd:string">ADAP</item><item
      xsi:type="xsd:string">BTDS</item><item
      xsi:type="xsd:string">OMDF</item><item
      xsi:type="xsd:string">Prime</item><item
      xsi:type="xsd:string">UQDF</item><item
      xsi:type="xsd:string">UTDF</item><item
      xsi:type="xsd:string">iM</item><item
      xsi:type="xsd:string">NIDS</item></services><customer
      xsi:type="namesp3:Customer"><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:int">1</type><mmid
      xsi:type="xsd:string">wo500</mmid></customer></item></SOAP-
      ENC:Array></namesp1:newGetServicesResponse></SOAP-ENV:Body></SOAP-
      ENV:Envelope>

      AfterSerialize
      <?xml version="1.0" encoding="utf-8"?><soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:tns="urn:newGetServices"
      xmlns:types="urn:newGetServices/encodedTypes"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:ne
      wGetServices><names href="#id1" /></tns:newGetServices><soapenc:Array
      id="id1" soapenc:arrayType="tns:Customer[2]"><Item
      href="#id2" /><Item href="#id3" /></soapenc:Array><tns:Customer
      id="id2" xsi:type="tns:Customer"><mmid
      xsi:type="xsd:string">le500</mmid><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:string">1</type></tns:Customer><tns:Customer id="id3"
      xsi:type="tns:Customer"><mmid
      xsi:type="xsd:string">wo500</mmid><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:string">1</type></tns:Customer></soap:Body></soap:Envelo
      pe>
      BeforeDeserialize
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
      xmlns:namesp2="http://xml.apache.org/xml-soap"
      xmlns:namesp3="http://namespaces.soaplite.com/perl" SOAP-
      ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
      ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-
      ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-
      ENV:Body><namesp1:newGetServicesResponse
      xmlns:namesp1="urn:newGetServices"><SOAP-ENC:Array SOAP-
      ENC:arrayType="namesp2:SOAPStruct[2]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="namesp2:SOAPStruct"><services SOAP-ENC:arrayType="xsd:string
      [6]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="xsd:string">TDDS</item><item
      xsi:type="xsd:string">LVL1m</item><item
      xsi:type="xsd:string">NTDSm</item><item
      xsi:type="xsd:string">UQDF</item><item
      xsi:type="xsd:string">UTDF</item><item
      xsi:type="xsd:string">NIDS</item></services><customer
      xsi:type="namesp3:Customer"><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:int">1</type><mmid
      xsi:type="xsd:string">le500</mmid></customer></item><item
      xsi:type="namesp2:SOAPStruct"><services SOAP-ENC:arrayType="xsd:string
      [12]" xsi:type="SOAP-ENC:Array"><item
      xsi:type="xsd:string">TDDS</item><item
      xsi:type="xsd:string">NQDSm</item><item
      xsi:type="xsd:string">NTDSm</item><item
      xsi:type="xsd:string">LVL1m</item><item
      xsi:type="xsd:string">ADAP</item><item
      xsi:type="xsd:string">BTDS</item><item
      xsi:type="xsd:string">OMDF</item><item
      xsi:type="xsd:string">Prime</item><item
      xsi:type="xsd:string">UQDF</item><item
      xsi:type="xsd:string">UTDF</item><item
      xsi:type="xsd:string">iM</item><item
      xsi:type="xsd:string">NIDS</item></services><customer
      xsi:type="namesp3:Customer"><instance
      xsi:type="xsd:string">a</instance><type
      xsi:type="xsd:int">1</type><mmid
      xsi:type="xsd:string">wo500</mmid></customer></item></SOAP-
      ENC:Array></namesp1:newGetServicesResponse></SOAP-ENV:Body></SOAP-
      ENV:Envelope>
    Your message has been successfully submitted and would be delivered to recipients shortly.