function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cncn 

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

 

dkadordkador

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.