Versions in this module Expand all Collapse all v0 v0.4.0 Mar 20, 2020 Changes in this version + const WssNsType + const WssNsWSSE + const WssNsWSU + type Binary struct + func NewBinary(v []byte) *Binary + func (b *Binary) Bytes() []byte + func (b *Binary) ContentType() string + func (b *Binary) MarshalXML(enc *xml.Encoder, start xml.StartElement) error + func (b *Binary) SetContentType(contentType string) *Binary + func (b *Binary) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Client struct + func NewClient(url string, opt ...Option) *Client + func (s *Client) AddHeader(header interface{}) + func (s *Client) Call(soapAction string, request, response interface{}) error + func (s *Client) CallContext(ctx context.Context, soapAction string, request, response interface{}) error + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Option func(*options) + func WithBasicAuth(login, password string) Option + func WithHTTPClient(c HTTPClient) Option + func WithHTTPHeaders(headers map[string]string) Option + func WithMTOM() Option + func WithRequestTimeout(t time.Duration) Option + func WithTLS(tls *tls.Config) Option + func WithTLSHandshakeTimeout(t time.Duration) Option + func WithTimeout(t time.Duration) Option + type SOAPBody struct + Content interface{} + Fault *SOAPFault + XMLName xml.Name + func (b *SOAPBody) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error + type SOAPDecoder interface + Decode func(v interface{}) error + type SOAPEncoder interface + Encode func(v interface{}) error + Flush func() error + type SOAPEnvelope struct + Body SOAPBody + Headers []interface{} + XMLName xml.Name + type SOAPFault struct + Actor string + Code string + Detail string + String string + XMLName xml.Name + func (f *SOAPFault) Error() string + type WSSPassword struct + Data string + XMLName xml.Name + XmlNSType string + XmlNSWsse string + type WSSSecurityHeader struct + MustUnderstand string + Token *WSSUsernameToken + XMLName xml.Name + XmlNSWsse string + func NewWSSSecurityHeader(user, pass, tokenID, mustUnderstand string) *WSSSecurityHeader + type WSSUsername struct + Data string + XMLName xml.Name + XmlNSWsse string + type WSSUsernameToken struct + Id string + Password *WSSPassword + Username *WSSUsername + XMLName xml.Name + XmlNSWsse string + XmlNSWsu string