function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pal2011Pal2011 

Webservice

I need to create a weservice in apex which will be called by external system. External system can call web service created in salesforce and send an XML file with accounts/contacts data to insert.

 

Can anybody help me how to achieve this using API?

 

Thanks

AasifAasif

Creating a webservice in salesforce is pretty simple. Just refer to any sample webservice given in apex code guide to get aquainted and you can write your own service with ease.

API doesn't come into picture as long as you are creating a service inside salesforce.

 

The external system consuming your service needs to take the wsdl generated for your service and then use it to call your srevice.

Hope this helps