• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-WS One way operation with return type not void

 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.

Code:



 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



Regards,
Dan
 
Aditya Keyal
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dan,

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!