I have a web service i need to get the XML returned from but it requires basic authentication, so I am needing some help on formatting the PowerShell script.
The web service has a specific method I need to call as well as to variables that I need to pass with specific values, on variable is "Datsource" and the other is "CustomerID"
Some help on getting the basic authentication added would be a great help please, i have the script working but it fails with an error 400 Bad Request.
This is what I have so far
$Datasource = 'Value'