This is how I have it right now. I want to use chain so it actually
don't over right the MQ one, and this happens in my "Stub".
//Auditing - start
org.apache.axis.Handler reqHandler = new
com.cerner.fsi.endpoint.axis.handlers.auditing.MQLoggerHandler();
org.apache.axis.Handler respHandler = new
com.cerner.fsi.endpoint.axis.handlers.auditing.MQLoggerHandler();
_call.setClientHandlers(reqHandler, respHandler);
//Auditing - end
// Use HttpClient to call a SOAP server. - start
org.apache.axis.transport.http.CommonsHTTPSender
reqConnectionHandler =
new org.apache.axis.transport.http.CommonsHTTPSender();
org.apache.axis.transport.http.CommonsHTTPSender
respConnectionHandler =
new org.apache.axis.transport.http.CommonsHTTPSender();
_call.setClientHandlers(reqConnectionHandler,respConnectionHandler);
// Use HttpClient to call a SOAP server. - end
Thanks,
Parikh, Pratik | Software Engineer | Cerner Corporation |
(1)-816-201-1298 | [EMAIL PROTECTED] | www.cerner.com
-----Original Message-----
From: iksrazal [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 08, 2005 1:06 PM
To: [email protected]
Subject: Re: Can you have more then one client handler
Here's a rough example for how it works for one handler.
//add ClientHandler to chain of events
java.util.List list =
svc.getHandlerRegistry().getHandlerChain(portQN);
list.add(new
javax.xml.rpc.handler.HandlerInfo(ClientHandler.class,this.handlerConfig
,null));
I guess just repeat for the second, third etc ? Not sure how the
ordering would work either. Suggest looking at the API docs.
iksrazal
Em Quinta 08 Dezembro 2005 17:56, o Parikh,Pratik escreveu:
> Is there a example for this???
>
> Thanks,
> Parikh, Pratik
>
>
> -----Original Message-----
> From: Guy Rixon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 08, 2005 1:56 AM
> To: [email protected]
> Subject: RE: Can you have more then one client handler
>
> You could try combining them into a handler chain. You could then
> assign the chain to handle the request.
>
> On Wed, 7 Dec 2005, Parikh,Pratik wrote:
> > Can anyone reply to this??????
> >
> >
> > Thanks,
> > Parikh, Pratik
> >
> > ________________________________
> >
> > From: Parikh,Pratik [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, December 07, 2005 10:02 AM
> > To: [email protected]
> > Subject: Can you have more then one client handler
> >
> >
> >
> > Hi Everyone,
> >
> > I have two handler in my client stub, one for logging out
> > messages
> >
> > to MQ and second is for CommonsHTTPSender. Now the problem I am
> > running into is that it only allow me to have one handler. Is there
> > anyway I can run both, please let me know?
> >
> > Thanks,
> > Pratik
> >
> > CONFIDENTIALITY NOTICE
> >
> > This message and any included attachments are from Cerner
> > Corporation and are intended only for the addressee. The information
> > contained in this message is confidential and may constitute inside
> > or non-public information under international, federal, or state
securities laws.
> > Unauthorized forwarding, printing, copying, distribution, or use of
> > such information is strictly prohibited and may be unlawful. If you
> > are not the addressee, please promptly delete this message and
> > notify the sender of the delivery error by e-mail or you may call
> > Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
> > (816)221-1024.
> > ---------------------------------------- --
>
> Guy Rixon [EMAIL PROTECTED]
> Institute of Astronomy Tel: +44-1223-337542
> Madingley Road, Cambridge, UK, CB3 0HA Fax:
+44-1223-337523
>
> CONFIDENTIALITY NOTICE
>
> This message and any included attachments are from Cerner Corporation
> and are intended only for the addressee. The information contained in
> this message is confidential and may constitute inside or non-public
> information under international, federal, or state securities laws.
> Unauthorized forwarding, printing, copying, distribution, or use of
> such information is strictly prohibited and may be unlawful. If you
> are not the addressee, please promptly delete this message and notify
> the sender of the delivery error by e-mail or you may call Cerner's
> corporate offices in Kansas City, Missouri, U.S.A at (+1)
> (816)221-1024.
> ---------------------------------------- --
CONFIDENTIALITY NOTICE
This message and any included attachments
are from Cerner Corporation and are intended
only for the addressee. The information
contained in this message is confidential and
may constitute inside or non-public information
under international, federal, or state
securities laws. Unauthorized forwarding,
printing, copying, distribution, or use of such
information is strictly prohibited and may be
unlawful. If you are not the addressee, please
promptly delete this message and notify the
sender of the delivery error by e-mail or you
may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024.
---------------------------------------- --