On Thu, 4 Mar 2004, Alasdair Allan wrote:
> > well I'm not an expert at this either (so they may be better ways), but
> > the following works for me. Make the methods that are being invoked throw
> > an explicit AxisException on error...
>
> > public static void showNDX( Element element ) throws AxisFault
> > {
> > try {
> > SOGRemoteControl.getInstance().showNDX( element );
> > }
> > catch (Exception e) {
> > throw new AxisFault( "Failed to display remote NDX", e );
> > }
> > }
> >
> > From the client end I then see:
> >
> > Exception in thread "main" AxisFault
> > faultCode: {http://xml.apache.org/axis/}Server.generalException
> > faultString: Failed to display remote NDX
> > faultActor: null
> > faultDetail:
>
> Hmm, that was exactly what I tried, but the Exception shows up printed at
> the server end rather than the client end. Now I'm really stumped...
I was using a Java/Axis client, so that may have made a difference, also
all Exceptions, including AxisFaults, seem to be reported on the server
terminal, I just see the same AxisFault thrown in the client-side too.
Cheers,
Peter.
|