I had SocketTimeoutException and in my case I solve it by setting org.apache.axis.client.Stub.setTimeout() method, default is like 45 seconds, there are several setTimeout() methods in different Axis classes and I believe you can specify timeout in wsdl2java too, at the time I was using debugger and was getting such nasty exceptions all the time, it is not exactly your case, but the cause could be similar, hope it helps.

oleg


Stephen Gordon wrote:


Hi there,

I'm just wondering if anyone knows how to modify the SOAP content of a server response message using a Handler object?? What I want to do is get my Handler to change the response message to a SOAP message (in XML) which is read in from an InputStream.

I've tried like this:

InputSource xmlSource = new InputSource(pis);
DeserializationContext dser = new DeserializationContextImpl(xmlSource, msgContext, Message.RESPONSE);
dser.parse();


But this causes a SocketTimeoutException when a call a service.

Any ideas??

stephen




Reply via email to