473,503 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Application as both WS client and server

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
Jun 27 '08 #1
2 971
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.
Jun 27 '08 #2
Alternatively, you might consider using WCF rather than ASP.NET Web
Services.

WCF will allow your app to create a proxy through which you can consume
remote web services (I.e. out of process or hosted on a different machine)
and also expose itself as a web service for others to consume.

Note that WCF will also allow you to use a variety of transports (e.g. HTTP,
TCP) and encodings (e.g. SOAP, POX, BinaryXML) depending on your needs, just
by changing the app config file!

--- BitCrazed ---

"davidkclark" <da*********@gmail.comwrote in message
news:f9**********************************@56g2000h sm.googlegroups.com...
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.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2538
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
2
2108
by: faktujaa | last post by:
Hi, I have created an application that uses IIS to host remote components. All the remote components are listed in app.config in client and web.config in server. Now the app.config can contain...
43
2792
by: Davey | last post by:
I am planning on developing an application which will involve skills that I have very little experience of - therefore I would appreciate comments on my initial design thoughts. Overview on...
11
2744
by: Timothy Shih | last post by:
Hi, I am having a freezing issue with my application. My application serves several remotable objects, all of which must be initialized before their use. Furthermore, some of them depend on each...
9
2754
by: Graham | last post by:
I have been having some fun learning and using the new Controls and methods in .Net 2.0 which will make my life in the future easier and faster. Specifically the new databinding practises and...
2
1839
by: Matthew Hood | last post by:
My company has expressed a desire to convert an existing MS Access application to a full VB.NET application. My experience is with VB6 so I want to ask a few questions and get some input on the...
22
6223
by: Jordan S. | last post by:
SQL Server will be used as the back-end database to a non trivial client application. In question is the choice of client application: I need to be able to speak intelligently about when one...
11
4321
by: Olie | last post by:
This post is realy to get some opinions on the best way of getting fast comunication between multiple applications. I have scowered the web for imformation on this subject and have just found...
11
4859
by: Jeff | last post by:
Hello everyone. I've searched through the archives here, and it seems that questions similar to this one have come up in the past, but I was hoping that I could pick your Pythonic brains a bit. ...
1
2190
by: vijayakumar | last post by:
hi all I'm beginner in CORBA Server-Client application development. My server- client application was worked well and i have tested it too. Due to some Network problem we have rebooted our...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.