Documentation ¶
Index ¶
- type SoapClient
- func (client *SoapClient) Fetch(result interface{}) error
- func (client *SoapClient) SetBasicAuth(username, password string)
- func (client *SoapClient) SetHeader(key, value string)
- func (client *SoapClient) WithAction(soapAction string) *SoapClient
- func (client *SoapClient) WithRequest(request interface{}) *SoapClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoapClient ¶
type SoapClient struct {
// contains filtered or unexported fields
}
SoapClient used to handle SOAP requests
func MakeGET ¶
func MakeGET(url string, client ...httpclient.HTTPClient) *SoapClient
MakeGET creates a SOAP client instance for GET requests.
It takes a url and soapAction as arguments.
func MakePOST ¶
func MakePOST(url string, client ...httpclient.HTTPClient) *SoapClient
MakePOST creates a SOAP client instance for POST requests.
It takes a url and soapAction as arguments.
func NewSoapClient ¶
func NewSoapClient(httpclient httpclient.HTTPClient, httpMethod, url, soapAction string) *SoapClient
NewSoapClient creates a new instance of the SOAP client
func (*SoapClient) Fetch ¶
func (client *SoapClient) Fetch(result interface{}) error
Fetch executes the SOAP requests and fetches the result
func (*SoapClient) SetBasicAuth ¶
func (client *SoapClient) SetBasicAuth(username, password string)
SetBasicAuth sets up the client to use Basic Auth
func (*SoapClient) SetHeader ¶
func (client *SoapClient) SetHeader(key, value string)
SetHeader sets the request header
func (*SoapClient) WithAction ¶
func (client *SoapClient) WithAction(soapAction string) *SoapClient
WithAction accepts the soap action for the request
func (*SoapClient) WithRequest ¶
func (client *SoapClient) WithRequest(request interface{}) *SoapClient
WithRequest accepts the request payload
Click to show internal directories.
Click to hide internal directories.