INVALID_SESSION_ID 使用合作伙伴/企业 wsdl 用于两个不同的 SF 用户 [英] INVALID_SESSION_ID using partner/enterprise wsdl for two different SF users

查看:37
本文介绍了INVALID_SESSION_ID 使用合作伙伴/企业 wsdl 用于两个不同的 SF 用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了此链接上给出的示例,它非常适合我的 SF开发者帐号.

I followed example given on this link, it worked perfectly for my SF developer account.

但是,当我在不更改 Web 服务引用的情况下尝试使用不同的 SF 凭据进行相同操作时(因为其他帐户也具有用于提取潜在客户详细信息的顶点 Web 服务方法),它给了我以下错误(我通过了正确的用户名、密码和访问令牌)用户).

But when I tried the same with different SF credentials without changing web service reference (as other account also had apex web service methods to pull leads detail) it gave me below error (I passed correct username, password with access token for both users).

INVALID_SESSION_ID:在 SessionHeader 中发现无效的会话 ID:非法会议.找不到会话,缺少会话密钥:

INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session key:

我的问题是:.NET 应用程序如何为多个 SF 用户验证和访问各自的 Apex Web 服务?

My question is : How .NET app authenticate and access respective Apex web service for multiple SF users?

推荐答案

确保在会话设置"中取消选中将会话锁定到它们起源的 IP 地址".

make sure in "session settings" the "Lock sessions to the IP address from which they originated" is unchecked.

这篇关于INVALID_SESSION_ID 使用合作伙伴/企业 wsdl 用于两个不同的 SF 用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆