How to use SOAP API call SF

本文详细介绍了如何下载WSDL文件、配置SOAP UI工具、进行登录请求获取session ID和定制URL,最后通过实例演示如何创建企业级账户。重点步骤包括生成WSDL页面、安装SoapUI并设置登录请求。

(1)Download WSDL files

Set up → API → API WSDL page → Generate Enterprise WSDL

 

This will take several minutes to create a page. right-click the page and save as wsdl.jsp.xml file on your local laptop.

(2)Download SOAP UI OpenSource from Download REST & SOAP Automated API Testing Tool | Open Source | SoapUI

 

(3)Install the SoapUI component using the package downloaded in the last step. Launch SoapUI, find file menu, select New SOAP Project. enter a project name.

 

(4)Update Login request, click Request1.

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Header>
   </soapenv:Header>
   <soapenv:Body>
      <urn:login>
         <urn:username>your_username</urn:username>
         <urn:password>your_password+security_token</urn:password>
      </urn:login>
   </soapenv:Body>
</soapenv:Envelope>

Click the green triangle on the top (play button) to run the request.

 

From the response, you can get the session id and the custom URL. it will be needed in the other calls.

 

(5)Create an account

Update the custom URL and session ID. Specify the object name and account name.

Click the play button and then you can find this account in the SF.

 

 

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值