Documentation ¶
Index ¶
- Constants
- Variables
- func AddUsualNamespaces(node *dom.Element)
- func GetAllXPathNamespaces() func(o *goxpath.Opts)
- type HeaderBuilder
- type HeaderOption
- type MessageBuilder
- type SoapHeader
- func (sh *SoapHeader) Action(action string) *SoapHeader
- func (sh *SoapHeader) AddOption(option *HeaderOption) *SoapHeader
- func (sh *SoapHeader) Build() *SoapMessage
- func (sh *SoapHeader) Id(id string) *SoapHeader
- func (sh *SoapHeader) Locale(locale string) *SoapHeader
- func (sh *SoapHeader) MaxEnvelopeSize(size int) *SoapHeader
- func (sh *SoapHeader) Options(options []HeaderOption) *SoapHeader
- func (sh *SoapHeader) ReplyTo(uri string) *SoapHeader
- func (sh *SoapHeader) ResourceURI(resourceURI string) *SoapHeader
- func (sh *SoapHeader) ShellId(shellId string) *SoapHeader
- func (sh *SoapHeader) Timeout(timeout string) *SoapHeader
- func (sh *SoapHeader) To(uri string) *SoapHeader
- type SoapMessage
- func (message *SoapMessage) CreateBodyElement(name string, ns dom.Namespace) (element *dom.Element)
- func (message *SoapMessage) CreateElement(parent *dom.Element, name string, ns dom.Namespace) (element *dom.Element)
- func (message *SoapMessage) Doc() *dom.Document
- func (message *SoapMessage) Free()
- func (message *SoapMessage) Header() *SoapHeader
- func (message *SoapMessage) NewBody() (body *dom.Element)
- func (message *SoapMessage) String() string
Constants ¶
View Source
const ( NS_SOAP_ENV = "http://www.w3.org/2003/05/soap-envelope" NS_ADDRESSING = "http://schemas.xmlsoap.org/ws/2004/08/addressing" NS_CIMBINDING = "http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd" NS_ENUM = "http://schemas.xmlsoap.org/ws/2004/09/enumeration" NS_TRANSFER = "http://schemas.xmlsoap.org/ws/2004/09/transfer" NS_WSMAN_DMTF = "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" NS_WSMAN_MSFT = "http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd" NS_SCHEMA_INST = "http://www.w3.org/2001/XMLSchema-instance" NS_WIN_SHELL = "http://schemas.microsoft.com/wbem/wsman/1/windows/shell" NS_WSMAN_FAULT = "http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" )
Namespaces
View Source
const ( NSP_SOAP_ENV = "env" NSP_ADDRESSING = "a" NSP_CIMBINDING = "b" NSP_ENUM = "n" NSP_TRANSFER = "x" NSP_WSMAN_DMTF = "w" NSP_WSMAN_MSFT = "p" NSP_SCHEMA_INST = "xsi" NSP_WIN_SHELL = "rsp" NSP_WSMAN_FAULT = "f" )
Namespace Prefixes
Variables ¶
View Source
var ( DOM_NS_SOAP_ENV = dom.Namespace{Prefix: NSP_SOAP_ENV, Uri: NS_SOAP_ENV} DOM_NS_ADDRESSING = dom.Namespace{Prefix: NSP_ADDRESSING, Uri: NS_ADDRESSING} DOM_NS_CIMBINDING = dom.Namespace{Prefix: NSP_CIMBINDING, Uri: NS_CIMBINDING} DOM_NS_ENUM = dom.Namespace{Prefix: NSP_ENUM, Uri: NS_ENUM} DOM_NS_TRANSFER = dom.Namespace{Prefix: NSP_TRANSFER, Uri: NS_TRANSFER} DOM_NS_WSMAN_DMTF = dom.Namespace{Prefix: NSP_WSMAN_DMTF, Uri: NS_WSMAN_DMTF} DOM_NS_WSMAN_MSFT = dom.Namespace{Prefix: NSP_WSMAN_MSFT, Uri: NS_WSMAN_MSFT} DOM_NS_SCHEMA_INST = dom.Namespace{Prefix: NSP_SCHEMA_INST, Uri: NS_SCHEMA_INST} DOM_NS_WIN_SHELL = dom.Namespace{Prefix: NSP_WIN_SHELL, Uri: NS_WIN_SHELL} DOM_NS_WSMAN_FAULT = dom.Namespace{Prefix: NSP_WSMAN_FAULT, Uri: NS_WSMAN_FAULT} )
DOM Namespaces
View Source
var MostUsed = [...]dom.Namespace{ DOM_NS_SOAP_ENV, DOM_NS_ADDRESSING, DOM_NS_WIN_SHELL, DOM_NS_WSMAN_DMTF, DOM_NS_WSMAN_MSFT, }
Functions ¶
func AddUsualNamespaces ¶
func GetAllXPathNamespaces ¶
Types ¶
type HeaderBuilder ¶
type HeaderBuilder interface { To(string) *SoapHeader ReplyTo(string) *SoapHeader MaxEnvelopeSize(int) *SoapHeader Timeout(string) *SoapHeader Locale(string) *SoapHeader Id(string) *SoapHeader Action(string) *SoapHeader ShellId(string) *SoapHeader AddOption(*HeaderOption) *SoapHeader Options([]HeaderOption) *SoapHeader Build(*SoapMessage) *SoapMessage // contains filtered or unexported methods }
type HeaderOption ¶
type HeaderOption struct {
// contains filtered or unexported fields
}
func NewHeaderOption ¶
func NewHeaderOption(name string, value string) *HeaderOption
type MessageBuilder ¶
type SoapHeader ¶
type SoapHeader struct {
// contains filtered or unexported fields
}
func (*SoapHeader) Action ¶
func (sh *SoapHeader) Action(action string) *SoapHeader
func (*SoapHeader) AddOption ¶
func (sh *SoapHeader) AddOption(option *HeaderOption) *SoapHeader
func (*SoapHeader) Build ¶
func (sh *SoapHeader) Build() *SoapMessage
func (*SoapHeader) Id ¶
func (sh *SoapHeader) Id(id string) *SoapHeader
func (*SoapHeader) Locale ¶
func (sh *SoapHeader) Locale(locale string) *SoapHeader
func (*SoapHeader) MaxEnvelopeSize ¶
func (sh *SoapHeader) MaxEnvelopeSize(size int) *SoapHeader
func (*SoapHeader) Options ¶
func (sh *SoapHeader) Options(options []HeaderOption) *SoapHeader
func (*SoapHeader) ReplyTo ¶
func (sh *SoapHeader) ReplyTo(uri string) *SoapHeader
func (*SoapHeader) ResourceURI ¶
func (sh *SoapHeader) ResourceURI(resourceURI string) *SoapHeader
func (*SoapHeader) ShellId ¶
func (sh *SoapHeader) ShellId(shellId string) *SoapHeader
func (*SoapHeader) Timeout ¶
func (sh *SoapHeader) Timeout(timeout string) *SoapHeader
func (*SoapHeader) To ¶
func (sh *SoapHeader) To(uri string) *SoapHeader
type SoapMessage ¶
type SoapMessage struct {
// contains filtered or unexported fields
}
func NewMessage ¶
func NewMessage() (message *SoapMessage)
func (*SoapMessage) CreateBodyElement ¶
func (*SoapMessage) CreateElement ¶
func (*SoapMessage) Doc ¶
func (message *SoapMessage) Doc() *dom.Document
func (*SoapMessage) Free ¶
func (message *SoapMessage) Free()
func (*SoapMessage) Header ¶
func (message *SoapMessage) Header() *SoapHeader
func (*SoapMessage) NewBody ¶
func (message *SoapMessage) NewBody() (body *dom.Element)
func (*SoapMessage) String ¶
func (message *SoapMessage) String() string
Click to show internal directories.
Click to hide internal directories.