Simply and without knowing much of your environment, you will need to create a kind of Schedule. A program console, who has a timer or that it is programmed to run from time to time, observing the records in the table that your WS will insert. Whenever he finds something new there, he fires the action you desire.
Below is a very generic example of how to perform a Schedule to process from time to time, according to the parameters you want.
public void ProcessarRotinas()
{
try
{
while (true)
{
for (int i = 1; i <= TentativasErro; i++)
{
try
{
//Aqui vai toda sua regra de negócio
ExecutarRegra();
Thread.Sleep(ValordePausa * 1000);
break;
}
catch (Exception ex)
{
Thread.Sleep(ValordePausa * 1000);
}
}
}
}
catch (Exception ex)
{
throw ex;
}
}
what you’ve already done?
– Marco Souza
The part of receiving the customer’s data and recording in the database. It is a two-pronged system, a reception and another supervision. Both communicate with the webservice. I searched on google some solutions, but are using Signalr and the whole system does not use Signalr.
– JcSaint
You are using Webapi?
– Jéf Bueno
@jbueno is in Soap
– JcSaint
And he is
WCF
orASMX
?– Jéf Bueno
@jbueno he is asmx :)
– JcSaint
SOAP is not made for this. In SOAP you make a request and get an answer, and nothing else. You will really depend on something like Signalr or a message queue system.
– Caffé