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 » one-way operation faults

Post new topic  Reply to topic
 one-way operation faults « View previous topic :: View next topic » 
Author Message
nize
PostPosted: Thu Sep 29, 2011 11:30 pm    Post subject: one-way operation faults Reply with quote

Voyager

Joined: 02 Sep 2009
Posts: 90

Say that you have the following operation:

Code:
void AddCustomer(Customer)
(i.e. a Customer object as input and no output)

Complying to WS-I BP 1.1 you are not allowed to define fault messages for one-way operations [1]. However, you may want to throw an exception in case, for example, the customer is a duplicate. How would you achieve this? Defining the operation as a request/response with an empty response signaling that the operation succeeded? Not that pretty in my opinion... Maybe you know another way? I mean: within a java/.net program you still want to be able to throw exceptions also for void-methods...

Example:
Code:
<operation name="AddCustomer">
<input message="tns:AddCustomerRequest"/>
<output message="tns:AddCustomerResponse"/>
<fault name="DuplicateCustomer" message="tns:DuplicateFault"/>
</operation>


where AddCustomerResponse would be an empty sequence.

[1] http://www.w3.org/TR/wsdl#_porttypes
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Sep 30, 2011 4:31 am    Post subject: Re: one-way operation faults Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

nize wrote:
How would you achieve this?


Very interesting point you have here. You achieve this by dragging the appropriate Compute nodes to the canvas from the pallet.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » one-way operation faults
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.