Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SOAPBody ¶
type SOAPBody struct { XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Body"` Fault *SOAPFault `xml:",omitempty"` Content interface{} `xml:",omitempty"` }
func (*SOAPBody) UnmarshalXML ¶
type SOAPEnvelope ¶
type SOAPEnvelope struct { XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Envelope"` Header SOAPHeader Body SOAPBody }
func NewSOAPEnvelope ¶
func NewSOAPEnvelope(content interface{}) *SOAPEnvelope
func (*SOAPEnvelope) AddHeader ¶
func (envelope *SOAPEnvelope) AddHeader(header interface{})
type SOAPFault ¶
type SOAPFault struct { XMLName xml.Name `xml:"http://www.w3.org/2003/05/soap-envelope Fault"` Code SOAPFaultCode `xml:"Code"` }
type SOAPFaultCode ¶
type SOAPFaultCode struct { Value string `xml:"Value"` Subcode *SOAPFaultCode `xml:"Subcode,omitempty"` }
type SOAPHeader ¶
type SoapClient ¶
type SoapClient struct { Endpoint string LogRequest func(request string) LogResponse func(response string) }
func NewSoapClient ¶
func NewSoapClient(endpoint string) *SoapClient
func (*SoapClient) Do ¶
func (soap *SoapClient) Do(request, response interface{}, headers ...interface{}) error
Click to show internal directories.
Click to hide internal directories.