Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPayloadFromError ¶ added in v1.4.0
GetPayloadFromError returns the payload of a ErrorWithPayload
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) CallByStruct ¶ added in v1.4.0
func (c *Client) CallByStruct(s RequestStruct) (res *Response, err error)
CallByStruct call's by struct
type ErrorWithPayload ¶ added in v1.4.0
type ErrorWithPayload struct { Payload []byte // contains filtered or unexported fields }
ErrorWithPayload error payload schema
type Fault ¶ added in v1.1.0
type Fault struct { Code string `xml:"faultcode"` Description string `xml:"faultstring"` Detail string `xml:"detail"` }
Fault response
type HeaderParams ¶ added in v1.2.0
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 ¶ added in v1.4.0
Request Soap Request
func NewRequest ¶ added in v1.4.0
NewRequest creates a new soap request
func NewRequestByStruct ¶ added in v1.4.0
func NewRequestByStruct(s RequestStruct) (*Request, error)
NewRequestByStruct create a new request using builder
type RequestStruct ¶ added in v1.4.0
type RequestStruct interface {
SoapBuildRequest() *Request
}
RequestStruct soap request interface
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
type SoapHeader ¶ added in v1.2.0
type SoapHeader struct { XMLName struct{} `xml:"Header"` Contents []byte `xml:",innerxml"` }
SoapHeader struct
Click to show internal directories.
Click to hide internal directories.