Author |
Message
|
sarvana |
Posted: Mon Jan 17, 2005 8:40 pm Post subject: XML validation is incomlpete in WBIMB MQInput node |
|
|
Apprentice
Joined: 17 Jan 2005 Posts: 29 Location: India
|
Hi all
I am trying to validate a XML message against its schema but I find that not all fields are validated and only the first one is validated.Others pass to the out terminal even if there were non-compliance with schema.
Can someone help me out solve this.
Thnks in advance. _________________ SYstems Engineer ,
TCS,
India. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 17, 2005 11:35 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Please provide your environment details. Also, give us an example of what's getting validated and what's not. It's worth doing a search in this forum (or in the manual) to find out what's supported by validation process with XML schemas. _________________ 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 |
|
 |
sarvana |
Posted: Tue Jan 18, 2005 12:20 am Post subject: Re: XML validation is incomlpete in WBIMB MQInput node |
|
|
Apprentice
Joined: 17 Jan 2005 Posts: 29 Location: India
|
Thanks kiran for ur response.
I am using an xml message say with local messages,refernces and global messages.Local messages comprise simple elements,complex elements and references.Say I have a CompanyCode(string of length 10) and other elements with restrictions.What I find is the CompanyCode is validated(This is the first member in the message).Also another element TxnCode(which is a first element in another xsd but referenced in the current xsd)which is part of the current message is also validated for its restrictions.
but other elements say Amount(defined double) is not validated(even if I pass string instead of double ,it passes to the OUT terminal).Similarly other elements and refernces are not validated.Also elements referenced in the global message are not validated.
Also there is error while validating Date type fields.I think a fixpack is available to resolve this.
My settings for the MQInput node are Validate=content and value,
Timing=tried all three options.
The flow is like this an MQInputnode wired to three trace nodes on all the three terminals and all three traces connected to three MQOutput nodes. _________________ SYstems Engineer ,
TCS,
India. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jan 18, 2005 2:19 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Is the 'Content validation' property set to 'Closed' on all complex types?
Do you have the 'mixed' property set on any of your complex types? If so, the content will not be validated (and the task list will warn you about this). You should review all the warning messages in the task list for validation non-compliances like this.
If you're still having problems, post the details of your message model, so that we can be more specific. |
|
Back to top |
|
 |
sarvana |
Posted: Tue Jan 18, 2005 3:29 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2005 Posts: 29 Location: India
|
No there are no warnings while running on server.
I dont have any mixed property set.
What is contenet validation closed on complex types.As a novice I dont understand this. _________________ SYstems Engineer ,
TCS,
India. |
|
Back to top |
|
 |
kimbert |
Posted: Tue Jan 18, 2005 4:21 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
In the MRM message model, Content Validation is a property of complex
types and groups. To see these properties, follow these steps:
Go to the Broker Application Development perspective and open your message definition file.
At the bottom left, there is an Outline pane containing a tree view. Open up the Complex Types node, and select a complex type.
On the right-hand pane, you will probably see something looking like a spreadsheet. At the bottom, there are two tabs. The first is called 'Overview' and the second 'Properties'. If you click on 'Properties' you will see all the properties for the complex type, including 'Content Validation' |
|
Back to top |
|
 |
sarvana |
Posted: Tue Jan 18, 2005 5:32 am Post subject: |
|
|
Apprentice
Joined: 17 Jan 2005 Posts: 29 Location: India
|
Thanks for that.
Now i have set content validation to OPEN.Composition is of type SEQUENCE.I redeployed the application with necessary changes.Still this does not work.Please help.
Also I have a list and pattern which is not syupported by broker.Hence I have removed the two from my defn. _________________ SYstems Engineer ,
TCS,
India. |
|
Back to top |
|
 |
|