Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 94184 invoked from network); 12 Feb 2009 02:03:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2009 02:03:06 -0000 Received: (qmail 39097 invoked by uid 500); 12 Feb 2009 02:02:57 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 39056 invoked by uid 500); 12 Feb 2009 02:02:57 -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 39047 invoked by uid 99); 12 Feb 2009 02:02:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 18:02:57 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of keithgchapman@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2009 02:02:47 +0000 Received: by wa-out-1112.google.com with SMTP id k40so250524wah.0 for ; Wed, 11 Feb 2009 18:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=51BiNlb77wF4t899Dx3VUyREDS6WMVT2TSJDV547ivk=; b=auUjME0E2WK6NutzhyE2N1WWprkl668AICD+7BobO0IljDVFDEyVMoX+qZIr6LwASM fk/7pPpK5ed+V7ieKpJOsMC2lYAZsmdsLP3xT/k9KhnOD26ifwpvAZlO6nzC6Lwt1IBN gS9QzzLea8AArigjLRe+RO8GqXR1D22tP7UBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=B8Q1o4SE6YOgyfh+h1BMAqR7mTbk7wXBqZ6xzJKnNIfGwiOrwXmDY9C+xJVmklsV/+ 4ox1NBP5M6hpMlmJaq8wekBBLfKLHTJmsVYVuQKcormEQqlGk4aL/JMK/w3vLwL7bYAT GOKWuJ7Z+kil2QY+ZdJzfmJEi3j7LPDcgy8CU= MIME-Version: 1.0 Received: by 10.115.19.16 with SMTP id w16mr147977wai.51.1234404146069; Wed, 11 Feb 2009 18:02:26 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Feb 2009 07:32:26 +0530 Message-ID: Subject: Re: How to intercept soap message from Client From: keith chapman To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=0016e64cc5fea2c0900462af1c7e X-Virus-Checked: Checked by ClamAV on apache.org --0016e64cc5fea2c0900462af1c7e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Are you using Axis on the client side and not Axis2? Thanks, Keith. On Tue, Feb 10, 2009 at 5:51 PM, Nihita Goel wrote: > Hi: >> >> I am trying to intercept the Client side SOAP messages. I have done the >> following for the same: >> >> 1. extended class BasicHandler and implemented the invoke method. At >> present it just contains a simple Syste.out.println method. >> >> 2. Since Client does not have a deployment file. Am doing the following in >> my client code. >> >> >> IRomanserviceLocator service = >> *new* IRomanserviceLocator(); >> >> IRoman port = service.getIRomanPort(); >> >> QName portName = service.getServiceName(); >> >> *HandlerRegistry registry = service.getHandlerRegistry();* >> >> *List handlerList = * >> *new** ArrayList(); * >> >> *handlerList.add( * >> *new HandlerInfo( MyHandler.class, null, null** ) );* >> >> *registry.setHandlerChain( portName, handlerList );* >> >> System. >> *out*.println( port.intToRoman(551) ); >> >> However it does not work. >> >> I tried implementing the Myhandler class by implementing the handler class >> also. >> >> Could anyone help ? >> >> Thanks >> >> >> >> > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org --0016e64cc5fea2c0900462af1c7e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Are you using Axis on the client side and not Axis2?

Thanks,
Keit= h.

On Tue, Feb 10, 2009 at 5:51 PM, Nihit= a Goel <nihit= a.goel@gmail.com> wrote:
Hi:
 
I am trying to intercept the Client side SOAP messages. I have done th= e following for the same:
 
1. extended class BasicHandler and implemented the invoke method. At p= resent it just contains a simple Syste.out.println method.
 
2. Since Client does not have a deployment file. Am doing the fol= lowing in my client code.
 

IRomanserviceLocator service =3D

new IRomanserviceLocat= or();=20

IRoman port =3D service.getIRomanPort();

QName portName =3D service.getServiceName();

HandlerRegistry registry =3D service.getHandlerRegistr= y();

List handlerList =3D

new ArrayList();

handlerList.add(

new HandlerInfo( MyHandler.<= font size=3D"2" color=3D"#7f0055">class, null, null ) );= =20

registry.setHandlerChain( portName, handlerList );=

System.

o= ut.println( port.intToRoman(551) );

However it does not work.

I tried implementing the Myhandler class by implementing = the handler class also.

Could anyone help ?

Thanks

 

 




--
Keith Chapman
Senior= Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.http://wso2.org/

blog: http://www.keith-chapman.org
--0016e64cc5fea2c0900462af1c7e--