Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compatibility between New-WebServiceProxy and a proxy server

Tags:

powershell

Am I missing something here?

Does new-webserviceproxy not support proxy credentials?

Corporate environments invariably use proxy servers to talk to the rest of the web and I can't seem to get new-webserviceproxy to talk through ours. I get a 407 proxy authentication required error in return - the credentials argument is for credentials to the webservice not for the proxy.

like image 570
Bohdan Szymanik Avatar asked May 01 '26 09:05

Bohdan Szymanik


1 Answers

Unfortunately, this cmdlet has no support for proxy credentials. You may want to try using the code posted here by Lee. http://www.leeholmes.com/blog/2007/02/28/calling-a-webservice-from-powershell/

He uses NET.WebClient namespace and hence it is possible to add proxy credentials to the connect-WebService code.

like image 195
ravikanth Avatar answered May 04 '26 11:05

ravikanth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!