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 » IBM MQ Java / JMS » MQ and XML Question

Post new topic  Reply to topic
 MQ and XML Question « View previous topic :: View next topic » 
Author Message
raghx
PostPosted: Thu Jun 21, 2012 5:54 am    Post subject: MQ and XML Question Reply with quote

Newbie

Joined: 21 Jun 2012
Posts: 1

Hi All,
I need some help relating to XML data on MQ for the below scenario:
There are 2 applications (A=Sender using JMS and B=Receiver using Pro*C):
a) Application A sends the XML data to Application B's local MQ via Application A's MQBridge.
b) Application B should read the XML using Pro*C and process the XML data.

I'm a bit confuse whether the XML data will be available for Application B as a XML (formatted) or just a simple continuous String with XML Tags.

Also are there any setting should be made in Application B to receive the data in a XML format or any code/property should be set in Pro*C.

Please guide
Thanks in advance.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 21, 2012 7:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Both sides will have to serialize and parse the data.

This is no different than sending it over HTTP.

Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 21, 2012 12:34 pm    Post subject: Re: MQ and XML Question Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

raghx wrote:
I'm a bit confuse whether the XML data will be available for Application B as a XML (formatted) or just a simple continuous String with XML Tags.


Why does this matter? The formatting (by which I'm assuming you mean 1 tag per line as per IE, XMLSpy et al) make no difference to the syntax of a document and a compliant XML parser will treat both as equivalent. Note only that many tools (like IE) will display XML as formatted even if the actual document is a single continuous string.

But to echo the completely accurate comments of my most worthy associate, sending data over WMQ is no different to sending it over TCP/IP. Dealing with the payload is the responsibility of the applications at each end & WMQ plays no part in this unless it is specifically instructed by the applications to handle any variations in code page. Such variations have no connection on the data being XML, formatted XML or instructions for assembling flat-pack furniture.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ and XML Question
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.