diff --git wsclient_soap/wsclient_soap.module wsclient_soap/wsclient_soap.module
index 508ffe3..e9346e3 100644
--- wsclient_soap/wsclient_soap.module
+++ wsclient_soap/wsclient_soap.module
@@ -73,9 +73,19 @@ class WSClientSOAPEndpoint extends WSClientEndpoint {
     $client = $this->client();
     try {
       $response = $client->__soapCall($operation, $arguments);
+      if ($client->trace === 1) {
+        $trace = $client->__getLastRequest();
+        debug($trace);
+      }
       return $response;
     }
     catch (SoapFault $e) {
+      if ($client->trace === 1) {
+        $trace = $client->__getLastRequest();
+        debug($trace);
+        $trace = $client->__getLastResponse();
+        debug($trace);
+      }
       throw new WSClientException('Error invoking the SOAP service %name, operation %operation: %error', array('%name' => $this->service->label, '%operation' => $operation, '%error' => $e->getMessage()));
     }
   }
