473,947 Members | 30,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

services vs compounents

Just finishing an intro book to VB programming; I covered basics on how
to due this or that for services and components. However, I'm still
wondering the following. What's the main advantage or reason to use:
web service, system service, or component? What advantages does one
have over the other? They all seem to expose methods that can be used
one way or another.

Nov 21 '05 #1
4 996
they are all twists on the same idea: reusable "components "

web services are generally used when cross-platform access is needed --
the format is generally XML/SOAP and as such is ideal for heterogeneous
interoperabilit y (examples would be a weather service, a stock quote
service, etc.)

remoting services tend to be used for windows/.net to windows/.net
functionality -- they offer some security features not normally found
in webservices and also allow some client-side control of the lifetime
of the server object... also, they can be exposed by IIS, and at times
can use non-default constructors

a windows service generally is not accessible from anywhere but the
machine on which it runs. they are useful for scenarios lie offline
data processing (e.g. I frequently use a FileSystemWatch er that updates
a database when a datafile is saved in a particular directory)

a serviced component (COM+) offers a different security model and is
accessible from non .NET code. it offers certain features like message
queueing, transactional processing, etc.

normally a specific design need will eliminate certain possibilities.
the 70-310 course books from both Microsoft and Que provide a good
starting point.

Nov 21 '05 #2
stand__sure wrote:
they are all twists on the same idea: reusable "components "

web services are generally used when cross-platform access is needed --
the format is generally XML/SOAP and as such is ideal for heterogeneous
interoperabilit y (examples would be a weather service, a stock quote
service, etc.)

remoting services tend to be used for windows/.net to windows/.net
functionality -- they offer some security features not normally found
in webservices and also allow some client-side control of the lifetime
of the server object... also, they can be exposed by IIS, and at times
can use non-default constructors

a windows service generally is not accessible from anywhere but the
machine on which it runs. they are useful for scenarios lie offline
data processing (e.g. I frequently use a FileSystemWatch er that updates
a database when a datafile is saved in a particular directory)

a serviced component (COM+) offers a different security model and is
accessible from non .NET code. it offers certain features like message
queueing, transactional processing, etc.

normally a specific design need will eliminate certain possibilities.
the 70-310 course books from both Microsoft and Que provide a good
starting point.


Thanks so much for the useful info. I still have lots of questions but
that definitely helps. What I'm mainly interested in is learning about
transactions within a closed domain. I'm not sure about the COM+ vs.
remoting but I'm thinking remoting is the next topic for me to learn
about. I'll keep the 70-310 course books in mind.

Nov 21 '05 #3
you'll actually want to learn about both then...

Good news, though!
(Thankfully) COM objects inherit from ServicedCompone nt which inherits
from ContextBoundObj ect which inherits from MarshalByRefObj ect (which
is the object from which a remotable object must inherit). so, what
you learn about remoting will be of use when doing COM+! You'll need
COM+ for doing transactions.

two decent articles are
http://whidbey.msdn.microsoft.com/li...remotearch.asp
and
http://whidbey.msdn.microsoft.com/li...et05272003.asp

Nov 21 '05 #4

stand__sure wrote:
you'll actually want to learn about both then...

Good news, though!
(Thankfully) COM objects inherit from ServicedCompone nt which inherits
from ContextBoundObj ect which inherits from MarshalByRefObj ect (which
is the object from which a remotable object must inherit). so, what
you learn about remoting will be of use when doing COM+! You'll need
COM+ for doing transactions.

two decent articles are
http://whidbey.msdn.microsoft.com/li...remotearch.asp
and
http://whidbey.msdn.microsoft.com/li...et05272003.asp

Thanks once again. I appreciate the time you invested directing me to
useful info.. I'll put it to good use.

Nov 21 '05 #5

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

Similar topics

4
2258
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python Programming on Win32": import win32serviceutil import win32service import win32event class test_py_service(win32serviceutil.ServiceFramework): _svc_name_ = "test_py_service"
6
2584
by: cs | last post by:
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on as possible, it doesnt even need to be a service if there is a way to run .net apps before that, anyone knows what or where?
0
2184
by: Diego F. | last post by:
I've been days with that. I'm trying to work with web services sending and returning objects, and the web service must store some objects. - My first try (the most obvious in my opinion) was to use a class contained in a extern dll so the web service and the application can use it and send or return via web services: public customObject myWebMethod(customObject obj); . I saw that web services can't deal with this cause the WS creates...
26
1930
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
3
6519
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07162002.asp) but I don't want clients to have to add two web references and then manually have to edit the proxy classes. After doing some searching I found that putting references to multiple web services in a .disco...
7
6025
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is or do i need to write the xml as text from the web service and supply a DTD. Also any other pitfalls TIA
3
5020
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : >************************************************************************ > <WebMethod(), System.Web.Services.Protocols.SoapRpcMethod()> _ > Public Function HelloWorld() As > <System.Xml.Serialization.SoapElementAttribute("return")> String
2
2083
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code so that whenever any service starts, stops or timers elapse a log entry is created. When I install my project, and start the 1st service in the services console, it shows that the service started and I have the corresponding log entry confirming...
0
1813
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting only byval params but i didnt get byref params.please let me know how to get byref values from web methods. please help me in this regard because its an urgent requirement. ------------------------wsdl...
0
10162
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9982
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11571
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11344
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10690
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9886
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6113
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4537
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3541
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.