Search in sources :

Example 6 with SessionHeader

use of com.salesforce.soap.partner.SessionHeader 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

SessionHeader (com.salesforce.soap.partner.SessionHeader)6 CallOptions (com.salesforce.soap.partner.CallOptions)3 SforceServiceLocator (com.salesforce.soap.partner.SforceServiceLocator)3 SforceServiceStub (com.salesforce.soap.partner.SforceServiceStub)3 LoginResult (com.salesforce.soap.partner.LoginResult)2 LoginFault (com.salesforce.soap.partner.fault.LoginFault)2 RemoteException (java.rmi.RemoteException)2 ServiceException (javax.xml.rpc.ServiceException)2 QueryResult (com.salesforce.soap.partner.QueryResult)1 ApiFault (com.salesforce.soap.partner.fault.ApiFault)1 ExceptionCode (com.salesforce.soap.partner.fault.ExceptionCode)1 IOException (java.io.IOException)1 URL (java.net.URL)1