We have a POST request set up which returns data in xml format when using postman. The POST request sends a fake transaction via an API and returns the data below. We would like to monitor the api using this POST request and alert if an unexpected error is returned. I have tried all sorts of native sensors and custom sensors but cannot get the sensor to work as expected. The XML response we get is pasted below. (i have xxxx out some data that is sensitive). When we use this response in PRTG we get an error stating:
"The returned XML does not match the expected schema. (code: PE233)" |
Any help would really be appreciated. We are using a powershell script to send the request and when we keep the response in PRTG and take a look at the sensor log the exact data below is in the log.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InitiateTransactionResponse xmlns="http://XXXXXXXXXXXXXXXXXXXX"> <InitiateTransactionResult> <FXRate>0</FXRate> <PassThrough/> <Errors> <string>Initiate failed: XXXXXXXXXXXXXXX</string> </Errors> <Error>Initiate failed: XXXXXXXXXXXXXXXX</Error> </InitiateTransactionResult> </InitiateTransactionResponse> </s:Body> </s:Envelope>
Add comment