summaryrefslogtreecommitdiffstats
path: root/examples/csoap/simpleserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/csoap/simpleserver.c')
-rw-r--r--examples/csoap/simpleserver.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/csoap/simpleserver.c b/examples/csoap/simpleserver.c
index a5a3318..3ccd61e 100644
--- a/examples/csoap/simpleserver.c
+++ b/examples/csoap/simpleserver.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleserver.c,v 1.9 2004/09/19 07:05:01 snowdrop Exp $
+ * $Id: simpleserver.c,v 1.10 2004/10/15 13:42:57 snowdrop Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003 Ferhat Ayaz
@@ -41,20 +41,21 @@ void add_name(xmlNodePtr node, SoapEnv *env)
soap_env_add_itemf(env,"xsd:string", "echo",
"Hello '%s'", name);
- xmlFree(BAD_CAST name);
+ /*xmlFree(BAD_CAST name);*/
}
-SoapEnv* say_hello(SoapEnv *request)
+SoapCtx* say_hello(SoapCtx *request)
{
SoapEnv *env;
+ SoapCtx* ctx;
xmlNodePtr method, node;
- env = soap_env_new_with_response(request);
+ env = soap_env_new_with_response(request->env);
- method = soap_env_get_method(request);
+ method = soap_env_get_method(request->env);
node = soap_xml_get_children(method);
while (node) {
@@ -62,7 +63,8 @@ SoapEnv* say_hello(SoapEnv *request)
node = soap_xml_get_next(node);
}
- return env;
+ ctx = soap_ctx_new(env);
+ return ctx;
}