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 » Mapping a null value to a CWF Output

Post new topic  Reply to topic Goto page Previous  1, 2
 Mapping a null value to a CWF Output « View previous topic :: View next topic » 
Author Message
sri_csee1983
PostPosted: Wed Apr 09, 2008 6:16 am    Post subject: Reply with quote

Centurion

Joined: 25 Mar 2008
Posts: 125
Location: Chennai,India

Dear Kimbert,

The requirement is simple. For eg:

<Sample>
<field1>Raj</field2>
<field2></field2>
</Sample>

is the incoming msg means, then When converting the above one, value of Field1 is converted to CWF without any issues. When converting field2 it throws the exception and stops.

The Output setting that i have set for CWF Physical Properties of message set is

Byte Allignment Pad 0
Policy For Missing Elements Use Null Value.

Wht else can I do?

Now I have tried to check for NULL for each field in my ESQL. Waiting for testing, Will update the test results too.

Meanwhile anyother Options available, please let me know.
_________________
With Cheers,
Sri
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kimbert
PostPosted: Wed Apr 09, 2008 7:26 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

So some of your input tags are empty. You need to do two things:

- XML : Open messageSet.mset and go to the XML physical format settings. Set 'Encoding [Non-numeric] null' to 'NullEmpty'. That will cause the MRM parser to create those elements with the explicit logical value NULL. Note that NULL is not the same as the empty string.
- CWF: Open the message definition file, and for each element which can be NULL, go to its CWF properties and set 'Encoding Null' to 'NullPadFill'. Make sure that you padding character for these elements is set to SPACE ( it defaults to NUL).

You should put a Trace node after the input node and watch what happens to the message tree after you change the XML settings. It will help you to understand what is going on.
Back to top
View user's profile Send private message
sri_csee1983
PostPosted: Wed Apr 09, 2008 9:01 am    Post subject: Reply with quote

Centurion

Joined: 25 Mar 2008
Posts: 125
Location: Chennai,India

Dear Kimbert,

It seems to work. But I get the following error for one field alone.

CWF Logical Tree - Message Definition Mismatch. I checked all the settings of the field and compared with the others. It is same as others.
_________________
With Cheers,
Sri
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kimbert
PostPosted: Wed Apr 09, 2008 12:56 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5543
Location: Southampton

Quote:
It seems to work
Good. I hope you understand why it works. If not, please do as I suggested in my previous post.

Quote:
CWF Logical Tree - Message Definition Mismatch. I checked all the settings of the field and compared with the others
Please take a user trace - it will contain the full text of the error message. This should be standard practice when diagnosing problems. The system log only contains the first line of the error, which is hardly ever enough.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping a null value to a CWF Output
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.