This guide describes how to receive a SOAP message in iHub and process that message as a issue.

Step 1.

image-20250317-093252.png

Step 2

Step 3. Modify the Incoming Webhook rule


This concludes the incoming webhook part of receiving a SOAP message an passing it into an action that will create the issue.

Next up is the steps on how to parse the SOAP message to become variables used in the Action body as mustache variables. eg. {{summary}}, {{description}} and {{priority}}

Step 4. Parse the SOAP message

Will look like this, after the conversion.

{
  "example:Summary": "Fix critical bug",
  "example:Description": "This is a critical bug that needs immediate attention.",
  "example:Priority": "High"  
}

These are the steps to setup the integration, it should now be fully functional for getting any SOAP message.

Note that the groovy script will try to parse the result into a JSON object, if the information in that you need is a string then remove the mapper part and it will look like this;

  • import org.json.JSONObject
    import org.json.XML
    
    JSONObject xmlJSONObj = XML.toJSONObject(response)
    def jsonObject = xmlJSONObj["soap:Envelope"]["soap:Body"]["someStringElement"]

Step 5. Testing

Testing can be done from any tool or SOAP system. We use iHub to test this integration.