Documentation ¶
Index ¶
- Variables
- func AddUsualNamespaces(node *dom.Element)
- func GetAllNamespaces() []xmlpath.Namespace
- type HeaderBuilder
- type HeaderOption
- type MessageBuilder
- type SoapHeader
- func (self *SoapHeader) Action(action string) *SoapHeader
- func (self *SoapHeader) AddOption(option *HeaderOption) *SoapHeader
- func (self *SoapHeader) Build() *SoapMessage
- func (self *SoapHeader) Id(id string) *SoapHeader
- func (self *SoapHeader) Locale(locale string) *SoapHeader
- func (self *SoapHeader) MaxEnvelopeSize(size int) *SoapHeader
- func (self *SoapHeader) Options(options []HeaderOption) *SoapHeader
- func (self *SoapHeader) ReplyTo(uri string) *SoapHeader
- func (self *SoapHeader) ResourceURI(resourceURI string) *SoapHeader
- func (self *SoapHeader) ShellId(shellId string) *SoapHeader
- func (self *SoapHeader) Timeout(timeout string) *SoapHeader
- func (self *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 ¶
This section is empty.
Variables ¶
View Source
var ( NS_SOAP_ENV = dom.Namespace{"env", "http://www.w3.org/2003/05/soap-envelope"} NS_ADDRESSING = dom.Namespace{"a", "http://schemas.xmlsoap.org/ws/2004/08/addressing"} NS_CIMBINDING = dom.Namespace{"b", "http://schemas.dmtf.org/wbem/wsman/1/cimbinding.xsd"} NS_ENUM = dom.Namespace{"n", "http://schemas.xmlsoap.org/ws/2004/09/enumeration"} NS_TRANSFER = dom.Namespace{"x", "http://schemas.xmlsoap.org/ws/2004/09/transfer"} NS_WSMAN_DMTF = dom.Namespace{"w", "http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"} NS_WSMAN_MSFT = dom.Namespace{"p", "http://schemas.microsoft.com/wbem/wsman/1/wsman.xsd"} NS_SCHEMA_INST = dom.Namespace{"xsi", "http://www.w3.org/2001/XMLSchema-instance"} NS_WIN_SHELL = dom.Namespace{"rsp", "http://schemas.microsoft.com/wbem/wsman/1/windows/shell"} NS_WSMAN_FAULT = dom.Namespace{"f", "http://schemas.microsoft.com/wbem/wsman/1/wsmanfault"} )
View Source
var MostUsed = [...]dom.Namespace{NS_SOAP_ENV, NS_ADDRESSING, NS_WIN_SHELL, NS_WSMAN_DMTF, NS_WSMAN_MSFT}
Functions ¶
func AddUsualNamespaces ¶
func GetAllNamespaces ¶
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 (self *SoapHeader) Action(action string) *SoapHeader
func (*SoapHeader) AddOption ¶
func (self *SoapHeader) AddOption(option *HeaderOption) *SoapHeader
func (*SoapHeader) Build ¶
func (self *SoapHeader) Build() *SoapMessage
func (*SoapHeader) Id ¶
func (self *SoapHeader) Id(id string) *SoapHeader
func (*SoapHeader) Locale ¶
func (self *SoapHeader) Locale(locale string) *SoapHeader
func (*SoapHeader) MaxEnvelopeSize ¶
func (self *SoapHeader) MaxEnvelopeSize(size int) *SoapHeader
func (*SoapHeader) Options ¶
func (self *SoapHeader) Options(options []HeaderOption) *SoapHeader
func (*SoapHeader) ReplyTo ¶
func (self *SoapHeader) ReplyTo(uri string) *SoapHeader
func (*SoapHeader) ResourceURI ¶
func (self *SoapHeader) ResourceURI(resourceURI string) *SoapHeader
func (*SoapHeader) ShellId ¶
func (self *SoapHeader) ShellId(shellId string) *SoapHeader
func (*SoapHeader) Timeout ¶
func (self *SoapHeader) Timeout(timeout string) *SoapHeader
func (*SoapHeader) To ¶
func (self *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.