import com.sun.xml.ws.developer.JAXWSProperties; import javax.xml.ws.BindingProvider;
Just add this before the function call where you call web service.
((BindingProvider)port).getRequestContext() .put(JAXWSProperties.CONNECT_TIMEOUT, 100); ((BindingProvider)port).getRequestContext() .put(JAXWSProperties.REQUEST_TIMEOUT, 100);
could not get.perhaps,needed some basics.
ReplyDeleteJAXWSProperties.REQUEST_TIMEOUT, 100 --- which type is 100 int or string?
ReplyDeleteIt is int
Delete