From c28397f760d22a1e8be126725ff7784b2d8fec23 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Mon, 1 Nov 2004 15:16:22 +0000 Subject: added soap_ctx_add_file() --- examples/csoap/echoattachments-server.c | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'examples/csoap/echoattachments-server.c') diff --git a/examples/csoap/echoattachments-server.c b/examples/csoap/echoattachments-server.c index 5aeeb76..22b5fb2 100755 --- a/examples/csoap/echoattachments-server.c +++ b/examples/csoap/echoattachments-server.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: echoattachments-server.c,v 1.3 2004/10/28 10:30:42 snowdrop Exp $ + * $Id: echoattachments-server.c,v 1.4 2004/11/01 15:16:22 snowdrop Exp $ * * CSOAP Project: CSOAP examples project * Copyright (C) 2003-2004 Ferhat Ayaz @@ -29,37 +29,7 @@ static const char *urn = "urn:examples"; static const char *method = "echo"; -/* -SoapCtx* echo_attachments(SoapCtx *req) -{ - herror_t err; - SoapEnv *env; - SoapCtx* ctx; - part_t *part; - char href[MAX_HREF_SIZE]; - - err = soap_env_new_with_response(req->env, &env); - if (err != H_OK) { - herror_release(err); - return NULL; - } - - ctx = soap_ctx_new(env); - - if (req->attachments) { - part = req->attachments->parts; - while (part) { - log_verbose2("Adding part '%s'", part->filename); - soap_ctx_add_file(ctx, part->filename, "text/plain", href); - soap_env_add_attachment(ctx->env, "echoFile", href); - part = part->next; - } - } - - return ctx; -} -*/ herror_t echo_attachments(SoapCtx *req, SoapCtx* res) { -- cgit v1.1-32-gdbae