Documentation ¶
Index ¶
- type Client
- func (c *Client) Call(p Params, m ...string) (err error)
- func (c *Client) DisableRequestDebug()
- func (c *Client) DisableResponseDebug()
- func (c *Client) EnableRequestDebug()
- func (c *Client) EnableResponseDebug()
- func (c Client) MarshalXML(e *xml.Encoder, _ xml.StartElement) error
- func (c *Client) Unmarshal(v interface{}) error
- type Fault
- type Params
- type SoapBody
- type SoapEnvelope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { WSDL string URL string Method string MethodPath string Params Params Definitions *wsdlDefinitions Body []byte // contains filtered or unexported fields }
Client struct hold all the informations about WSDL, request and response of the server
func SoapClient ¶
SoapClient return new *Client to handle the requests with the WSDL
func (*Client) DisableRequestDebug ¶ added in v1.2.0
func (c *Client) DisableRequestDebug()
func (*Client) DisableResponseDebug ¶ added in v1.2.0
func (c *Client) DisableResponseDebug()
func (*Client) EnableRequestDebug ¶ added in v1.2.0
func (c *Client) EnableRequestDebug()
func (*Client) EnableResponseDebug ¶ added in v1.2.0
func (c *Client) EnableResponseDebug()
func (Client) MarshalXML ¶
MarshalXML envelope the body and encode to xml
type Fault ¶ added in v1.1.0
type Fault struct { Code string `xml:"faultcode"` Description string `xml:"faultstring"` Detail string `xml:"detail"` }
Fault response
type Params ¶
type Params map[string]interface{}
Params type is used to set the params in soap request
type SoapBody ¶
type SoapBody struct { XMLName struct{} `xml:"Body"` Contents []byte `xml:",innerxml"` }
SoapBody struct
type SoapEnvelope ¶
type SoapEnvelope struct { XMLName struct{} `xml:"Envelope"` Body SoapBody }
SoapEnvelope struct
Click to show internal directories.
Click to hide internal directories.