soapclient

package module
v0.0.0-...-ab15b4e Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 7 Imported by: 3

Documentation

Index

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

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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