You need to sign in to do that
Don't have an account?
No operation available for request {http://soap.sforce.com/schemas/class/...
Please help!
I’ve created an APEX class
global class LeadImporterExternal {
WebService static String importLead(String xmlParameter) {
leadImporter importer = new leadImporter();
return importer.importLead(xmlParameter);
}
}
Downloaded WSDL file for this class. Using this file I have generated a C# code for accessing a web service.
In my code, I’m calling this service in the following way:
SforceService SFSevice = new SforceService();
LoginResult loginResult = SFSevice.login(userName, password);
LeadImporterExternalService myService = new LeadImporterExternalService();
myService.Url = loginResult.serverUrl;
myService.SessionHeaderValue = new SessionHeader();
myService.SessionHeaderValue.sessionId = loginResult.sessionId;
string result = myService.importLead(xmlText);
But I keep getting an error SoapHeaderException: No operation available for request
{http://soap.sforce.com/schemas/class/LeadImporterExternal}importLead.
Can someone tell me why this is not working and what I’m doing wrong?
I’ll appreciate any help
Thanks!
All Answers
Hi Simon,
yes it works but why?!
This means that internal webServices are on a differente WebServer, and that never changes?
Thanks a lot.
--
Andrea
Thanks Simon