Web Service as Proxy
-
Hello, Question: Is it possible to use a web service as a proxy to a different web service on another web server? Due to desired web service running outside of the zone and possibly having to go through a firewall (launching web server accesses two networks with one being in the DMZ). If this is possible, is there any articles in MSDN that can assist in setting up the intermediate service to send a request to the primary service? Thanks,
Leo T. Smith Program/Analyst Supervisor
-
Hello, Question: Is it possible to use a web service as a proxy to a different web service on another web server? Due to desired web service running outside of the zone and possibly having to go through a firewall (launching web server accesses two networks with one being in the DMZ). If this is possible, is there any articles in MSDN that can assist in setting up the intermediate service to send a request to the primary service? Thanks,
Leo T. Smith Program/Analyst Supervisor
yes .. Why not. Just you need to take reference to the web services you want to proxy from the master web service and call it. But always to remind you, calling web service from one service or web site will put an extra load to the web server. Means each web request spawns a new thread to the Web server. Thus for every web request, if the request itself invokes another web request, 2 threads will be created instead of 1 for every request. Other than that, its cool and easy to use. cheers. ;)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
yes .. Why not. Just you need to take reference to the web services you want to proxy from the master web service and call it. But always to remind you, calling web service from one service or web site will put an extra load to the web server. Means each web request spawns a new thread to the Web server. Thus for every web request, if the request itself invokes another web request, 2 threads will be created instead of 1 for every request. Other than that, its cool and easy to use. cheers. ;)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
OK, I am not sure how you mean to do this. I am used to using AJAX calls to make things work, but I don't know how that differs from this kind of a call. How would I setup callbacks and addressing the webservice for the required function? You wouldn't happen to know an article or two that would explain this with code examples would you? Thanks,
Leo T. Smith Program/Analyst Supervisor
-
OK, I am not sure how you mean to do this. I am used to using AJAX calls to make things work, but I don't know how that differs from this kind of a call. How would I setup callbacks and addressing the webservice for the required function? You wouldn't happen to know an article or two that would explain this with code examples would you? Thanks,
Leo T. Smith Program/Analyst Supervisor
Hey.. This is not dealing with any AJAX requests to WebMethods. Dont mix up this with client server architecture. Actually you are now dealing with Server-Server communication. Just add Web Reference to the Webservice from within your proxy webservice. The Classes will be created automatically. You just need to create object of them and call the functions of your need. :-D http://msdn.microsoft.com/en-us/library/8wbhsy70(VS.80).aspx[^] This might help you... :rose:
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.