Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 20846 invoked from network); 1 Feb 2006 03:31:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Feb 2006 03:31:32 -0000 Received: (qmail 39536 invoked by uid 500); 1 Feb 2006 03:31:30 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 39522 invoked by uid 500); 1 Feb 2006 03:31:29 -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 39511 invoked by uid 99); 1 Feb 2006 03:31:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 19:31:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ajith.ranabahu@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2006 19:31:28 -0800 Received: by zproxy.gmail.com with SMTP id 40so55805nzk for ; Tue, 31 Jan 2006 19:31:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NjOw48ZppKC/k8k4RWl/XP0kqXC9uxVSASevWQGYOmkqN16q80OgEUV3PM3XkAqsdo9Vckxx0jT945jXbireEbxE8vTQei/v40ffhCdpWhjIxKF17Am95ZQrbsuIxOWM81DAYHpMEMCtcD7Ji6OoHckAH8QOZ+XdH0XsLUr+TEA= Received: by 10.65.139.7 with SMTP id r7mr1461276qbn; Tue, 31 Jan 2006 19:31:07 -0800 (PST) Received: by 10.65.241.9 with HTTP; Tue, 31 Jan 2006 19:31:07 -0800 (PST) Message-ID: Date: Wed, 1 Feb 2006 09:31:07 +0600 From: Ajith Ranabahu To: axis-dev@ws.apache.org Subject: Re: [axis2] MessageContext.responseWritten() In-Reply-To: <200601311724.05623.iksrazal@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_41086_7954637.1138764667943" References: <200601311724.05623.iksrazal@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_41086_7954637.1138764667943 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Mesage label ? On 2/1/06, iksrazal wrote: > > Hi all, > > I'm porting the axis1.x soap monitor to axis2. The request is working > fine. I > can't get the response, however, due to this piece of code in its Handler= : > > // Get id, type and content > Long id; > Integer type; > if (!messageContext.isResponseWritten()) { > id =3D assignMessageId(messageContext); > type =3D new Integer(SOAPMonitorConstants.SOAP_MONITOR_REQUEST); > } else { > id =3D getMessageId(messageContext); > type =3D new Integer(SOAPMonitorConstants.SOAP_MONITOR_RESPONSE); > } > > However, MessageContext.setResponseWritten() is not called anywhere, best > I > can tell. > > My question is: How can I tell that the messageContext contains a respons= e > ? > > This topic was disscussed previously: > > http://www.opensubscriber.com/message/axis-dev@ws.apache.org/1800039.html > > iksrazal > http://www.braziloutsource.com/ > -- > -- Ajith Ranabahu ------=_Part_41086_7954637.1138764667943 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Mesage label ?

On 2/1/06, iksrazal <iksrazal@gmail.com> wrote:
Hi all,

I'm porting the axis1.x soap monitor to axis2. The request i= s working fine. I
can't get the response, however, due to this piece of = code in its Handler:

// Get id, type and content
  &nb= sp; Long    id;
    Integer type;
    if (!m= essageContext.isResponseWritten()) {
      = ;id =3D assignMessageId(messageContext);
     &= nbsp;type =3D new Integer(SOAPMonitorConstants.SOAP_MONITOR_REQUEST);
&n= bsp;   } else {
      id = =3D getMessageId(messageContext);
      type =3D new Integer(SOAPMonitorCon= stants.SOAP_MONITOR_RESPONSE);
    }

However,= MessageContext.setResponseWritten() is not called anywhere, best I
can = tell.

My question is: How can I tell that the messageContext contain= s a response ?

This topic was disscussed previously:

http://www.= opensubscriber.com/message/axis-dev@ws.apache.org/1800039.html

iksrazal
http://www.brazilou= tsource.com/
--



-- <= br>Ajith Ranabahu ------=_Part_41086_7954637.1138764667943--