Re: Response envelope optional vs. response optional

[email protected]
Newsgroups gmane.text.xml.distributed
Message-ID <OF8FAB68B5.3E9FCDEA-ON852570DF.00044F4A-852570DF.00049BC4@lotus.com>
David Hull writes:

> The "cheese sandwich with no bread" issue is slightly 
> different.  I don't like the idea of defining a generic 
> "request optional-response" MEP and binding it to a one-way 
> transport, where we know there will never be a response.

I agree completely!  It's the application receiving the request that 
decides whether there will be a response.  Let's assume you send a request 
through the DHOneWayTransportBinding and the application does generate a 
response.  The binding can't do what it's required to do, which is deliver 
the response.  The response envelope is optional only in the sense that 
the application may say "I'm not sending one".  If the application tries, 
the binding must deliver.

Of course, there may be rare cases where you have a very special purpose 
implementation (e.g. an embedded system running only one application) and 
you know that the app. will never send a response.  In that case, I'd say 
you don't have to write the code in the binding that you know will never 
be called.  Otherwise, the binding must be capable of sending a response 
envelope; the app will decide whether to send one.  Right?

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.