Author |
Message
|
santy |
Posted: Mon Apr 16, 2007 1:48 am Post subject: Validating incoming message against XSD in WMB 6.0 |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 141
|
Hi,
We need to parse a XML file against the availble XSD. Please could anyone let us know how do we do this in WMB6.0 |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Apr 16, 2007 2:12 am Post subject: Re: Validating incoming message against XSD in WMB 6.0 |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
santy wrote: |
Hi,
We need to parse a XML file against the availble XSD. Please could anyone let us know how do we do this in WMB6.0 |
First option :
You can use for this MRM.
Just create Message Definition from XSD. _________________ Marcin |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Apr 16, 2007 2:19 am Post subject: Re: Validating incoming message against XSD in WMB 6.0 |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Second Option:
If XSD is not static you can use JAVA.
Just use JAVACompute node inside your flow. _________________ Marcin |
|
Back to top |
|
 |
kimbert |
Posted: Mon Apr 16, 2007 3:25 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
You can use for this MRM.
Just create Message Definition from XSD. |
Well, there's a little more to it than that
- Create a message set
- Import the XSD(s) to create one or more message definition files
- On the input node properties, set Validation to 'Content and Value'
You can set the Validation property on other nodes as well ( conceptually, validation operates on a message tree ). |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Apr 16, 2007 8:14 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
kimbert wrote: |
Well, there's a little more to it than that
- Create a message set
- Import the XSD(s) to create one or more message definition files
- On the input node properties, set Validation to 'Content and Value'
You can set the Validation property on other nodes as well ( conceptually, validation operates on a message tree ). |
Of curse.
I know.
For me the rest was obvious. _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 16, 2007 11:07 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
santy |
Posted: Tue Apr 17, 2007 5:30 am Post subject: |
|
|
Centurion
Joined: 03 Nov 2006 Posts: 141
|
Thanks to all of you.
The issue has been resolved.
Thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 17, 2007 6:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So which option did you choose? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|