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
Rao NemaniRao Nemani 

Web services callouts

Hello All

 

I need some help from experts here.

 

I am callling a web srvice from SFDC using callouts however my web services is required a proxy authentication i am not sure how to do this in SFDC , COuld you pelase guide me please?

 

below is .Net code being used to calling the same web service


WebProxy myWebProxy = new WebProxy();
myWebProxy.Credentials = new NetworkCredential(AprimoProxyUserName, AprimoProxyPassword, AprimoProxyDomain);
//danva01
myWebProxy.Credentials = new NetworkCredential("uid", "pwd", "domain");

string txtProxyServer = "http://usl.test.com";
Uri newUri = new Uri(txtProxyServer);
myWebProxy.Address = newUri;

XMLGatewayInterface binding = new XMLGatewayInterface();
binding.Proxy = myWebProxy;
binding.Url = AprimoXMLGateWayInterfaceServicePath;
binding.Timeout = 90000;
binding.Proxy

string strResponse = binding.Process(AprimoProxyClientID, strAccessKey, AprimoProxyDSN, AprimoProxyDomainID, sbRequest.ToString());

 

pelase help me out. Thanks in advance.

 

thanks,

rao

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

There's no support in callouts for using a HTTP proxy (this sounds unusual, explicit proxies are normally always used by the client app/network, and not a requirement to connect to a particular destination server).

All Answers

SuperfellSuperfell

There's no support in callouts for using a HTTP proxy (this sounds unusual, explicit proxies are normally always used by the client app/network, and not a requirement to connect to a particular destination server).

This was selected as the best answer
Rao NemaniRao Nemani

Thank you