Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 23779 invoked from network); 11 Apr 2006 17:38:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2006 17:38:19 -0000 Received: (qmail 72996 invoked by uid 500); 11 Apr 2006 17:38:12 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72725 invoked by uid 500); 11 Apr 2006 17:38:10 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 72714 invoked by uid 99); 11 Apr 2006 17:38:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2006 10:38:10 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.191.125.121] (HELO web38915.mail.mud.yahoo.com) (209.191.125.121) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Apr 2006 10:38:09 -0700 Received: (qmail 1472 invoked by uid 60001); 11 Apr 2006 17:19:23 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=byIFz9lHMq6BMjSl9hFtIZYnPmYVEk3N155ME1nugXjJNQfYwpBHVU7/JxXaxmNt/TyxOnjpD21vWPEns8xFQYGGkZ80gaPvPRAVietfl0kfYsXuG6B7+OW25F0XEp1/1y7V5k8+QjOFj+KJYc4Rd2a+s8pKcKtGJAYf0qnRUKA= ; Message-ID: <20060411171923.1470.qmail@web38915.mail.mud.yahoo.com> Received: from [88.224.181.34] by web38915.mail.mud.yahoo.com via HTTP; Tue, 11 Apr 2006 10:19:23 PDT Date: Tue, 11 Apr 2006 10:19:23 -0700 (PDT) From: Ali Sadik Kumlali Subject: Re: [Axis2][0.95] How can I know before sending it? To: axis-user@ws.apache.org, chinthaka@opensource.lk In-Reply-To: <443BD339.6040101@opensource.lk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Eran. It has worked perfectly for 0.95. Ali Sadik Kumlali --- Eran Chinthaka wrote: > Hi Ali, > > Ali Sadik Kumlali wrote: > > Hi all, > > > > At the service side, I can get MessageID that is sent by the client > by > > invoking ctx.getMessageID(). What I need is to be able to know > > MessageID that my service is going to send as a response. Actually, > > what I need is a method like ctx.getMessageIDToBeSent(). > > AFAIK, it is not produced until it enters into the WSA module. > > Therefore, in my service, I do not have the MessageID yet. Am I > wrong? > > If no, is there a way to do this? > > Nope, the message id is set to the out message context, inside the > message receiver. And then that message context *may* be passed in to > the service implementation class. > > If you wanna know the sending messageId, get access to the out > message > context, within the service class and override the messageId value. > > How to get access to the out message context ? > > In 0.95, introduce a method in ur service implementation class > > public void init(MessageContext inMsgCtxt, MessageContext inMsgCtxt){ > // ur code here > } > > In 1.0 RC1, introduce a method in ur service implementation class > > public void setOperationContext(OperationContext opCtxt){ > MessageContext outMsgCtxt = > opCtxt.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); > > // your code here > } > > > -- Chinthaka > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com