Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 26612 invoked from network); 6 May 2005 21:01:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 21:01:42 -0000 Received: (qmail 51728 invoked by uid 500); 6 May 2005 21:04:27 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 51699 invoked by uid 500); 6 May 2005 21:04:27 -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 51677 invoked by uid 99); 6 May 2005 21:04:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from arbutus.hardersoft.com (HELO mail.hardersoft.com) (208.181.129.66) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 06 May 2005 14:04:26 -0700 Received: from localhost (localhost [127.0.0.1]) by mail.hardersoft.com (Postfix) with ESMTP id 4AB003DE182 for ; Fri, 6 May 2005 14:01:35 -0700 (PDT) Received: from mail.hardersoft.com ([127.0.0.1]) by localhost (arbutus.hardersoft.com [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 17995-02 for ; Fri, 6 May 2005 14:01:31 -0700 (PDT) Received: from cypress (cypress.hardersoft.com [192.168.0.11]) by mail.hardersoft.com (Postfix) with ESMTP id E32263DE105 for ; Fri, 6 May 2005 14:01:30 -0700 (PDT) From: "Ian Harder" To: "'Apache AXIS C User List'" Subject: RE: Sending faults from server Date: Fri, 6 May 2005 14:01:31 -0700 Organization: Harder Software Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <1115370987.11574.1.camel@Samisa> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcVR6kkR6DU9W0XDThC3bEFiFce9uAAlBrfA Message-Id: <20050506210130.E32263DE105@mail.hardersoft.com> X-Virus-Scanned: by amavisd-new at hardersoft.com X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Samisa, So... is there a work-around of some kind? I'd like to put this in production in the project I'm working on, but need to be able to send back faults. Is a better approach to use Java Axis for the server? Thanks, Ian -----Original Message----- From: Samisa Abeysinghe [mailto:sabeysinghe@virtusa.com] Sent: May 6, 2005 2:16 AM To: Apache AXIS C User List Subject: Re: Sending faults from server This seems to be a bug. SOAP faults on the server side are not well tested. On client side, there has been some testing. I also have come across in the past, where the server sends faults in invalid formats. Hence, this needs be fixed. Samisa... On Thu, 2005-05-05 at 20:35, Ian Harder wrote: > Linux Mandrake 10.0 > > I've got a web service that needs to send a fault back under some > conditions. > > It appears that the sample files for version 1.5 don't work, and neither > does my app (undeclared namespace prefix in the fault message). I suspect > this may be a bug, since the sample doclitfault fails in the same way as my > webserver. The server send back an invalid fault message and the client > segfaults on it. > > I asked this question on the dev list, but don't know if it got through... I > don't see a record of it, and haven't had a response. > > Assuming this is a bug, is there a workaround? I'd like to be able to send > a message back to the client with some informative text, plus an error code > if possible. > > Thanks > Ian Harder > > P.S. For reference, here are the doclitfault request and fault messages. > Note the undeclared prefix ns1 in the fault detail. > > ---request--- > POST /axis/doclitfault HTTP/1.1 > Host: localhost:80 > Content-Type: text/xml; charset=UTF-8 > SOAPAction: "doclitfault#div" > Content-Length: 387 > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > 2 > 0 > > > > > ---fault--- > HTTP/1.1 200 OK > Date: Thu, 05 May 2005 20:31:26 GMT > Server: Apache-AdvancedExtranetServer/2.0.48 (Mandrake Linux/6.8.100mdk) > mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.4 > Content-Length: 633 > Content-Type: text/xml > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > AxisC++ Faultcode > Custom Out of bound exception > server name:listen port > Division by zero > exception > 1 > 10.520000 > > > > > -- Samisa Abeysinghe Virtusa Corporation