I have a question about handlers. I'm reading the book Axis Next Generation Java SOAP and it is mainly focused on the server part. But basicly I use only the clientside part, since the "webservice" is already in place. Since this server don't like namespaces and I can't get rid of it in Axis, I want to write a Handler that strips it out when sending a soap message to the server and put it back on when getting the response .
So I here are my questions:
1. Is it possible to strip of the soapenv / body tags from a message before sending? And put it back on when recieving the response?
2. Can I add a Handler to the client engine. Since I tried:
org.apache.axis.handlers.soap.SOAPService service = locator.getEngine().getClientEngine().getService("http://www.nilling.nl/message.wsdl");
service.addHandler(new nl.nilling.soaphandler.NoNamespaceHandler());
which ends up with a null exception
I need an answer on the second question the most. The first is just a matter of trying.
Thanks,
Johan
-- Nilling Software Design Postbus 43 2280 AA Rijswijk ZH w: http://www.nilling.nl