summaryrefslogtreecommitdiffstats
path: root/examples/csoap/simpleclient.c
diff options
context:
space:
mode:
authorGravatar snowdrop2004-11-02 23:09:19 +0000
committerGravatar snowdrop2004-11-02 23:09:19 +0000
commit402e8748593a42cf6d42fda772f207e3e9300a3e (patch)
tree8c87ecde3498891a6de178f2a77dc4d9cf20fe57 /examples/csoap/simpleclient.c
parent15b392f1e21d3dae8f83da401199959e9f0b0db6 (diff)
downloadcsoap-402e8748593a42cf6d42fda772f207e3e9300a3e.tar.gz
csoap-402e8748593a42cf6d42fda772f207e3e9300a3e.tar.bz2
dos2unix
Diffstat (limited to 'examples/csoap/simpleclient.c')
-rw-r--r--examples/csoap/simpleclient.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/examples/csoap/simpleclient.c b/examples/csoap/simpleclient.c
index 8c10d5f..29c4c1e 100644
--- a/examples/csoap/simpleclient.c
+++ b/examples/csoap/simpleclient.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleclient.c,v 1.8 2004/11/02 22:42:52 snowdrop Exp $
+ * $Id: simpleclient.c,v 1.9 2004/11/02 23:09:19 snowdrop Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -31,23 +31,23 @@ static const char *method = "sayHello";
int main(int argc, char *argv[])
{
- SoapCtx *ctx, *ctx2;
+ SoapCtx *ctx, *ctx2;
herror_t err;
- /*log_set_level(HLOG_VERBOSE);*/
+ /*log_set_level(HLOG_VERBOSE);*/
err = soap_client_init_args(argc, argv);
- if (err != H_OK) {
- log_error4("%s():%s [%d]", herror_func(err), herror_message(err), herror_code(err));
- herror_release(err);
- return 1;
- }
+ if (err != H_OK) {
+ log_error4("%s():%s [%d]", herror_func(err), herror_message(err), herror_code(err));
+ herror_release(err);
+ return 1;
+ }
- err = soap_ctx_new_with_method(urn, method, &ctx);
- if (err != H_OK) {
- log_error4("%s():%s [%d]", herror_func(err), herror_message(err), herror_code(err));
- herror_release(err);
- return 1;
- }
+ err = soap_ctx_new_with_method(urn, method, &ctx);
+ if (err != H_OK) {
+ log_error4("%s():%s [%d]", herror_func(err), herror_message(err), herror_code(err));
+ herror_release(err);
+ return 1;
+ }
soap_env_add_item(ctx->env, "xsd:string", "name", "Jonny B. Good");
@@ -55,18 +55,18 @@ int main(int argc, char *argv[])
err = soap_client_invoke(ctx, &ctx2, argv[1], "");
else
err = soap_client_invoke(ctx, &ctx2, url, "");
-
- if (err != H_OK) {
- log_error4("[%d] %s(): %s ", herror_code(err), herror_func(err), herror_message(err));
- herror_release(err);
- soap_ctx_free(ctx);
- return 1;
- }
+
+ if (err != H_OK) {
+ log_error4("[%d] %s(): %s ", herror_code(err), herror_func(err), herror_message(err));
+ herror_release(err);
+ soap_ctx_free(ctx);
+ return 1;
+ }
soap_xml_doc_print(ctx2->env->root->doc);
soap_ctx_free(ctx2);
- soap_ctx_free(ctx);
-
- soap_client_destroy();
+ soap_ctx_free(ctx);
+
+ soap_client_destroy();
return 0;
}