$user = "musteruser"
$pass = "4711"
$URI = "http://SERVER:8080/inf-process-engine/soap?wsdl"
$secpasswd = ConvertTo-SecureString $pass -AsPlainText -Force
$credentials = New-Object System.Management.Automation.PSCredential($user, $secpasswd)
$Body = '
API_Test.ipd
'
$response = [xml](Invoke-WebRequest -Credential $credentials -Uri $URI -Headers (@{SOAPAction = 'instantiate'}) -Method Post -Body $Body -ContentType text/xml | Select-Object -Expand Content )
$executionId = $response.Envelope.Body.instantiateResponse.return.executionId
$var_a = 3
$var_b = 7
Write-Host "ExecutionID:" + $executionId
$Body = '' + $executionId + '' + $var_a + '' + $var_b + ''
$response = [xml](Invoke-WebRequest -Credential $credentials -Uri $URI -Headers (@{SOAPAction = 'startProcess'}) -Method Post -Body $Body -ContentType text/xml | Select-Object -Expand Content)
Write-Host "Ergebnis: " + $response.Envelope.Body.startProcessResponse.return.pipeline.entry.value