Versions in this module Expand all Collapse all v0 v0.5.3 Nov 30, 2021 v0.5.2 Nov 30, 2021 Changes in this version + const WssNsType + const WssNsWSSE + const WssNsWSU + const XmlNsSoapEnv + 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) SetPackageID(packageID string) *Binary + func (b *Binary) SetUseMTOM(useMTOM bool) *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) AddMIMEMultipartAttachment(attachment MIMEMultipartAttachment) + func (s *Client) Call(soapAction string, request, response interface{}) error + func (s *Client) CallContext(ctx context.Context, soapAction string, request, response interface{}) error + func (s *Client) CallContextWithAttachmentsAndFaultDetail(ctx context.Context, soapAction string, request, response interface{}, ...) error + func (s *Client) CallContextWithFaultDetail(ctx context.Context, soapAction string, request, response interface{}, ...) error + func (s *Client) CallWithFaultDetail(soapAction string, request, response interface{}, faultDetail FaultError) error + func (s *Client) SetHeaders(headers ...interface{}) + type DetailContainer struct + Detail interface{} + type FaultError interface + ErrorString func() string + HasData func() bool + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type HTTPError struct + ResponseBody []byte + StatusCode int + func (e *HTTPError) Error() string + type MIMEMultipartAttachment struct + Data []byte + Name string + type Option func(*options) + func WithBasicAuth(login, password string) Option + func WithHTTPClient(c HTTPClient) Option + func WithHTTPHeaders(headers map[string]string) Option + func WithMIMEMultipartAttachments() 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) ErrorFromFault() error + type SOAPBodyResponse struct + Content interface{} + Fault *SOAPFault + XMLName xml.Name + func (b *SOAPBodyResponse) ErrorFromFault() error + func (b *SOAPBodyResponse) 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 + Header *SOAPHeader + XMLName xml.Name + XmlNS string + type SOAPEnvelopeResponse struct + Attachments []MIMEMultipartAttachment + Body SOAPBodyResponse + Header *SOAPHeaderResponse + XMLName xml.Name + type SOAPFault struct + Actor string + Code string + Detail FaultError + String string + XMLName xml.Name + func (f *SOAPFault) Error() string + type SOAPHeader struct + Headers []interface{} + XMLName xml.Name + type SOAPHeaderResponse struct + Headers []interface{} + XMLName xml.Name + 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 + type XSDDate struct + func CreateXsdDate(date time.Time, hasTz bool) XSDDate + func (xd *XSDDate) StripTz() + func (xd *XSDDate) ToGoTime() time.Time + func (xd *XSDDate) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (xd *XSDDate) UnmarshalXMLAttr(attr xml.Attr) error + func (xd XSDDate) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (xd XSDDate) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + type XSDDateTime struct + func CreateXsdDateTime(dt time.Time, hasTz bool) XSDDateTime + func (xdt *XSDDateTime) StripTz() + func (xdt *XSDDateTime) ToGoTime() time.Time + func (xdt *XSDDateTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (xdt *XSDDateTime) UnmarshalXMLAttr(attr xml.Attr) error + func (xdt XSDDateTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (xdt XSDDateTime) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + type XSDTime struct + func CreateXsdTime(hour int, min int, sec int, nsec int, loc *time.Location) XSDTime + func (xt *XSDTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (xt *XSDTime) UnmarshalXMLAttr(attr xml.Attr) error + func (xt XSDTime) Hour() int + func (xt XSDTime) Location() *time.Location + func (xt XSDTime) MarshalXML(e *xml.Encoder, start xml.StartElement) error + func (xt XSDTime) MarshalXMLAttr(name xml.Name) (xml.Attr, error) + func (xt XSDTime) Minute() int + func (xt XSDTime) Nanosecond() int + func (xt XSDTime) Second() int