RE: [flexcoders] Re: httpservice error #2032
If the POST body is empty, Flex switches to a GET. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Wednesday, May 27, 2009 12:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: httpservice error #2032 Not sure what the issue is but if I try POST it always goes across as as a GET. So I went with GET and I return 'true' as render :xml and it comes back with a good result. And I stuck with the relative URL and it works like a champ now. Thanks for everyones help. --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, "Tracy Spratt" wrote: > > I would suspect the URL as well. Try a full url, I have had a lot of > problems using relative urls > > > > And I have never used an http service that did not return something. It > would concern me. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com] On > Behalf Of flexaustin > Sent: Tuesday, May 26, 2009 10:36 PM > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com > Subject: [flexcoders] Re: httpservice error #2032 > > > > > > > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > Dave Cragg wrote: > > > > > > On 26 May 2009, at 05:35, flexaustin wrote: > > > > > > > _httpservice.url = "/ditto/myfunction"; > > > > Shouldn't that be > > > > _httpservice.url = "ditto/myfunction"; > > > > Cheers > > Dave Cragg > > > > No its /ditto/myfunction. For kicks I tried your idea, but didnt' work. >
[flexcoders] Re: httpservice error #2032
Not sure what the issue is but if I try POST it always goes across as as a GET. So I went with GET and I return 'true' as render :xml and it comes back with a good result. And I stuck with the relative URL and it works like a champ now. Thanks for everyones help. --- In flexcoders@yahoogroups.com, "Tracy Spratt" wrote: > > I would suspect the URL as well. Try a full url, I have had a lot of > problems using relative urls > > > > And I have never used an http service that did not return something. It > would concern me. > > > > Tracy Spratt, > > Lariat Services, development services available > > _ > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On > Behalf Of flexaustin > Sent: Tuesday, May 26, 2009 10:36 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: httpservice error #2032 > > > > > > > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, > Dave Cragg wrote: > > > > > > On 26 May 2009, at 05:35, flexaustin wrote: > > > > > > > _httpservice.url = "/ditto/myfunction"; > > > > Shouldn't that be > > > > _httpservice.url = "ditto/myfunction"; > > > > Cheers > > Dave Cragg > > > > No its /ditto/myfunction. For kicks I tried your idea, but didnt' work. >
RE: [flexcoders] Re: httpservice error #2032
I would suspect the URL as well. Try a full url, I have had a lot of problems using relative urls And I have never used an http service that did not return something. It would concern me. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Tuesday, May 26, 2009 10:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: httpservice error #2032 --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com, Dave Cragg wrote: > > > On 26 May 2009, at 05:35, flexaustin wrote: > > > > _httpservice.url = "/ditto/myfunction"; > > Shouldn't that be > > _httpservice.url = "ditto/myfunction"; > > Cheers > Dave Cragg > No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
[flexcoders] Re: httpservice error #2032
--- In flexcoders@yahoogroups.com, Dave Cragg wrote: > > > On 26 May 2009, at 05:35, flexaustin wrote: > > > > _httpservice.url = "/ditto/myfunction"; > > Shouldn't that be > >_httpservice.url = "ditto/myfunction"; > > Cheers > Dave Cragg > No its /ditto/myfunction. For kicks I tried your idea, but didnt' work.
[flexcoders] Re: httpservice error #2032
Not sure if it matters but my app is a rails app and I am doing a POST with the httpservice. I am not returning anything after the call would that appear as a fault to my httpservice? Should I send something back? TIA --- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]" wrote: > > If you are using a windoze machine you can see the request being handled in > the command window..i don't think the url is correct > > On Mon, May 25, 2009 at 9:35 PM, flexaustin wrote: > > > > > > > I cannot seem to get my SWF to talk to my rails app. i am getting the > > following error code: > > > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > > faultString="HTTP request error" faultCode="Server.Error.Request" > > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > > http://localhost:3000/ditto/myfunction";]. URL: > > http://localhost:3000/ditto/myfunction";] > > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" bubbles=false > > cancelable=true eventPhase=2] > > > > Here is my crossdomain.xml file (not sure I need one as my swf is in the > > app running on localhost:3000). > > > > > > > http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > Here is my httservice: > > _httpservice = new HTTPService(); > > _httpservice.url = "/ditto/myfunction"; > > _httpservice.method = "POST"; > > _httpservice.useProxy = false; > > _httpservice.addEventListener( ResultEvent.RESULT, itemClickedStatsResult > > ); > > _httpservice.addEventListener( FaultEvent.FAULT, itemClickedStatsFault ); > > > > Always comes back as a FAULT? > > > > Anyone have any advice? > > > > TIA > > > > > > >
[flexcoders] Re: httpservice error #2032
Do I need a services-config.xml file as well? --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > HIn my testing relative URL's don't appear to work. The only way I > can get it to work is if I put a complete URL in the url property of the > HTTPService object. eg. > > _httpservice.url = "http://127.0.0.1/ditto/myfunction";; > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > I don't have a services-config.xml file. > > > > > > > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > > > What does your services-config.xml file look like. > > > > > > According to the documentation "If you specify the url and a non-default > > > destination, your destination in the services-config.xml file must allow > > > the specified URL" > > > > > > > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > > > > > I cannot seem to get my SWF to talk to my rails app. i am getting the > > > > following error code: > > > > > > > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > > > > faultString="HTTP request error" faultCode="Server.Error.Request" > > > > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > > > > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > > > > http://localhost:3000/ditto/myfunction";]. URL: > > > > http://localhost:3000/ditto/myfunction";] > > > > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" > > > > bubbles=false cancelable=true eventPhase=2] > > > > > > > > > > > > Here is my crossdomain.xml file (not sure I need one as my swf is in > > > > the app running on localhost:3000). > > > > > > > > > > > > > > > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > > > > > > > > > > > Here is my httservice: > > > > _httpservice = new HTTPService(); > > > > _httpservice.url = "/ditto/myfunction"; > > > > _httpservice.method = "POST"; > > > > _httpservice.useProxy = false; > > > > _httpservice.addEventListener( > > > > ResultEvent.RESULT, itemClickedStatsResult ); > > > > _httpservice.addEventListener( > > > > FaultEvent.FAULT, itemClickedStatsFault ); > > > > > > > > > > > > > > > > Always comes back as a FAULT? > > > > > > > > Anyone have any advice? > > > > > > > > TIA > > > > > > > > > >
[flexcoders] Re: httpservice error #2032
Do I need a services-config.xml file as well? --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > HIn my testing relative URL's don't appear to work. The only way I > can get it to work is if I put a complete URL in the url property of the > HTTPService object. eg. > > _httpservice.url = "http://127.0.0.1/ditto/myfunction";; > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > I don't have a services-config.xml file. > > > > > > > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > > > What does your services-config.xml file look like. > > > > > > According to the documentation "If you specify the url and a non-default > > > destination, your destination in the services-config.xml file must allow > > > the specified URL" > > > > > > > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > > > > > I cannot seem to get my SWF to talk to my rails app. i am getting the > > > > following error code: > > > > > > > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > > > > faultString="HTTP request error" faultCode="Server.Error.Request" > > > > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > > > > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > > > > http://localhost:3000/ditto/myfunction";]. URL: > > > > http://localhost:3000/ditto/myfunction";] > > > > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" > > > > bubbles=false cancelable=true eventPhase=2] > > > > > > > > > > > > Here is my crossdomain.xml file (not sure I need one as my swf is in > > > > the app running on localhost:3000). > > > > > > > > > > > > > > > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > > > > > > > > > > > Here is my httservice: > > > > _httpservice = new HTTPService(); > > > > _httpservice.url = "/ditto/myfunction"; > > > > _httpservice.method = "POST"; > > > > _httpservice.useProxy = false; > > > > _httpservice.addEventListener( > > > > ResultEvent.RESULT, itemClickedStatsResult ); > > > > _httpservice.addEventListener( > > > > FaultEvent.FAULT, itemClickedStatsFault ); > > > > > > > > > > > > > > > > Always comes back as a FAULT? > > > > > > > > Anyone have any advice? > > > > > > > > TIA > > > > > > > > > >
[flexcoders] Re: httpservice error #2032
HIn my testing relative URL's don't appear to work. The only way I can get it to work is if I put a complete URL in the url property of the HTTPService object. eg. _httpservice.url = "http://127.0.0.1/ditto/myfunction";; --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > I don't have a services-config.xml file. > > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > What does your services-config.xml file look like. > > > > According to the documentation "If you specify the url and a non-default > > destination, your destination in the services-config.xml file must allow > > the specified URL" > > > > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > > > I cannot seem to get my SWF to talk to my rails app. i am getting the > > > following error code: > > > > > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > > > faultString="HTTP request error" faultCode="Server.Error.Request" > > > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > > > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > > > http://localhost:3000/ditto/myfunction";]. URL: > > > http://localhost:3000/ditto/myfunction";] > > > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" > > > bubbles=false cancelable=true eventPhase=2] > > > > > > > > > Here is my crossdomain.xml file (not sure I need one as my swf is in the > > > app running on localhost:3000). > > > > > > > > > > > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > > > > > > Here is my httservice: > > > _httpservice = new HTTPService(); > > > _httpservice.url = "/ditto/myfunction"; > > > _httpservice.method = "POST"; > > > _httpservice.useProxy = false; > > > _httpservice.addEventListener( ResultEvent.RESULT, > > > itemClickedStatsResult ); > > > _httpservice.addEventListener( FaultEvent.FAULT, > > > itemClickedStatsFault ); > > > > > > > > > > > > Always comes back as a FAULT? > > > > > > Anyone have any advice? > > > > > > TIA > > > > > >
[flexcoders] Re: httpservice error #2032
I don't have a services-config.xml file. --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > What does your services-config.xml file look like. > > According to the documentation "If you specify the url and a non-default > destination, your destination in the services-config.xml file must allow the > specified URL" > > > --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > > > I cannot seem to get my SWF to talk to my rails app. i am getting the > > following error code: > > > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > > faultString="HTTP request error" faultCode="Server.Error.Request" > > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > > http://localhost:3000/ditto/myfunction";]. URL: > > http://localhost:3000/ditto/myfunction";] > > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" bubbles=false > > cancelable=true eventPhase=2] > > > > > > Here is my crossdomain.xml file (not sure I need one as my swf is in the > > app running on localhost:3000). > > > > > > > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > > > > > > Here is my httservice: > > _httpservice = new HTTPService(); > > _httpservice.url = "/ditto/myfunction"; > > _httpservice.method = "POST"; > > _httpservice.useProxy = false; > > _httpservice.addEventListener( ResultEvent.RESULT, > > itemClickedStatsResult ); > > _httpservice.addEventListener( FaultEvent.FAULT, > > itemClickedStatsFault ); > > > > > > > > Always comes back as a FAULT? > > > > Anyone have any advice? > > > > TIA > > >
[flexcoders] Re: httpservice error #2032
What does your services-config.xml file look like. According to the documentation "If you specify the url and a non-default destination, your destination in the services-config.xml file must allow the specified URL" --- In flexcoders@yahoogroups.com, "flexaustin" wrote: > > I cannot seem to get my SWF to talk to my rails app. i am getting the > following error code: > > Fault: increment node clicked stat fault[FaultEvent fault=[RPC Fault > faultString="HTTP request error" faultCode="Server.Error.Request" > faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false > cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: > http://localhost:3000/ditto/myfunction";]. URL: > http://localhost:3000/ditto/myfunction";] > messageId="87ECB54A-4BDB-CF5B-41F0-7B2DEF12A2F7" type="fault" bubbles=false > cancelable=true eventPhase=2] > > > Here is my crossdomain.xml file (not sure I need one as my swf is in the app > running on localhost:3000). > > > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";> > > > > > Here is my httservice: > _httpservice = new HTTPService(); > _httpservice.url = "/ditto/myfunction"; > _httpservice.method = "POST"; > _httpservice.useProxy = false; > _httpservice.addEventListener( ResultEvent.RESULT, > itemClickedStatsResult ); > _httpservice.addEventListener( FaultEvent.FAULT, > itemClickedStatsFault ); > > > > Always comes back as a FAULT? > > Anyone have any advice? > > TIA >