1 Reply Latest reply on Aug 26, 2011 4:05 AM by miguel8312

    send an array to a webservice

    ftvdev Level 1

      Hi,

       

      I am using a webservice fir exemple:

       

       

              <s:WebService id="ws"
                            wsdl="{_wsdl}"
                            endpointURI="{_endpointURI}"
                            load="getSessionId(event)">
                  <s:operation name="getSessionId" resultFormat="object"
                               fault="getSessionId_faultHandler(event)"
                               result="getSessionId_resultHandler(event)">
                      <s:request xmlns="">
                          <String_1>{_user}</String_1>
                          <String_2>{_password}</String_2>

                          <Optional>

                               <x>0</x>

                               <y>0</y>

                          </Optional>

                          <OptionalCount>1</OptionalCount>
                      </s:request>
                  </s:operation>

       

       

      And i have the object "Optional" is an optional argument. So i can just send String_1 and String_2 without sending <Optional> and it's an array that means that a user can send to my webservice many Optional fields. And of course if for exemple i send 3 optional objects i have to send a OptionalCount object with a value of 3.

       

      Can you help me please ?