2 Replies Latest reply on Aug 13, 2007 6:10 AM by kleber.kiefer

    HTTPService - Send XML (POST)

    kleber.kiefer Level 1
      Hello guys,

      I need your help... I'm trying to use HTTPService, send one XML.

      It's work:
      ========================================================
      <mx:HTTPService id="playlistCreate"
      url=" http://localhost:3000/playlists/create"
      useProxy="false"
      method="POST"
      contentType="application/xml"
      showBusyCursor="true"
      result="resultCreate(event)"
      fault="defaultFault(event)" >
      <mx:request xmlns="">
      <playlist>
      <name>TEST</name>
      </playlist>
      </mx:request>

      </mx:HTTPService>
      ========================================================

      But, it's not work:
      ========================================================
      [Bindable]
      public var xmlSAVE:XML =
      <playlists>
      <playlist>
      <name>TEST</name>
      </playlist>
      </playlists>;

      <mx:HTTPService id="playlistCreate"
      url=" http://localhost:3000/playlists/create"
      useProxy="false"
      method="POST"
      contentType="application/xml"
      showBusyCursor="true"
      result="resultCreate(event)"
      fault="defaultFault(event)" >
      <mx:request xmlns="">{xmlSAVE.playlist}</mx:request>
      </mx:HTTPService>
      ========================================================

      Somebody has some idea to help me???

      Thank's!!!

      Kleber