Search in sources :

Example 1 with SforceServiceStub

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();
}
Also used : SessionHeader(com.salesforce.soap.partner.SessionHeader) SforceServiceStub(com.salesforce.soap.partner.SforceServiceStub) CallOptions(com.salesforce.soap.partner.CallOptions)

Example 2 with SforceServiceStub

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);
}
Also used : SessionHeader(com.salesforce.soap.partner.SessionHeader) SforceServiceStub(com.salesforce.soap.partner.SforceServiceStub) CallOptions(com.salesforce.soap.partner.CallOptions)

Example 3 with SforceServiceStub

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();
}
Also used : SessionHeader(com.salesforce.soap.partner.SessionHeader) SforceServiceStub(com.salesforce.soap.partner.SforceServiceStub) CallOptions(com.salesforce.soap.partner.CallOptions)

Aggregations

CallOptions (com.salesforce.soap.partner.CallOptions)3 SessionHeader (com.salesforce.soap.partner.SessionHeader)3 SforceServiceStub (com.salesforce.soap.partner.SforceServiceStub)3