]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
esx: Dump the raw response in case of an SOAP fault
authorMatthias Bolte <matthias.bolte@googlemail.com>
Tue, 5 Jan 2010 01:44:33 +0000 (02:44 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 8 Jan 2010 18:28:14 +0000 (19:28 +0100)
Currently only the faultcode and faultstring are deserialized, the
detail part is ignored. The implementation of many new SOAP types
would be necessary to deserialize the detail part correctly. As an
intermediate solution the raw response is dumped to the debug log.

src/esx/esx_vi.c

index bad987cf02402545626719a1af293fcecea85e7a..9cade3dc45c5e10eda8c4ef147aead5220d6f2f3 100644 (file)
@@ -692,6 +692,12 @@ esxVI_Context_Execute(virConnectPtr conn, esxVI_Context *ctx,
                          "HTTP response code %d for call to '%s'. "
                          "Fault: %s - %s", (*response)->responseCode,
                          methodName, fault->faultcode, fault->faultstring);
+
+            /* FIXME: Dump raw response until detail part gets deserialized */
+            VIR_DEBUG("HTTP response code %d for call to '%s' [[[[%s]]]]",
+                      (*response)->responseCode, methodName,
+                      (*response)->content);
+
             goto failure;
         } else {
             if (virAsprintf(&xpathExpression,