Currently the SOAP client returns opaque fmt.Errorf when the server responds with non-OK status. This PR changes the code to always parse the response body, as long as it's not empty.
It also fixes the SOAP Fault type to properly decode fields and allow to further assert the error details.
Currently the SOAP client returns opaque
fmt.Errorf
when the server responds with non-OK status. This PR changes the code to always parse the response body, as long as it's not empty.It also fixes the SOAP Fault type to properly decode fields and allow to further assert the error details.