Return-Path: X-Original-To: apmail-axis-c-user-archive@www.apache.org Delivered-To: apmail-axis-c-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2E7C10EC9 for ; Wed, 10 Jul 2013 05:49:24 +0000 (UTC) Received: (qmail 46242 invoked by uid 500); 10 Jul 2013 05:49:24 -0000 Delivered-To: apmail-axis-c-user-archive@axis.apache.org Received: (qmail 45935 invoked by uid 500); 10 Jul 2013 05:49:24 -0000 Mailing-List: contact c-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C User List" Delivered-To: mailing list c-user@axis.apache.org Received: (qmail 45926 invoked by uid 99); 10 Jul 2013 05:49:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 05:49:24 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jpavani07@gmail.com designates 209.85.223.169 as permitted sender) Received: from [209.85.223.169] (HELO mail-ie0-f169.google.com) (209.85.223.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jul 2013 05:49:17 +0000 Received: by mail-ie0-f169.google.com with SMTP id 10so14478845ied.14 for ; Tue, 09 Jul 2013 22:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0TY2zGF/CSlSdwVDduiGKIq2+tnP9N468ZD52fucOT4=; b=ZSbmEiYljgvpfgIy/xBYMVN9nyl8WsserL6+vCz4ib8QdHcYeWL5AN2TCN1gIKPmg+ /70dJ+mfDlER5LXQ9JJoQLdq0F9ZUE/IrmeXcVZAIN1h4Ztwl9g1/0G/bqwtqrxSnAIH BQLaZG0wmNQOzaIDNgYrN6pXTR8gRw3wIjnlPl4yWC+GW/ysYuFtn+3BRcN7aDH52VPp E4dx2Uv2SV6xNCdrTCeRohL77lWNKjvlFkBS/uqKmgnM7TE3iALeBEtoXH70N1Z5SJpN hjWoziuKwNLVuPaLn5Fly/2bvF6j3DGzkiIBx4i2D/B7cIcJZHnC87AH43xU/Ay3BPG6 2d9w== MIME-Version: 1.0 X-Received: by 10.43.1.134 with SMTP id nq6mr9570237icb.55.1373435335945; Tue, 09 Jul 2013 22:48:55 -0700 (PDT) Received: by 10.50.153.73 with HTTP; Tue, 9 Jul 2013 22:48:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Jul 2013 22:48:55 -0700 Message-ID: Subject: Re: Axis2c-1.6.0: Issue with sending "No Error" soap fault From: Pavani J To: Apache AXIS C User List Content-Type: multipart/alternative; boundary=bcaec5161985523bee04e121d5db X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5161985523bee04e121d5db Content-Type: text/plain; charset=ISO-8859-1 But service is not failing and so service is not setting any fault or error. And yet service skeletons on_fault code is called. Thanks, Pavani On Tue, Jul 9, 2013 at 10:39 PM, Rajika Kumarasiri < rajika.kumarasiri@gmail.com> wrote: > axis2_status_t returns the status of the invocation. As you have seen the > invocation has been successful with a fault. > > Rajika > > > On Wed, Jul 10, 2013 at 1:02 AM, Pavani J wrote: > >> Hi, >> >> I am developing a web service using Axis2c-1.6.0 based on WSDL generated >> C code and I am on server side. >> >> I have some ADB APIs that return axis2_status_t. >> Even if these APIs are returning AXIS2_SUCCESS (no other errors from >> server side business logic), it calls service skeletons on_fault code and >> sends "No Error" soap fault. >> >> Please see below for packet trace for response >> >> ***Server*** >> HTTP/1.1 500 Internal Server Error >> Date: Tue Jul 9 12:10:05 2013 GMT >> Server: Axis2C/1.6.0 (Simple Axis2 HTTP Server) >> Content-Type: application/soap+xml;charset=UTF-8 >> Transfer-Encoding: chunked >> >> >> >> >> >> soapenv:Sender >> >> >> > xml:lang="en">No Error >> >> >> myService|http://com.abcd.efg.hijk/2.0/ failed >> >> >> >> >> >> Below is ADB function for one such API: >> >> axis2_status_t axis2_skel_myService_myTask(const axutil_env_t *env , >> axis2_msg_ctx_t *msg_ctx, >> adb_cancelTask_t* >> _cancelTask, >> >> axis2_skel_myService_myTask_fault *fault ); >> >> >> Looks like it cannot handle when ADB does not have any output params to >> return (so it returns NULL) and status is AXIS2_SUCCESS. >> >> Changing WSDL is not an option for my project. >> >> My problem is different from the issue at >> https://issues.apache.org/jira/browse/AXIS2C-1279 >> >> I apologize if this question is already answered and please point me to >> that link. >> >> This is kind of a blocker for me right now. Any help is greatly >> appreciated. >> >> Thanks, >> Pavani >> >> > --bcaec5161985523bee04e121d5db Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
But service is not failing and so service is not setting a= ny fault or error. And yet service skeletons on_fault code is called.
<= br>
Thanks,
Pavani


On Tue, Jul 9, 2013 at 10:39 PM, Rajika = Kumarasiri <rajika.kumarasiri@gmail.com> wrote:
axis2_status_t returns the status of the invocation. As yo= u have seen the invocation has been successful with a fault.=A0

Rajika
=


=
On Wed, Jul 10, 2013 at 1:02 AM, Pavani J <jpavani07@gmail.com> wrote:
Hi,

I am developing a web service using= Axis2c-1.6.0 based on WSDL generated C code and I am on server side.
=

I have some ADB APIs that return axis2_status_t.= =A0
Even if these APIs are returning AXIS2_SUCCESS (no other errors from s= erver side business logic), it calls service skeletons on_fault code and se= nds "No Error" soap fault.

Please see be= low for packet trace for response

***Server***
HTTP/1.1 500 Internal Server Err= or
Date: Tue Jul =A09 12:10:05 2013 GMT
Server: Axis2C/= 1.6.0 (Simple Axis2 HTTP Server)
Content-Type: application/soap+x= ml;charset=3DUTF-8
Transfer-Encoding: chunked

<soapenv:Envelo= pe xmlns:soapenv=3D"http://www.w3.org/2003/05/soap-envelope">
=A0 <soapenv:Body>
=A0 =A0 <soapenv:Fault>
=A0 =A0 =A0 <soapenv:Code&g= t;
=A0 =A0 =A0 =A0 <soapenv:Value>soapenv:Sender</soapen= v:Value>
=A0 =A0 =A0 </soapenv:Code>
=A0 =A0 = =A0 <soapenv:Reason>
=A0 =A0 =A0 =A0 <soapenv:Text xmlns:xml=3D"http://www.w3.org/XML/1998/= namespace" xml:lang=3D"en">No Error</soapenv:Text&= gt;
=A0 =A0 =A0 </soapenv:Reason>
=A0 =A0 =A0 <soapenv:Detail>
=A0 =A0 =A0 =A0 <fault= >myService|h= ttp://com.abcd.efg.hijk/2.0/ failed</fault>
=A0 =A0 =A0= </soapenv:Detail>
=A0 =A0 </soapenv:Fault>
=A0 </soapenv:Body>
</soapenv:Envelope>

Below is ADB function for one such API:

axis2_status_t =A0axis2_skel_myService_myTask(const axutil_env_t *en= v , axis2_msg_ctx_t *msg_ctx,
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 adb_cancelTask_t* _cancelTask,
=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= axis2_skel_myService_myTask_fault *fault );
=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0

Looks like it cannot handle when ADB does not have any = output params to return (so it returns NULL) and status is AXIS2_SUCCESS.

Changing WSDL is not an option for my project.

My problem is different from the issue at https://= issues.apache.org/jira/browse/AXIS2C-1279

I ap= ologize if this question is already answered and please point me to that li= nk.

This is kind of a blocker for me right now. Any help is= greatly appreciated.

Thanks,
Pavani



--bcaec5161985523bee04e121d5db--