Re: How to call queued component from VBScript?
- From: <Izorich@xxxxxxxxxxxxx>
- Date: Fri, 1 Aug 2008 10:53:32 -0700
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@xxxxxxxxxxxxxxxxxxxx> wrote in message news:q99OddV8IHA.4832@xxxxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
tFrom: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng [MSFT])
Organization: Microsoft
Date: Fri, 25 Jul 2008 02:15:10 GMT
Subject: RE: How to call queued component from VBScript?
a
Hi Lzorich,
As for .NET created COM+(the serviced component), it can be consumed likenormal COM object. You need to first deploy it and register it into theNET
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 callingcom+ from classic ASP(script based), I think it will also helpful to you:f
#.Net COM+ Interop Component with Classic ASP (Part I)
http://www.codeproject.com/KB/vb-interop/Net_COM__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@xxxxxxxxxxxxxx
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti
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/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------From: <Izorich@xxxxxxxxxxxxx>
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?
.
- Follow-Ups:
- Re: How to call queued component from VBScript?
- From: Steven Cheng [MSFT]
- Re: How to call queued component from VBScript?
- From: Steven Cheng [MSFT]
- Re: How to call queued component from VBScript?
- Prev by Date: Re: List email addresses
- Next by Date: Re: Detecting if a User is a Member of a Group
- Previous by thread: SQL by column position - How (rewording)
- Next by thread: Re: How to call queued component from VBScript?
- Index(es):
Relevant Pages
|