3 Replies Latest reply on Aug 14, 2007 8:22 AM by kcell

    Problem with HTTPService

    richiemotoki
      Hi there, I have developed an application that has a Buy Now Button to the PayPal website. I used the HTTPService to verify the purchased at PayPal:

      <mx:HTTPService id="paymentRequest" url=" http://www.paypal.com/cgi-bin/webscr" useProxy="false"
      method="POST" resultFormat="text" result="getResultOk(1,event)" fault="getResultOk(0,event)"
      showBusyCursor="true">
      <mx:request xmlns="">
      <cmd>_notify-synch</cmd>
      <tx>{tx.toString()}</tx>
      <at>{at.toString()}</at>
      </mx:request>
      </mx:HTTPService>

      When this application web site is redirected back from the PayPal shopping cart, a tx number is read and the application calls paymentRequest.send() to do the verification process but then i got this error:

      Error sending data!!
      [FaultEvent fault=[RPC Fault faultString="Security error accessing url"
      faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
      messageId="E46E9181-EA3E-8B41-5869-62767B67BD60"
      type="fault" bubbles=false cancelable=true eventPhase=2]

      However, if i hard coded the tx number and execute the application locally, it works fine it is sending to PayPal and i do get either the "SUCCESS" or "FAIL" message back... So i wonder if anyone can please help me here? Why when this application is put on web server and being accessed from the server's url the HTTPService call is not sending??


      Many thanks.
      Richie