Posted: Thu Aug 13, 2015 10:59 pm Post subject: Re: Get Data type 'FIELDTYPE' in Runtime using ESQL
Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Vitor wrote:
No, and I'd be interested to hear a valid use case when you'd need to do so rather than the more convention means of validating XML against an XSD.
I had a situation around 10 years ago where I had to validate each field in the incoming message and throw specific errors if the value in say field 2 was say 10 and the value of field 1 indicated that the max value in Field 2 could be 8.
If the value in field 1 was different then a value of 10 in F2 was good.
simple xsd validation could not handle that.
It was a PITA to code. The spec had been developed by someone who didn't have a clue when it came to XML structures.
This should be the real 0.000001% exception though. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Posted: Fri Aug 14, 2015 4:43 am Post subject: Re: Get Data type 'FIELDTYPE' in Runtime using ESQL
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
smdavies99 wrote:
Vitor wrote:
No, and I'd be interested to hear a valid use case when you'd need to do so rather than the more convention means of validating XML against an XSD.
I had a situation around 10 years ago where I had to validate each field in the incoming message and throw specific errors if the value in say field 2 was say 10 and the value of field 1 indicated that the max value in Field 2 could be 8.
If the value in field 1 was different then a value of 10 in F2 was good.
simple xsd validation could not handle that.
It was a PITA to code. The spec had been developed by someone who didn't have a clue when it came to XML structures.
This should be the real 0.000001% exception though.
That reeks of business validation not message validation. _________________ Honesty is the best policy.
Insanity is the best defence.
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