go-xml
go-xml copied to clipboard
Generate error types for SOAP faults
WSDL allows for the definition of faults that a given RPC may through. They can be defined in the XML schema like any other type.
If we detect that a type is used as a fault, we should generate an Error() string method so that the type can implement the error interface, and try to unmarshal these faults when making SOAP API calls.