I am working with an integration with Redmine through REST API. I am create an issue in Redmine with doHTTPRequest("POST", url, headers, xml, 5, 5, 5, respHeaders) method. If an issue data is not valid, redmine returns 422 error code and the response:
<?xml version="1.0" encoding="UTF-8"?>
<error>Project field can't be blank</error>
But in SM I'm getting only error:
"Error calling method: doHttpRequest in class: com/hp/ov/sm/server/utility/HttpClient Exception (java.io.IOException: Server returned HTTP response code: 422 fo
r URL: https://test.srv.ru/issues.xml)"
How can I get xml response in that case in SM?
Thank you for your help!