How to use SOAP API call SF

How to use SOAP API call SF(1)DownloadWSDLfilesSetup→API→APIWSDLpage→GenerateEnterpriseWSDLThiswilltakeseveralminutestocreateapage.right-clickthepageandsaveaswsdl.jsp.xmlfileonyourlocallaptop.(2)DownloadSOAPUIOpenSourcefromDownl…

大家好,又见面了,我是你们的朋友全栈君。

(1)Download WSDL files

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

How to use SOAP API call SF

 

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

How to use SOAP API call SF

 

(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.

How to use SOAP API call SF

 

How to use SOAP API call SF

(4)Update Login request, click Request1.

How to use SOAP API call SF

 

<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.

How to use SOAP API call SF

 

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

How to use SOAP API call SF

 

(5)Create an account

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

How to use SOAP API call SF

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

How to use SOAP API call SF

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/159211.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号