The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » Metro and JAXB

Thread: JAXRPC 2.0 EA and exceptions

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 1 - Last Post: May 23, 2005 3:24 PM by: kohlert
hr_stoyanov

Posts: 59
JAXRPC 2.0 EA and exceptions
Posted: May 20, 2005 11:55 AM
  Click to reply to this thread Reply

Hi all-,
JAXRPC2.0EA tutorial says I am allowed to throw exceptions from my webservice class. But the client (JAXRPC2.0 code) does not get any? I will appreciate it, if someone can explain how WS clients (Java/JAXRPC2.0 and non-java/.NET) handle/receive exceptions, thrown from the web service object.

Thanks
Hristo

kohlert

Posts: 289
Re: JAXRPC 2.0 EA and exceptions
Posted: May 23, 2005 3:24 PM   in response to: hr_stoyanov
  Click to reply to this thread Reply

Hristo,
If you import a WSDL that contains fault messages, then the SEI on the client should contain methods that throw service specific exceptions.

On the server, if your SEI throws service specific exceptions, they should be translated into fualt messages in the WSDL.




 XML java.net RSS