Digging out my old axis 1.x code , you could also do...
QName svcQName = new QName(endpoint, nameSpaceUri);
ServiceFactory sf = ServiceFactory.newInstance();
Service svc = sf.createService(svcQName);
QName portQN = new QName(endpoint, pq);
//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));
Call call = (Call) svc.createCall(portQN);
HTH,
Robert
http://www.braziloutsource.com/
On 8/23/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
You need to define a client-side WSDD file.
On 8/23/06, Andrew Fielden <[EMAIL PROTECTED]> wrote:
> Let's suppose I have a Web Service which is provided by WebSphere.
> I'm using Axis in my client to invoke this Web Service.
> I have no deployment descriptor file, the Web Service is being invoked
> via a WSDL, specifying a target service and port.
>
> Looking at the WSS4J examples, they are all based on modifying an
> existing .wsdd file to specify handler classes.
>
> In my case I do not have a .wsdd file
>
> How then, do I configure Axis to invoke my handler class?
>
> I wish to add username, SAML or X509 security tokens to ALL outgoing
> SOAP messages, not just for one specific Web Service.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]