Apache flex 从Flex连接到salesforce.com时出现登录错误
是否有人在尝试使用as3salesforce.swc从Flex应用程序连接到salesforce.com时突然遇到登录错误 我得到以下错误。。。删除密码以保护无辜者Apache flex 从Flex连接到salesforce.com时出现登录错误,apache-flex,salesforce,Apache Flex,Salesforce,是否有人在尝试使用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.salesf
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]
App-Domain=null
Api服务器名称=na3.salesforce.com
_internalServerUrl=https://na3.salesforce.com/services/Soap/u/14.0
正在加载策略文件:https://na3.salesforce.com/services/Soap/cross-domain.xml
您的应用程序必须在https服务器上运行,才能使用https与salesforce.com通信!
用信用卡登录
正在加载策略文件:https://na3.salesforce.com/services/crossdomain.xml
您的应用程序必须在https服务器上运行,才能使用https与salesforce.com通信!
调用登录
intServerUrl为空
intServerUrl=https://na3.salesforce.com/services/Soap/u/14.0
_调用登录
“5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47”生产者将目标设置为“DefaultHTTPS”。
方法名为:login
“direct_http_channel”通道终结点设置为http://localhost/pm_server/pm/
“5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47”生产者发送消息“E32C7199-72C1-B258-B483-FFBC1641173D”
“直接\u http\u通道”通道发送消息:
(mx.messaging.messages::HTTPRequestMessage)#0
body=“西蒙。palmer@dialectyx.com******"
clientId=(空)
contentType=“text/xml;charset=UTF-8”
destination=“DefaultHTTPS”
标题=(对象)#1
httpHeaders=(对象)#2
Accept=“text/xml”
SOAPAction=“”“”
X-Salesforce-No-500-SC=“正确”
messageId=“E32C7199-72C1-B258-B483-FFBC1641173D”
method=“POST”
recordHeaders=false
时间戳=0
timeToLive=0
url=”https://na3.salesforce.com/services/Soap/u/14.0"
“5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47”生产者已连接。
方法名为:login
错误:忽略位于的策略文件https://na3.salesforce.com/crossdomain.xml 由于“按内容类型”的元策略。
“5A5D3012-7717-E3C2-9B39-FFBBFF1F1B47”生产商确认“E32C7199-72C1-B258-B483-FFBC1641173D”。
响应类型:错误
Saleforce Soap错误:sf:无效的\u登录
无效的_登录:无效的用户名、密码、安全令牌;或用户被锁定。
通信错误:sf:无效\u登录:无效\u登录:无效用户名、密码、安全令牌;或用户被锁定:[对象]
显然没有其他人在salesforce.com上构建Flex应用程序
哎呀,我是第一个
不管怎样,我刚刚在salesforce.com上发现这是一个bug,截止到2008年12月6日。问题在于,由于salesforce.com服务器上的负载平衡,处理登录的脚本无法充分处理必要的重定向
应该可以通过salesforce.com api的www前门访问URL,例如
"https://www.salesforce.com/services/Soap/u/13.0";
"https://na5.salesforce.com/services/Soap/u/13.0";
其中,13表示您所针对的API版本。但是,所有用户实际上都被分配到一个特定的服务器,因此前门应该将登录请求重定向到适当的位置,如果您来自Flex,则不会
解决方法是在URL中指定服务器,例如
"https://www.salesforce.com/services/Soap/u/13.0";
"https://na5.salesforce.com/services/Soap/u/13.0";
…我就是这么做的。如果您是一个连续访问相同资源的单一用户,并且您的帐户仍然连接到该服务器,那么这很好。但是如果
我希望我能将此标记为答案…您需要通过www.salesforce.com登录,但需要加载特定的flex策略文件,而不是默认文件。(我把这个放在你的另一个问题中)。developer.force.com论坛是我在developer论坛上提出的问题的一个更好的地方,这导致了一个bug的出现。没错,但是Dave提到的bug出现在策略文件中,而不是将登录请求发送到哪里。