dev@jax-ws.java.net

return null on server side for request-response

From: Stephan Poehlsen <poehlsen_at_itm.uni-luebeck.de>
Date: Fri, 12 Jun 2009 15:37:34 +0200

Hello,

when returning null on a @WebMethod method on the server side I expected
that no SOAP message is send back to the client and just the HTTP status
code 202 accepted would be returned. Similar to OneWay requests.

Instead an empty element is included in the SOAP body with a
xsi:nil="true" attribute.

How is it possible to just accept a request and return with a
HTTP status code 202 accepted instead of sending a reply SOAP message?

Tanks,
Stephan