axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lori VanGulick (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4763) Comply with JAX-WS 2.2: do not send response when Provider returns null
Date Wed, 07 Jul 2010 19:22:51 GMT
Comply with JAX-WS 2.2: do not send response when Provider returns null
-----------------------------------------------------------------------

                 Key: AXIS2-4763
                 URL: https://issues.apache.org/jira/browse/AXIS2-4763
             Project: Axis2
          Issue Type: Improvement
          Components: jaxws
            Reporter: Lori VanGulick


The JAX-WS 2.2 specification, section 5.1.1, states that when 
a Provider invoke method returns null, it is considered that no 
response needs to be sent by the service.  

Currently in the JAX-WS runtime there is no way for a Provider 
which does not specify a WSDL file to act like a one-way 
operation (that is, an operation that does not return a SOAP 
response, but instead responds with an HTTP acknowledgement). 

The current behavior of a JAX-WS web service Provider which
does not specify a WSDL file is to always return a response.
In the case where the Provider returns null, the response
consists of a SOAPEnvelope which contains a SOAPBody that is
empty.

The following is an example of a Provider which returns 
null and does not have a WSDL file:

@WebServiceProvider
public class HelloProvider implements Provider<Source> {
@Override
public Source invoke(Source req) {
return null;
}
}

The invocation of Provider<T>.invoke()produces the following 
SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/">
<soapenv:Body/>
</soapenv:Envelope> 

The desired behavior is for the invocation to return no SOAP 
response.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message