
VB.NEt Beginner: Creating a COM+ Object in VB.net
Hi Anthony,
At the top of the file, you need:
Imports System.EnterpriseServices
(make sure you have set a reference to it under Projects - References)
In your class definition, you need to add:
Inherits ServicedComponent
HTH
Greg Low
Brisbane, Oztralia
Quote:
> Hi Greg!
> I am not so sure how to inherit from the service component class? I have
> registered Com Objects before
> Thanks much,
> Anthony
> > Hi Anthony,
> > You basically need to:
> > 1. Create your class, inheriting from ServicedComponent (part of the
> > EnterpriseServices namespace) and adding an application name in the
> assembly
> > info.
> > 2. Use RegSvcs to register the service in COM+.
> > 3. In the properties of the component (in Component Services management
> > GUI), check the box that says to expose it as a web service.
> > HTH
> > Greg Low
> > Brisbane, Oztralia
> > > I am trying to figure out how to build a COM+ Object in VB.NET. I
know
> in
> > > VB6 you would create a class. Are there any tutorials or samples
anyone
> > can
> > > point me to. I would like to make a COM Object that receives XML Data
> and
> > > returns XML Data. The way it would receive data is via IBM's
Websphere
> MQ
> > > and return the data onto the queue.
> > > Any help would be Appreciated.
> > > Thanks,
> > > Anthony Biondo
> > > Keystone Mercy Health Plan