...
using System.Net;
public static void Run(TimerInfo myTimer, TraceWriter log)
{
log.Info($"Running function at: {DateTime.Now}");
var services = new string[]{
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/Session/SessionService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/Session/SessionServiceWebBridge.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/Payment/PaymentService.svc",
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/Labor/LaborService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/CommandWebBridgeService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/HealthService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataLoaderService/SessionDataWriterService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataLoaderService/PaymentDataWriterService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataLoaderService/LaborDataWriterService.svc?wsdl",
"http://nsoewebservices.cbsnorthstar.com/DataLoaderService/IntegrationService.svc?wsdl",
"http://nsoewebservices2.cbsnorthstar.com/DataHandlerService/Session/SessionServiceWebBridge.svc?wsdl",
"http://ecm-nsoewebservices-augusta.cbsnorthstar.com/DataHandlerService/Session/SessionServiceWebBridge.svc?wsdl",
};
foreach (var serviceAddress in services)
{
try
{
log.Info($"Running {serviceAddress} at: {DateTime.Now}");
HttpWebRequest service = (HttpWebRequest)WebRequest.Create(serviceAddress);
WebResponse
WebResponse response = service.GetResponse();
}
catch catch (Exception ex)
{
log log.Info($"Error {serviceAddress} at: {DateTime.Now}");
}
}
}