Back to

Package soap

Latest Go to latest

The highest tagged major version is .

Published: Apr 11, 2017 | License: MIT | Module:


Package soap provides SOAP support.


type Body

type Body struct {
	XMLName xml.Name    `xml:" Body"`
	Fault   *Fault      `xml:",omitempty"`
	Content interface{} `xml:",omitempty"`

Body is for serializing the body of SOAP envelopes.

func (*Body) UnmarshalXML

func (b *Body) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Client

type Client struct {
	Logger *log.Logger
	// contains filtered or unexported fields

Client is a SOAP client.

func NewClient

func NewClient(url string) *Client

func (*Client) Call

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

type Envelope

type Envelope struct {
	XMLName xml.Name `xml:" Envelope"`
	Body    Body

Envelope is for serializing SOAP envelopes.

type Fault

type Fault struct {
	XMLName xml.Name `xml:" Fault"`

	Code   string `xml:"faultcode,omitempty"`
	String string `xml:"faultstring,omitempty"`
	Actor  string `xml:"faultactor,omitempty"`
	Detail string `xml:"detail,omitempty"`

Fault is for serializing SOAP faults.

func (*Fault) Error

func (f *Fault) Error() string

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier