use of com.salesforce.soap.partner.SforceServiceStub in project tdi-studio-se by Talend.
the class SforceBasicConnection method init.
private void init() throws Exception {
if (clientID != null) {
co = new CallOptions();
co.setClient(clientID);
}
stub = new SforceServiceStub();
SforceManagementUtil.needCompression(stub, needCompression);
SforceManagementUtil.setTimeout(stub, timeout);
SforceManagementUtil.useHttpChunked(stub, useHttpChunked);
SforceManagementUtil.setHttpProxy(stub);
sh = new SessionHeader();
renewSession();
}
use of com.salesforce.soap.partner.SforceServiceStub in project tdi-studio-se by Talend.
the class SforceSessionConnection method init.
private void init() throws Exception {
if (clientID != null) {
co = new CallOptions();
co.setClient(clientID);
}
stub = new SforceServiceStub();
SforceManagementUtil.needCompression(stub, needCompression);
SforceManagementUtil.setTimeout(stub, timeout);
SforceManagementUtil.useHttpChunked(stub, useHttpChunked);
// SforceManagementUtil.setHttpProxy(stub);//don't support proxy for OAuth
sh = new SessionHeader();
// renewSession();
SforceManagementUtil.setEndpoint(stub, endpoint);
sh.setSessionId(session_id);
}
use of com.salesforce.soap.partner.SforceServiceStub in project tdi-studio-se by Talend.
the class SforceOAuthConnection method init.
private void init() throws Exception {
if (clientID != null) {
co = new CallOptions();
co.setClient(clientID);
}
stub = new SforceServiceStub();
SforceManagementUtil.needCompression(stub, needCompression);
SforceManagementUtil.setTimeout(stub, timeout);
SforceManagementUtil.useHttpChunked(stub, useHttpChunked);
// SforceManagementUtil.setHttpProxy(stub);//don't support proxy for OAuth
sh = new SessionHeader();
renewSession();
}
Aggregations