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 IndexWebSphere Message Broker SupportNeed ESQL code help with specific namespace declaration !!

Post new topicReply to topic
Need ESQL code help with specific namespace declaration !! View previous topic :: View next topic
Author Message
rupankabiraj
PostPosted: Wed May 22, 2019 1:49 am Post subject: Need ESQL code help with specific namespace declaration !! Reply with quote

Newbie

Joined: 22 May 2019
Posts: 1

Hi,

I am trying to generate the following piece of xml using ESQL:

<?xml version="1.0" encoding="UTF-8"?>
<FIXML xsi:schemaLocation="Value1" xmlns="Value1" xmlns:xsi="Value2">
<Header/>
<Body>
<Name>FINACLE sample</Name>
</Body>

I am able to create everything except namespace declaration xsi:schemaLocation="Value1l"

could someone hep me with this piece of work.
Note: As I was not able to post exact namespace uris, I have mentioned as Value1 and Value2.

Thanks and Regards,
Rupan.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Wed May 22, 2019 4:03 am Post subject: Re: Need ESQL code help with specific namespace declaration Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 345
Location: Columbus, OH

rupankabiraj wrote:
I am able to create everything except namespace declaration xsi:schemaLocation="Value1l"


That is not a namespace declaration, that entry is an attribute of the field FIXML.
Back to top
View user's profile Send private message
timber
PostPosted: Wed May 22, 2019 1:47 pm Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1018

There is a standard way to solve this type of problem in IIB/ACE.
1. Create a message flow that accepts an XML document ( from file/HTTP/MQ - your choice)
2. Add a Trace node and set the Pattern to ${Root}
3. Create the XML document that you want to generate.
4. Submit the XML document to your test message flow
5. Look carefully at the Trace node output. It is showing you what the parsed message tree looks like.
6. Modify your real message flow so that it generates exactly the same message tree.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportNeed ESQL code help with specific namespace declaration !!
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.