Reporting Web Service
# Connect to the reporting web service.
$url = "http://localhost/xiaconfiguration/webservice/reporting.asmx";
Write-Host "Connecting to reporting web service at" $url;
$reporting = New-WebServiceProxy -UseDefaultCredential -Uri $url;
Write-Host "Connected as" $reporting.GET_AuthenticatedUserName();
# To use specific credentials use the Get-Credential cmdlet.
$creds = Get-Credential;
$reporting = New-WebServiceProxy -Uri $url -Credential $creds;