Re: RE:  custom  exceptions

2004-03-29 Thread Nelson Minar
Just to be clear, I think the issue we're talking about is that Axis is converting our applications exceptions into AxisFaults, but we don't have as much control over the structure of this AxisFaults as we like. For me the issue seems to be that AxisFault.makeFault() is hardwired pretty deep in Ax

RE:  custom  exceptions

2004-03-29 Thread Merten Schumann
I would need custom exceptions too and, as Sacha said, it's not a good idea to build a strong dependency to Axis classes. In my project I have to implement an API which offers an web service and I would like to let a customer decide what SOAP middleware to be used. Right now it's str

Re: custom  exceptions

2004-03-29 Thread sacha
> Have you tried extending AxisFault? That's what we do and it seems to work well enough... Hi. Thanx for reply. I don't think it is a right way. It strictly tides You to axis architecture of Your service. In my situation I want to have web service interface to EJB deployed on JBoss. Methods of

Re: custom  exceptions

2004-03-26 Thread ian_d_stewart
/2004 Subject: custom exceptions 02:35 PM Please re

custom exceptions

2004-03-26 Thread sacha
Hi. Has anybody any experience with custom exceptions in axis? I tried to throw my own checked exception, but always get AxisFault, containing only stack trace as details and Server.userException as a fault code. I looked into the axis source code and it seems there is no way to throw custom

RE: Custom Exceptions & non-axis clients

2003-11-17 Thread I-Sampige, Srinivas
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: Custom Exceptions & non-axis clients I know this has been discussed before here, but I can't seem to find a solution. Hoping someone can provide assistance. I

Custom Exceptions & non-axis clients

2003-11-17 Thread Robert.Dietrick
I know this has been discussed before here, but I can't seem to find a solution. Hoping someone can provide assistance. I've created a custom exception class with some extra error info which I want my service methods to throw. When I run wsdl2java, Axis creates the class as a subclass of org.

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Davanum Srinivas
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19682 http://marc.theaimsgroup.com/?l=axis-dev&m=105354748107569&w=2 -- dims --- Dan Kamins <[EMAIL PROTECTED]> wrote: > > How specifically has this problem been fixed? I'm looking at the samples/faults > example in v1.1 > and I can see now tha

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Dan Kamins
How specifically has this problem been fixed? I'm looking at the samples/faults example in v1.1 and I can see now that a RemoteException (not AxisFault) is being thrown, and that it has a bean typeMapping in the wsdd. But what control does a developer have over this mapping? This should be e

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Davanum Srinivas
We are NOT going to change the way wsdl2java generates code...In 1.1, you can register your own exceptions and throw/catch them. Look at samples\faults -- dims --- Peter Landmann <[EMAIL PROTECTED]> wrote: > > Dear Dvanum, > > Davanum Srinivas <[EMAIL PROTECTED]> wrote: > > Dan, > > > > This p

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Peter Landmann
Dear Dvanum, Davanum Srinivas <[EMAIL PROTECTED]> wrote: > Dan, > > This problem has been fixed already in 1.1 I am using the 1.1 release version (I never tried it with 1.0). Last week I even tried one of the nightly builds, but the problem is still the same, and wsdl2java generates the same exc

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Davanum Srinivas
Dan, This problem has been fixed already in 1.1 thanks, dims --- Dan Kamins <[EMAIL PROTECTED]> wrote: > > I faced the same problem (can't throw app-specific exceptions) and solved it by > subclassing > AxisFault for all of my exceptions. It allows me to explicitly set text for the > actor,

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Dan Kamins
I faced the same problem (can't throw app-specific exceptions) and solved it by subclassing AxisFault for all of my exceptions. It allows me to explicitly set text for the actor, code, details, etc. fields of the SOAP fault fairly easily in the constructors of the exceptions. That being said,

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Dan Kamins
I faced the same problem (can't throw app-specific exceptions) and solved it by subclassing AxisFault for all of my exceptions. It allows me to explicitly set text for the actor, code, details, etc. fields of the SOAP fault fairly easily in the constructors of the exceptions. That being said,

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Dan Kamins
I faced the same problem (can't throw app-specific exceptions) and solved it by subclassing AxisFault for all of my exceptions. It allows me to explicitly set text for the actor, code, details, etc. fields of the SOAP fault fairly easily in the constructors of the exceptions. That being said,

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Dan Kamins
I faced the same problem (can't throw app-specific exceptions) and solved it by subclassing AxisFault for all of my exceptions. It allows me to explicitly set text for the actor, code, details, etc. fields of the SOAP fault fairly easily in the constructors of the exceptions. That being said,

Re: Problem with custom exceptions not getting deserialized

2003-07-15 Thread Peter Landmann
Hi, Once again, as no one replied: Did really no one else face this problem up to now? Don't you use exceptions in your service interfaces? I took a look on the JAX-RPC specification 1.0 now: It defines that service specific exceptions must extend java.lang.Exception - and not something like Remo

Problem with custom exceptions not getting deserialized

2003-07-08 Thread Peter Landmann
Hello all, I use Axis 1.1 and would like to work with custom exceptions. I generated the client side code with wsdl2java, and the generated client stub correctly declares these exceptions, but unfortunately the deserialization doesn't seem to work: I get an AxisFault instead of my self-de

Re: Problem with custom exceptions not getting deserialized

2003-07-08 Thread Peter Landmann
nt to keep my business logic interfaces (and the exceptions which belong to it) as independent from the underlying RPC technology as possible. Does this really mean that it is not possible to use custom exceptions which are not derivated from AxisFault? Regards, Peter Lan

RE: Custom Exceptions

2002-06-13 Thread David Owens
-Original Message- > From: David Owens [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 11:48 AM > To: [EMAIL PROTECTED] > Subject: Re: Custom Exceptions > > > Sam/Sylvain > > Bob is on vacation, but I worked with him on this stuff, so I > thought I'

RE: Custom Exceptions

2002-06-13 Thread St-Germain, Sylvain
That is interresting. Thanks for the code. Sylvain. -Original Message- From: David Owens [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 11:48 AM To: [EMAIL PROTECTED] Subject: Re: Custom Exceptions Sam/Sylvain Bob is on vacation, but I worked with him on this stuff, so I

Re: Custom Exceptions

2002-06-13 Thread David Owens
xiFault > >shouldn't I be able to throw a descendent of AxisFault and, assuming it is a > >known type, expect the serialization to occur? > > > >Sylvain. > > > > > >-Original Message- > >From: Bob Cotton [mailto:[EMAIL PROTECTED]] > >

RE: Custom Exceptions

2002-06-12 Thread St-Germain, Sylvain
serialization to occur?Sylvain.-Original Message-From: Bob Cotton [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 11, 2002 8:41 PMTo: [EMAIL PROTECTED]Subject: Re: Custom Exceptions "Sam" == Sam Kapoor <[EMAIL PROTECTED]> writes:

Re: Custom Exceptions

2002-06-12 Thread Sam Kapoor
it is aknown type, expect the serialization to occur?Sylvain.-Original Message-From: Bob Cotton [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 11, 2002 8:41 PMTo: [EMAIL PROTECTED]Subject: Re: Custom Exceptions "Sam" == Sam Kapoo

RE: Custom Exceptions

2002-06-12 Thread St-Germain, Sylvain
esday, June 11, 2002 8:41 PM To: [EMAIL PROTECTED] Subject: Re: Custom Exceptions >>>>> "Sam" == Sam Kapoor <[EMAIL PROTECTED]> writes: Sam> Hi: what I want to do is write a custom exception class and Sam> propagate it from one of the methods on my

Re: Custom Exceptions

2002-06-12 Thread David Owens
Hi Sam, As Bob Cotton mentioned, we are currently working on this, however, our challenge is to get the data from our custom exception sent over as well. If your custom exception does not have any ivars, it should work with the lastes version of the axis code. You do, however, have to catch you

Custom Exceptions

2002-06-11 Thread Sam Kapoor
Hi: what I want to do is write a custom exception class and propagate it from one of the methods on my Web-Service to the client. So I define a Java exception class: public class EInvalidCustomer extends Exception { public EInvalidCustomer(String err){ super(err); } The method on my we

Re: Custom Exceptions

2002-06-11 Thread Bob Cotton
> "Sam" == Sam Kapoor <[EMAIL PROTECTED]> writes: Sam> Hi: what I want to do is write a custom exception class and Sam> propagate it from one of the methods on my Web-Service to the Sam> client. So I define a Java exception class: Sam> public class EInvalidCustomer extends E

Custom Exceptions

2002-06-11 Thread Sam Kapoor
Hi: what I want to do is write a custom exception class and propagate it from one of the methods on my Web-Service to the client. So I define a Java exception class: public class EInvalidCustomer extends Exception { public EInvalidCustomer(String err){ super(err); } The method on my web-s