Documentation ¶
Index ¶
- type Action
- type Security
- type SoapMessage
- func (msg *SoapMessage) AddAction()
- func (msg *SoapMessage) AddBodyContent(element *etree.Element) error
- func (msg *SoapMessage) AddBodyContents(elements []*etree.Element)
- func (msg *SoapMessage) AddHeaderContent(element *etree.Element)
- func (msg *SoapMessage) AddHeaderContents(elements []*etree.Element)
- func (msg *SoapMessage) AddRootNamespace(key, value string)
- func (msg *SoapMessage) AddRootNamespaces(namespaces map[string]string)
- func (msg *SoapMessage) AddStringBodyContent(data string)
- func (msg *SoapMessage) AddStringHeaderContent(data string) error
- func (msg *SoapMessage) AddTo(address string) error
- func (msg *SoapMessage) AddWSSecurity(username, password string, deltaTime time.Duration) error
- func (msg SoapMessage) Body() (string, error)
- func (msg SoapMessage) BodyError() (string, error)
- func (msg SoapMessage) String() string
- func (msg SoapMessage) StringIndent() string
- type To
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { //XMLName xml.Name `xml:"wsse:Security"` XMLName xml.Name `xml:"wsa:Action"` Operation string `xml:",chardata"` }
Action type
type Security ¶
type Security struct { //XMLName xml.Name `xml:"wsse:Security"` XMLName xml.Name `xml:"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd Security"` Auth wsAuth }
Security type :XMLName xml.Name `xml:"http://purl.org/rss/1.0/modules/content/ encoded"`
type SoapMessage ¶
type SoapMessage string
SoapMessage type from string
func NewSOAP ¶
func NewSOAP(headContent []*etree.Element, bodyContent []*etree.Element, namespaces map[string]string) SoapMessage
NewSOAP Get a new soap message
func (*SoapMessage) AddAction ¶
func (msg *SoapMessage) AddAction()
AddAction Header handling for soapMessage
func (*SoapMessage) AddBodyContent ¶
func (msg *SoapMessage) AddBodyContent(element *etree.Element) error
AddBodyContent for Envelope
func (*SoapMessage) AddBodyContents ¶
func (msg *SoapMessage) AddBodyContents(elements []*etree.Element)
AddBodyContents for Envelope body
func (*SoapMessage) AddHeaderContent ¶
func (msg *SoapMessage) AddHeaderContent(element *etree.Element)
AddHeaderContent for Envelope body
func (*SoapMessage) AddHeaderContents ¶
func (msg *SoapMessage) AddHeaderContents(elements []*etree.Element)
AddHeaderContents for Envelope body
func (*SoapMessage) AddRootNamespace ¶
func (msg *SoapMessage) AddRootNamespace(key, value string)
AddRootNamespace for Envelope body
func (*SoapMessage) AddRootNamespaces ¶
func (msg *SoapMessage) AddRootNamespaces(namespaces map[string]string)
AddRootNamespaces for Envelope body
func (*SoapMessage) AddStringBodyContent ¶
func (msg *SoapMessage) AddStringBodyContent(data string)
AddStringBodyContent for Envelope
func (*SoapMessage) AddStringHeaderContent ¶
func (msg *SoapMessage) AddStringHeaderContent(data string) error
AddStringHeaderContent for Envelope body
func (*SoapMessage) AddTo ¶
func (msg *SoapMessage) AddTo(address string) error
AddTo Header handling for soapMessage
func (*SoapMessage) AddWSSecurity ¶
func (msg *SoapMessage) AddWSSecurity(username, password string, deltaTime time.Duration) error
AddWSSecurity Header for soapMessage
func (SoapMessage) Body ¶
func (msg SoapMessage) Body() (string, error)
Body return body from Envelope
func (SoapMessage) BodyError ¶ added in v1.0.8
func (msg SoapMessage) BodyError() (string, error)
func (SoapMessage) String ¶
func (msg SoapMessage) String() string
func (SoapMessage) StringIndent ¶
func (msg SoapMessage) StringIndent() string
StringIndent handle indent
Click to show internal directories.
Click to hide internal directories.