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

5133.NET Problem with Response in SOAP::Lite 0.66

Expand Messages
  • pfconrey
    Jan 18, 2006
    • 0 Attachment
      I am returning the following envelope to a .NET Client, which only
      partially works. The client recognizes that there are 2 "Summary"
      objects returned in the array, but all of the properies of each of the
      objects is set to null:

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope
      soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
      <SearchResponse xmlns="http://crm.mycompany.com/gpm/ws/Property">
      <PropertyList soapenc:arrayType="Summary[2]"
      xsi:type="soapenc:Array">
      <Summary>
      <PropertyCode xsi:type="xsd:string">ABCDE</PropertyCode>
      <BrandCode xsi:type="xsd:string">AB</BrandCode>
      <Name xsi:type="xsd:string">Property A</Name>
      <Address xsi:type="xsd:string">123 ANY STREET</Address>
      <City xsi:type="xsd:string">SOMETOWN</City>
      <State xsi:type="xsd:string">AK</State>
      <Country xsi:type="xsd:string">US</Country>
      </Summary>
      <Summary>
      <PropertyCode xsi:type="xsd:string">VWXYZ</PropertyCode>
      <BrandCode xsi:type="xsd:string">YZ</BrandCode>
      <Name xsi:type="xsd:string">Property Z</Name>
      <Address xsi:type="xsd:string">
      321 GOINGNOWHERE ROAD
      </Address>
      <City xsi:type="xsd:string">SOMETOWN</City>
      <State xsi:type="xsd:string">AK</State>
      <Country xsi:type="xsd:string">US</Country>
      </Summary>
      </PropertyList>
      </SearchResponse>
      </soap:Body>
      </soap:Envelope>

      SOAP::Lite 0.60 adds a namespace prefix to the "SearchResponse" element:

      <namesp2:SearchResponse
      xmlns:namesp2="http://crm.mycompany.com/gpm/ws/Property">
      ...
      </namesp2:SearchResponse>

      everything works fine. Is there something about that namespace not
      being there that makes .NET choke? Any thoughts?