on 12 Apr 2023 08:00 AM
To create SOAP requests on synthetic HTTP monitor, we need a sample HTTP Request & Response information like below,
Note:- This is the sample request and response which uses the dummy urls
<!-- REQUEST ---------------------------------------------------->
POST https://www.dynatrace.com/additioncalculator //Post url
//Request Headers
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Accept-Language: en-us
Accept-Encoding: gzip
Host: www.dynatrace.com
SOAPAction: https://www.dynatrace.com/additioncalculatoraction
Content-Type: text/xml
Content-Length: 256
Connection: Keep-Alive
Authorization: Basic Testing
//Request Body
<?xml version="1.0" standalone="yes"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="https://www.dynatrace.com/">
<soap:Body>
<request:Addition>
<request:input1>10</request:input1>
<request:input2>20</request:input2>
</request:Addition>
</soap:Body>
</soap:Envelope>
<!-- RESPONSE --------------------------------------------------->
//Response Headers
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Date: Tue, 01 Nov 2022 10:28:08 GMT
Content-Length: 298
Content-Type: text/xml; charset=utf-8
Content-Encoding: gzip
Server: Microsoft-IIS/10.0
Vary: Accept-Encoding
//Response body
<?xml version="1.0" standalone="yes"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<AdditionResponse xmlns="http://www.dynatrace.com/">
<AdditionResult>30</AdditionResult>
</AdditionResponse>
</soap:Body>
</soap:Envelope>
Based on the above information, we can create the synthetic HTTP monitor by adding the post urls, request headers, Basic Authentication details and request body like below,
Thank you for sharing this! I'm sure it will help out many community members.