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
Scooter429Scooter429 

Apex Code to Create WebService

1.  If I use Apex Code to create a web service and generate my own WSDL does this call count against my API limit of 1000 API calls in a 24 hour period for an EE user?


2. Is there any way for me to write my own login webservice in Apex Code so that I do not need to use the standard SFDC API WSDL? 

What I am trying to do is create a WebService that can be called by a legacy application that pushes data into SFDC using an Apex Code class.  Ideally I would only need to make a single call to SFDC.  At the moment I need to call two - once to login and a second to insert the data. 

Thank you.
Scott


SuperfellSuperfell
1. yes, calls to custom webservices written in apex count towards your api limits.
2. no.

Its only 2 calls for the first time right, the session lasts for quite a while (anywhere between 30 minutes and 8 hours depending on your settings), so there's no need to call login every single time.