|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
date physical representation validation problem |
« View previous topic :: View next topic » |
Author |
Message
|
ChristianH |
Posted: Mon Mar 16, 2009 5:13 am Post subject: date physical representation validation problem |
|
|
Novice
Joined: 27 Sep 2007 Posts: 19 Location: London, UK
|
Hi,
I have a problem validating XML Messages with date fields.
I imported a XSD into an MRM and I´m validating the incoming XML Messages against the MRM.
The customer was sending the date fields in the format yyyy-MM-ddZZZ which worked fine.
Now he wanted to deploy another application which can only send the date fields in the format yyyy-MM-dd (without the timezone).
Unfortunatly this format doesn´t validate against the MRM and is rejected at the moment.
As both formats are valid according to the XML Schema which defines the fields as date, I´m trying to find a physical representation for the MRM that accepts both formats.
I couldn´t find anything in the IBM Documentation nor in the forum on this specific problem.
Has anyone experienced the same issue?
Am I´m missing something?
Best Regards
p.s. We are running on Broker Runtime 6.0.3. |
|
Back to top |
|
 |
kimbert |
Posted: Mon Mar 16, 2009 5:41 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I´m trying to find a physical representation for the MRM that accepts both formats. |
xs:string will work. You can convert to date in your ESQL if required.
The alternative, if you are on v6.1, is to switch to XMLNSC. It's not hard to make the change, and you get 100% W3C-compliant validation. |
|
Back to top |
|
 |
ChristianH |
Posted: Mon Mar 16, 2009 6:02 am Post subject: |
|
|
Novice
Joined: 27 Sep 2007 Posts: 19 Location: London, UK
|
Thanks for the quick reply kimbert!
I will try your first suggestion and change it later when we are migrating to 6.1. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|