Using WSDLs in the Salesforce Government Cloud
|Knowledge Article Number||000229905|
|Description||Because of enhanced security features in the Salesforce Government Cloud, the server endpoint URL in a Salesforce WSDL may need to be manually updated to use the MyDomain of the organization to which the service or integration will connect.
Depending on which WSDL is being generated, the code for the server endpoint will automatically point either to the generic login URL (e.g. login.salesforce.com or test.salesforce.com) or the organization's MyDomain URL.
Any WSDL that contains the generic URL, or that has been previously edited to use the instance-specific URL should be updated to use the org's MyDomain URL. The Partner WSDL is one that will include the generic URL.
|Resolution||1. Retrieve the desired WSDL (such as via Setup > Develop > API > "Generate Partner WSDL").
2. Copy the WSDL XML code to a plain text editor (such as NotePad, NotePad++, BBEdit or TextWrangler).
3. Locate the line that includes the <service tag in the XML code:
4. Update the URL contained in the soap:address tag on that line, replacing login.salesforce.com with the MyDomain for the organization:
Example: If your organization's MyDomain were set to "government" then your MyDomain URL would be https://government.my.salesforce.com/