3 Replies Latest reply on Oct 9, 2007 6:45 AM by NeoSpawn

    HTTPService Parse Error

    NeoSpawn
      Hi there, Im new to Flex programming but not unexperienced in web languages. I am using the Flex-SDK for compiling my coding but Im getting a parse error that I cannot figure out. I am trying to use the HTTPService method to send information via POST to a php file. My problem is that Im getting a parse error. I checked the frameworks xml files and I see that HTTPService is defined as:
      <component id="HTTPService" class="mx.rpc.http.mxml.HTTPService"/>

      I am assuming that this is correct. This is the code for the HTTPService that I'm using:

      <mx:HTTPService id="form1" url=" http://localhost/flex/converter.php" method="POST" resultFormat="text">
      <mx:request xmlns="">
      <doctype>{doctype.selectedItem}</doctype>
      <docyear>{docyear.text}</docyear>
      <docno>{docnum.text}</docno>
      <docdate>{date.text}</docdate>
      </mx:request>
      </mx:HTTPService>

      And this is my error: test.mxml(29): col: 3 Error: Parse error at '<mx:HTTPService>'.

      <mx:HTTPService id="form1" url=" http://localhost/flex/converter.php" method="POST" resultFormat="text">
      ^

      Any help would be most welcome.

      NeoSpawn