
2 respuestas

Hi,You need to create a web service class in salesforce and then generate a WSDL file and then make use of it in an external application. Please go through the following link: https://trailhead.salesforce.com/modules/apex_integration_services/units/apex_integration_webservicesIf you would like to perform an update in apex then its as follows
Hope this helps Please mark as best answer if the above helps ....!!!global with sharing class MySOAPWebService
{
Webservice static members__c getRecord(String name)
{
// below code is for update
list<members__c > Updatingrecords = new List<members__c >();
for(members__c m : [select lastname from members__c where firstname__c =: name])
{
m.lastname = 'please specify a value for lastname here';
Updatingrecords.add(m);
}
update Updatingrecords;
}
}