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
- :
- Getting "No operation available for request " on p...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Getting "No operation available for request " on partner WS call
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-21-2012 11:53 AM
I was given 2 WSDL files (partner and Z3) in order to build WS consumer. I was told to login using partner service and use session id in Z3 calls. I built 2 jar files using wsdlc
I did this code:
ConnectorConfig partnerConfig = new ConnectorConfig();
partnerConfig.setUsername(USERNAME);
partnerConfig.setPassword(PASSWORD);
PartnerConnection partnerConnection = com.sforce.soap.partner.Connector.newConnection(pa
String sid=partnerConnection.getSessionHeader().getSessio
String surl=partnerConnection.getConfig().getServiceEndpo
System.out.println("Sessionid="+sid);
System.out.println("ServerURL="+surl);
// This returns proper session id and new url
Sessionid=00DZ00000007L9X!AR0A..........0qEoSlSHaX
ServerURL=https://cs11-api.salesforce.com/services/Soap/u/25
Now I try to call other WS( the connector was built from provided wsdl using the tool) :
ConnectorConfig requestConfig = new ConnectorConfig();
requestConfig.setSessionId(sid);
requestConfig.setServiceEndpoint(surl);
SoapConnection z3con=com.sforce.soap.WS_Z3Services.Connector.newC
LegacyAccountInfoResult[] la=z3con.getLegacyAccount("001Z000000Cn26tIAB"); <-- fails right here
System.out.println(la.length);
Throws exception:
com.sforce.ws.SoapFaultException: No operation available for request {http://soap.sforce.com/schemas/class/WS_Z3Services
Am I doing something wrong or the service maybe dows not exist on SF side?
The project uses wsc-22.jar

