I need a solution
I am using Powershell to trigger a Decision Only workflow using the Invoke-WebRequest command. However, I want this workflow to use authentication. How do you pass authentication with powershell?
EXAMPLE:
$uri = "https://workflowserver/Demo/MyService.asmx?WSDL"
$soap = @'
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Execute xmlns="www.symantec.com" />
</soap:Body>
</soap:Envelope>
'@
[xml]$WF = Invoke-WebRequest $uri -Method post -ContentType "text/xml" -Body $soap
write
$wf.Envelope.Body.ExecuteResponse.ExecuteResult