Monitor SOAP response using with Heartbeat

MY SOAP XML Request:

 <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:brm="http://x.x.x.x:7501/infranetwebsvc/services/BRMBaseServices">
   <soapenv:Header/>
   <soapenv:Body>
      <brm:opcode soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <opcode xsi:type="xsd:string">MSO_OP_CUST_GET_CUSTOMER_INFO</opcode>
         <inputXML xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MSO_OP_CUST_GET_CUSTOMER_INFO_inputFlist>
<ACCOUNT_NO>111</ACCOUNT_NO>
<FLAGS>0</FLAGS><POID>0.0.0.0 -1 0</POID>
<USERID>0.0.0.1 /account 111</USERID>
<PROGRAM_NAME>UPASS|111</PROGRAM_NAME>
</MSO_OP_CUST_GET_CUSTOMER_INFO_inputFlist>
         ]]></inputXML>
         <m_SchemaFile xsi:type="xsd:string">?</m_SchemaFile>
      </brm:opcode>
   </soapenv:Body>
</soapenv:Envelope>

MY RESPONSE (SNIPPET): 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <ns1:opcodeResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://x.x.x.x:7501/infranetwebsvc/services/BRMBaseServices">
         <opcodeReturn xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<brm:MSO_OP_CUST_GET_CUSTOMER_INFO_outputFlist xmlns:brm="http://xmlns.oracle.com/BRM/schemas/BusinessOpcodes"><brm:MSO_FLD_CONTACT_PREF>0</brm:MSO_FLD_CONTACT_PREF><brm:MSO_FLD_CREDIT_PROFILE elem="356"><brm:CREDIT_FLOOR>0</brm:CREDIT_FLOOR><brm:CREDIT_LIMIT>0</brm:CREDIT_LIMIT><brm:CURRENT_BAL>206</brm:CURRENT_BAL></brm:MSO_FLD_CREDIT_PROFILE><brm:MSO_FLD_DATA_ACCESS></brm:MSO_FLD_DATA_ACCESS><brm:MSO_FLD_LEGACY_ACCOUNT_NO>ME8449096</brm:MSO_FLD_LEGACY_ACCOUNT_NO><brm:MSO_FLD_ORG_STRUCTURE><brm:MSO_FLD_CATV_ACCOUNT_OBJ>0.0.0.0  0 0</brm:MSO_FLD_CATV_ACCOUNT_OBJ><brm:MSO_FLD_COMPANY_OBJ>0.0.0.0  0 0</brm:MSO_FLD_COMPANY_OBJ><brm:MSO_FLD_DAS_TYPE>DAS-III</brm:MSO_FLD_DAS_TYPE><brm:MSO_FLD_DT_OBJ>0.0.0.1 /account 32145284547 19</brm:MSO_FLD_DT_OBJ><brm:MSO_FLD_GSTIN></brm:MSO_FLD_GSTIN><brm:MSO_FLD_JV_OBJ>0.0.0.1 /account 32137747256 19</brm:MSO_FLD_JV_OBJ><brm:MSO_FLD_LCO_OBJ>0.0.0.1 /account 32147612248 7</brm:MSO_FLD_LCO_OBJ><brm:MSO_FLD_PAN_NO></brm:MSO_FLD_PAN_NO><brm:MSO_FLD_PP_TYPE>1</brm:MSO_FLD_PP_TYPE><brm:MSO_FLD_SALESMAN_OBJ>0.0.0.0  0 0</brm:MSO_FLD_SALESMAN_OBJ><brm:MSO_FLD_SALES_CLOSE_TYPE>0</brm:MSO_FLD_SALES_CLOSE_TYPE><brm:MSO_FLD_SDT_OBJ>0.0.0.0  0 0</brm:MSO_FLD_SDT_OBJ><brm:MSO_FLD_WELCOME_CALL_STATUS>0</brm:MSO_FLD_WELCOME_CALL_STATUS><brm:ACCOUNT_NO>111</brm:ACCOUNT_NO><brm:AUTH_CODE></brm:AUTH_CODE></opcodeReturn>
      </ns1:opcodeResponse>
   </soapenv:Body>
</soapenv:Envelope>



My YML FILE : 

- type: http
  name: SOAP
  schedule: '@every 5s'
  urls: ["http://X.X.X.X:8080/infranetwebsvc/services/BRMBaseServices?wsdl"]
  check.request.method: POST
  check.request.headers:
          content-type: 'text/xml; charset=utf-8'
  check.request.body: '<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:brm="http://X.X.X.X:7501/infranetwebsvc/services/BRMBaseServices">
   <soapenv:Header/>
   <soapenv:Body>
      <brm:opcode soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <opcode xsi:type="xsd:string">MSO_OP_CUST_GET_CUSTOMER_INFO</opcode>
         <inputXML xsi:type="xsd:string"><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MSO_OP_CUST_GET_CUSTOMER_INFO_inputFlist>
<ACCOUNT_NO>1120</ACCOUNT_NO>
<FLAGS>0</FLAGS><POID>0.0.0.0 -1 0</POID>
<USERID>0.0.0.1 /account 111</USERID>
<PROGRAM_NAME>PASS|1234</PROGRAM_NAME>
</MSO_OP_CUST_GET_CUSTOMER_INFO_inputFlist>
         ]]></inputXML>
         <m_SchemaFile xsi:type="xsd:string">?</m_SchemaFile>
      </brm:opcode>
   </soapenv:Body>
</soapenv:Envelope>'
  response.include_body_max_bytes: 99999
  response.include_body: always
  check.response.body: '(?s)ME8449096.*'

Welcome to our community! :smiley:

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you.

Also, it'd help if you explained a little bit more what you are expecting in this topic, as you've only posted some config files without really explaining if you are looking for help, or running into issues, or something else.

1 Like

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.