Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- .NET Development
- :
- Destination URL not reset. The URL returned from l...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Destinatio n URL not reset. The URL returned from login must be set in the SforceServ ice
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-11-2012 01:31 PM
I'm getting the above error message and I'm assuming this has to do with my authentication code below. The .NET web service is being called from an outbound message in my sandbox environment. The .Net service references the enterprise WSDL, URL, username and password+security token from the sandbox. I also added the server address where the web service is hosted to the trusted IP page in Salesforce (although I don't think this is necessary since it's located on our network). Your advice is appreciated!
EnterpriseWebReference.SforceService binding = new EnterpriseWebReference.SforceService();
EnterpriseWebReference.LoginResult loginResult = new EnterpriseWebReference.LoginResult();
binding.Url = "https://test.salesforce.com/services/Soap/c/25.0";
loginResult = binding.login("username", "password+token");
binding.SessionHeaderValue = new EnterpriseWebReference.SessionHeader();
binding.SessionHeaderValue.sessionId = loginResult.sessionId;
Solved! Go to Solution.
Re: Destinatio n URL not reset. The URL returned from login must be set in the SforceServ ice
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-11-2012 03:17 PM
You need to update the binding URLs property after calling login based on serverUrl property in the LoginResult, see the getting started guide in the soap api docs.
Also, OM can be configured to send you a sessionId & serverUrl, so you don't need to call login in your OM handler, you can just use the passed sessionId to make subsequent API calls.
Re: Destinatio n URL not reset. The URL returned from login must be set in the SforceServ ice
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-12-2012 09:08 AM
Thanks, Simon!! I am now logged in and using the passed sessionId and serverUrl from the OM.
In my code I create SelfServiceUser records. Although I set ssu.IsActive = true; the SelfServiceUser record generates but the IsActive column is not checked. Do you know whether there is a limitation to enabling SSU records in Salesforce via the API?
Re: Destinatio n URL not reset. The URL returned from login must be set in the SforceServ ice
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-12-2012 09:09 AM
Re: Destinatio n URL not reset. The URL returned from login must be set in the SforceServ ice
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-12-2012 09:14 AM
Thank you very much for all the help!!!!

