Sometimes, even if we have specified in the 'Invoke Web Service' action to accept specific content type as a response (for example application/json), the output variable is inconsistent about the response type (for example sometimes json, sometimes xml).

The above behavior, if not anticipated can cause the following actions to fail.

In order to tackle this issue, which is caused from the web service's side, we can use the 'Parse Text' action based on conditionals (for json or xml) and proceed for each response type accordingly.