Skip to main content

JAXRPC 2.0 EA and exceptions

1 reply [Last post]
hr_stoyanov
Offline
Joined: 2004-04-01

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohlert
Offline
Joined: 2003-06-16

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.