summaryrefslogtreecommitdiffstats
path: root/libcsoap/soap-fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap/soap-fault.c')
-rw-r--r--libcsoap/soap-fault.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libcsoap/soap-fault.c b/libcsoap/soap-fault.c
index 30a972a..dfb769e 100644
--- a/libcsoap/soap-fault.c
+++ b/libcsoap/soap-fault.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: soap-fault.c,v 1.1 2004/01/30 16:39:34 snowdrop Exp $
+ * $Id: soap-fault.c,v 1.2 2004/02/03 08:07:36 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -70,10 +70,12 @@ xmlDocPtr soap_fault_build(fault_code_t fcode,
/* variables */
char *faultcode;
- int bufferlen = 200;
+ int bufferlen = 2000;
char *buffer;
xmlDocPtr fault; /* result */
+ log_verbose1("Build fault");
+
switch (fcode) {
case Fault_VersionMismatch:
faultcode = fault_vm;
@@ -96,6 +98,7 @@ xmlDocPtr soap_fault_build(fault_code_t fcode,
if (faultactor) bufferlen += strlen(faultactor);
if (detail) bufferlen += strlen(detail);
+ log_verbose2("Creating buffer with %d bytes", bufferlen);
buffer = (char*)malloc(bufferlen);
sprintf(buffer, _SOAP_FAULT_TEMPLATE_,
@@ -115,6 +118,7 @@ xmlDocPtr soap_fault_build(fault_code_t fcode,
"soap_fault_build()", NULL);
}
+ log_verbose2("Returning fault (%p)", fault);
return fault;
}