diff options
author | rans | 2004-09-02 11:48:28 +0000 |
---|---|---|
committer | rans | 2004-09-02 11:48:28 +0000 |
commit | fc13964422ceccee84640cdc71a308dd48976560 (patch) | |
tree | b54b1e082a966823bbda804ef41149909c5ef482 /libcsoap/soap-client.c | |
parent | 7e7de8942cab7cd63dae5aa8799c9b0cbb0a4002 (diff) | |
download | csoap-fc13964422ceccee84640cdc71a308dd48976560.tar.gz csoap-fc13964422ceccee84640cdc71a308dd48976560.tar.bz2 |
Just changed casts to libxml2's BAD_CAST xwin32_migration_20040903
Diffstat (limited to 'libcsoap/soap-client.c')
-rw-r--r-- | libcsoap/soap-client.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/libcsoap/soap-client.c b/libcsoap/soap-client.c index a0038fb..2c0bb4a 100644 --- a/libcsoap/soap-client.c +++ b/libcsoap/soap-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-client.c,v 1.5 2004/08/30 15:26:53 snowdrop Exp $ +* $Id: soap-client.c,v 1.6 2004/09/02 11:48:28 rans Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -28,10 +28,14 @@ /*--------------------------------- */ static SoapEnv *_soap_client_build_result(hresponse_t *res); /*--------------------------------- */ -
-int soap_client_init_args(int argc, char *argv[])
-{
- return !httpc_init(argc, argv);
+ + +int soap_client_init_args(int argc, char *argv[]) + +{ + + return !httpc_init(argc, argv); + } SoapEnv* @@ -62,7 +66,7 @@ soap_client_invoke(SoapEnv *call, const char *url, const char *soap_action) if (soap_action != NULL) { httpc_set_header(conn, "SoapAction", soap_action); } - res = httpc_post(conn, url, strlen(content), content); + res = httpc_post(conn, url, (int)strlen(content), content); /* Free buffer */ xmlBufferFree(buffer); @@ -93,7 +97,7 @@ SoapEnv* _soap_client_build_result(hresponse_t *res) - doc = xmlParseDoc((xmlChar *)res->body); + doc = xmlParseDoc(BAD_CAST res->body); if (doc == NULL) { return soap_env_new_with_fault(Fault_Client, "Response is not in XML format!","",""); |