soap

package
v0.0.0-...-0de0908 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanXML

func CleanXML(request string) string

CleanXML doc ..

func ConsumeSOAP11Service

func ConsumeSOAP11Service(soapRequest RequestInfo, expr string) (*xmlquery.Node, error)

ConsumeSOAP11Service consumes a SOAP 1.2 web services expr: xmlquery expresion to find xml node

func ConsumeSOAP12Service

func ConsumeSOAP12Service(soapRequest RequestInfo, expr string) (*xmlquery.Node, error)

ConsumeSOAP12Service consumes a SOAP 1.2 web services expr: xmlquery expresion to find xml node

func ConsumeSOAPService

func ConsumeSOAPService(version Version, requestInfo RequestInfo, requestEnvelope Envelope) (*xmlquery.Node, *http.Response, error)

ConsumeSOAPService return *xmlquery.Node to find xml nodes in document

func GetIntFromXML

func GetIntFromXML(node *xmlquery.Node, selector string) (int, error)

GetIntFromXML doc ..

func GetStringFromXML

func GetStringFromXML(node *xmlquery.Node, selector string) string

GetStringFromXML ...

Types

type Body

type Body struct {
	XMLName xml.Name    `xml:"Body"`
	Content interface{} `xml:",any"`
}

Body Body of a SOAP message

type Envelope

type Envelope interface{}

Envelope Soap

type Envelope11

type Envelope11 struct {
	XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
	Header  *Header
	Body    *Body
}

Envelope11 XML SOAP 1.1

type Envelope12

type Envelope12 struct {
	XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Envelope"`
	Header  *Header
	Body    *Body
}

Envelope12 XML SOAP 1.2

type Header struct {
	XMLName xml.Name    `xml:"Header"`
	Content interface{} `xml:",any"`
}

Header Header of a SOAP message

type RequestInfo

type RequestInfo struct {
	URL     string
	Action  string
	Header  interface{}
	Content interface{}
	Timeout time.Duration
}

RequestInfo doc

type ResponseData

type ResponseData struct {
	Header  interface{}
	Content interface{}
}

ResponseData doc

type Version

type Version int

Version doc

const Soap11 Version = 11

Soap11 version

const Soap12 Version = 12

Soap12 version

Jump to

Keyboard shortcuts

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