Check for error when encoding the request action.

This commit is contained in:
Huin 2014-01-05 22:41:51 +00:00
parent 8a169ca3f7
commit d8237236d8

View File

@ -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",