Good Morning everybody,
You guys helped this flex beginner yesterday and now today I have a
new problem, I'm getting the following 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: http://admin.mydomain.com/bars/create";].
URL: http://admin.mydomain.com/bars/create";]
        at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
        at mx.rpc::Responder/fault()
        at mx.rpc::AsyncRequest/fault()
        at private::DirectHTTPMessageResponder/errorHandler()
        at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()
        at [io]

I know this error is common when the URL is incorrect, but I know it's
there.  I can paste it into the browser and it works fine.   

The code I'm using to access the service is as follows:

<mx:HTTPService id="listBars"
url="http://admin.mydomain.com/bars/list"; useProxy="false" method="GET"/>
        <mx:HTTPService id="updateBar"
url="http://admin.mydomain.com/bars/update"; useProxy="false"
method="POST" result="listBars.send()"/>
        <mx:HTTPService id="deleteBar"
url="http://admin.mydomain.com/bars/delete"; useProxy="false"
method="POST" result="listBars.send()"/>
        <mx:HTTPService id="createBar"
url="http://admin.mydomain.com/bars/create"; useProxy="false"
method="POST" result="listBars.send()" contentType="application/xml">
        <mx:request xmlns="">
            <bar>
                <title>{barTitle.text}</title>
                <username>{barUsername.text}</username>
                <tags>{barTags.text}</tags>
                <category>{barCategory.text}</category>
                <description>{barDescription.text}</description>
                <image>{barImage.text}</image>
                <link>{barLink.text}</link>
                <menu>{barMenu.text}</menu>
                <coupons>{barCoupons.text}</coupons>
                <address>{barAddress.text}</address>
                <state>{barState.text}</state>
                <zipcode>{barZipcode.text}</zipcode>
            </bar>
        </mx:request>
        </mx:HTTPService>

Listing, Updating, and Deleting function perfectly - but everytime I
try and create, it fails.  This is my create button:

                                        <mx:Button label="Create" 
click="createBar.send(); BarClearForm()"/>

Thanks again guys, I really appreciate it!  

Reply via email to