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 » XML-CWF Conversion Flow Design Help & Best practices

Post new topic  Reply to topic
 XML-CWF Conversion Flow Design Help & Best practices « View previous topic :: View next topic » 
Author Message
bradhakrishna
PostPosted: Thu Oct 24, 2002 10:28 pm    Post subject: XML-CWF Conversion Flow Design Help & Best practices Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 10

Hi All,
We are new to MQSI, so need some help on design.

Our Requirement:
We want to create message flows that receive self defining XML messages and converts them to CWF predefined format (fixed length) to pass on to applications on OS/390.

Our System setup:
We have sending application on AIX, MQSI installed on another AIX server and the receiving applications are on OS/390.

What we have done so far:
1) We have created the XML message structure, got the DTD from it.
2) On WMSI, created message set. Added CWT and XML layers to it
3) Imported DTD into the message set
4) Created message flow with the following nodes,
MQInput --> Try/Catch --> Compute --> MQOutput
5) In the Compute Node, selected the input and out put message formats as defined above, Checked 'copy complete message', added a line in the ESQL as: SET OutputRoot.Properties.MessageFormat = 'CWF';

My questions:
1) Is there any thing else we need to do?
2) How to make sure that my CWF format of the message fields are of fixed length? That is padding with zeroes, null etc based on the XML attribute values. One thing is our XML message will have all the attributes we need at all the times, but the attribute length might vary, still having max length limit.
3) What exception handling we need to do? What are the nodes we need to use. Our requirement is on exception we need to copy certain fields from the message and form an exception message and put that on exception queue. Any help on how to do this.
4) What ESQL still we need to write in the Compute node.

Really appreciate your time and help.

Thanks
Radha
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Fri Oct 25, 2002 9:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Radha,

1. I think you have setup everything you need for doing the transformation.
2. There is a Length associated with each element under CWF tab. This will be set automatically if you have imported a Copybook into MRM. WMQI will automatically Left justify PIC X fields and pad them with SPACE. For PIC 9 fields It will right justify them and padd with NUL. You might want to change the padding to 0 for PIC 9 fields manually.
3. You could get MRM related Errors at runtime. You should capture these errors in the catch terminal of TryCatch node. Copying some fiends from input message might not be possible if your input message is invalid. I would suggest that you first read message as BLOB and then apply input message definition to it using RCD node. You could use a Compute node to build Error message and write it on to Exception Queue. Do a search on "error handling" in this forum and you will find some related posts.
4. Start with SET OutputRoot.Properties.MessageFormat = 'CWF'; esql statement and see how it goes.

I hope this answers your questions.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
kspranava
PostPosted: Fri Jul 21, 2006 9:14 am    Post subject: Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi Kiran,

Apologize for not posting a new topic. I felt this thread would be appropriate to post my question.

I have similar situation where I need to convert XML to CWF. With the help of MRM, I was able to do it successfully. But then when I get a empty or self-terminating (<ab></ab> or <ab/>) tag, XML parses without any problem but then CWF parser throws an exception. Is there a way to handle such a situation via MRM itself or do we have to write ESQL to find such tags and replace the value?

Thanks,
kspranava.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 21, 2006 9:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

When importing the cobol copy book check the checkboxes for null value handling.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML-CWF Conversion Flow Design Help & Best practices
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.