Powershell New-WebServiceProxy - how to call WCF service
问题 I'm trying to call a WCF service from PowerShell. This is what I have so far based on a few misc example I found on the web: # Create the WebSvcURL variable and pass the WSDL URL $WebSvcURL= “http://localhost/DEMO/SetPassKey/SetPassKey_Logic_SetPassKeyWebService_SetPassKeyWCF.svc?wsdl“ #Create the Web Service Proxy Object #$serviceProxy = New-WebServiceProxy -Uri $WebSvcURL -Namespace "http://Sample.SetPassKey.Logic" -Class Program -UseDefaultCredential $serviceProxy = New-WebServiceProxy