• ConnectEdu
  • NEWBIE
  • 0 Points
  • Member since 2004

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

I am attempting to do what I'm sure a lot of Cold Fusion MX 6.1 developers want to do.  Connect using the sforce WSDL and do something OTHER than a successful login.  What I need in CFML is an equvalent of the following C# code:

BEGIN C#:

private SforceService sForce25 = new SforceService();
LoginResult ret;
ret = sForce25.login(_userName, _password);

sForce25.SessionHeaderValue = new SessionHeader();
sForce25.SessionHeaderValue.sessionId = ret.sessionId;
sForce25.Url = ret.serverUrl;
sForce25.SessionHeaderValue.sessionId = Request.QueryString["sid"].ToString();

END C#

Here is what I have so far in CFML:

BEGIN CFML:


 // create service:
 sfapi = CreateObject("webservice", "salesforcewsdlURL");
 loginResult = sfapi.login(name@domain.com, "password");



 loginResult: #loginResult#

 serverUrl: #loginResult.serverUrl#

 sessionID: #loginResult.sessionID#

 userID: #loginResult.userID#

END CFML

Note that I'd like to use the results from the initial login to fuel setting up the sessionID for the subsequent calls.  I'm sure someone out there has accomplished this.  Note to the moderators - if I can't resolve this issue, it is unlikely that we will decide to purchase the Enterprise version of SalesForce.

My interface between my company's website and SF has not been working since the move to 7.0 (I assume that was why the site was down on saturday). Am I now required to update my WSDL and create a new jar?

If so, it would have been nice to have gotten an email warning me about that.. in stead of a phone call from the boss yelling at me.

I am attempting to do what I'm sure a lot of Cold Fusion MX 6.1 developers want to do.  Connect using the sforce WSDL and do something OTHER than a successful login.  What I need in CFML is an equvalent of the following C# code:

BEGIN C#:

private SforceService sForce25 = new SforceService();
LoginResult ret;
ret = sForce25.login(_userName, _password);

sForce25.SessionHeaderValue = new SessionHeader();
sForce25.SessionHeaderValue.sessionId = ret.sessionId;
sForce25.Url = ret.serverUrl;
sForce25.SessionHeaderValue.sessionId = Request.QueryString["sid"].ToString();

END C#

Here is what I have so far in CFML:

BEGIN CFML:


 // create service:
 sfapi = CreateObject("webservice", "salesforcewsdlURL");
 loginResult = sfapi.login(name@domain.com, "password");



 loginResult: #loginResult#

 serverUrl: #loginResult.serverUrl#

 sessionID: #loginResult.sessionID#

 userID: #loginResult.userID#

END CFML

Note that I'd like to use the results from the initial login to fuel setting up the sessionID for the subsequent calls.  I'm sure someone out there has accomplished this.  Note to the moderators - if I can't resolve this issue, it is unlikely that we will decide to purchase the Enterprise version of SalesForce.

Has anyone successfully integrated sforce using Cold Fusion?...  It'd be nice to have some code samples...

Thanks,

Phil.

 

  • August 01, 2003
  • Like
  • 0