ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » reading XML message from IBM MQ (web sphere) using vb.net

Post new topic  Reply to topic
 reading XML message from IBM MQ (web sphere) using vb.net « View previous topic :: View next topic » 
Author Message
skana
PostPosted: Fri Dec 15, 2017 8:59 am    Post subject: reading XML message from IBM MQ (web sphere) using vb.net Reply with quote

Newbie

Joined: 14 Dec 2017
Posts: 2

Hi,

I am new to XML and message Queues. My requirement is to read a XML message from the MQ(Websphere) process them and insert to our database(oracle). We use VB.NET for our webapplication.

We need to do it in a transactional way, building custom queue.

Any code sample or guidance would be highly appreciated.

Thanks in advance for your earliest response.

skana
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Dec 18, 2017 12:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

You can use the IBM dot net MQ trigger monitor.

This will handle most of the MQ Interface coding for you.

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.dev.doc/q029700_.htm
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
skana
PostPosted: Thu Dec 21, 2017 7:30 am    Post subject: Reply with quote

Newbie

Joined: 14 Dec 2017
Posts: 2

Hi,

I installed WebsphereMqClient V8 to my consoleApplication(VS2015) and the below lines of code throws the following error :

---------------------------------------------------------
Dim xmsConnFact As IConnectionFactory
Dim factoryFactory As XMSFactoryFactory

factoryFactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ)

'create WMQ connection factory
xmsConnFact = factoryFactory.CreateConnectionFactory()
----------------------------------------------------------------------------
Could not load type 'IBM.WMQ.ManagedCommonServices' from assembly 'IBM.XMS.Client.WMQ, Version=8.0.0.7, Culture=neutral, PublicKeyToken=d2666ab12fca862b'.
-----------------------------------------------------------------------------

Should I need to install any other software for this code to work? Do I need MqClient for Windows also?

Appreciate your earliest response.

Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 21, 2017 9:51 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

skana wrote:
Hi,

I installed WebsphereMqClient V8 to my consoleApplication(VS2015) and the below lines of code throws the following error :

---------------------------------------------------------
Dim xmsConnFact As IConnectionFactory
Dim factoryFactory As XMSFactoryFactory

factoryFactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ)

'create WMQ connection factory
xmsConnFact = factoryFactory.CreateConnectionFactory()
----------------------------------------------------------------------------
Could not load type 'IBM.WMQ.ManagedCommonServices' from assembly 'IBM.XMS.Client.WMQ, Version=8.0.0.7, Culture=neutral, PublicKeyToken=d2666ab12fca862b'.
-----------------------------------------------------------------------------

Should I need to install any other software for this code to work? Do I need MqClient for Windows also?

Appreciate your earliest response.

Thanks

Not if you plan to use managed clients only. However you should have at least 2 dlls in the GAC. The MQ .NET client dll and the XMS client dll.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » reading XML message from IBM MQ (web sphere) using vb.net
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.