Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2008

Tip: Looking for answers? Try searching our database.

Application as both WS client and server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sandersja - 23 Apr 2008 20:56 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.