VB.NEt Beginner: Creating a COM+ Object in VB.net 
Author Message
 VB.NEt Beginner: Creating a COM+ Object in VB.net

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



Fri, 01 Jul 2005 03:09:12 GMT  
 VB.NEt Beginner: Creating a COM+ Object in VB.net

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



Quote:
> 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



Fri, 01 Jul 2005 05:42:52 GMT  
 VB.NEt Beginner: Creating a COM+ Object in VB.net
Hi Greg!

I am not so sure how to inherit from the service component class?  I have
registered Com Objects before

Thanks much,
Anthony


Quote:
> 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



Fri, 01 Jul 2005 08:54:28 GMT  
 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



Fri, 01 Jul 2005 14:02:04 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Problem passing VB COM+ ASP Request object to .NET component System.Web.HTTPRequest through COM interop

2. Beginner question about MS Office objects and VB .NET

3. Severe VB.NET COM/.NET Interop Limitation

4. Problem with VB.NET and COM Objects

5. Calling a COM object from VB.Net with Optional Params

6. call com object with byref byte parameters in vb.net

7. call com object with byref byte parameters in vb.net

8. Accessing COM object from VB.NET Assembly

9. TOUGH Question - Late Bound COM objects and VB.NET

10. what create table using ADO.NET to VB.NET

11. Problem with using Com object from VB.NET

12. Passing Form Fields to VB.NET Custom Business Object in an ASP.NET Code Behind Page

 

 
Powered by phpBB® Forum Software