[jbossws-dev] [Design of JBoss Web Services] - Re: Exception propagation for one way messaqges

jason.greene@jboss.com do-not-reply at jboss.com
Tue Oct 2 09:54:25 EDT 2007


"adinn" wrote : 
  | CXF notifies the error by returning a 500 code error to the http client. This results in the JaxWS proxy throwing an exception
  | 

This isn't correct either. A one way message is not guaranteed to be processed when you submit it, so the response just indicates whether or not transmission, not the processing of the message is successful. So it would not be portable to return a 500 as a fault, nor would it be portable to interpret a 500 from a one way service as meaning anything more than a transmission problem. 

Relevant sections:

"The HTTP response to a one-way operation indicates the success or failure of the transmission of the message."

"R2727   For one-way operations, a CONSUMER MUST NOT interpret a successful HTTP response status code (i.e., 2xx) to mean the message is valid or that the receiver would process it."

-Jason

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090660#4090660

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090660



More information about the jbossws-dev mailing list