Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 49846 invoked from network); 19 Sep 2006 11:27:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 11:27:16 -0000 Received: (qmail 80004 invoked by uid 500); 19 Sep 2006 11:27:11 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79884 invoked by uid 500); 19 Sep 2006 11:27:11 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 79869 invoked by uid 99); 19 Sep 2006 11:27:11 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 04:27:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:55578] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 88/F1-26148-304DF054 for ; Tue, 19 Sep 2006 04:26:59 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id ACF02714300 for ; Tue, 19 Sep 2006 11:23:24 +0000 (GMT) Message-ID: <10924545.1158665004705.JavaMail.jira@brutus> Date: Tue, 19 Sep 2006 04:23:24 -0700 (PDT) From: "Thilo Frotscher (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-917) User guide should give explanation and examples of fault handling In-Reply-To: <7353237.1153506373834.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-917?page=comments#action_12435751 ] Thilo Frotscher commented on AXIS2-917: --------------------------------------- I agree with William and Derek that it is absolutely essential for the Axis2 framework to clarify how error handling works. I am sure users don't mind if Axis2 1.1 will be released one or two weeks later, as long as important issues are resolved in this release. By the way: interoperability of fault messages with other frameworks (like .NET for example) introduces another bunch of issues. But this is something for Axis2 1.5 :-) > User guide should give explanation and examples of fault handling > ----------------------------------------------------------------- > > Key: AXIS2-917 > URL: http://issues.apache.org/jira/browse/AXIS2-917 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Wish > Components: samples, build,site & docs > Affects Versions: 1.0 > Reporter: Derek Foster > Assigned To: Eran Chinthaka > Priority: Blocker > Attachments: sampleService-wsdl.rar > > > The Axis2 user guide provides no examples of: > 1) The WSDL to declare that a fault may be thrown from an operation (suitable for passing into WSDL2Java) > 2) The server-side code for a fault exception, as generated by WSDL2Java and modified as a user might be expected to modify it. > 3) The server-side code to throw the fault exception, including a tested example of passing on a custom error message to be transmitted as part of a SOAP fault (in the faultDetail) and received by the client. > 4) The client-side code for receiving and handling a fault. > Furthermore, what discussion of faults that there is seems fairly contradictory. For instance, there are various suggestions that throwing an AxisFault exception from a service is the way to issue a fault. However, WSDL2Java does not generate service methods that are declared to throw AxisFault, and there seems to be no way to declare such a fault in WSDL. (at least, none that I can find). Fault generation from a service that was not generated by WSDL2Java should be treated as a separate section, since it is handled in a totally different manner by server code. I think that both kinds of fault handling need to be documented clearly in the user guide. > I have been trying for weeks to figure out how this is supposed to work, and still haven't gotten it to work quite right (my custom error message included in the thrown fault exception is getting lost somewhere before the SOAP fault is transmitted). This is a basic feature that should be documented clearly. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org