Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Wcf service consumption by PowerShell New-WebServiceProxy

$
0
0

I am developing a WCF service which I want to consume in PowerShell. Earlier I was using wsHttpBinding for the wcf service configuration. 

I tried to use following statement in PowerShell.

$wcf = New-WebServiceProxy -Uri http://localhost:8732/Agent

After this if i try any operation like $wcf.myfunction(params) it resulted in Operation TimeOut.

By hit and trial later added basicHttpBinding to the WCF configuration and finally it worked.

Is wsHttpBinding not supported by New-WebServiceProxy?



Viewing all articles
Browse latest Browse all 2562

Trending Articles



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