Hi Dmitri,

That test app runs ok for me locally. I repointed it at a local server,
and added a fault handler for the HTTPService.

If you add a fault handler, clear your browser cache and rerun your test
app do you still get no response?

Thanks,
Seth

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dmitri Girski
Sent: Thursday, March 06, 2008 12:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2 - > 3 migration problems



Seth, 

Here is the shortest snippet:
http://mitek.id.au/flex/HTTPService/TestFlex3.mxml
<http://mitek.id.au/flex/HTTPService/TestFlex3.mxml>  
http://mitek.id.au/flex/HTTPService/test.php
<http://mitek.id.au/flex/HTTPService/test.php> 

This works in Flex2, and it doesn't work in Flex3.

Dmitri.

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, "Seth Hodgson" <[EMAIL PROTECTED]> wrote:
>
> Hi Dmitri,
> 
> I just ran a quick test locally using an HTTPService to send an XML
> instance and it went out as the body of the post fine.
> 
> E.g.
> 
> <mx:HTTPService id="testService" url="http://localhost:8400/...
<http://localhost:8400/...> "
> method="post" contentType="application/xml" useProxy="false"/>
> 
> ... and later ...
> 
> var x:XML = <root><foo>bar</foo></root>;
> testService.send(x);
> 
> Maybe share a code snippet illustrating your service definition and
> invocation and that could shed light on why your call was going out
> empty.
> 
> Best,
> Seth 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
[mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Dmitri Girski
> Sent: Thursday, March 06, 2008 10:33 AM
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Flex 2 - > 3 migration problems
> 
> 
> 
> After some tweaks I've managed to convert my beautiful XML object into
> the ugly flash.xml.XMLNode one and then convert it with
> SimpleXMLDecoder into the unnamed Object and then send it to server. 
> Welcome back AS2!
> 
> Guys, if anyone happily sends XML objects via HTTPService could you
> please write here, so at least I know that there is a way to do this.
> 
> Thanks!
> 
> Dmitri. 
> 
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , "Dmitri Girski" <mitek17@> wrote:
> >
> > 
> > It looks like HTTPService in Flex 3 was 'improved'.
> > 
> > It sends empty POST requests when contentType=CONTENT_TYPE_XML and
> > request= XML object.
> > 
> > Works fine for unnamed Objects && contentType=CONTENT_TYPE_FORM
> though.
> >
>



 

Reply via email to