Check for error when encoding the request action.
This commit is contained in:
parent
8a169ca3f7
commit
d8237236d8
@ -31,6 +31,9 @@ func NewSOAPClient(endpointURL url.URL) *SOAPClient {
|
|||||||
// PerformSOAPAction makes a SOAP request, with the given action.
|
// PerformSOAPAction makes a SOAP request, with the given action.
|
||||||
func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAction interface{}, outAction interface{}) error {
|
func (client *SOAPClient) PerformAction(actionNamespace, actionName string, inAction interface{}, outAction interface{}) error {
|
||||||
requestBytes, err := encodeRequestAction(inAction)
|
requestBytes, err := encodeRequestAction(inAction)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
response, err := client.HTTPClient.Do(&http.Request{
|
response, err := client.HTTPClient.Do(&http.Request{
|
||||||
Method: "POST",
|
Method: "POST",
|
||||||
|
Loading…
Reference in New Issue
Block a user