Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I imported the Enterprise WSDL and used the uri from the loginResult. Here's some code from my project:</p> <pre><code>LoginResult loginResult = null; // Login Result (save and make static) SessionHeader sessionHeader = null; // Session Header (save and make static) SoapClient soapClient = null; // This is the Enterprise WSDL SecureStatusClient SecureStatusClient = null; // This is my custom @WebService // Create Login Request LoginScopeHeader loginScopeHeader = new LoginScopeHeader { organizationId = configuration["OrganizationId"], portalId = configuration["PortalId"] }; // Call Login Service string userName = configuration["UserName"]; string password = configuration["Password"]; string securityToken = configuration["SecurityToken"]; using (SoapClient loginClient = new SoapClient()) { loginResult = loginClient.login(loginScopeHeader, userName, password + securityToken); if (result.passwordExpired) { string message = string.Format("Salesforce.com password expired for user {0}", userName); throw new Exception(message); } } // Create the SessionHeader sessionHeader = new SessionHeader { sessionId = loginResult.sessionId }; // Create the SoapClient to use for queries/updates soapClient = new SoapClient(); soapClient.Endpoint.Address = new EndpointAddress(loginResult.serverUrl); // Create the SecureStatusServiceClient secureStatusClient = new SecureStatusServiceClient(); Uri apexUri = new Uri(SoapClient.Endpoint.Address.Uri, "/services/Soap/class/SecureStatusService"); secureStatusClient.Endpoint.Address = new EndpointAddress(apexUri); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload