soap

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1"

Variables

This section is empty.

Functions

func MarshalBoolean

func MarshalBoolean(v bool) string

func MarshalU16

func MarshalU16(v uint16) (string, error)

func MarshalU32

func MarshalU32(v uint32) (string, error)

func PerformAction

func PerformAction(actionName string, url *url.URL, action *SoapAction, responseAction interface{}) error

PerformSOAPAction makes a SOAP request, with the given action.

Types

type SOAPFaultError

type SOAPFaultError struct {
	FaultCode   string `xml:"faultCode"`
	FaultString string `xml:"faultString"`
	Detail      struct {
		Raw []byte `xml:",innerxml"`
	} `xml:"detail"`
}

SOAPFaultError implements error, and contains SOAP fault information.

func (*SOAPFaultError) Error

func (err *SOAPFaultError) Error() string

type SoapAction

type SoapAction struct {
	Params map[string]string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL