|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
COM object accessing a MQ queue |
« View previous topic :: View next topic » |
Author |
Message
|
g4Prakash |
Posted: Thu Feb 19, 2004 1:24 am Post subject: COM object accessing a MQ queue |
|
|
 Apprentice
Joined: 17 Dec 2002 Posts: 25 Location: INDIA
|
Hi,
Can somebody help me out with this:
A COM object needs to access queues on a remote machine and put and get messages from it. The message would be a SOAP message. It looks like we might not use http and someone suggested using the WebSphere MQ transport support for SOAP messages. Can somebody help me with this.
Are there any samples and configuration details available for the same.
Thanks. |
|
Back to top |
|
 |
JasonE |
Posted: Thu Feb 19, 2004 2:14 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
|
Back to top |
|
 |
dpchiesa |
Posted: Tue Feb 24, 2004 10:53 am Post subject: SOAP message on MQ queue |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
Quote: |
A COM object needs to access queues on a remote machine and put and get messages from it. The message would be a SOAP message. It looks like we might not use http and someone suggested using the WebSphere MQ transport support for SOAP messages. |
How is the COM object coded? What language and version?
SOAP isn't too complex, it is possible to create SOAP messages and serialize them to strings, which can then be dropped onto the MQ Queue.
You have options.
the MQ transport for SOAP - though I was not aware this was production ready yet. Also it may be more moving parts than you wanted.
manually create the SOAP message with the MS SOAP Toolkit v3.0. The SOAP toolkit exposes a COM object model which can be accessed from VB6 or VBScript/JScript.
Use the .NET Framework and WSE, which lets you manually build SOAP messages. For this you need to be using VB.NET or C# or some other .NET language to build your COM object.
use MSXML (if using VB6 or VBScript/JScript) or System.Xml (if using .NET) to create an XML doc that constitutes the SOAP message. If the message is not complex and the schema is fairly stable, then this may be a cheap and cheerful way to solve your problem.
_________________ -dpchiesa |
|
Back to top |
|
 |
g4Prakash |
Posted: Tue Feb 24, 2004 10:25 pm Post subject: ma0r support pack |
|
|
 Apprentice
Joined: 17 Dec 2002 Posts: 25 Location: INDIA
|
I am trying to use the MA0R support pack on my test environment and facing some problems running the demonstrations.
I have an XP, with MQ on it. Having unzipped the ma0r.zip file I created the new system environment variable ma0r_netdir as mentioned in the maor.html in the docs folder. Also I carried out the other prereqs required but yet I have the following problem when I execute the runivt for the first time.
Also I have not edited any file or changed any file locations. Would be glad if someone could help me out with this.
Thanks.
The error is displayed below :
********************************************************
C:\ma0r\demos>runivt DotNet DotNet2Axis
Services for demo not yet deployed.
Deploying now. This will take a few seconds, but will not need to be repeated .
......
setup environment
Registering dotNet classes. This should only need to be done once.
clean up old directories and files
The system cannot find the file specified.
The system cannot find the file specified.
Could Not Find C:\ma0r\demos\server-config.wsdd
check MQ bits ready
crtmqm MQSOAP.DEMO.QM completed OK.
amqmdain crtlsr MQSOAP.DEMO.QM -t tcp -p 9414 completed OK.
amqmdain start MQSOAP.DEMO.QM completed OK.
define qlocal(MQSOAP.RESPONSE.QUEUE) completed OK.
define qlocal(MQSOAP.SIDE.QUEUE) completed OK.
define qlocal(MQSOAP.DEAD.LETTER.QUEUE) completed OK.
define channel(TESTCHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP) REPLACE completed OK.
deploy the Axis server (generate proxies, etc)
ma0r_home: C:\ma0r
Package name: javaDemos.server
Compiling service code...
Generating WSDL...
Serviceport: javaDemos.server.StockQuoteAxis_Wmq
java org.apache.axis.wsdl.Java2WSDL --output helpers\javaDemos.server.StockQuot
eAxis_Wmq.wsdl --namespace javaDemos.server.StockQuoteAxis_Wmq --location wmq:SO
AP.javaDemos.server.StockQuoteAxis@MQSOAP.DEMO.QM?connectQueueManager=MQSOAP.DEM
O.QM --bindingName javaDemos.server.StockQuoteAxisBindingSoap --servicePortName
javaDemos.server.StockQuoteAxis_Wmq javaDemos.server.StockQuoteAxis
Generating and deploying server wsdd file...
Target dir: C:\ma0r\demos\helpers\javaDemos\server\
Patching deploy.wsdd...
Patching undeploy.wsdd...
Removing temp.server directory...
Preparing listener...
Configuring MQ...
Generate and compile proxy code...
java com.ibm.mq.ma0r.tools.RunWSDL2Java --timeout -1 --output helpers -p javaDem
os.server helpers\javaDemos.server.StockQuoteAxis_Wmq.wsdl
deploy the dotNet server (generate proxies, etc)
ma0r_home: C:\ma0r
Package name: DefaultNamespace
Generating WSDL...
mqsoapwsdl wmq:SOAP.StockQuoteDotNet@MQSOAP.DEMO.QM?connectQueueManager=MQSOAP.D
EMO.QM StockQuoteDotNet.asmx helpers\StockQuoteDotNet_Wmq.wsdl
Preparing listener...
Configuring MQ...
Generating and compiling proxy code...
java com.ibm.mq.ma0r.tools.RunWSDL2Java --output helpers -p dotNetService helper
s\StockQuoteDotNet_Wmq.wsdl
Recompile the clients, using the proxies just generated
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2DotNet.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2DotNet.cs(27,6): error CS0246: The type or namespace na
me 'StockQuoteDotNet' could not be found (are you missing a using directive or a
n assembly reference?)
dotnetDemos\clients\SQCS2DotNet.cs(30,34): error CS0246: The type or namespace n
ame 'stockobj' could not be found (are you missing a using directive or an assem
bly reference?)
dotnetDemos\clients\SQCS2DotNet.cs(32,26): error CS0246: The type or namespace n
ame 'stockobj' could not be found (are you missing a using directive or an assem
bly reference?)
dotnetDemos\clients\SQCS2DotNet.cs(37,13): error CS0246: The type or namespace n
ame 'stockobj' could not be found (are you missing a using directive or an assem
bly reference?)
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2DotNetAsync.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2DotNetAsync.cs(52,6): error CS0246: The type or namespa
ce name 'StockQuoteDotNet' could not be found (are you missing a using directive
or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(55,34): error CS0246: The type or namesp
ace name 'stockobj' could not be found (are you missing a using directive or an
assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(56,51): error CS0246: The type or namesp
ace name 'stockobj' could not be found (are you missing a using directive or an
assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(60,10): error CS0246: The type or namesp
ace name 'stockobj' could not be found (are you missing a using directive or an
assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(67,77): error CS0246: The type or namesp
ace name 'stockobj' could not be found (are you missing a using directive or an
assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(27,3): error CS0246: The type or namespa
ce name 'StockQuoteDotNet' could not be found (are you missing a using directive
or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsync.cs(31,23): error CS0246: The type or namesp
ace name 'stockobj' could not be found (are you missing a using directive or an
assembly reference?)
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2DotNetAsyncRequest.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2DotNetAsyncRequest.cs(51,5): error CS0246: The type or
namespace name 'StockQuoteDotNet' could not be found (are you missing a using di
rective or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncRequest.cs(56,36): error CS0246: The type or
namespace name 'stockobj' could not be found (are you missing a using directive
or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncRequest.cs(58,14): error CS0246: The type or
namespace name 'stockobj' could not be found (are you missing a using directive
or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncRequest.cs(26,6): error CS0246: The type or
namespace name 'StockQuoteDotNet' could not be found (are you missing a using di
rective or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncRequest.cs(30,26): error CS0246: The type or
namespace name 'stockobj' could not be found (are you missing a using directive
or an assembly reference?)
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2DotNetAsyncResponse.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2DotNetAsyncResponse.cs(30,4): error CS0246: The type or
namespace name 'StockQuoteDotNet' could not be found (are you missing a using d
irective or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncResponse.cs(33,75): error CS0246: The type o
r namespace name 'stockobj' could not be found (are you missing a using directiv
e or an assembly reference?)
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2DotNetAsyncMany.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(21,7): warning CS0659: 'AsyncRequest
Id' overrides Object.Equals(object o) but does not override Object.GetHashCode()
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(64,3): warning CS0168: The variable
'e' is declared but never used
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(137,4): error CS0246: The type or na
mespace name 'StockQuoteDotNet' could not be found (are you missing a using dire
ctive or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(139,32): error CS0246: The type or n
amespace name 'stockobj' could not be found (are you missing a using directive o
r an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(140,39): error CS0246: The type or n
amespace name 'stockobj' could not be found (are you missing a using directive o
r an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(155,10): error CS0246: The type or n
amespace name 'stockobj' could not be found (are you missing a using directive o
r an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(165,75): error CS0246: The type or n
amespace name 'stockobj' could not be found (are you missing a using directive o
r an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(99,3): error CS0246: The type or nam
espace name 'StockQuoteDotNet' could not be found (are you missing a using direc
tive or an assembly reference?)
dotnetDemos\clients\SQCS2DotNetAsyncMany.cs(103,13): error CS0246: The type or n
amespace name 'stockobj' could not be found (are you missing a using directive o
r an assembly reference?)
+++++++++++++++ ..\bin\quietOK csc /lib:..\bin /r:MQSOAP.dll dotNetDemos\clients
\SQCS2Axis.cs helpers\*.cs gave errlevel = 1
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
error CS2001: Source file 'helpers\*.cs' could not be found
dotnetDemos\clients\SQCS2Axis.cs(26,6): error CS0246: The type or namespace name
'StockQuoteAxisService' could not be found (are you missing a using directive o
r an assembly reference?)
dotnetDemos\clients\SQCS2Axis.cs(29,34): error CS0246: The type or namespace nam
e 'stockobj' could not be found (are you missing a using directive or an assembl
y reference?)
dotnetDemos\clients\SQCS2Axis.cs(31,26): error CS0246: The type or namespace nam
e 'stockobj' could not be found (are you missing a using directive or an assembl
y reference?)
+++++++++++++++ ..\bin\quietOK vbc /libpath:..\bin /r:MQSOAP.dll /r:System.Web.S
ervices.dll /r:System.XML.dll /r:System.dll dotNetDemos\clients\SQVB2DotNet.vb
helpers\*.vb gave errlevel = 1
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
vbc : Command line error BC2001 : file 'helpers\*.vb' could not be found
+++++++++++++++ ..\bin\quietOK vbc /libpath:..\bin /r:MQSOAP.dll /r:System.Web.S
ervices.dll /r:System.XML.dll /r:System.dll dotNetDemos\clients\SQVB2Axis.vb he
lpers\*.vb gave errlevel = 1
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
vbc : Command line error BC2001 : file 'helpers\*.vb' could not be found
+++++++++++++++ ..\bin\quietOK vbc /libpath:..\bin /r:MQSOAP.dll /r:System.Drawi
ng.dll /r:System.Windows.Forms.dll /r:System.Web.Services.dll /r:System.XML.dll
/r:System.dll /main:WMQSoapGui dotNetDemos\clients\WMQSoapGui.vb helpers\*.vb ga
ve errlevel = 1
Microsoft (R) Visual Basic .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322.573
Copyright (C) Microsoft Corporation 1987-2002. All rights reserved.
vbc : Command line error BC2001 : file 'helpers\*.vb' could not be found
Configure the client to make sure that Axis clients know about wmq:xxx
Registering dotNet classes. This should only need to be done once.
Demo regenerated
amqmdain start MQSOAP.DEMO.QM completed OK.
define channel(TESTCHANNEL) CHLTYPE(SVRCONN) TRPTYPE(TCP) REPLACE completed OK.
----- [Dotnet] --------------------------------
WMQ transport test: C# to .NET (Asmx)
+++ server: helpers\listen_StockQuoteDotNet
--- client: SQCS2DotNet
Failed to execute process: SQCS2DotNet
java.io.IOException: CreateProcess: SQCS2DotNet error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at javaDemos.clients.RunIvt.CmdExec(RunIvt.java:458)
at javaDemos.clients.RunIvt.runTest(RunIvt.java:396)
at javaDemos.clients.RunIvt.<init>(RunIvt.java:118)
at javaDemos.clients.RunIvt.main(RunIvt.java:521)
************** TEST FAILED !! TEST FAILED !! TEST FAILED *************
EXPECTED: DOC reply is: 77.77
ACTUAL:
**********************************************************************
----- [Dotnet2Axis] --------------------------------
WMQ transport test: C# to Axis
+++ server: helpers\listen_SOAP.javaDemos.server.StockQuoteAxis
--- client: SQCS2Axis
Failed to execute process: SQCS2Axis
java.io.IOException: CreateProcess: SQCS2Axis error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at javaDemos.clients.RunIvt.CmdExec(RunIvt.java:458)
at javaDemos.clients.RunIvt.runTest(RunIvt.java:396)
at javaDemos.clients.RunIvt.<init>(RunIvt.java:118)
at javaDemos.clients.RunIvt.main(RunIvt.java:521)
************** TEST FAILED !! TEST FAILED !! TEST FAILED *************
EXPECTED: SQCS2Axis RPC reply is: 55.25
ACTUAL:
**********************************************************************
----------------------------------
Service SimpleJMSListener: no response (maybe not running?).
Service DotNet: kill request accepted.
endMQ.bat not implemented for Windows ... MQ left running.
===========================================
2 tests run, of which 2 failed.
FAILED TESTS:
=============
Dotnet
Dotnet2Axis
C:\ma0r\demos>
********************************************************* |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|