Take a look at the ShoppingCart test:

java/test/shop/ShoppingCartAll.wsdl

 <message name="CreateException">
  <part name="createException" type="typens:createException" />
 </message>

...

 <portType name="ShoppingCart_EJBPortType">

  <operation name="createOperation">
   <input name="in1" message="tns:CreateRequest" />
   <output name="out1" message="tns:CreateResponse" />
   <fault name="ft1" message="tns:CreateException" />
  </operation>

...

<ejb:binding ...
 <format:typeMapping encoding="Java" style="Java">
 <format:typeMap typeName="typens:createException"
formatType="shop.CreateException" />

(typens and tns are mapped to the same thing in <definitions>

Hope that helps ... perhaps the EJB extension page:
http://ws.apache.org/wsif/providers/wsdl_extensions/ejb_extension.html
could have more info. :-)

BTW: [EMAIL PROTECTED] is now our official user list.

Regards,
Jeremy

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 12:22 AM
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?



Reply via email to