soap

package
v0.0.0-...-043af89 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDebug

func AddDebug(c *Client)

AddDebug sets the client output to files

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client soap client

func NewClient

func NewClient(name, url string, options ...Option) *Client

NewClient creates new soap client

func (*Client) AddAssertion

func (s *Client) AddAssertion(assertion string)

AddAssertion adds a saml assertion to the soap headers

func (*Client) Call

func (s *Client) Call(soapAction string, request, response interface{}) error

Call calls the soapAction with the request and fills the response

type Fault

type Fault struct {
	XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Fault"`

	Code   string `xml:"faultcode,omitempty"`
	String string `xml:"faultstring,omitempty"`
	Actor  string `xml:"faultactor,omitempty"`
	Detail string `xml:"detail,omitempty"`
	Reason string `xml:"Reason>Text,omitempty"`
}

Fault soap fault, implements the error interface

func (*Fault) Error

func (f *Fault) Error() string

Error the fault error interface function

type Option

type Option func(*Client)

Option to set configuration of the client

func AddHeader

func AddHeader(name string, header interface{}) Option

AddHeader adds a header that will be used in all http requests

Jump to

Keyboard shortcuts

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