You need to sign in to do that
Don't have an account?
irfan aziz
How to check if the proxy is working in java bulkapi?
Hi i managed to set the java bulkapi client Which connects and queries the SF org. However, i was using direct connection via internet to salesforce org. Now i ll run it via proxy server, i am not sure if the blow small code snifet does work. I have put these two lines and its working on my system which has an active internet connection. How to check if my proxy is being used or not.
System.setProperty("http.proxyHost", proxyHostName);
System.setProperty("http.proxyPort", ""+proxyPort);
The other way is check it on the server.
System.setProperty("http.proxyHost", proxyHostName);
System.setProperty("http.proxyPort", ""+proxyPort);
The other way is check it on the server.
public boolean login() { boolean success = false; //change from login to test to move to sandbox and last number is API version being used String serverurl="https://eu1.salesforce.com/services/Soap/u/39.0/00E58000110cvU"; String soapAuthEndPoint = serverurl; // "https://login.salesforce.com/services/Soap/u/39.0"; //first part is the header on the url of the org you are pointing this tool at String bulkAuthEndPoint = "https://eu1.salesforce.com/services/async/39.0"; try { ConnectorConfig config = new ConnectorConfig(); config.setUsername(userId); config.setPassword(passwd); config.setProxy("proxy.abc.fi", 808); System.setProperty("http.proxyHost", "proxy.abc.fi"); System.setProperty("http.proxyPort", ""+ 808); config.setAuthEndpoint(soapAuthEndPoint); config.setCompression(true); config.setTraceFile("C:\\Users\\uz0343\\workspace\\BulkApi\\src\\traceLogs.txt"); config.setTraceMessage(false); config.setPrettyPrintXml(true); config.setRestEndpoint(bulkAuthEndPoint); System.out.println("AuthEndpoint: " + config.getRestEndpoint()); PartnerConnection connection = new PartnerConnection(config); System.out.println("SessionID: " + config.getSessionId()); bulkConnection = new BulkConnection(config); success = true;