Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

How do i login to salesforce

$
0
0

Someone, anyone.  I need a simple way to login to salesforce.  I have tried everything with no success.  Using SOAP UI everything works fine.   I run the request and it spits out everything necessary.  Problem is i just cannot seem to get it to work in CF.  I have tried <cfinvoke>, <cfhttp>.  Someone please.

 

This is the successful SOAP UI request: https://test.salesforce.com/services/Soap/u/32.0

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com">

   <soapenv:Header>

 

   </soapenv:Header>

   <soapenv:Body>

      <urn:login>

         <urn:username>username</urn:username>

         <urn:password>password</urn:password>

      </urn:login>

   </soapenv:Body>

</soapenv:Envelope>

 

 

And it returns this response in SOAP UI.  How can i get CF to return this so i can pull out certain variables:

 

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

            <metadataServerUrl>https://cs18.salesforce.com/services/Soap/m/32.0/00D1100000089tU</metadataServerUrl>

            <passwordExpired>false</passwordExpired>

            <sandbox>true</sandbox>

            <serverUrl>https://etc</serverUrl>

            <sessionId>something</sessionId>

            <userId>something</userId>

            <userInfo>

               <accessibilityMode>false</accessibilityMode>

               <currencySymbol xsi:nil="true"/>

               <orgAttachmentFileSizeLimit>26214400</orgAttachmentFileSizeLimit>

               <orgDefaultCurrencyIsoCode xsi:nil="true"/>

               <orgDisallowHtmlAttachments>false</orgDisallowHtmlAttachments>

               <orgHasPersonAccounts>false</orgHasPersonAccounts>

               <organizationId>something</organizationId>

               <organizationMultiCurrency>true</organizationMultiCurrency>

               <organizationName>Alcatel-Lucent Enterprise</organizationName>

               <profileId>something</profileId>

               <roleId>something</roleId>

               <sessionSecondsValid>14400</sessionSecondsValid>

               <userDefaultCurrencyIsoCode>USD</userDefaultCurrencyIsoCode>

               <userEmail>something@alcatel-lucent.com</userEmail>

               <userFullName>something</userFullName>

               <userId>something</userId>

               <userLanguage>en_US</userLanguage>

               <userLocale>en_US</userLocale>

               <userName>something@alcatel-lucent.com.ebc</userName>

               <userTimeZone>America/Los_Angeles</userTimeZone>

               <userType>Standard</userType>

               <userUiSkin>Theme3</userUiSkin>

            </userInfo>

         </result>

      </loginResponse>

   </soapenv:Body>

</soapenv:Envelope>


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>