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 » Length Validation

Post new topic  Reply to topic
 Length Validation « View previous topic :: View next topic » 
Author Message
ManojNTT
PostPosted: Sun Dec 06, 2015 11:46 pm    Post subject: Length Validation Reply with quote

Newbie

Joined: 03 Dec 2015
Posts: 6

How many possible ways to validate below message?

Example message:

<root>
<Name>ABCD</Name>
</root>

I need to validate it as below.
Name shouldn't be less than 2 characters and not more than 3 characters.

How can I validate it in IIB?
Back to top
View user's profile Send private message
timber
PostPosted: Mon Dec 07, 2015 12:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Please list the ways that you know about already, so that we don't have to waste our time telling you things that you already know.
Back to top
View user's profile Send private message
ManojNTT
PostPosted: Mon Dec 07, 2015 1:17 am    Post subject: Reply with quote

Newbie

Joined: 03 Dec 2015
Posts: 6

I don't know anything much about this. I know one way that we can use length function , but I don't know how to use it in this case.

Thanks in advance
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Dec 07, 2015 1:33 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

ManojNTT wrote:
I don't know anything much about this. I know one way that we can use length function , but I don't know how to use it in this case.

Thanks in advance


May I humbly suggest that you get some formal training. This will give you the ESQL Language skills to start development in this complex but very powerful product.
_________________
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
timber
PostPosted: Mon Dec 07, 2015 2:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Your length validation problem should not require programming. The length constraints should be declared in the model. IIB uses XML Schema for all of its models. Start reading here:
http://www.w3schools.com/xml/schema_intro.asp
http://www.w3.org/TR/xmlschema-0/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Length Validation
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.