You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dacheng <dc...@comp.leeds.ac.uk> on 2005/11/17 12:23:47 UTC
How can I set handlers for clients
Hi, I am new in Axis and just meet a problem. How to set handers at the
client side? when I use call.invoke() to invoke a service, I can use
client-config.wsdd to set handlers. But at the moment I have to use stubs,
what should I do? Hope I can get assistance for u.
Thank you in advance
Dacheng
Two questions: How a handler can get the property in a stub and How to get the parameters set in the wsdd file?
Posted by Dacheng <dc...@comp.leeds.ac.uk>.
Hi, I am new to use axis and trying to use a stub to invoke a service. I
also deploy a handler at the client side. So there are two questions.
1): I use _setProperty(java.lang.String name, java.lang.Object value) to
set some property to the stub, how can I get the property I set within the
handler?
2): I set some parameters in the service-deploy.wsdd file, how can I get
them in the service?
Hope I can get your kindly help.
Thanks a lot
Dacheng
Re: How can I set handlers for clients
Posted by Richard Gregory <ri...@gsf.de>.
Hi Dacheng,
Assuming you have a client-config.wsdd file which specifies the handlers
you need and the stubs generated by wsdl2java, it's quite simple.
//Create a new EngineConfiguration instance using the wsdd
EngineConfiguration config = new FileProvider("client-config.wsdd");
// Use this when instantiating the service locator
MyServiceServiceLocator service = new MyServiceServiceLocator(config);
//Procede using stubs as normal
MyServicePortType port = service.getMyService();
Hope this helps,
Richard.
Dacheng wrote:
>Hi, I am new in Axis and just meet a problem. How to set handers at the
>client side? when I use call.invoke() to invoke a service, I can use
>client-config.wsdd to set handlers. But at the moment I have to use stubs,
>what should I do? Hope I can get assistance for u.
>
>Thank you in advance
>
>Dacheng
>
>
>
>