• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAX-WS One way operation with return type not void

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:



 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic