title: Azure Function (REST API for Http Trigger & using Timer Trigger with Azure Data Factory)
body: <p>I am trying to develop an Azure Function and came across a question regards to the requirement for using HTTP Trigger.</p>
  <p>I am trying to pull data using a third party's SDK, and it is XML-based web services (XML API), not REST API, so it appears that I cannot use HTTP Trigger.</p>
  <p><strong>1) My understanding is, in order to use HTTP Trigger, I need to have REST API, correct? How about XML API?</strong></p>
  <p>I am trying to go with Timer Trigger and use Azure Data Factory to pull data.</p>
  <p><strong>2) If I use Timer Trigger and Azure Data Factory (ADF), where does data get stored in between?</strong></p>
  <p>Is data stored in the storage account (Table or Blob) that I configured when I created Function App, and then when I execute ADF, data would be pulled from there?</p>
  <p>And if so, how does data in the storage account gets truncated (for next run) after it is used?</p>
  <p><strong>3) I am trying to locate where the logic of pulling data should go within the Function CS file.</strong></p>
  <p>I guess I have to call a method from other cs file (ListVendors.cs) inside the Function app solution to list vendors' data, correct?</p>
  <p>And the Main class is in another cs (Program.cs) file.</p>
  <p>Do I call/put the class name (&amp; method) inside the Function class inside Run method (as shown below)?</p>
  <p><strong>Function class (TimerTrigger_1109_1)</strong></p>
  <p><a href="https://i.stack.imgur.com/c6zUW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c6zUW.png" alt="enter image description here" /></a></p>
  <p><strong>ListVendors class</strong></p>
  <p><a href="https://i.stack.imgur.com/pOEkD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pOEkD.png" alt="enter image description here" /></a></p>
  <p><strong>Main method (Program.cs)</strong></p>
  <p><a href="https://i.stack.imgur.com/JheKU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JheKU.png" alt="enter image description here" /></a></p>
  <p>I am trying to understand how Function app gets called vs. how Main method is called within Function application.</p>
  <p><strong>4) When I run the solution, how does solution know which file to run (Function file or Main method within the solution)?</strong>
  Since this is Function solution, I am not sure how execution of solution works.</p>
  <p>Thanks.</p>