Go to the source code of this file.
Classes | |
struct | SoapCtx |
Defines | |
#define | SOAP_ERROR_NO_FILE_ATTACHED 4001 |
#define | SOAP_ERROR_EMPTY_ATTACHMENT 4002 |
#define | MAX_HREF_SIZE 150 |
Functions | |
SoapCtx * | soap_ctx_new (struct SoapEnv *env) |
herror_t | soap_ctx_new_with_method (const char *urn, const char *method, struct SoapCtx **out) |
void | soap_ctx_free (struct SoapCtx *ctx) |
part_t * | soap_ctx_get_file (struct SoapCtx *ctx, xmlNodePtr node) |
herror_t | soap_ctx_add_file (struct SoapCtx *ctx, const char *filename, const char *content_type, char *dest_href) |
void | soap_ctx_add_files (struct SoapCtx *ctx, struct attachments_t *attachments) |
|
Definition at line 30 of file soap-ctx.h. Referenced by soap_ctx_add_files(), and soap_ctx_get_file(). |
|
Definition at line 28 of file soap-ctx.h. |
|
Definition at line 27 of file soap-ctx.h. |
|
Size of destination dest_href should be MAX_HREF_SIZE Definition at line 91 of file soap-ctx.c. References SoapCtx::attachments, attachments_add_part(), attachments_new(), FILE_ERROR_OPEN, H_OK, herror_new(), and part_new(). Referenced by soap_ctx_add_files(). |
|
Used internally. Will switch the deleteOnExit flag from the given one to the added part. Definition at line 72 of file soap-ctx.c. References part_t::content_type, part_t::filename, MAX_HREF_SIZE, part_t::next, attachments_t::parts, and soap_ctx_add_file(). |
|
Definition at line 160 of file soap-ctx.c. References SoapCtx::attachments, attachments_free(), SoapCtx::env, and soap_env_free(). Referenced by soap_nudp_server_run(). |
|
Returns the attached file if any found.
Definition at line 120 of file soap-ctx.c. References SoapCtx::attachments, part_t::id, part_t::location, MAX_HREF_SIZE, part_t::next, and attachments_t::parts. |
|
should only be used internally Definition at line 55 of file soap-ctx.c. References SoapCtx::attachments, SoapCtx::env, and log_error2. Referenced by soap_ctx_new_with_method(), soap_nudp_server_run(), and soap_server_process(). |
|
Creates a new soap context object. Definition at line 177 of file soap-ctx.c. References H_OK, soap_ctx_new(), and soap_env_new_with_method(). |