ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Get Data type 'FIELDTYPE' in Runtime using ESQL

Post new topic  Reply to topic Goto page Previous  1, 2
 Get Data type 'FIELDTYPE' in Runtime using ESQL « View previous topic :: View next topic » 
Author Message
smdavies99
PostPosted: Thu Aug 13, 2015 10:59 pm    Post subject: Re: Get Data type 'FIELDTYPE' in Runtime using ESQL Reply with quote

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.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 14, 2015 4:43 am    Post subject: Re: Get Data type 'FIELDTYPE' in Runtime using ESQL Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Get Data type 'FIELDTYPE' in Runtime using ESQL
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.