1

I have shared my org's salesforce partner wsdl to an external system. I send a request to them using SOAP callout and in the request I send the ID of a parent Sobject.

Now the external system makes an inbound call to update some records in Salesforce using partner WSDL. They only have the parent ID with them using which they will call the update service. Is it possible for the external system to use this parent ID and update the child records of the parent ? If Not is there a way to do this?

  • Update all of them? Or just some? It would be easy to expose a webservice to do what you need. – Adrian Larson Jan 20 '17 at 19:09
  • Update some of the child record of that parent. If I need to expose a webservice how do I do it? By creating apex class and exposing as REST? If I need to use SOAP service is there a way? – SfdcBat Jan 20 '17 at 19:13
1

You can write a webservice here, which can be called via SOAP.

global with sharing class MyWebService
{
    webservice static void updateChildren(Id parentId)
    {
        // do stuff
    }
}

You'll need to generate a new WSDL once you add this Web Service so it can be called.

  • Thanks. Would I be generating partner WSDL or enterprise wsdl for this? Or is there any other way to generate the wsdl? – SfdcBat Jan 20 '17 at 19:18
  • It doesn't seem to matter if you use Enterprise or Partner WSDL. You should also have a read of Considerations for Using the WebService Keyword. – Adrian Larson Jan 20 '17 at 19:21
  • If I happen to add one more operation in apex web service class, then I do have to generate the wsdl again and send it to the external system right? I read somewhere the difference between partner and enterprise wsdl , we don't need to send the updated partner wsdl again to external system in case of a change on salesforce side but if it is enterprise wsdl then we have to send the updates wsdl again to the external system for them to consume the updated service – SfdcBat Jan 20 '17 at 19:37
  • I'm not very familiar with that aspect. If you have more detailed questions in that regard, I suggest a separate question. – Adrian Larson Jan 20 '17 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.