AnsweredAssumed Answered

How we can add Array of Geometries in SOAP Response for custom SOE

Question asked by Phanindra_Dulam on Aug 17, 2015

Hello Everyone,

 

I Have developed one custom SOAP SOE, I would like to know how we can add Array of Geometries in SOAP Response.

 

I have added following statement in SOAP wsdl,

 

<xs:complexType name="SearchRequestInfo">

        <xs:sequence>

          <xs:element name="DisplayName" type="xs:string" />

          <xs:element name="Layer" type="xs:string" />

          <xs:element name="ResultsGeometry" type="ArrayOfGeometry" />

        </xs:sequence>

      </xs:complexType>

 

But when I trying to serialization, I am getting exception "value does not fall within the expected range"

 

public void Serialize(IXMLSerializeData data)

        {

            data.TypeName = GetType().Name;

            data.TypeNamespaceURI = Constants.SOENamespaceURI;

            data.AddString("DisplayName", DisplayName);

            data.AddString("Layer", Layer);

           data.AddObject("ResultsGeometry", (IGeometry[])ResultsGeometry);----- Getting exception here " value does not fall within the expected range"

        }

 

Below statement  I am using for deserialization.

this.ResultsGeometry = (IGeometry[])data.GetObject(idx, Constants.ESRINamespaceURI, "@ArrayOfGeometry@@");

 

Anybody can help me on this.

 

Thank you,

 

Regards,

Phanindra

Outcomes