I am trying to test a few things in JAX-WS. I am using J2SE 1.6.0_17 for testing.
When I tried to create a SEI with a Oneway method declared with a return type, It created a wsdl: operation with only wsdl:input no wsdl: output.
I thought this behavior was in contradiction with JSR 181 and JAX-WS 2.0 Specs [Conformance (One-way mapping errors): Implementations MUST prevent mapping to one-way operations
of methods that do not meet the necessary criteria.]
Please correct me if there have been any updates which I may be unaware of. Thanks.
What you see seems fine to me as the BP 1.1 says -
One-way operations do not produce SOAP responses. Therefore, the Profile prohibits sending a SOAP envelope in response to a one-way operation. This means that transmission of one-way operations can not result in processing level responses or errors. For example, a "500 Internal Server Error" HTTP response that contains a fault can not be returned in this situation.
William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Joined: Dec 01, 2008
Thanks for the update. My confusion is because I thought that if a operation does not satisfy the pre-condition for a oneway operation (but has been annotated as @OneWay) it shouldnt be allowed to be deployed in the first place. But I guess they have taken a more generic approach in the implementation.
subject: JAX-WS One way operation with return type not void