Posted: Thu Jun 21, 2012 5:54 am Post subject: MQ and XML Question
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.
Posted: Thu Jun 21, 2012 12:34 pm Post subject: Re: MQ and XML Question
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.
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