test: guess_raw_type: plain signed incoming message
[libisds.git] / src / soap.h
blob3c903b7372fd554aef8792dd127e1b776573a59b
1 #ifndef __ISDS_SOAP_H__
2 #define __ISDS_SOAP_H__
4 #include "isds.h"
6 /* Close connection to server and destroy CURL handle associated
7 * with @context */
8 isds_error close_connection(struct isds_ctx *context);
10 /* Do SOAP request.
11 * @context holds the base URL,
12 * @file is a (CGI) file of SOAP URL,
13 * @request is XML node set with SOAP request body.
14 * @file must be NULL, @request should be NULL rather than empty, if they should
15 * not be signaled in the SOAP request.
16 * @reponse is automatically allocated() node set with SOAP response body.
17 * You must xmlFreeNodeList() it. This is literal body, empty (NULL), one node
18 * or more nodes can be returned.
19 * @raw_response is automatically allocated bitstream with response body. Use
20 * NULL if you don't care
21 * @raw_response_length is size of @raw_response in bytes
22 * In case of error the response will be deallocated automatically.
23 * Side effect: message buffer */
24 isds_error soap(struct isds_ctx *context, const char *file,
25 const xmlNodePtr request, xmlNodePtr *response,
26 void **raw_response, size_t *raw_response_length);
28 #endif