This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Oneway method and exception

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose, I have this:


According to MZ's notes, this sayHello is a one way method and JAX-WS won't generate any soap fault and JAX-WS may not throw any checked exception . That is understandable. So, if there is an exception, there will be no SOAP fault responded to the client.
However, the server will throw the exception on the server side. Why the correct answer is JAX-WS may not throw an checked exception?
I think the correct answer is JAX-WS may throw any unchecked exception.
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MZ's note also says the following:

A JSR-181 processor is REQUIRED to report an error if an operation marked @Oneway has a return value, declares any checked exceptions or has any INOUT or OUT parameters.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic