是否有人突然遇到尝试使用as3salesforce.swc从Flex应用连接到salesforce.com的用户的登录错误?
我收到以下错误...已删除密码以保护无辜者......
App Domain = null
Api Server name = na3.salesforce.com
_internalServerUrl = https://na3.salesforce.com/services/Soap/u/14.0
loading the policy file: https://na3.salesforce.com/services/Soap/cross-domain.xml
Your application must be running on a https server in order to use https to communicate with salesforce.com!
login with creds
loading the policy file: https://na3.salesforce.com/services/crossdomain.xml
Your application must be running on a https server in order to use https to communicate with salesforce.com!
invoke login
intServerUrl is null
intServerUrl = https://na3.salesforce.com/services/Soap/u/14.0
_invoke login
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer set destination to 'DefaultHTTPS'.
Method name is: login
'direct_http_channel' channel endpoint set to http://localhost/pm_server/pm/
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer sending message 'E32C7199-72C1-B258-B483-FFBC1641173D'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
body = "<se:Envelope xmlns:se="http://schemas.xmlsoap.org/soap/envelope/"><se:Header xmlns:sfns="urn:partner.soap.sforce.com"/><se:Body><login xmlns="urn:partner.soap.sforce.com" xmlns:ns1="sobject.partner.soap.sforce.com"><username>simon.palmer@dialectyx.com</username><password>******</password></login></se:Body></se:Envelope>"
clientId = (null)
contentType = "text/xml; charset=UTF-8"
destination = "DefaultHTTPS"
headers = (Object)#1
httpHeaders = (Object)#2
Accept = "text/xml"
SOAPAction = """"
X-Salesforce-No-500-SC = "true"
messageId = "E32C7199-72C1-B258-B483-FFBC1641173D"
method = "POST"
recordHeaders = false
timestamp = 0
timeToLive = 0
url = "https://na3.salesforce.com/services/Soap/u/14.0"
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer connected.
Method name is: login
Error: Ignoring policy file at https://na3.salesforce.com/crossdomain.xml due to meta-policy 'by-content-type'.
'5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47' producer acknowledge of 'E32C7199-72C1-B258-B483-FFBC1641173D'.
responseType: Fault
Saleforce Soap Fault: sf:INVALID_LOGIN
INVALID_LOGIN: Invalid username, password, security token; or user locked out.
Comunication Error : sf:INVALID_LOGIN : INVALID_LOGIN: Invalid username, password, security token; or user locked out. : [object Object]
答案 0 :(得分:2)
显然,没有其他人在salesforce.com上构建Flex应用程序..
yippee,我是第一个。
无论如何,我刚刚发现这是salesforce.com截至2008年12月6日的一个错误。问题是,由于salesforce.com上的负载平衡,处理登录的脚本无法充分应对必要的重定向服务器。
应该可以通过诸如...之类的URL浏览salesforce.com的api的www前门。
"https://www.salesforce.com/services/Soap/u/13.0";
其中13表示您要定位的API版本。但是,所有用户实际上都被分配到特定服务器,因此前门应该将登录请求重定向到适当的位置,如果您来自Flex,则不会。
workround是在URL中指定您的服务器,例如......
"https://na5.salesforce.com/services/Soap/u/13.0";
......这就是我在做的事情。如果您是一个持续访问相同资源且您的帐户仍然连接到该服务器的单个用户,那就没问题。但是如果...
然后提供固定服务器的方法将无效。
该错误(据我所知)是www路由没有充分重定向到您的主机服务器。最后的情报是它将很快“修复”。
我希望我能将此标记为答案......