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