From d24d6ab7bbfda8e302af3a5cf8be62299d543c1a Mon Sep 17 00:00:00 2001 From: snowdrop Date: Thu, 28 Oct 2004 10:30:41 +0000 Subject: changed hstatus_t to herror_t and chagend the API function to return herror_t. Added herror_*() functions and fixed a bug in the socket receive comm. --- libcsoap/soap-client.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'libcsoap/soap-client.h') diff --git a/libcsoap/soap-client.h b/libcsoap/soap-client.h index 6820c14..22e41bb 100644 --- a/libcsoap/soap-client.h +++ b/libcsoap/soap-client.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: soap-client.h,v 1.5 2004/10/20 14:17:36 snowdrop Exp $ + * $Id: soap-client.h,v 1.6 2004/10/28 10:30:46 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -30,7 +30,7 @@ /** Initializes the client side soap engine */ -int soap_client_init_args(int argc, char *argv[]); +herror_t soap_client_init_args(int argc, char *argv[]); /** @@ -38,19 +38,22 @@ int soap_client_init_args(int argc, char *argv[]); the given envelope. @param env envelope to send + @param response the result envelope @param url url to the soap server @soap_action value for "SoapAction:" in the HTTP request header. - @returns the result envelope. In case of failure, - this function return an envelope with a fault object. + @returns H_OK if success */ -SoapCtx* soap_client_invoke(SoapCtx *ctx, +herror_t soap_client_invoke(SoapCtx *ctx, SoapCtx** response, const char *url, const char *soap_action); -SoapCtx *soap_client_ctx_new(const char *urn, const char *method); +/** + Creates a new soap context object. +*/ +herror_t soap_client_ctx_new(const char *urn, const char *method, SoapCtx **out); /** Sets the underlaying socket to use while connecting -- cgit v1.1-32-gdbae