I'm fairly sure you don't NEED a channelset. From your code, it looks
like you have the URL set wrong.

First off, you are not binding urlInput.text to the url property of the
HTTPService - you are just passing the string "urlInput.text". Secondly,
Do you really want to set useProxy to true? I have never needed to do
that.

Also make sure urlInput.text is set to a full URL (http://etc).

Try this...

<mx:HTTPService id="connectPG"
result="resulthandler(event)" fault="fault_handler(event)"
resultFormat="text" showBusyCursor="true"
url="{urlInput.text}"
useProxy="false" method="POST">
      <mx:request xmlns="">
          <username>{userName.text}</username>
          <password>{userPW.text}</password>
      </mx:request>
</mx:HTTPService>


HTH



Steve

--- In [email protected], "ciminop" <cimi...@...> wrote:
>
> 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''
>

Reply via email to