Back to godoc.org

Package soap

v0.0.0-...-58cc386
Latest Go to latest

The highest tagged major version is .

Published: Apr 11, 2017 | License: MIT | Module: github.com/jjeffery/mechturk

Overview

Package soap provides SOAP support.

Index

type Body

type Body struct {
	XMLName xml.Name    `xml:"http://schemas.xmlsoap.org/soap/envelope/ 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:"http://schemas.xmlsoap.org/soap/envelope/ Envelope"`
	Body    Body
}

Envelope is for serializing SOAP envelopes.

type Fault

type Fault struct {
	XMLName xml.Name `xml:"http://schemas.xmlsoap.org/soap/envelope/ 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