axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith chapman <keithgchap...@gmail.com>
Subject Re: How to intercept soap message from Client
Date Thu, 12 Feb 2009 02:02:26 GMT
Are you using Axis on the client side and not Axis2?

Thanks,
Keith.

On Tue, Feb 10, 2009 at 5:51 PM, Nihita Goel <nihita.goel@gmail.com> 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

Mime
View raw message