You need to sign in to do that
Don't have an account?
Calling salesforce webservice from java application
Hi All,
I'm working on java application which use sales force web service to update transaction.
I generated the java class files from wsdl file by using wsdl2java. I can create salesforce web service stub
and can connect to salesforce webservice from my own environment. But in my customer side, there is proxy setting and I got timeout error when I login to salesforce UAT. I tried to generated java class by using wsdl2java with proxy option. Unfortunately it didn't work. Is it not stratigh forward like that? Is there a way to implement? Can anynone help me?
With thks,
cn
Get the ConnectorConfig object from your stub (getConfig()). On that object, call setProxy(), which takes in a java.net.Proxy object. Then the stub will use the proxy when it sends requests.