Author |
Message
|
sarvana |
Posted: Mon Jan 31, 2005 8:10 pm Post subject: BLOB to XML |
|
|
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 |
|
 |
Prithvi |
Posted: Mon Jan 31, 2005 11:12 pm Post subject: |
|
|
 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 |
|
 |
sarvana |
Posted: Wed Feb 09, 2005 1:20 am Post subject: |
|
|
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 |
|
 |
Prithvi |
Posted: Wed Feb 09, 2005 2:13 am Post subject: |
|
|
 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 |
|
 |
sarvana |
Posted: Wed Feb 09, 2005 2:49 am Post subject: |
|
|
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 |
|
 |
Prithvi |
Posted: Wed Feb 09, 2005 11:12 pm Post subject: |
|
|
 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 |
|
 |
Prithvi |
Posted: Wed Feb 09, 2005 11:30 pm Post subject: |
|
|
 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 |
|
 |
sarvana |
Posted: Thu Feb 10, 2005 1:07 am Post subject: |
|
|
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 |
|
 |
|