"FlexFooServlet" is the relative URL, not "/FlexFooServlet", that is a
root url.


--- In flexcoders@yahoogroups.com, "Dan Galewsky" <[EMAIL PROTECTED]> wrote:
>
> I have searched the archives a bit and did not find an answer. This is
> probably Flex 101 but I am stumped.
> 
> I cant seem to get relative URLs to work for httpservice.
> 
> If I set the URL explicitly - it works great:
> 
> fooRequest.url="http://localhost:8080/FlexFoo/FlexFooServlet";;
> 
> I just want the url to default to the URL where the web page came from.
> 
> The web page is http://localhost:8080/FlexFoo/foo.html
> 
> If I try fooRequest.url="/FlexFooServlet" (which I think should be the
> correct relative URL) I get this error.
> 
> [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: /FlexFooServlet}?id="]. URL:
/FlexFooServlet}"]
> 
> Using localhost:8080 obviously is not going to work when I deploy this
> thing. 
> 
> Also -- how do I make this work if I am not running from a web page
> but running out of FlexBuilder?
> 
> Any leads on this most appreciated.
> 
> --Dan Galewsky
> Symbiont Healthcare Systems
>


Reply via email to