C library for SOAP (Simple Object Access Protocol)


soap-client.h File Reference

#include <nanohttp/nanohttp-client.h>
#include <libcsoap/soap-ctx.h>
#include <libcsoap/soap-env.h>
#include <libcsoap/soap-addressing.h>

Go to the source code of this file.

Defines

#define SOAP_ERROR_CLIENT   5000
#define SOAP_ERROR_CLIENT_GENERIC   (SOAP_ERROR_CLIENT + 0)
#define SOAP_ERROR_CLIENT_INIT   (SOAP_ERROR_CLIENT + 1)
#define CSOAP_CLIENT_FORCE_ENCRYPT   "-CSOAPencrypt"
#define CSOAP_CLIENT_FORCE_DECRYPT   "-CSOAPdecrypt"
#define CSOAP_CLIENT_FORCE_SIGN   "-CSOAPsign"
#define CSOAP_CLIENT_FORCE_VERIFY   "-CSOAPverify"

Functions

herror_t soap_client_init_args (int argc, char **argv)
herror_t soap_client_invoke (struct SoapCtx *ctx, struct SoapCtx **response, const char *url, const char *soap_action)
void soap_client_destroy (void)


Define Documentation

#define CSOAP_CLIENT_FORCE_DECRYPT   "-CSOAPdecrypt"

Commandline argument to force decryption of incoming messages.

See also:
soap_xmlsec_decrypt

#define CSOAP_CLIENT_FORCE_ENCRYPT   "-CSOAPencrypt"

Commandline argument to force encryption of outgoing messages.

See also:
soap_xmlsec_encrypt

#define CSOAP_CLIENT_FORCE_SIGN   "-CSOAPsign"

Commandline argument to force signature on outgoing messages.

See also:
soap_xmlsec_sign

#define CSOAP_CLIENT_FORCE_VERIFY   "-CSOAPverify"

Commandline argument to force signature on incoming messages.

See also:
soap_xmlsec_verify

#define SOAP_ERROR_CLIENT   5000

#define SOAP_ERROR_CLIENT_GENERIC   (SOAP_ERROR_CLIENT + 0)

#define SOAP_ERROR_CLIENT_INIT   (SOAP_ERROR_CLIENT + 1)


Function Documentation

void soap_client_destroy ( void   ) 

Destroy the soap client module

herror_t soap_client_init_args ( int  argc,
char **  argv 
)

Initializes the client side soap engine

herror_t soap_client_invoke ( struct SoapCtx *  ctx,
struct SoapCtx **  response,
const char *  url,
const char *  soap_action 
)

Establish connection to the soap server and send the given envelope.

Parameters:
env envelope to send
response the result envelope
url url to the soap server
soap_action value for "SoapAction:" in the HTTP request header.
Returns:
H_OK if success


csoap project homepage: http://csoap.sourceforge.net