Documentation ¶
Index ¶
- func CleanXML(request string) string
- func ConsumeSOAP11Service(soapRequest RequestInfo, expr string) (*xmlquery.Node, error)
- func ConsumeSOAP12Service(soapRequest RequestInfo, expr string) (*xmlquery.Node, error)
- func ConsumeSOAPService(version Version, requestInfo RequestInfo, requestEnvelope Envelope) (*xmlquery.Node, *http.Response, error)
- func GetIntFromXML(node *xmlquery.Node, selector string) (int, error)
- func GetStringFromXML(node *xmlquery.Node, selector string) string
- type Body
- type Envelope
- type Envelope11
- type Envelope12
- type Header
- type RequestInfo
- type ResponseData
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
GetIntFromXML doc ..
Types ¶
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 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
Click to show internal directories.
Click to hide internal directories.