0 Replies Latest reply on Jul 30, 2011 5:15 AM by W0utR

    Requesting data from a SOAP webservice

    W0utR Level 1

      I'm trying to load some data from a SOAP webservice in Flex by using the default WebService functions.

       

      I wasn't very familiar with this, but after a while I figured out how to do it, however, I don't think i'm getting the right data back.
      I wrote the same thing in PHP, and there i'm getting correct data back.

       

      <s:WebService id="telemerterService" wsdl="https://t4t.services.telenet.be/TelemeterService.wsdl">
           <s:operation name="retrieveUsage" resultFormat="object"
           result="resultHandler(event)"
           fault="faultHandler(event)" />
      </s:WebService>
      
      // somewhere else
      var arr:Array = new Array();
      arr["UserId"] = "username";
      arr["Password"] = "password";
                          
      telemerterService.retrieveUsage(arr, "RetrieveUsageRequestType");
      

      This only returns me this:

      Screen shot 2011-07-30 at 14.14.09.png

       

      The same service in PHP returns me this:

      http://pastebin.com/MEwKWVEr

      code: http://pastebin.com/09km4fJa

       

      So i'm not really sure where the problem lies, i'm only getting part of the data back as a result.