summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorGravatar snowdrop2004-08-30 15:26:48 +0000
committerGravatar snowdrop2004-08-30 15:26:48 +0000
commit30911b1730a1a69241beaca7d1ed71212d4f7b3f (patch)
tree1538c363a546cc7584f88b3886433d43aca50c77 /examples
parent056647348ff38f83b5e13bed1c4f4bb76cce50f9 (diff)
downloadcsoap-30911b1730a1a69241beaca7d1ed71212d4f7b3f.tar.gz
csoap-30911b1730a1a69241beaca7d1ed71212d4f7b3f.tar.bz2
migration win32 socket code
Diffstat (limited to 'examples')
-rw-r--r--examples/csoap/simpleclient.c5
-rw-r--r--examples/csoap/simpleserver.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/csoap/simpleclient.c b/examples/csoap/simpleclient.c
index f4754e4..4f2bcfe 100644
--- a/examples/csoap/simpleclient.c
+++ b/examples/csoap/simpleclient.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleclient.c,v 1.3 2004/08/30 13:28:58 snowdrop Exp $
+ * $Id: simpleclient.c,v 1.4 2004/08/30 15:26:48 snowdrop Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003 Ferhat Ayaz
@@ -37,6 +37,9 @@ int main(int argc, char *argv[])
SoapEnv *env, *res;
log_set_level(HLOG_VERBOSE);
+ if (!soap_client_init_args(argc, argv)) {
+ return 1;
+ }
env = soap_env_new_with_method(urn, method);
soap_env_add_item(env, "xsd:string", "name", "Jonny B. Good");
diff --git a/examples/csoap/simpleserver.c b/examples/csoap/simpleserver.c
index bdbe62b..dab8382 100644
--- a/examples/csoap/simpleserver.c
+++ b/examples/csoap/simpleserver.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleserver.c,v 1.4 2004/08/30 13:28:58 snowdrop Exp $
+ * $Id: simpleserver.c,v 1.5 2004/08/30 15:26:49 snowdrop Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003 Ferhat Ayaz
@@ -74,7 +74,7 @@ int main(int argc, char *argv[])
log_set_level(HLOG_VERBOSE);
if (!soap_server_init_args(argc, argv)) {
- return 0;
+ return 1;
}
router = soap_router_new();