02-25-2011 05:12 AM
Hi, everybody.
I'm trying to access global URL using HTTPService.
<s:HTTPService result="handlePlain(event);" fault="handleFault(event);" id="plainRPC" resultFormat="text" url="http://examples.adobe.com/flex3/exchangingdata/text/plainHttpService.php" useProxy="false"> <mx:request xmlns=""> <zipcode> {zipcode.text} </zipcode> <pounds> {weight.text} </pounds> </mx:request> </s:HTTPService>
If Launch method in Run configurations is "on Desktop" - everything is Ok.
But when I'm trying to do same things with Launch method "on Device" (I'm using simulator) - I have HTTP request error...
Could you help me with resolving this problem?
02-25-2011 08:03 AM
I don't use any IDE so I can't help much, but it might help if you could post more information about the error.
Is there an error number, or more text than just "HTTP request error" ? Usually that is helpful for getting an answer from the people who actually know.
Things that might help:
02-26-2011 02:38 AM
Thank you
To see the result I use this:
public function handlePlain(event:ResultEvent):void
{
shippingOptions.text = event.result.toString();
}
public function handleFault(event:FaultEvent):void
{
shippingOptions.text = event.fault.faultString;
}And I have no error number in output message.
My simulator is in Development mode, in VMware settings I use bridged networking (I tried to use NAT - the same result), I use correct IP address for the simulator, so I have no problem with connection between Flash Builder and simulator.
I am using Windows XP.
As I said before, I have no problems with this little program when my Run or Debug configuration is "on Desktop" and target device to simulate BlackBerry Playbook.
Of course I can test my application "on Desktop", but now I try to understand if I can do it "on Device" either not....
Thank you for your advices
02-26-2011 08:44 AM
Was that adobe URL that you posted above the actual one you are trying to use? This sounds like a case where if you give us the full info, anyone else can try it and reproduce the problem...
02-28-2011 03:59 AM
Yes, I try to access exactly that adobe URL.
03-30-2011 08:54 PM
If you are using Flashbuilder to debug try tuning off the network monior in the debug view. This fixed the issue when I saw it:
http://stackoverflow.com/questions/5473006/playboo