summaryrefslogtreecommitdiffstats
path: root/examples/csoap
diff options
context:
space:
mode:
authorGravatar m0gg2006-11-25 17:03:20 +0000
committerGravatar m0gg2006-11-25 17:03:20 +0000
commitc8705844bd924e8e00bc79ec0f4ae92c85f7e48e (patch)
treeb76fca4152232bab3c10ae06887b705850a7aed8 /examples/csoap
parent48873b11cc7f101bd5f3eb74fedacce40e73dd91 (diff)
downloadcsoap-c8705844bd924e8e00bc79ec0f4ae92c85f7e48e.tar.gz
csoap-c8705844bd924e8e00bc79ec0f4ae92c85f7e48e.tar.bz2
Code cleanup
Diffstat (limited to 'examples/csoap')
-rw-r--r--examples/csoap/simpleclient.c3
-rw-r--r--examples/csoap/simpleserver.c5
-rw-r--r--examples/csoap/soapclient.c35
3 files changed, 25 insertions, 18 deletions
diff --git a/examples/csoap/simpleclient.c b/examples/csoap/simpleclient.c
index 9add626..1af42f5 100644
--- a/examples/csoap/simpleclient.c
+++ b/examples/csoap/simpleclient.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleclient.c,v 1.16 2006/11/25 15:06:57 m0gg Exp $
+ * $Id: simpleclient.c,v 1.17 2006/11/25 17:03:20 m0gg Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -26,7 +26,6 @@
#include <libxml/tree.h>
#include <nanohttp/nanohttp-error.h>
-#include <nanohttp/nanohttp-common.h>
#include <nanohttp/nanohttp-logging.h>
#include <libcsoap/soap-ctx.h>
diff --git a/examples/csoap/simpleserver.c b/examples/csoap/simpleserver.c
index 3d2506a..03c3c5d 100644
--- a/examples/csoap/simpleserver.c
+++ b/examples/csoap/simpleserver.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleserver.c,v 1.24 2006/11/25 15:06:57 m0gg Exp $
+ * $Id: simpleserver.c,v 1.25 2006/11/25 17:03:20 m0gg Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -27,7 +27,6 @@
#include <libxml/xpath.h>
#include <nanohttp/nanohttp-error.h>
-#include <nanohttp/nanohttp-common.h>
#include <nanohttp/nanohttp-logging.h>
#include <libcsoap/soap-xml.h>
@@ -47,7 +46,7 @@ say_hello(struct SoapCtx *req, struct SoapCtx *res)
herror_t err;
char *name;
- log_verbose1("service request");
+ printf("service request");
xmlNodePtr method, node;
diff --git a/examples/csoap/soapclient.c b/examples/csoap/soapclient.c
index ec6374c..e39802a 100644
--- a/examples/csoap/soapclient.c
+++ b/examples/csoap/soapclient.c
@@ -1,22 +1,31 @@
-/* soapclient.c
-// compile with
-// gcc soapclient.c -o soapclient -lcsoap
-*/
-/* Author: Adrianus Warmenhoven */
-
+/******************************************************************
+ * $Id: soapclient.c,v 1.11 2006/11/25 17:03:20 m0gg Exp $
+ *
+ * CSOAP Project: CSOAP examples project
+ * Copyright (C) 2003-2006 Adrianus Warmehoven
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA
+ *
+ * Author: Adrianus Warmenhoven
+ ******************************************************************/
#include <stdio.h>
#include <string.h>
-#include <ctype.h>
#include <libxml/tree.h>
-#include <libxml/uri.h>
#include <nanohttp/nanohttp-error.h>
-#include <nanohttp/nanohttp-common.h>
-
-// #include <nanohttp/nanohttp-request.h>
-// #include <nanohttp/nanohttp-response.h>
-// #include <nanohttp/nanohttp-client.h>
#include <libcsoap/soap-fault.h>
#include <libcsoap/soap-env.h>