Thanks Mike.  I hadn't thought of that.  I will investigate how well
that works for me.

JDG

> -----Original Message-----
> From: Brown, Mike [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 01, 2005 10:09 AM
> To: '[EMAIL PROTECTED]'
> Cc: Jay Glanville
> Subject: RE: How to setup a <fault> or <faultFlow>?
> 
>  You don't have to declare exceptions in your WSDD. Just make 
> sure that your
> custom exception extends RemoteException 
> (java.rmi.RemoteException) then
> when you throw it it gets translated into a soap fault.
> 
> -----Original Message-----
> From: Jay Glanville [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 01, 2005 8:10 AM
> To: [EMAIL PROTECTED]
> Subject: How to setup a <fault> or <faultFlow>?
> 
> Hello all.
> 
> I need help setting up a custom fault.
> 
> Here's the situation:  I have a service defined in my 
> server-config.wsdd
> that is implemented by a class.  All the methods on that 
> class are exposed
> through the service (ie: <parameter name="allowedMethods"
> value="*"/>).  Some of the methods in that class throw a 
> custom exception
> (MyException extends Exception, for example).  How to I tell 
> Axis that I
> want the client to see that exception?
> 
> I've originally through I needed to use <fault>.  However, it 
> appears that I
> can only use <fault> inside of an <operation> tag.  I'd 
> prefer not to use
> <operation> tags as the allowedMethods gives much more flexibility.
> 
> Another reason I don't think I can use <fault> is because it 
> doesn't exist
> in the DTD
> (http://cvs.apache.org/viewcvs.cgi/ws-axis/java/wsdd/wsdd.dtd?
> view=marku
> p).  According to this DTD, I'm supposed to be using the <faultFlow>
> element.  However, I can't find any further information on 
> how to use it.
> 
> How do I configure my server-config.wsdd to export the 
> definition of my
> exception, and say that my methods can throw it?
> 
> Thanks
> 
> JDG
>  
> ---
> Jay Glanville
> 

Reply via email to