Hi Bryan,

| I had hoped that returning "null" from this function would achieve
|this result, but it doesn't (instead, it returns an empty message body).

  Basically, I believe that it works well according as the spec such
as SOAP, WSDL, JAX-RPC ... with your definition; 'return outDocument',
even though the result of the service; 'outDocument' is 'null'.

| In some cases I need to return HTTP 204 (OK) with no message body.

  Why do you need that ?

  You might get the result specified above if you do the followings;
    - create a Web service with 'no response'
      [ ex) 'void perform(Document in)']
    - deploy the service as the 'One-way' RPC Mode

  However, I guess that AXIS or the other impl of the JAX-RPC runtime
don't support the behavior.  Additions, your original request is a
dynamically change of the behavior with just 'return null'. I believe
this is not allowed.  Because if it's allowed, it means the interface
between 'server' and 'client' is flexible.

Best Regards,

  Toshi (Toshiyuki Kimura) <[EMAIL PROTECTED]>
  R&D Headquarters
  NTT DATA Corporation

-----Original Message-----
From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 6:47 AM
To: [EMAIL PROTECTED]
Subject: How to return HTTP 204 on Document perform()?

 I've implemented a message style handler (server) in Axis 1.0,
using the following method signature style:

Document perform(Document in)

 In some cases I need to return HTTP 204 (OK) with no message
body. I had hoped that returning "null" from this function
would achieve this result, but it doesn't (instead, it returns
an empty message body).

Can someone please advise the right way to do this?

Thank you,

Bryan

Reply via email to