Documentation ¶
Index ¶
- Constants
- Variables
- type Binary
- type ClientOption
- func WithHTTPHeader(name, value string) ClientOption
- func WithHTTPHeaders(headers map[string]string) ClientOption
- func WithHTTPProxies(proxies *definations.Proxies) ClientOption
- func WithHTTPTLSOptions(tlsOptions *definations.TLSOptions) ClientOption
- func WithTimeoutSeconds(timeoutSeconds int) ClientOption
- type SOAPBody
- type SOAPBodyResponse
- type SOAPClient
- type SOAPDecoder
- type SOAPEncoder
- type SOAPEnvelope
- type SOAPEnvelopeResponse
- type SOAPFault
- type SOAPPort
- type SOAPService
- type WSSPassword
- type WSSSecurityHeader
- type WSSUsername
- type WSSUsernameToken
Constants ¶
const ( // Predefined WSS namespaces to be used in WssNsWSSE string = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" WssNsWSU string = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" WssNsType string = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" )
Constants
Variables ¶
var DebugSoapResponse = false
DebugSoapResponse debugger flag
Functions ¶
This section is empty.
Types ¶
type Binary ¶
type Binary struct {
// contains filtered or unexported fields
}
Binary enables binary data to be enchanged in MTOM mode with XOP encoding When MTOM is not used, the field is encoded in Base64
func (*Binary) ContentType ¶
ContentType returns the content type
func (*Binary) MarshalXML ¶
MarshalXML implements the xml.Marshaler interface to encode a Binary to XML
func (*Binary) SetContentType ¶
SetContentType sets the content type the content will be transmitted as multipart
func (*Binary) UnmarshalXML ¶
UnmarshalXML implements the xml.Unmarshaler interface to decode a Binary form XML
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption options
func WithHTTPHeaders ¶
func WithHTTPHeaders(headers map[string]string) ClientOption
WithHTTPHeaders options
func WithHTTPProxies ¶
func WithHTTPProxies(proxies *definations.Proxies) ClientOption
WithHTTPProxies options
func WithHTTPTLSOptions ¶
func WithHTTPTLSOptions(tlsOptions *definations.TLSOptions) ClientOption
WithHTTPTLSOptions options
func WithTimeoutSeconds ¶
func WithTimeoutSeconds(timeoutSeconds int) ClientOption
WithTimeoutSeconds options
type SOAPBody ¶
type SOAPBody struct { XMLName xml.Name `xml:"soap-env:Body"` Fault *SOAPFault `xml:",omitempty"` Content interface{} `xml:",omitempty"` }
SOAPBody struct
type SOAPBodyResponse ¶
type SOAPBodyResponse struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` Fault *SOAPFault `xml:",omitempty"` Content interface{} `xml:",omitempty"` }
SOAPBodyResponse struct
func (*SOAPBodyResponse) UnmarshalXML ¶
func (b *SOAPBodyResponse) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error
UnmarshalXML unmarshals SOAPBody xml
type SOAPClient ¶
type SOAPClient struct { TTL int // contains filtered or unexported fields }
SOAPClient client
func NewSOAPClient ¶
func NewSOAPClient(endpoint string, options ...ClientOption) (*SOAPClient, error)
NewSOAPClient new client
func (*SOAPClient) GetService ¶
func (c *SOAPClient) GetService(name string) *SOAPService
GetService getter
type SOAPEncoder ¶
SOAPEncoder interface
type SOAPEnvelope ¶
type SOAPEnvelope struct { XMLName xml.Name `xml:"soap-env:Envelope"` NS string `xml:"xmlns:soap-env,attr"` Headers []interface{} `xml:"http://schemas.xmlsoap.org/soap/envelope/ Header,omitempty"` Body SOAPBody }
SOAPEnvelope struct
func NewSOAPEnvelope ¶
func NewSOAPEnvelope(content interface{}, headers []interface{}) *SOAPEnvelope
NewSOAPEnvelope envelope
type SOAPEnvelopeResponse ¶
type SOAPEnvelopeResponse struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` Headers []interface{} `xml:"http://schemas.xmlsoap.org/soap/envelope/ Header,omitempty"` Body SOAPBodyResponse }
SOAPEnvelopeResponse struct
type SOAPFault ¶
type SOAPFault struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault"` Code string `xml:"faultcode,omitempty"` String string `xml:"faultstring,omitempty"` Actor string `xml:"faultactor,omitempty"` Detail string `xml:"detail,omitempty"` }
SOAPFault struct
type SOAPService ¶
type SOAPService struct {
// contains filtered or unexported fields
}
SOAPService service
type WSSPassword ¶
type WSSPassword struct { XMLName xml.Name `xml:"wsse:Password"` XMLNSWsse string `xml:"xmlns:wsse,attr"` XMLNSType string `xml:"Type,attr"` Data string `xml:",chardata"` }
WSSPassword struct
type WSSSecurityHeader ¶
type WSSSecurityHeader struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ wsse:Security"` XMLNSWsse string `xml:"xmlns:wsse,attr"` MustUnderstand string `xml:"mustUnderstand,attr,omitempty"` Token *WSSUsernameToken `xml:",omitempty"` }
WSSSecurityHeader struct
func NewWSSSecurityHeader ¶
func NewWSSSecurityHeader(user, pass, tokenID, mustUnderstand string) *WSSSecurityHeader
NewWSSSecurityHeader creates WSSSecurityHeader instance
type WSSUsername ¶
type WSSUsername struct { XMLName xml.Name `xml:"wsse:Username"` XMLNSWsse string `xml:"xmlns:wsse,attr"` Data string `xml:",chardata"` }
WSSUsername struct
type WSSUsernameToken ¶
type WSSUsernameToken struct { XMLName xml.Name `xml:"wsse:UsernameToken"` XMLNSWsu string `xml:"xmlns:wsu,attr"` XMLNSWsse string `xml:"xmlns:wsse,attr"` ID string `xml:"wsu:Id,attr,omitempty"` Username *WSSUsername `xml:",omitempty"` Password *WSSPassword `xml:",omitempty"` }
WSSUsernameToken struct