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 » Maybe there is a better way?

Post new topic  Reply to topic
 Maybe there is a better way? « View previous topic :: View next topic » 
Author Message
simon.starkie
PostPosted: Mon Dec 03, 2007 3:07 pm    Post subject: Maybe there is a better way? Reply with quote

Disciple

Joined: 24 Mar 2002
Posts: 180

Hi Jeff,

Well, basically the code (above) to invoke the web service:
GetMedicationResponseType gmrt = kpcs.Medication(MRN1, REGION1, DOB1, MRN2, REGION2, DOB2);
expects to get back a GetMedicationResponseType object if everything works.
But if something goes wrong, the service is supposed to send back a KPChartException message indicating something went wrong. So the client needs a way of gaining visibility to this KPChartException message. So throwing a custom exception seemed like the way to do that.

Perhaps an alternative approach would be to change the WSDL to include the KPChartException node at the end of GetMedicationResponseType message and then the Client could just interogate that to see if the request was successful or not. That would provide the desired result and obviate the need for a special exception to be thrown in the server and caught by the client. This seems a bit clunky, and it probably would work, but I was hoping something a little more elegant would be possible.
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 » Maybe there is a better way?
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.