This example demonstrates how to generate a PDF in XIA Configuration using PowerShell.
# Connect to the configuration web service.
$url = "http://localhost/xiaconfiguration/webservice/xiaconfiguration.asmx";
Write-Host "Connecting to configuration web service at" $url;
$xia = New-WebServiceProxy -UseDefaultCredential -Uri $url;
Write-Host "Connected as" $xia.GET_AuthenticatedUserName();
# Generate the PDF as a byte array.
$data = $xia.GET_PDFOutputBasic(1000);
# Write the PDF to a file.
Write-Host "Saving PDF file...";
$filename = "c:\temp\sample.pdf";
[IO.File]::WriteAllBytes($filename,$data);
# Display the file.
[System.Diagnostics.Process]::Start($filename);