• Milan Vydareny
  • NEWBIE
  • 0 Points
  • Member since 2013

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

I was able to easily import the WSDL into Delpi XE and make a SOAP connection to Saleforce.  However, according to documentation, doing anything with the connection requires the serverURL to used as the END_POINT, including the Logout.  How is this done?   There are no methods/propererites available to do this in the code generated in the WSDL import.

 

I aways get the "UNKNOWN_EXCEPTION: Destination URL not reset.  The URL returned from login must be set in the SforceService.

 

Any ideas?  and doing this in JAVA is not an option.

 

 

// Create service object
SalesForce := GetSoap;
// Invoke the login call and save results in LoginResult
lr := SalesForce.login(cUserName, cPassword + cSecurityToken);
memo.Lines.Add( 'serverurl: ' + lr.serverUrl);
memo.Lines.Add( 'sessionid: ' + lr.sessionId);
//Somehow, the "endPoint" / lr.serverurl needs to updated in the SalesForce object for any more calls can be made...but how? No "endpoint" methods
//or properties exist in the unit that was created when the WSDL was imported.
SalesForce.logout;