The core web service allows you to create, retrieve, update, and delete documents, and submit document queries.
To make it easier to use the core web service, there is a helper that makes the calls to the web service, based on the SDO objects that can be created in the usual way.
The class definition of the helper is shown in this illustration:

public WSRRCoreSDOClient(String endpoint, int timeout)
public WSRRCoreSDOClient(String endpoint, String username, String password, int timeout)
The timeout parameter specifies the timeout in milliseconds. The default timeout period is 300,000 milliseconds (300 seconds). The timeout period applies to when the initial connection to the server is created and any subsequent actions performed on the object that is created by using the constructor. The following code example shows you how to handle the exception that occurs if the timeout is exceeded:try {
String bsrURI = "4aac864a-875d-4d7e.9697.d209f5d297ee";
client.retrieve(bsrURI);
} catch (ServiceRegistryException e) {
if(e.getCause() instanceof SocketTimeoutException) {
// handle timeout
}
}
The URL for the core web service is /WSRR8_0/services/WSRRCoreSDOPort.