Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoErrorCode = 200 BadRequestErrorCode = 400 InvalidActionErrorCode = 401 ActionFailedErrorCode = 501 ArgumentValueInvalidErrorCode = 600 )
View Source
const ( AuthName = "schemas-upnp-org" NTEvent = "upnp:event" EncodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" EnvelopeNS = "http://schemas.xmlsoap.org/soap/envelope/" )
Variables ¶
View Source
var ( InvalidActionError = NewErrorf(401, "Invalid Action") ArgumentValueInvalidError = NewErrorf(600, "The argument value is invalid") )
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"` EncodingStyle string `xml:"encodingStyle,attr"` Body EnvelopeBody `xml:"http://schemas.xmlsoap.org/soap/envelope/ Body"` }
type EnvelopeAction ¶
type EnvelopeAction struct { XMLName xml.Name Args []EnvelopeArg }
type EnvelopeArg ¶
type EnvelopeBody ¶
type EnvelopeBody struct {
Action []byte `xml:",innerxml"`
}
type EnvelopeResponse ¶
type EnvelopeResponse struct { XMLName xml.Name `xml:"s:Envelope"` XMLSpace string `xml:"xmlns:s,attr"` EncodingStyle string `xml:"encodingStyle,attr"` Body EnvelopeBody `xml:"s:Body"` }
type Error ¶
type Fault ¶
type Fault struct { XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault"` FaultCode string `xml:"faultcode"` FaultString string `xml:"faultstring"` Detail FaultDetail `xml:"detail"` }
type FaultDetail ¶
type ServiceURN ¶
func ParseServiceURN ¶
func ParseServiceURN(s string) (ret ServiceURN, err error)
func (ServiceURN) String ¶
func (me ServiceURN) String() string
type SoapAction ¶
type SoapAction struct { ServiceURN Action string }
func ParseSOAPAction ¶
func ParseSOAPAction(s string) (ret *SoapAction, err error)
Click to show internal directories.
Click to hide internal directories.