Setting timeout to consume web service in java implementation class -



Setting timeout to consume web service in java implementation class -

i have jax-ws webservice client. tried set timeout property this:

map<string, object> requestcontext = bp.getrequestcontext(); requestcontext.put(bindingproviderproperties.request_timeout, 20); //i tried using //"javax.xml.ws.client.receivetimeout" in place of request_timeout //it behaved same way. requestcontext.put(bindingproviderproperties.connect_timeout, 10000);

for more details see question how set timeout jax-ws webservice client?

however, i'm not seeing timeout occur. should give read timeout service triggered not providing response in 20 milliseconds. tried making request_timeout value negative giving same response. confirmed value set in request context not specifying timeout service.

does know why setting isn't working , should doing instead?

the time out value can increased adding "responsetimeout" paramter service url. ex: http://localhost.int.com/service/testquery.svc?responsetimeout=10000

java web-services

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -