NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: MikeR on April 23, 2019, 06:06:25 AM

Title: How to manage an incoming url call
Post by: MikeR on April 23, 2019, 06:06:25 AM
I have to give a service provider an incoming URL that they will call to pass me information as and when it happens.
I know how to do this with nettalk by creating a webmethod and service.
What I want to do is give one url for multiple tasks.
I want the one url to decide which actual url to call either one of ours or a third party.
I want to log the incoming request which I know how to do.
I also know how to construct a new call to another url using nettalk by doing a post, but how do I just pass the request on exactly as it came in to another webservice ?
Is it by doing a redirect ?

 
Title: Re: How to manage an incoming url call
Post by: Bruce on April 23, 2019, 06:34:38 AM
Hi Mike,

>> What I want to do is give one url for multiple tasks.

clearly your server will need to be able to differentiate the task required. So perhaps a parameter telling it which task is desired.

>> but how do I just pass the request on exactly as it came in to another webservice ?

So you want to make a call, on behalf of the request, then pass the response you received back to the caller?
Create a window procedure, with a WebClient class to do that, and call that from your method.

Cheers
Bruce