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
- :
- Java Development
- :
- Re: Using logout with partner wsdl
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Using logout with partner wsdl
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-17-2012 11:45 AM
Hi Iwas provided partner WSDL and service built without problems. However I have problem doing logout. All examples I have found utilize 'connection', that had not built with provided WSDL.
Here is a part of my code:
SforceServiceLocator loc=new SforceServiceLocator();
Soap sop=loc.getSoap();
LoginResult res=sop.login("myUsername","myPasswordr3bJepFr4yi2
String sid=res.getSessionId();
System.out.println(sid);
System.out.println(res.getUserId());
System.out.println("adr2="+loc.getSoapAddress());
String surl=res.getServerUrl();
System.out.println(surl);
loc.setSoapEndpointAddress(surl);
//works up to this point
sop.logout(); //<--- throws Destination URL not reset
What am I doing wrong?
Solved! Go to Solution.
Re: Using logout with partner wsdl
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-17-2012 12:19 PM
Re: Using logout with partner wsdl
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-21-2012 11:55 AM
Thanks, Simon, I got it working, but another problem arised. I posted new question

