summaryrefslogtreecommitdiffstats
path: root/libcsoap/csoapparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcsoap/csoapparam.c')
-rw-r--r--libcsoap/csoapparam.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/libcsoap/csoapparam.c b/libcsoap/csoapparam.c
index 27b06e3..6fd7057 100644
--- a/libcsoap/csoapparam.c
+++ b/libcsoap/csoapparam.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: csoapparam.c,v 1.1 2003/11/12 13:22:58 snowdrop Exp $
+ * $Id: csoapparam.c,v 1.2 2003/11/13 10:44:10 snowdrop Exp $
*
* CSOAP Project: A SOAP client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -236,6 +236,33 @@ int SoapParamGetString(HSOAPPARAM param, char *dest)
return len;
}
+/*-----------------------------------------------------------------
+ FUNCTION: SoapParamToString
+/-----------------------------------------------------------------*/
+
+char* SoapParamToString(HSOAPPARAM param)
+{
+ char *value;
+ int len;
+ xmlNodePtr xmlNode;
+ const char* FUNC = "SoapParamToString";
+ SoapTraceEnter(FUNC,"");
+
+ if (param == NULL) {
+ SoapTraceLeaveWithError(FUNC,
+ "Invalid parameter 'param' (null)");
+ return "";
+ }
+
+ xmlNode = (xmlNodePtr)param;
+ value = (char*)xmlNodeListGetString(xmlNode->doc,
+ xmlNode->xmlChildrenNode,1);
+
+ SoapTraceLeave(FUNC, "Value = '%s'\n", value?value:"null");
+
+ return value;
+}
+
/*-----------------------------------------------------------------
FUNCTION: SoapParamGetInt