[libvirt] [PATCH] esx: Dump the raw response in case of an SOAP fault
Daniel Veillard
veillard at redhat.com
Fri Jan 8 17:22:56 UTC 2010
On Tue, Jan 05, 2010 at 03:01:06AM +0100, Matthias Bolte wrote:
> 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 | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c
> index bad987c..9cade3d 100644
> --- a/src/esx/esx_vi.c
> +++ b/src/esx/esx_vi.c
> @@ -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,
ACK,
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel at veillard.com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
More information about the libvir-list
mailing list