0 Replies Latest reply on Dec 16, 2008 1:47 PM by akcreative

    passing array of objects to webservice

    akcreative
      Hi I am tryoing to pass array of complex type to webservice. First How can I create the Array of objects in coldfusion and second how can I try it. I have tried in many ways but nnone is working. It does not work as we send structrure and other complex form. Error is that no web service with these parameters are found.
      My XML is below.

      ===========

      <s:complexType name="ArrayOfLegInfo">

      <s:sequence>
      <s:element minOccurs="0" maxOccurs="unbounded" name="LegInfo" nillable="true" type="tns:LegInfo"/>
      </s:sequence>
      </s:complexType>

      <s:complexType name="LegInfo">

      <s:sequence>
      <s:element minOccurs="0" maxOccurs="1" name="PointOfDeparture" type="s:string"/>
      <s:element minOccurs="0" maxOccurs="1" name="PointOfArrival" type="s:string"/>
      <s:element minOccurs="1" maxOccurs="1" name="DepartDateTime" type="s:dateTime"/>
      </s:sequence>
      </s:complexType>