How to Call the WCF Web Service in PowerShell

Posted By Posted by: EPM Partners on May 21, 2013

# Create the WebSvcURL variable and pass the WSDL URL

$WebSvcURL= “http://snwebtt09/aurTEST/servlet/services/EV397_AURION_WS?wsdl

#Create the Web Service Proxy Object

$proxy = New-WebServiceProxy -Uri $WebSvcURL -Namespace ExportTool  -Class Program -UseDefaultCredential

$proxy

Write-host -ForegroundColor DarkBlue ===successfullyconnected to the WCF Web Service $proxy

Note: Default User account need to have an access to invoke the WCF Web Service.


Blog Posted In Blog Posted In: How to
Blog Posted In Comments Off on How to Call the WCF Web Service in PowerShell