You need to sign in to do that
Don't have an account?
Motoki
Flex Login failed
Hi I'm using the Flex toolkit for a flex application. I have everything working when i run the project locally but once i put it on a web server and try to access it from the server url, the connection to http://www.salesforce.com/services/Soap/u/9.0 fails. Can anyone please help me solve this please?
Thank you very much.
do you have a trace or error message?
Hi i just changed to using R3_7 but i still got the same sandbox error when i accessing from my web server's url. The error message is as follows:
(mx.rpc::Fault)#0
errorID = 0
faultCode = "Channel.Security.Error"
faultDetail = "Destination: DefaultHTTP"
faultString = "Security error accessing url"
message = "faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'"
name = "Error"
rootCause = (flash.events::SecurityErrorEvent)#1
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#2
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#2
text = "Error #2048: Security sandbox violation: http://localhost:8080/HBH1/bin/artist.swf cannot load data from http://www.salesforce.com/services/Soap/u/9.0."
type = "securityError"
If i run this application locally using Flex Builder, everything works fine... i really have no idea what is happening... please help.
Many thanks.
the secruity is picky this way.
you will have to set this on the connection object, here is the setter:
Code:
so, whereever you create the Connection object, say it's called 'apex'
you would do
apex.protocol = 'http'
before login
good luck
errorID = 0
faultCode = "Channel.Security.Error"
faultDetail = "Destination: DefaultHTTP"
faultString = "Security error accessing url"
message = "faultCode:Channel.Security.Error faultString:'Security error accessing url' faultDetail:'Destination: DefaultHTTP'"
name = "Error"
rootCause = (flash.events::SecurityErrorEvent)#1
bubbles = false
cancelable = false
currentTarget = (flash.net::URLLoader)#2
bytesLoaded = 0
bytesTotal = 0
data = (null)
dataFormat = "text"
eventPhase = 2
target = (flash.net::URLLoader)#2
text = "Error #2048: Security sandbox violation: http://localhost:8080/HBH1/bin/artist.swf cannot load data from http://www.salesforce.com/services/Soap/u/9.0."
type = "securityError"
Thanks