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 » custom messages for caller

Post new topic  Reply to topic
 custom messages for caller « View previous topic :: View next topic » 
Author Message
wmc27
PostPosted: Tue Dec 15, 2015 11:40 am    Post subject: custom messages for caller Reply with quote

Apprentice

Joined: 18 Dec 2008
Posts: 31

I'm hosting a web service and wanted to build my service user friendly and robust.

I've HTTP Input Node >>Compute node >>>>HTTP reply.

Where can define the basic validations of my input fields.

Let me take one field(Phone Number).
1) Phone number field can should contain only numbers.
2) Phone numbers can be only 10 digits etc kind of validations..

I've 200 + fields and wanted to provide custom message for each field if the caller enters wrong information..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Dec 15, 2015 11:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Create a message model, assign to input node.

Capture exceptions.

Use exception tree to determine fields that are bad, lookup custom error messages. Create new exception tree. Rethrow.
_________________
chmod -R ugo-wx /
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 » custom messages for caller
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.