summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGravatar m0gg2007-01-01 18:58:05 +0000
committerGravatar m0gg2007-01-01 18:58:05 +0000
commit23629635c0d544c4fbbc0bd5d01dd75413942a3f (patch)
tree1a4dfb3e289e05f5eea6daff090a69a03ee9f122 /examples
parentfbfd56fb7c1ce480d15682652d9c5f43aa16e0b1 (diff)
downloadcsoap-23629635c0d544c4fbbc0bd5d01dd75413942a3f.tar.gz
csoap-23629635c0d544c4fbbc0bd5d01dd75413942a3f.tar.bz2
WSDL via HTTP GET re-enabled
Diffstat (limited to 'examples')
-rw-r--r--examples/csoap/simpleserver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/csoap/simpleserver.c b/examples/csoap/simpleserver.c
index 6439a65..0bd7341 100644
--- a/examples/csoap/simpleserver.c
+++ b/examples/csoap/simpleserver.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleserver.c,v 1.28 2006/12/10 19:21:05 m0gg Exp $
+ * $Id: simpleserver.c,v 1.29 2007/01/01 18:58:05 m0gg Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -44,7 +44,7 @@ herror_t
say_hello(struct SoapCtx *req, struct SoapCtx *res)
{
herror_t err;
- char *name;
+ xmlChar *name;
xmlNodePtr method, node;
printf("processing service request\n");
@@ -70,11 +70,11 @@ say_hello(struct SoapCtx *req, struct SoapCtx *res)
node = soap_xml_get_children(method);
while (node)
{
- name = (char *) xmlNodeListGetString(node->doc, node->xmlChildrenNode, 1);
+ name = xmlNodeListGetString(node->doc, node->xmlChildrenNode, 1);
soap_env_add_itemf(res->env, "xsd:string", "echo", "Hello '%s'", name);
- node = soap_xml_get_next(node);
if (name)
xmlFree(name);
+ node = soap_xml_get_next(node);
}
printf("service request done\n");