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 » Convert XML to CWF and CWF to XML

Post new topic  Reply to topic
 Convert XML to CWF and CWF to XML « View previous topic :: View next topic » 
Author Message
mikeward
PostPosted: Mon Dec 08, 2008 11:20 am    Post subject: Convert XML to CWF and CWF to XML Reply with quote

Newbie

Joined: 13 Feb 2007
Posts: 4

Hello all, I'm new to MQ broker, we have version 6.0. I wondered if anyone has a sample project on how to convert XML to CWF and CWF to XML? I don't need anything fancy, but anything with documentation on how to set up the message formats and the ESQL would be helpful.

Thank you in advance.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 08, 2008 11:48 am    Post subject: Re: Convert XML to CWF and CWF to XML Reply with quote

Grand High Poobah

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

mikeward wrote:
I wondered if anyone has a sample project on how to convert XML to CWF and CWF to XML?


That's virtually out of the box. Set up a message set for the CWF (possibly using one of the wizards, I imagine you have the file structure in a machine readable format someplace) and map one to the other in a Compute node.

With a little luck & ingenuity you can do it in the same message set and produce both CWF & XML as wire formats. This would also allow you to use a Mapping node to write your ESQL for you.

Standard product documentation from the IBM site will tell you everything for this.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Dec 08, 2008 1:21 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The WMB toolkit product help has various samples which you can import by just clicking on them in the tutorial.

The various WMB Redbooks probably have some downloadable material as well.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Dec 08, 2008 2:57 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
With a little luck & ingenuity you can do it in the same message set and produce both CWF & XML as wire formats. This would also allow you to use a Mapping node to write your ESQL for you.
I don't understand that comment. I hope you're not spreading the urban myth that 'only MRM can use message sets'
In the toolkit you can use a message set ( and therefore use a Mapping node ) with any domain. For new message flows, I recommend using XMLNSC for the XML side of the flow.
In the runtime, only MRM and XMLNSC use the message set for parsing/validation.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 09, 2008 12:55 am    Post subject: Reply with quote

Grand High Poobah

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

kimbert wrote:
I don't understand that comment.


I was expressing the hope that the XML & CWF formats were sufficiently similar to allow the use of the same message set.

kimbert wrote:
I hope you're not spreading the urban myth that 'only MRM can use message sets'


What, really?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mikeward
PostPosted: Tue Dec 09, 2008 5:59 am    Post subject: Reply with quote

Newbie

Joined: 13 Feb 2007
Posts: 4

I have tried to use the samples and the out of the box code. No use. It tells me what to do, but not how to do it. Thats why I asked for help. I don't have any formal training on WMB, but I have been told to code in it. Any help would be appreciated.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 09, 2008 6:23 am    Post subject: Reply with quote

Grand High Poobah

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

mikeward wrote:
I don't have any formal training on WMB, but I have been told to code in it.


What's wrong with this situation....?

Ah, the joys of modern management.

I stand by my original comment that this is so straightforward the IBM docs will probably be enough to set up the little you will need. I still don't see you'd need much more than a Compute/Mapping node and some external connectivity.

I don't suppose I need to recommend you get yourself some formal training.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Dec 09, 2008 8:28 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

IBM offer some free training (proof of technology) sessions at Hursley for WMB 6.1.

Otherwise the Redbooks tend to have the most step by step descriptions.

Getting hold of a WMB consultant/trainer for a day in-house could be worthwhile and more cost effective than struggling on alone.
Back to top
View user's profile Send private message
mikeward
PostPosted: Wed Dec 10, 2008 9:29 am    Post subject: Reply with quote

Newbie

Joined: 13 Feb 2007
Posts: 4

Thanks for the responses, I have looked through the documents and I don't see anthing about xml to cwf or cwf to xml. A lot of you are telling me what to do, but not how to do it. Sorry for asking the question, I'll try else where.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Dec 10, 2008 9:40 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

hi,

We would certainly like to help you get up to speed. I'm interested in this comment:
Quote:
I have tried to use the samples and the out of the box code. No use. It tells me what to do, but not how to do it.
Surely, if you import the sample you will see how it has been done. Then you can copy/modify/experiment from there.

What specifically do you need to know?
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 10, 2008 11:12 am    Post subject: Reply with quote

Grand High Poobah

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

mikeward wrote:
I have looked through the documents and I don't see anthing about xml to cwf or cwf to xml.


The description of message sets talks about them a lot.
_________________
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 » Convert XML to CWF and CWF to XML
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.