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 » BLOB to XML

Post new topic  Reply to topic
 BLOB to XML « View previous topic :: View next topic » 
Author Message
sarvana
PostPosted: Mon Jan 31, 2005 8:10 pm    Post subject: BLOB to XML Reply with quote

Apprentice

Joined: 17 Jan 2005
Posts: 29
Location: India

Hi all,

I have a requirement like this.I have an incoming message in BLOB domain.I need to convert it into XML format.I also need to validate it against its schema.Also I need to do some manipulation in the XML.Will a user defined extension me the best solution.Experts help this novice with your wonderful suggestions.

Thanking you.
_________________
SYstems Engineer ,
TCS,
India.
Back to top
View user's profile Send private message
Prithvi
PostPosted: Mon Jan 31, 2005 11:12 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2004
Posts: 34

You could consider importing your xml schema into the toolkit and creating a message set with it. You might use a Reset Content Descriptor node to convert the Blob data to MRM domain(CwXML). If you want to validate the created XML message, there is an option in the compute node that might be used to validate "content and value".
Please do get back and tell us if these suggestions were of any use to you
Regards
_________________
Prithvi
Back to top
View user's profile Send private message Yahoo Messenger
sarvana
PostPosted: Wed Feb 09, 2005 1:20 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jan 2005
Posts: 29
Location: India

Prithvi wrote:
You could consider importing your xml schema into the toolkit and creating a message set with it. You might use a Reset Content Descriptor node to convert the Blob data to MRM domain(CwXML). If you want to validate the created XML message, there is an option in the compute node that might be used to validate "content and value".
Please do get back and tell us if these suggestions were of any use to you
Regards


Ok thanks.Now I have converted BLOB to XML.Now how do I validate it against a schema.In compute node I am not able to set my Message set ID because I can do it only with MRM domain.What is the solution.I also tried converting XML to MRM or Blob to MRM both didnt work.Pls help.
_________________
SYstems Engineer ,
TCS,
India.
Back to top
View user's profile Send private message
Prithvi
PostPosted: Wed Feb 09, 2005 2:13 am    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2004
Posts: 34

Hi
I think you need to convert your data from BLOB to MRM and use the XML parser available in MRM to parse your data. You can use a message set for this. Then you can use the MQINPUT node's capabilities to first validate your incoming data and if successful it will be parsed and propagated downstream. I am not too sure that the XML domain provides content validation capabilities.
Regards
_________________
Prithvi
Back to top
View user's profile Send private message Yahoo Messenger
sarvana
PostPosted: Wed Feb 09, 2005 2:49 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jan 2005
Posts: 29
Location: India

Prithvi wrote:
Hi
I think you need to convert your data from BLOB to MRM and use the XML parser available in MRM to parse your data. You can use a message set for this. Then you can use the MQINPUT node's capabilities to first validate your incoming data and if successful it will be parsed and propagated downstream. I am not too sure that the XML domain provides content validation capabilities.
Regards


Ok fine.Now I have converted from BLOB to MRM.But the reset content descriptor node does not provide validation.I cannot use MQinput nodes here bcoz my appn requires this to happen half way in the flow.It will be fine if the rest content descriptor node routes invalid messages to its fail terminal.Even this doesnt happen.Messages with parsing errors pass to out terminal straight.I dont understand what is wrong.Pls help.
_________________
SYstems Engineer ,
TCS,
India.
Back to top
View user's profile Send private message
Prithvi
PostPosted: Wed Feb 09, 2005 11:12 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2004
Posts: 34

Hi,

This is one possible solution that comes to my mind immediately:
1. Put a compute node right after the RCD node. Copy your InputRoot into your OutputRoot. The compute nodeonly validates the OutputRoot and you cannot validate the incoming message.
2. Connect the Failure terminal of the compute node to your Faiure queue
This will validate all your messages, though it does not look like a very efficient method. Hope i was of some help !!
_________________
Prithvi
Back to top
View user's profile Send private message Yahoo Messenger
Prithvi
PostPosted: Wed Feb 09, 2005 11:30 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2004
Posts: 34

Hi
I was under the impression that you were using MQSI 2.1 . Though if you are using Message Broker V5, you can replace the RCD node with a Create statement with the Parse parameter, which has Validation options. This can be used to validate your incoming data. Connect the Failure terminal to the failure queue/Error handeling subflow.

Check out the syntax in :

http://publib.boulder.ibm.com/infocenter/wbihelp/topic/com.ibm.etools.mft.doc/ak04950_.htm
_________________
Prithvi
Back to top
View user's profile Send private message Yahoo Messenger
sarvana
PostPosted: Thu Feb 10, 2005 1:07 am    Post subject: Reply with quote

Apprentice

Joined: 17 Jan 2005
Posts: 29
Location: India

Prithvi wrote:
Hi
I was under the impression that you were using MQSI 2.1 . Though if you are using Message Broker V5, you can replace the RCD node with a Create statement with the Parse parameter, which has Validation options. This can be used to validate your incoming data. Connect the Failure terminal to the failure queue/Error handeling subflow.

Check out the syntax in :

http://publib.boulder.ibm.com/infocenter/wbihelp/topic/com.ibm.etools.mft.doc/ak04950_.htm


That was a great help.It works fine.

Thanks a lot.
_________________
SYstems Engineer ,
TCS,
India.
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 » BLOB 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.