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 » WebSphere Message Broker (ACE) Support » To convert XMLNSC to MRM

Post new topic  Reply to topic
 To convert XMLNSC to MRM « View previous topic :: View next topic » 
Author Message
Jasmine
PostPosted: Wed Jun 04, 2014 9:47 am    Post subject: To convert XMLNSC to MRM Reply with quote

Newbie

Joined: 27 May 2014
Posts: 5

Hello All,

I am new WMB .Im working on transforming from one format to another format.I got strucked with the transformation like XMLNSC to MRM(fixed length).

Could any guide me how to write the code in ESQL for transforming XMLNSC to MRM please...............


Regards,
Jasmine
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 04, 2014 10:41 am    Post subject: Re: To convert XMLNSC to MRM Reply with quote

Grand High Poobah

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

Jasmine wrote:
Could any guide me how to write the code in ESQL for transforming XMLNSC to MRM please...............


You don't. ESQL works on message trees not formats, fixed length or otherwise. If the input message tree happens to come from an XML document and the output tree happens to result in a fixed length file that's nothing to do with your ESQL.

It's everything to do with your message set. I say message set since you refer to MRM not DFDL, but the principle is the same with later versions. Like the IIBv9 your previous post complained about not being able to start. In which case you should be using DFDL not MRM to describe the fixed length format.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jun 04, 2014 11:56 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Vitor is correct. The code that you need will look something like this:
Code:
SET OutputRoot.DFDL = InputRoot.XMLNSC;

...or the equivalent in Java / Mapping Node / PHP.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Jasmine
PostPosted: Thu Jun 05, 2014 1:13 am    Post subject: Need ESQL Code For Converting XMLNSC to MRM Reply with quote

Newbie

Joined: 27 May 2014
Posts: 5

hi,

Thank you for responding could you pleas send a esql code to covert the input XML to MRM .Im not finding it any where.

I am trying it my own but not succeeding if u have could anyone of you send me a sample code if possible
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jun 05, 2014 1:22 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

If you have tried and you have not succeeded then you should tell us what happened. Quote the error message that you received ( if any ).

The first question is 'why MRM'. As Vitor said, you should be using DFDL if you are using WMBv8 or IIB v9.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 05, 2014 4:21 am    Post subject: Re: Need ESQL Code For Converting XMLNSC to MRM Reply with quote

Grand High Poobah

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

Jasmine wrote:
could you pleas send a esql code to covert the input XML to MRM .Im not finding it any where.


So what did you think the code sample posted was? A recipe for lamb stew?

Jasmine wrote:
I am trying it my own


There seems to be very little evidence of that. Not only are you posting really simplistic questions, you're not even reading the responses. Just reposting the same question in the hope of an answer you like.

Jasmine wrote:
but not succeeding


What are the symptoms of your failure? XML comes out in the file? Monkeys come out of your computer? No code writes itself no matter how hard you stare at the computer?

Jasmine wrote:
if u have could anyone of you send me a sample code if possible


a) You've got as much sample as you need
b) You've got as much advice as you need
c) You have access to all the product information you need

This is about as simple a task as you can get & I agree with @kimbert that the 1 line quoted is probably all you need. If you need more of a sample than that, you should reconsider your career choices; it gets much, much more complicated after this.
_________________
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 » WebSphere Message Broker (ACE) Support » To convert XMLNSC to MRM
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.