Not sure if you are meaning different data in the soap envelope/body, or different parameters invoked from the client. The former you would convert the SOAPMessage to Document. For the latter. using axis 1.x , what you want to do is to place a HashMap in the handler chain:
//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)); handlerConfig is a Hashmap. Then, pick a Handler - axis has a bunch but for sure you can use javax.xml.rpc.handler.Handler - That has: public void init(HandlerInfo config) Then just do: Map configProps = config.getHandlerConfig(); HTH, iksrazal http://www.braziloutsource.com/ Em Terça 03 Janeiro 2006 01:07, o Ryan Chambers escreveu: > I've implemented a custom client request handler. It adds some > SOAPElement objects to the SOAPHeader. This is pretty easy to do when > the stuff it adds is static for every request. But I need to make some > changes where the stuff that is added is different for every request. > How do I do that? I figured I could set the properties somewhere using > the MessageContext class. But I can't figure out how to get access to > that outside of the BasicHandler and its inheritors. > > Has anybody written a custom client handler where different data is used > for every request? > > Thanks in advance. > > Ryan --
