I am trying to come up to speed on .Net webservices and have gotten
stuck on a basic issue - I appreciate any clarification.
I can readily create C# applications that can consume webservices as a
client. In that same app, how can I offer webservices to other
clients? For example, so two apps can communicate.
Everything I read about providing webservices has them built into
asp.net pages running on IIS.
THANKS
davidkclark - 23 Apr 2008 23:31 GMT
This article on msdn decribes how to host a webservice in a
windowsservice:
http://msdn2.microsoft.com/en-us/library/aa529311.aspx
Hosting in your client program should be similar. Basically you will
have to copy the source and config files for your webservice, add
usings for the appropriate Microsoft.Web.Services classes, and call
SoapReceivers.Add to start and .Clear to stop the service.
BTW: You might be better off looking into .Net Remoting if you are
looking for communication between applications (TCP or IPC depending
on the location fo the two clients)
Good Luck.