Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Need to be able to support SOAP timeouts #41

Open
sfloess opened this issue Sep 9, 2014 · 0 comments
Open

Need to be able to support SOAP timeouts #41

sfloess opened this issue Sep 9, 2014 · 0 comments
Assignees
Milestone

Comments

@sfloess
Copy link
Member

sfloess commented Sep 9, 2014

Need to be able to support SOAP timeouts. We may want to put this in FlossWare but denoting the issue here. I believe this ought to do the magic:

requestContext.put(BindingProviderProperties.REQUEST_TIMEOUT, 3000); // Timeout in millis
requestContext.put(BindingProviderProperties.CONNECT_TIMEOUT, 1000); // Timeout in millis

I did see mention of the following but I suspect it's wrong:

URL endpoint =
new URL(new URL("http://yourserver.yourdomain.com/"),
"/path/to/webservice",
new URLStreamHandler() {
@OverRide
protected URLConnection openConnection(URL url) throws IOException {
URL target = new URL(url.toString());
URLConnection connection = target.openConnection();
// Connection settings
connection.setConnectTimeout(10000); // 10 sec
connection.setReadTimeout(60000); // 1 min
return(connection);
}
});

@sfloess sfloess self-assigned this Sep 9, 2014
@sfloess sfloess added this to the 2.1 milestone Sep 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant