Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to call queued component from VBScript?

Reply
 
Old 07-24-2008   #1 (permalink)


 
 

How to call queued component from VBScript?

I'd like to create a simple VBScript to invoke a queued COM+ component
written in .NET and I have no idea how to do that. How can one do that?

While we are on the topic here are related questions:
1. How do I invoke standard COM+ component (not a queued component) from
VBScript?
2. How do I put a message into a queue (Microsoft queues) from VBScript?


My System SpecsSystem Spec
Old 07-24-2008   #2 (permalink)
Steven Cheng [MSFT]


 
 

RE: How to call queued component from VBScript?

Hi Lzorich,

As for .NET created COM+(the serviced component), it can be consumed like a
normal COM object. You need to first deploy it and register it into the
Component services on the server. .NET framework has provided the tools to
do it(the regsvcs tool).

The following knowledge base article provided a simple example:

#HOW TO: Create a Serviced .NET Component in Visual C# .NET
http://support.microsoft.com/kb/306296

the test code it uses to call the component is also vbscript like:

============
set o =createobject("ServicedCOM.SimpleTrans")

MsgBox o.DoTrans()
=================

In addition, I found this code project article which mentioned calling .NET
com+ from classic ASP(script based), I think it will also helpful to you:

#.Net COM+ Interop Component with Classic ASP (Part I)
http://www.codeproject.com/KB/vb-int...__Interop.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.




--------------------
Quote:

>From: <Izorich@xxxxxx>
>Subject: How to call queued component from VBScript?
>Date: Thu, 24 Jul 2008 10:58:58 -0700
Quote:

>
>I'd like to create a simple VBScript to invoke a queued COM+ component
>written in .NET and I have no idea how to do that. How can one do that?
>
>While we are on the topic here are related questions:
>1. How do I invoke standard COM+ component (not a queued component) from
>VBScript?
>2. How do I put a message into a queue (Microsoft queues) from VBScript?
>
>
My System SpecsSystem Spec
Old 07-29-2008   #3 (permalink)
Steven Cheng [MSFT]


 
 

RE: How to call queued component from VBScript?

Hi Lzorich,

How are you doing?

Have you got any progress on this issue or does the information in my last
reply help you some?

Sincerely,

Steven Cheng
Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
t
Quote:

>From: stcheng@xxxxxx (Steven Cheng [MSFT])
>Organization: Microsoft
>Date: Fri, 25 Jul 2008 02:15:10 GMT
>Subject: RE: How to call queued component from VBScript?
Quote:

>
>Hi Lzorich,
>
>As for .NET created COM+(the serviced component), it can be consumed like
a
Quote:

>normal COM object. You need to first deploy it and register it into the
>Component services on the server. .NET framework has provided the tools to
>do it(the regsvcs tool).
>
>The following knowledge base article provided a simple example:
>
>#HOW TO: Create a Serviced .NET Component in Visual C# .NET
>http://support.microsoft.com/kb/306296
>
>the test code it uses to call the component is also vbscript like:
>
>============
>set o =createobject("ServicedCOM.SimpleTrans")
>
>MsgBox o.DoTrans()
>=================
>
>In addition, I found this code project article which mentioned calling
.NET
Quote:

>com+ from classic ASP(script based), I think it will also helpful to you:
>
>#.Net COM+ Interop Component with Classic ASP (Part I)
>http://www.codeproject.com/KB/vb-int...__Interop.aspx
>
>Sincerely,
>
>Steven Cheng
>
>Microsoft MSDN Online Support Lead
>
>
>Delighting our customers is our #1 priority. We welcome your comments and
>suggestions about how we can improve the support we provide to you. Please
>feel free to let my manager know what you think of the level of service
>provided. You can send feedback directly to my manager at:
>msdnmg@xxxxxx
>
>==================================================
>Get notification to my posts through email? Please refer to
>http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
Quote:

>ications.
>
>Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
>where an initial response from the community or a Microsoft Support
>Engineer within 1 business day is acceptable. Please note that each follow
>up response may take approximately 2 business days as the support
>professional working with you may need further investigation to reach the
>most efficient resolution. The offering is not appropriate for situations
>that require urgent, real-time or phone-based interactions or complex
>project analysis and dump analysis issues. Issues of this nature are best
>handled working with a dedicated Microsoft Support Engineer by contacting
>Microsoft Customer Support Services (CSS) at
>http://msdn.microsoft.com/subscripti...t/default.aspx.
>==================================================
>This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
>
>--------------------
Quote:

>>From: <Izorich@xxxxxx>
>>Subject: How to call queued component from VBScript?
>>Date: Thu, 24 Jul 2008 10:58:58 -0700
>
Quote:

>>
>>I'd like to create a simple VBScript to invoke a queued COM+ component
>>written in .NET and I have no idea how to do that. How can one do that?
>>
>>While we are on the topic here are related questions:
>>1. How do I invoke standard COM+ component (not a queued component) from
>>VBScript?
>>2. How do I put a message into a queue (Microsoft queues) from VBScript?
>>
>>
>
>
My System SpecsSystem Spec
Old 08-01-2008   #4 (permalink)


 
 

Re: How to call queued component from VBScript?

Here is how I was able to make a queued call from JScript. The key is a
first line.

var myQSC = GetObject("queue:/new:dotNetClassNamespace.dotNetClassName");
myQSC.MyQueuedCall(argument1, argument2, argument3)
myQSC = null;

Interesting note: everybody says that assemblies need to be put in a GAC,
but in reality it all works fine without GAC at least for queued components.

"Steven Cheng [MSFT]" <stcheng@xxxxxx> wrote in message
news:q99OddV8IHA.4832@xxxxxx
Quote:

> Hi Lzorich,
>
> How are you doing?
>
> Have you got any progress on this issue or does the information in my last
> reply help you some?
>
> Sincerely,
>
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@xxxxxx.
>
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscripti...ult.aspx#notif
> ications.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> --------------------
> t
Quote:

>>From: stcheng@xxxxxx (Steven Cheng [MSFT])
>>Organization: Microsoft
>>Date: Fri, 25 Jul 2008 02:15:10 GMT
>>Subject: RE: How to call queued component from VBScript?
>
Quote:

>>
>>Hi Lzorich,
>>
>>As for .NET created COM+(the serviced component), it can be consumed like
> a
Quote:

>>normal COM object. You need to first deploy it and register it into the
>>Component services on the server. .NET framework has provided the tools to
>>do it(the regsvcs tool).
>>
>>The following knowledge base article provided a simple example:
>>
>>#HOW TO: Create a Serviced .NET Component in Visual C# .NET
>>http://support.microsoft.com/kb/306296
>>
>>the test code it uses to call the component is also vbscript like:
>>
>>============
>>set o =createobject("ServicedCOM.SimpleTrans")
>>
>>MsgBox o.DoTrans()
>>=================
>>
>>In addition, I found this code project article which mentioned calling
> NET
Quote:

>>com+ from classic ASP(script based), I think it will also helpful to you:
>>
>>#.Net COM+ Interop Component with Classic ASP (Part I)
>>http://www.codeproject.com/KB/vb-int...__Interop.aspx
>>
>>Sincerely,
>>
>>Steven Cheng
>>
>>Microsoft MSDN Online Support Lead
>>
>>
>>Delighting our customers is our #1 priority. We welcome your comments and
>>suggestions about how we can improve the support we provide to you. Please
>>feel free to let my manager know what you think of the level of service
>>provided. You can send feedback directly to my manager at:
>>msdnmg@xxxxxx
>>
>>==================================================
>>Get notification to my posts through email? Please refer to
>>http://msdn.microsoft.com/subscripti...ault.aspx#noti
> f
Quote:

>>ications.
>>
>>Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
>>where an initial response from the community or a Microsoft Support
>>Engineer within 1 business day is acceptable. Please note that each follow
>>up response may take approximately 2 business days as the support
>>professional working with you may need further investigation to reach the
>>most efficient resolution. The offering is not appropriate for situations
>>that require urgent, real-time or phone-based interactions or complex
>>project analysis and dump analysis issues. Issues of this nature are best
>>handled working with a dedicated Microsoft Support Engineer by contacting
>>Microsoft Customer Support Services (CSS) at
>>http://msdn.microsoft.com/subscripti...t/default.aspx.
>>==================================================
>>This posting is provided "AS IS" with no warranties, and confers no
>>rights.
>>
>>
>>
>>
>>--------------------
Quote:

>>>From: <Izorich@xxxxxx>
>>>Subject: How to call queued component from VBScript?
>>>Date: Thu, 24 Jul 2008 10:58:58 -0700
>>
Quote:

>>>
>>>I'd like to create a simple VBScript to invoke a queued COM+ component
>>>written in .NET and I have no idea how to do that. How can one do that?
>>>
>>>While we are on the topic here are related questions:
>>>1. How do I invoke standard COM+ component (not a queued component) from
>>>VBScript?
>>>2. How do I put a message into a queue (Microsoft queues) from VBScript?
>>>
>>>
>>
>>
>
My System SpecsSystem Spec
Old 08-03-2008   #5 (permalink)
Steven Cheng [MSFT]


 
 

Re: How to call queued component from VBScript?

Thanks for your followup Lzorich,

I'm glad that you've already got it working and also thanks for sharing us
the results.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Quote:

>From: <Izorich@xxxxxx>
>References: <94E29818-556B-4D43-ACBB-01C948161216@xxxxxx>
<tmmIRpj7IHA.4056@xxxxxx>
<q99OddV8IHA.4832@xxxxxx>
Quote:

>In-Reply-To: <q99OddV8IHA.4832@xxxxxx>
>Subject: Re: How to call queued component from VBScript?
>Date: Fri, 1 Aug 2008 10:53:32 -0700
Quote:

>
>Here is how I was able to make a queued call from JScript. The key is a
>first line.
>
>var myQSC = GetObject("queue:/new:dotNetClassNamespace.dotNetClassName");
>myQSC.MyQueuedCall(argument1, argument2, argument3)
>myQSC = null;
>
>Interesting note: everybody says that assemblies need to be put in a GAC,
>but in reality it all works fine without GAC at least for queued
components.
Quote:

>
>"Steven Cheng [MSFT]" <stcheng@xxxxxx> wrote in message
>news:q99OddV8IHA.4832@xxxxxx
Quote:

>> Hi Lzorich,
>>
>> How are you doing?
>>
>> Have you got any progress on this issue or does the information in my
last
Quote:
Quote:

>> reply help you some?
>>
>> Sincerely,
>>
>> Steven Cheng
>> Microsoft MSDN Online Support Lead
>>
>> Delighting our customers is our #1 priority. We welcome your comments and
>> suggestions about how we can improve the support we provide to you.
Please
Quote:
Quote:

>> feel free to let my manager know what you think of the level of service
>> provided. You can send feedback directly to my manager at:
>> msdnmg@xxxxxx.
>>
>> ==================================================
>> Get notification to my posts through email? Please refer to
>>
http://msdn.microsoft.com/subscripti...ult.aspx#notif
Quote:
Quote:

>> ications.
>> ==================================================
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> --------------------
>> t
Quote:

>>>From: stcheng@xxxxxx (Steven Cheng [MSFT])
>>>Organization: Microsoft
>>>Date: Fri, 25 Jul 2008 02:15:10 GMT
>>>Subject: RE: How to call queued component from VBScript?
>>
Quote:

>>>
>>>Hi Lzorich,
>>>
>>>As for .NET created COM+(the serviced component), it can be consumed like
>> a
Quote:

>>>normal COM object. You need to first deploy it and register it into the
>>>Component services on the server. .NET framework has provided the tools
to
Quote:
Quote:
Quote:

>>>do it(the regsvcs tool).
>>>
>>>The following knowledge base article provided a simple example:
>>>
>>>#HOW TO: Create a Serviced .NET Component in Visual C# .NET
>>>http://support.microsoft.com/kb/306296
>>>
>>>the test code it uses to call the component is also vbscript like:
>>>
>>>============
>>>set o =createobject("ServicedCOM.SimpleTrans")
>>>
>>>MsgBox o.DoTrans()
>>>=================
>>>
>>>In addition, I found this code project article which mentioned calling
>> NET
Quote:

>>>com+ from classic ASP(script based), I think it will also helpful to you:
>>>
>>>#.Net COM+ Interop Component with Classic ASP (Part I)
>>>http://www.codeproject.com/KB/vb-int...__Interop.aspx
>>>
>>>Sincerely,
>>>
>>>Steven Cheng
>>>
>>>Microsoft MSDN Online Support Lead
>>>
>>>
>>>Delighting our customers is our #1 priority. We welcome your comments and
>>>suggestions about how we can improve the support we provide to you.
Please
Quote:
Quote:
Quote:

>>>feel free to let my manager know what you think of the level of service
>>>provided. You can send feedback directly to my manager at:
>>>msdnmg@xxxxxx
>>>
>>>==================================================
>>>Get notification to my posts through email? Please refer to
>>>http://msdn.microsoft.com/subscripti...efault.aspx#no
ti
Quote:
Quote:

>> f
Quote:

>>>ications.
>>>
>>>Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
Quote:
Quote:
Quote:

>>>where an initial response from the community or a Microsoft Support
>>>Engineer within 1 business day is acceptable. Please note that each
follow
Quote:
Quote:
Quote:

>>>up response may take approximately 2 business days as the support
>>>professional working with you may need further investigation to reach the
>>>most efficient resolution. The offering is not appropriate for situations
>>>that require urgent, real-time or phone-based interactions or complex
>>>project analysis and dump analysis issues. Issues of this nature are best
>>>handled working with a dedicated Microsoft Support Engineer by contacting
>>>Microsoft Customer Support Services (CSS) at
>>>http://msdn.microsoft.com/subscripti...t/default.aspx.
>>>==================================================
>>>This posting is provided "AS IS" with no warranties, and confers no
>>>rights.
>>>
>>>
>>>
>>>
>>>--------------------
>>>>From: <Izorich@xxxxxx>
>>>>Subject: How to call queued component from VBScript?
>>>>Date: Thu, 24 Jul 2008 10:58:58 -0700
>>>
>>>>
>>>>I'd like to create a simple VBScript to invoke a queued COM+ component
>>>>written in .NET and I have no idea how to do that. How can one do that?
>>>>
>>>>While we are on the topic here are related questions:
>>>>1. How do I invoke standard COM+ component (not a queued component) from
>>>>VBScript?
>>>>2. How do I put a message into a queue (Microsoft queues) from VBScript?
>>>>
>>>>
>>>
>>>
>>
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
I need to Call this command in a vbscript VB Script
Disk cleanup files: "PER USER QUEUED ERROR REPORT" Vista General
Powershell Wrapper Script Problems - Trying to Call PowershellExchange 2007 Commands from Secondary Language (Like VBScript) PowerShell
Is that possible to call .net 2.0 com component fro .net 1.1application? .NET General
Is that possible to call .net 2.0 com component fro .net 1.1application? .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46