Versions in this module Expand all Collapse all v0 v0.0.2 Dec 23, 2024 v0.0.1 Oct 8, 2024 Changes in this version + func GetBodyFromError(err error) []byte + func GetPayloadFromError(err error) []byte + func IsFault(err error) bool + func SetCustomEnvelope(prefix string, attrs map[string]string) + type ArrayParams [][2]interface + type Client struct + AutoAction bool + Definitions *wsdlDefinitions + HTTPClient *http.Client + HeaderName string + HeaderParams SoapParams + Password string + RefreshDefinitionsAfter time.Duration + URL string + Username string + func SoapClient(wsdl string, httpClient *http.Client) (*Client, error) + func SoapClientWithConfig(wsdl string, httpClient *http.Client, config *Config) (*Client, error) + func (c *Client) Call(m string, p SoapParams) (res *Response, err error) + func (c *Client) CallByStruct(s RequestStruct) (res *Response, err error) + func (c *Client) Do(req *Request) (res *Response, err error) + func (c *Client) SetWSDL(wsdl string) + type Config struct + Dump bool + Logger DumpLogger + type DumpLogger interface + LogRequest func(method string, dump []byte) + LogResponse func(method string, dump []byte) + type ErrorWithPayload struct + ErrorBody []byte + Payload []byte + type Fault struct + Code string + Description string + Detail string + func (f *Fault) String() string + type FaultError struct + func (e FaultError) Error() string + type HeaderParams map[string]interface + type Params map[string]interface + type Request struct + Method string + Params SoapParams + func NewRequest(m string, p SoapParams) *Request + func NewRequestByStruct(s RequestStruct) (*Request, error) + type RequestStruct interface + SoapBuildRequest func() *Request + type Response struct + Body []byte + Header []byte + Payload []byte + func (r *Response) Unmarshal(v interface{}) error + type SliceParams []interface + type SoapBody struct + Contents []byte + XMLName struct{} + type SoapEnvelope struct + Body SoapBody + Header SoapHeader + XMLName struct{} + type SoapHeader struct + Contents []byte + XMLName struct{} + type SoapParams interface