Monthly Archives: August 2013

Axis1.x with jax-ws Read timed out problem

Axis send the web service request by use HTTP 1.0 by default, change to HTTP 1.1 solve this problem:

call.setProperty(MessageContext.HTTP_TRANSPORT_VERSION,
HTTPConstants.HEADER_PROTOCOL_V11);

If call Web Service get “cannot found dispatch method” error,Axis is RPC style Web Service,so you should add RPC annotation(@SOAPBinding(style = Style.RPC)) when write your Web Service by JDK:

@WebService
@SOAPBinding(style = Style.RPC)
public class HelloService {

}