Package com.sforce.soap.apex

Examples of com.sforce.soap.apex.SoapConnection


        connectorConfig.setPrettyPrintXml(true);
        connectorConfig.setSessionId(connection.getSessionId());
        connectorConfig.setServiceEndpoint(connection.getApexServiceEndpoint(connection.getServiceEndpoint()));
        connectorConfig.setReadTimeout(readTimeout);
       
        SoapConnection apex = null;
        try {
            apex = Connector.newConnection(connectorConfig);
            apex.setDebuggingHeader(logInfo, LogType.None);
            return new ExecuteAnonymousResultExt(apex.executeAnonymous(code), apex.getDebuggingInfo());
        } catch (ConnectionException e) {
            ExecuteAnonymousResult er = errorExecuteAnonymousResult(connectorConfig, e);
            ExecuteAnonymousResultExt erx = new ExecuteAnonymousResultExt(er, apex.getDebuggingInfo());
            DebuggingInfo_element dbi = new DebuggingInfo_element();
            dbi.setDebugLog(e.getMessage());
            erx.setDebugInfo(dbi);
            return erx;
        } finally {
View Full Code Here

TOP

Related Classes of com.sforce.soap.apex.SoapConnection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.