PartnerLogin

Sample Request Message-login Call-Partner API

POST https://na1.salesforce.com/services/Soap/u/10.0 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 
1.1.4322.573) 
Content-Type: text/xml; charset=utf-8 
SOAPAction: "" 
Content-Length: 510 
Expect: 100-continue 
Host: na1.salesforce.com 
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:urn="urn:partner.soap.sforce.com">
  <soapenv:Body>
    <urn:login>
      <urn:username>user@domain.com</urn:username>
      <urn:password>secret</urn:password>
    </urn:login>
  </soapenv:Body>
</soapenv:Envelope>

Sample Response Message-login Call-Partner API

HTTP/1.1 200 OK 
Server: sfdc 
Content-Type: text/xml; charset=utf-8 
Transfer-Encoding: chunked 
Date: Thu, 24 May 2007 20:32:17 GMT
  
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns="urn:partner.soap.sforce.com"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soapenv:Body>
     <loginResponse>
        <result>
           <passwordExpired>false</passwordExpired>
           <serverUrl>https://na1.salesforce.com/services/Soap/u/10.0</serverUrl>
           <sessionId>QwWsHJyTPW.1pd0_jXlNKOSU</sessionId>
           <userId>005D0000000nVYVIA2</userId>
           <userInfo>
              <accessibilityMode>false</accessibilityMode>
              <currencySymbol>$</currencySymbol>
              <organizationId>00DD0000000EFW9MAO</organizationId>
              <organizationMultiCurrency>false</organizationMultiCurrency>
              <organizationName>danorg</organizationName>
              <profileId>00eD0000000v3qmIAA</profileId>
              <roleId xsi:nil="true"/>
              <userDefaultCurrencyIsoCode xsi:nil="true"/>
              <userEmail>user@domain.com</userEmail>
              <userFullName>Joe User</userFullName>
              <userId>005D0000000nVQVIA2</userId>
              <userLanguage>en_US</userLanguage>
              <userLocale>en_US</userLocale>
              <userName>user@domain.com</userName>
              <userTimeZone>America/Los_Angeles</userTimeZone>
              <userType>Standard</userType>
              <userUiSkin>Theme2</userUiSkin>
           </userInfo>
        </result>
     </loginResponse>
  </soapenv:Body>
</soapenv:Envelope>

Back to Sample SOAP Messages