Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 50404 invoked from network); 29 Mar 2006 20:59:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2006 20:59:35 -0000 Received: (qmail 96190 invoked by uid 500); 29 Mar 2006 20:59:19 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 96143 invoked by uid 500); 29 Mar 2006 20:59:19 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 96088 invoked by uid 99); 29 Mar 2006 20:59:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 12:59:19 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jarmod@hotmail.com designates 64.4.26.16 as permitted sender) Received: from [64.4.26.16] (HELO hotmail.com) (64.4.26.16) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Mar 2006 12:59:18 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 29 Mar 2006 12:58:58 -0800 Message-ID: Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Wed, 29 Mar 2006 20:58:57 GMT X-Originating-IP: [208.247.73.2] X-Originating-Email: [jarmod@hotmail.com] X-Sender: jarmod@hotmail.com In-Reply-To: <442AF363.7000103@stagrp.com> From: "Jarmo Doc" To: axis-user@ws.apache.org Subject: RE: Problems getting user exceptions to work Date: Wed, 29 Mar 2006 12:58:57 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 29 Mar 2006 20:58:58.0515 (UTC) FILETIME=[99502A30:01C65373] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I have an Axis client stub which was generated from WSDL. *All* of the client-side user-defined exceptions extend org.apache.axis.AxisFault. The equivalent exceptions at the server also extend org.apache.axis.AxisFault, rather than Exception. This is a decidedly dodgy area, imo, especially when it comes to interop with non-Axis clients. >From: Jack Lund >Reply-To: axis-user@ws.apache.org >To: axis-user@ws.apache.org >Subject: RE: Problems getting user exceptions to work >Date: Wed, 29 Mar 2006 14:51:47 -0600 > >Nope, didn't work. Wouldn't think it would - AxisFault isn't a subclass of >InvalidDateException. > >-Jack > >Jarmo Doc wrote: > >>Try doing this: >> >>catch (AxisFault ex) >>{ >>if (ex instanceof InvalidDateException) >>{ >>InvalidDateException myex = (InvalidDateException)ex; >>// deal with myex here >>} >>// deal with others here >>} >> >> >>>From: Jack Lund >>>Reply-To: axis-user@ws.apache.org >>>To: axis-user@ws.apache.org >>>Subject: Problems getting user exceptions to work >>>Date: Wed, 29 Mar 2006 12:21:33 -0600 >>> >>>Hi. I'm using axis 1.2.1, and I'm trying to get the exceptions sent by my >>>service thrown to the client. For instance, my service can throw an >>>"InvalidDateException" exception, which is a subclass of >>>java.lang.Exception, and I want the client code to get that exception. >>>What little is said on the axis website about this implies that it should >>>"just work", but it doesn't seem to - what I get on the other side is an >>>AxisFault with the message string from my exception embedded inside. >>> >>>Is there something special I have to do, on either side, to get this to >>>work? >>> >>>Thanks. >>> >>>-Jack >> >> >>_________________________________________________________________ >>Don�t just search. Find. Check out the new MSN Search! >>http://search.msn.click-url.com/go/onm00200636ave/direct/01/ >> >> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/