I am getting an issue while generating the WSDL for my custom SOAP Service. Earlier when I did back in 2018 I was able to generate the WSDL. Now, the issue that I am getting is when I click on generate WSDL then it generates the WSLD file for the whole org instead of that particular class only.
Below is my code
global with sharing class AccountPlanner {
webservice static String fullName(String firstName, String lastName){
String greetMessage = 'Welcome '+firstName+' '+lastName;
return greetMessage;
}
webservice static AccountWrapper createAccount(AccountWrapper accountRec){
Account accRec = new Account();
accRec.Name = accountRec.Name;
accRec.Rating = accountRec.Rating;
accRec.Industry = accountRec.Industry;
accRec.Phone = accountRec.Phone;
accRec.AccountNumber = accountRec.AccountNumber;
insert accRec;
Contact conRec = accountRec.contactRecord;
conRec.AccountId = accRec.Id;
insert conRec;
return accountRec;
}
global class AccountWrapper {
webservice String Name;
webservice String Rating;
webservice String Industry;
webservice String Phone;
webservice String AccountNumber;
webservice Contact contactRecord;
}
}
Any help will be appreciated.
Thanks in advance.