From b5cf3be9f29c1cf502e156d0b81411c4cdd34e0e Mon Sep 17 00:00:00 2001 From: Denys Smirnov Date: Sat, 22 May 2021 22:28:24 +0300 Subject: [PATCH] Correctly parse SOAP errors. --- soap/soap.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/soap/soap.go b/soap/soap.go index c720bec..c969e67 100644 --- a/soap/soap.go +++ b/soap/soap.go @@ -185,9 +185,11 @@ type soapBody struct { // SOAPFaultError implements error, and contains SOAP fault information. type SOAPFaultError struct { - FaultCode string `xml:"faultcode"` - FaultString string `xml:"faultstring"` - Detail string `xml:"detail"` + FaultCode string `xml:"faultCode"` + FaultString string `xml:"faultString"` + Detail struct { + Raw []byte `xml:",innerxml"` + } `xml:"detail"` } func (err *SOAPFaultError) Error() string {