Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 55080 invoked from network); 29 Sep 2006 20:48:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Sep 2006 20:48:04 -0000 Received: (qmail 1261 invoked by uid 500); 29 Sep 2006 20:47:57 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 1245 invoked by uid 500); 29 Sep 2006 20:47:57 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 491 invoked by uid 99); 29 Sep 2006 20:47:57 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2006 13:47:55 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [143.209.238.161] ([143.209.238.161:54933] helo=audl951.usa.alcatel.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 47/1D-13110-1668D154 for ; Fri, 29 Sep 2006 13:47:40 -0700 Received: from usdalsbhs01.ad3.ad.alcatel.com (usdalsbhs01.usa.alcatel.com [172.22.216.19]) by audl951.usa.alcatel.com (ALCANET) with ESMTP id k8TKkrbB025532 for ; Fri, 29 Sep 2006 15:46:53 -0500 Received: from [138.120.137.75] ([172.22.216.4]) by usdalsbhs01.ad3.ad.alcatel.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Fri, 29 Sep 2006 15:46:52 -0500 Message-ID: <451D8601.9090403@alcatel.com> Date: Fri, 29 Sep 2006 16:45:53 -0400 From: Juan Amat User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.13) Gecko/20060509 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axis-c-user@ws.apache.org Subject: Fault handling and misc questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Sep 2006 20:46:53.0044 (UTC) FILETIME=[64E81340:01C6E408] X-Scanned-By: MIMEDefang 2.51 on 143.209.238.34 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, I have been playing (read evaluating) with AXIS C++ 1.6 and I have seen, what seems to me, incorrect SOAP messages when a 'user defined' exception is thrown. (I was first using the official 1.6b version but there was more issues so I took a snapshot from 09/20/06. OS is Solaris 10) Here is such a message: AxisC++ Faultcode Custom Out of bound exception server name:listen port 2 Obj Not found In my wsdl file the fault message is defined as: So for me this part of the SOAP message contains 3 errors: 1) 'fault' should be 'Fault' 2) the namespace is missing, ie, it should be ns1:Fault (and maybe this error is a consequence of the first one) 3) extra space characters are inserted in the name space. What makes me say that this is incorrect, is that the same fault with AXIS Java is: soapenv:Server.generalException 2 Obj Not found ams.ws.Fault_T sol-jamat Am I missing something ? Is is a known issue ? And if so, is there a workaround ? This was the 'fault handling' part. Now the 'misc questions'. - I have noticed that AXIS C++ (server side) is perfectly happy if all the parameters needed to call my service can be retrieved from the SOAP message, even if the SOAP message is not a valid XML message. To make it more clear, if I send a SOAP message without the closing tags for the 'Body' or 'Envelope', I do get a proper response from my service. Is this behavior a 'feature' or a 'bug' ? - Is there a way to have an 'handler' called when my service throws an error ? I mean something similar to the responseFlow (my objectives is to log all the requests/responses/fault). - has anybody successfully used the SoapDeSerializer::getBodyAsChar() method ? Same question with SoapDeSerializer::setNewSoapBody(). (i do have some doubts about this one after looking at the code as the 'DeSerializerMemBufInputStream stream', that is fed to the parser, is a local variable that will be destroyed when the method returns) Thank you, Juan --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org