I am trying to connect to PSI through PowerShell (script). The shell is taking window's command but gives error while trying to connect to project server PSI through web proxy. The error message is :
New-WebServiceProxy : Unable to import binding 'ProjectSoap' from namespace 'http://schemas.microsoft.com/office/project/server/webservices/Project/'.
At D:\Folder\filename.ps1:2 char:34
+ $svcPSProxy = New-WebServiceProxy <<<< -uri "http://servername/pwa/_vti_bin/PSI/Project.asmx?wsdl" -useDefaultCredential
+ CategoryInfo : NotSpecified: (:) [New-WebServiceProxy], Invalid OperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.NewWebServiceProxy
If I give the project.asmx file uri directly in the address bar it is opening fine.
How can we avoid the error message?