From 7ed3b0bb398f43429c6c0d0d9bd8b5bada1d7389 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 15 Oct 2004 13:33:13 +0000 Subject: added attachment support --- libcsoap/soap-env.h | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'libcsoap/soap-env.h') diff --git a/libcsoap/soap-env.h b/libcsoap/soap-env.h index 4625890..5b3bd7f 100644 --- a/libcsoap/soap-env.h +++ b/libcsoap/soap-env.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: soap-env.h,v 1.6 2004/09/02 11:48:28 rans Exp $ + * $Id: soap-env.h,v 1.7 2004/10/15 13:33:13 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -26,6 +26,7 @@ #include #include +#include /** @@ -158,6 +159,11 @@ SoapEnv *soap_env_new_from_doc(xmlDocPtr doc); SoapEnv *soap_env_new_from_buffer(const char* buffer); +/** + Create an envelope from input stream +*/ +SoapEnv *soap_env_new_from_stream(http_input_stream_t *in); + /* --------------------------------------------------- */ /* XML Serializer functions and typedefs */ /* --------------------------------------------------- */ @@ -197,6 +203,26 @@ soap_env_add_item(SoapEnv* env, const char *type, const char *name, const char *value); +/** + Adds attachment href node to the envelope current parent. + +
+    
+   
+ + @param env The envelope object + @param name Name of the xml node + @param href href. A CID string filled by + soap_ctx_add_attachment() + + @returns The added xmlNode pointer. + + @see soap_ctx_add_file tutorial + */ +xmlNodePtr +soap_env_add_attachment(SoapEnv* env, const char *name, const char *href); + + /** Serialize and adds obj to the envelope. TODO: Document this function ! -- cgit v1.1-32-gdbae