I tried your code and, after some changes, got an "HTTP request error".

Firstly, change your params variable type from Array to Object. This will allow 
you POST parameters to be sent.

Secondly, I would highly recommend obtaining a copy of Charles 
(http://www.charlesproxy.com). Using Charles I found the error from the server 
is "The requested method POST is not allowed for the URL 
/postgradmed/testlogin.html.". This is fairly obvious as it is just an HTML 
page and does not understand the POST. Changing the URL to 
"http://www.postgradmed.com/index.php?page=login"; gives a security error which 
is, again, not surprising as the crossdomain.xml file only allows access from 
"www.translunardesigns.com".


HTH



Steve


--- In [email protected], "ciminop" <cimi...@...> wrote:
>
> 
> Here's the link to my app, you can use view source to see what I'm doing. The 
> left hand fields allow you to configure the entry fields so you can change 
> the URL and point to a form with different input ids.
>       http://www.translunardesigns.com/postgradmed/PostGradMed.html
> 
> I obviously can't give out the id/password, but if you enter anything you 
> should see the page source appear in the output window. The URL is in the app 
> and configurable if you want to try pointing it elsewhere.
> 
> Here's the cross domain file for the site I'm trying to hit:
>       http://www.postgradmed.com/crossdomain.xml
> 
> I also tried pointing this to my yahoo login screen, and i know Yahoo has a 
> domain file that allows any domain. Still getting the same error.
> 
> --- In [email protected], Peter Farland <pfarland@> wrote:
> >
> > If you've setup a crossdomain.xml file correctly then there's no need to 
> > set useProxy="true" for your scenario (you could just leave it as the 
> > default, which is false).
> > 
> > The HTTPService url property does not appear to be marked with [Bindable] 
> > metadata. You can programmatically change its in ActionScript:
> > 
> >     connectPG.url = urlInput.text;
> > 
> > 
> > Note: The 'proxy' in useProxy refers to a BlazeDS ProxyService - if you 
> > were to use BlazeDS then you'd either need to setup your own ChannelSet 
> > programmatically and assign it to your HTTPService instance, or point the 
> > compiler to the BlazeDS web application's /WEB-INF/flex/services-config.xml 
> > file using the -services option.
> > 
> > 
> > -----Original Message-----
> > From: [email protected] [mailto:[email protected]] On 
> > Behalf Of ciminop
> > Sent: Thursday, May 28, 2009 10:14 PM
> > To: [email protected]
> > Subject: [flexcoders] HTTPService HTTPChannel 2032 Channel.Ping.Failed 
> > trying to do asimple form post
> > 
> > I must be missing something since I'm trying to do something fairly basic. 
> > It really can't be this difficult, can it? I'm trying to use the 
> > HTTPService to post to a form. No web services. And I even put a 
> > crossdomain.xml policy file on the server for good measure.
> > 
> > First I got the dreaded 2032 Stream error, and after some digging saw that 
> > the FaultEvent was complaining that no channels were set. So I added a 
> > ChannelSet, now I'm getting a ping failure?
> > 
> > Here is a sample of my service:
> > 
> > <mx:HTTPService id="connectPG" 
> >   result="resulthandler(event)" fault="fault_handler(event)"
> >   resultFormat="text" showBusyCursor="true"
> >   url="urlInput.text"
> >   useProxy="true" method="POST">
> >     <mx:channelSet>
> >       <mx:ChannelSet id="pGChannelSet">
> >         <mx:HTTPChannel id="pGChannel" pollingEnabled="false">
> >           <mx:url>
> >             {urlInput.text}
> >           </mx:url>
> >         </mx:HTTPChannel>
> >       </mx:ChannelSet>
> >     </mx:channelSet>
> >     <mx:request xmlns="">
> >       <username>{userName.text}</username>
> >       <password>{userPW.text}</password>
> >     </mx:request>
> > </mx:HTTPService>
> > 
> > And when I call the send() method, the fault_handler() reports :
> > 
> > [FaultEvent fault=[RPC Fault faultString="Send failed" 
> > faultCode="Client.Error.MessageSend" faultDetail="Channel.Ping.Failed error 
> >  url: 'http://www.<<my_test_domain>>.com/beta/db_access.html''"] 
> > messageId="5BF9E4BD-0CED-145E-B224-8A20D0E36345" type="fault" bubbles=false 
> > cancelable=true eventPhase=2]
> > Channel.Ping.Failed error  url: 
> > 'http://www.<<my_test_domain>>.com/beta/db_access.html''
> > 
> > 
> > 
> > ------------------------------------
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> >
>


Reply via email to