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?