Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell New-WebServiceProxy How to specify bindings for a WCF service

$
0
0

I've a simple WCF web service to add 2 numbers;  this is hosted in IIS with HTTPS;  I'm able to work with it successfully using a basic Visual Studio Form application. Since the WSDL has multiple bindings, in Visual Studio, I specify the binding as in:

...ServiceClient("WSHttpBinding_IService")...

which picks the correct HTTPS end point.

How do you specify the binding when using New-WebServiceProxy  in PowerShell?



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>