Hello,
The EJB binding does support exceptions. If your EJB method throws an exception, the corresponding WSDL operation must have a fault message (one per exception). The fault message must have one part, whose schema type is mapped to the corresponding exception class. If your service (i.e. the EJB) throws an exception, you will know of this since your WSIF operation invocation will fail and the fault message will contain the details (in this case it will contain the java exception thrown).
Nirmal.
| "Pae Choi" <[EMAIL PROTECTED]>
02/07/2003 11:44 PM
|
To: <[EMAIL PROTECTED]> cc: <[EMAIL PROTECTED]> Subject: Re: [wsif] EJB exceptions |
The WSDL spec defined about the <wsdl:fault> for two operations:
1. Request-Response Operation(a.k.a., Input-Output Operation)
2. Solicit-Response Operation(a.k.a., Output-Input Operation)
And if you use the SOAP/HTTP binding, the <wsdl:fault> will contain
a <soap:fault> element, for example.
Pae
----- Original Message -----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 7:22 PM
Subject: [wsif] EJB exceptions
WSIF question: Can EJB exceptions be thrown and caught via the EJB provider? Does the WSDL extension support defining exception types?
