从会话ID和服务器URL获取UserId [英] Get UserId from the Session Id and Server URL

查看:155
本文介绍了从会话ID和服务器URL获取UserId的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我将在其中获取会话ID和服务器URL(Web服务方法的参数).

I have a requirement, where I will be getting the Session Id and Server URL(parameters of a webservice method).

这样说:

会话ID:00D900000xxxxxx!ARUAQOb4VVoQR1UXlY_Hvuy1DdKdN6nSfnNJKYwPTF9R3tYuA2jzBsWXHIGDQUFL13iebnYSDKKC45H98TzVxxxxxxxxxx

Session ID : 00D900000xxxxxx!ARUAQOb4VVoQR1UXlY_Hvuy1DdKdN6nSfnNJKYwPTF9R3tYuA2jzBsWXHIGDQUFL13iebnYSDKKC45H98TzVxxxxxxxxxx

服务器网址: https://ap1.salesforce.com/services/Soap/u/12.0/00D900000xxxxxx

现在我需要从这两个用户中获取用户ID(或其他任何用户详细信息).

Now i need to get the User Id(or any other user details) from these two.

先谢谢了!

尼丁

推荐答案

您可以使用SOAP API,该API具有 GetUserInfoResult 对象,其中将包含与会话关联的用户ID.

You could use the SOAP API, which has a GetUserInfo method. Calling this method will return a GetUserInfoResult object, which will contain the user ID associated to the session.

这篇关于从会话ID和服务器URL获取UserId的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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