go-xml icon indicating copy to clipboard operation
go-xml copied to clipboard

Generate error types for SOAP faults

Open droyo opened this issue 6 years ago • 0 comments

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.

droyo avatar Jan 09 '19 05:01 droyo