I'm searching a simple Webservice test on Salesforce. I created a simple WS
global class AccountPlan {
webservice String area;
webservice String region;
//Define an object in apex that is exposed in apex web service
global class Plan {
webservice String name;
webservice Integer planNumber;
webservice Date planningPeriod;
webservice string planId;
}
webservice static Plan createAccountPlan(Plan vPlan) {
//A plan maps to the Account object in salesforce.com.
//So need to map the Plan class object to Account standard object
Account acct = new Account();
acct.Name = vPlan.name;
acct.AccountNumber = String.valueOf(vPlan.planNumber);
insert acct;
vPlan.planId=acct.Id;
return vPlan;
}
}
And i'm searching to call it using SoapUI (4.6.0) making a Simple soap call.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:acc="http://soap.sforce.com/schemas/class/AccountPlan">
<soapenv:Header>
<acc:AllowFieldTruncationHeader>
</acc:AllowFieldTruncationHeader>
<acc:SessionHeader>
<acc:sessionId>00D20000000leM4!AQUAQAbbtdrNRt4vK7SaJ8e2VPefMhAFfTtgDpvKI_8JZlyHJhKOBfCmU6tDiaf4FQau2A1Ni9n9OJbuzR8j1n.zt7n7zcHb</acc:sessionId>
</acc:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<acc:createAccountPlan>
<acc:vPlan>
<acc:name>Klodjan Test</acc:name>
<acc:planNumber>2</acc:planNumber>
</acc:vPlan>
</acc:createAccountPlan>
</soapenv:Body>
</soapenv:Envelope>
and I'm receiving the follow feedback
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>No service available for class 'AccountPlan'</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Any one can help me to understand why i'm geting such error... I'm running as system adinistrator...