Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
HttpClient *http.Client
URL string
HeaderName string
HeaderParams HeaderParams
Definitions *wsdlDefinitions
// Must be set before first request otherwise has no effect, minimum is 15 minutes.
RefreshDefinitionsAfter time.Duration
Username string
Password string
// contains filtered or unexported fields
}
Client struct hold all the informations about WSDL, request and response of the server
func SoapClient ¶
SoapClient return new *Client to handle the requests with the WSDL
func (*Client) Call ¶
Call call's the method m with Params p
func (*Client) CallByStruct ¶
func (c *Client) CallByStruct(s RequestStruct) (res *Response, err error)
Call call's by struct
func (*Client) Do ¶
Process Soap Request
type ErrorWithPayload ¶
type ErrorWithPayload struct {
Payload []byte
// contains filtered or unexported fields
}
type Fault ¶
type Fault struct {
Code string `xml:"faultcode"`
Description string `xml:"faultstring"`
Detail string `xml:"detail"`
}
Fault response
type HeaderParams ¶
type HeaderParams map[string]interface{}
HeaderParams holds params specific to the header
type Params ¶
type Params map[string]interface{}
Params type is used to set the params in soap request
type Request ¶
Soap Request
func NewRequestByStruct ¶
func NewRequestByStruct(s RequestStruct) (*Request, error)
type Response ¶
Soap Response
type SoapBody ¶
type SoapBody struct {
XMLName struct{} `xml:"Body"`
Contents []byte `xml:",innerxml"`
}
SoapBody struct
type SoapEnvelope ¶
type SoapEnvelope struct {
XMLName struct{} `xml:"Envelope"`
Header SoapHeader
Body SoapBody
}
SoapEnvelope struct
Source Files
¶
- encode.go
- request.go
- response.go
- soap.go
- wsdl.go
Click to show internal directories.
Click to hide internal directories.
