I have a program that uses javax.xml.ws.Service
to call a remote service defined by a WSDL. This program runs on the Google App Engine which, by default, sets the HTTP connection timeout to 5
seconds{1}. I need to increase this timeout value since this service often takes a long time to respond, but since this request is not being made with URLConnection
, I cannot figure out how to call URLConnection.setReadTimeout(int)
{2}, or otherwise change the timeout.
Is there any way to globally set the HTTP connection timeout on the App Engine? And, for purposes of sharing knowledge, how would one go about solving this sort of problem generally?
{1}: https://developers.google.com/appengine/docs/java/urlfetch/overview#Requests
{2}: http://docs.oracle.com/javase/1.5.0/docs/api/java/net/URLConnection.html#setReadTimeout(int)