w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Salesforce SOAP Service Login() only returns null values in visual studio service reference

I recommend you investigate and understand what is going on below the service before you use the magic of WFC and config files. It has been my experience that many times you can get the low level working to illuminate what the high level classes are doing on your behalf with generics.

A simple HTTP post via Google Chrome Postman will give you then needed working experience to know when the dreaded null login result is your code or bad login information :-)

HTTP VERB: POST

URL: https://login.salesforce.com/services/Soap/u/28.0

HEADERS:

Content-Type:text/xml

SOAPAction: "login"

BODY:

    <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:urn="urn:partner.soap.sforce.com">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:login>
             <urn:username>[replace with your salesforce login id
(email)]</urn:username>
             <urn:password>[replace with your salesforce
password][replace with your salesforce security token]</urn:password>
          </urn:login>
       </soapenv:Body>
    </soapenv:Envelope>

If you want a short 10 minute prescriptive developer lab on Kindle, take a look at http://www.amazon.com/How-login-SalesforceTM-SOAP-minutes-ebook/dp/B00IHOOKMU





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.