function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Calling Custom Apex Webservice without using Axis!

I've a custom apex webservice that I would like to call. I generated the wsdl and the stubs using axis1.4 and was able to call the service. I would like to do the same with out using Axis. 1) Get the custom web service wsdl. 2) Generate stubs for custom webservice using wsdlc of wsc.jar. ConnectorConfig config = new ConnectorConfig(); config.setServiceEndpoint(""); config.setAuthEndpoint(""); config.setUserName("userName"); config.setPassword("password"); PartnerConnection connection = Connector.newConnection(config); config.setSessionId(connection.getSessionHeader().getSessionId()); System.out.println(config.getServiceEndpoint() + ":" + config.getSessionId()); ConnectorConfig soapConfig = new ConnectorConfig(); soapConfig.setSessionId(config.getSessionId()); soapConfig.setServiceEndpoint(config.getServiceEndpoint()); SoapConnection testConnection = new SoapConnection(soapConfig); testConnection.createAccount(accountData); I get the following error: No operation available for request {}createAccount at at at at com.sforce.soap.LeadCapture.SoapConnection.createLead( at com.salesforce.test.TestLCWithOutAxis.main( Any input is greatly appreciated. 

One approach would be to use the pilot Apex REST Services. Make sure you sign up for the webinar on July 19th for more info.