Home | Documentation |
gsoapios.mm File Reference
updated Wed Apr 8 2020 by Robert van Engelen
|
Functions | |
static int | soap_ios_copy (struct soap *soap, struct soap_plugin *dst, struct soap_plugin *src) |
Duplicates the plugin context for the soap context. More... | |
static void | soap_ios_delete (struct soap *soap, struct soap_plugin *p) |
Destroys the plugin context. More... | |
static int | soap_ios_init (struct soap *soap, soap_ios_data *data) |
Initializes the plugin data. More... | |
static SOAP_SOCKET | soap_ios_open (struct soap *soap, const char *endpoint, const char *host, int port) |
Extracts states from soap context and saves states for soap connection. More... | |
static int | soap_ios_close (struct soap *soap) |
static int | soap_ios_send (struct soap *soap, const char *buf, size_t len) |
Buffers the http/soap request in plugin data. More... | |
static size_t | soap_ios_recv (struct soap *soap, char *buf, size_t len) |
Sends soap request, buffers soap response and serialize the response. More... | |
int | soap_ios (struct soap *soap, struct soap_plugin *p, void *arg) |
Save the old callbacks and set new callbacks to handle soap client applications on iOS platforms (iPhone and iPad) More... | |
void | soap_ios_setcachepolicy (struct soap *soap, unsigned int policy) |
Sets cache policy The constants used to specify interaction with the cached responses are: More... | |
void | soap_ios_settimeoutinterval (struct soap *soap, double seconds) |
Sets timeout interval. More... | |
Variables | |
const char | soap_ios_id [13] = SOAP_IOS_ID |
int soap_ios | ( | struct soap * | soap, |
struct soap_plugin * | p, | ||
void * | arg | ||
) |
Save the old callbacks and set new callbacks to handle soap client applications on iOS platforms (iPhone and iPad)
soap | The soap context | |
[in] | p | The soap plugin data |
[in] | arg | The arguments for soap plugin |
Usage:
|
static |
soap | The soap context |
Note: This open function does not create a real socket for communication. The actual connection establishment happens in the frecv callback
|
static |
Duplicates the plugin context for the soap context.
soap | The soap context | |
[out] | dst | The destination plugin data to store to |
[in] | src | The sources plugin data to be copied from |
|
static |
Destroys the plugin context.
soap | context | |
[in] | p | plugin data |
|
static |
Initializes the plugin data.
soap | The soap context | |
[out] | data | The plugin data to be initialized |
|
static |
Extracts states from soap context and saves states for soap connection.
soap | The soap context | |
[in] | endpoint | The Web service's endpoint |
[in] | host | The host name |
[in] | port | The port numer |
Note: This open function does not create a real socket for communication. The actual connection establishment happens in the frecv callback
|
static |
Sends soap request, buffers soap response and serialize the response.
soap | The soap context | |
[out] | buf | The buffer for the received data |
[in] | len | The number of bytes received |
Note: This recv function sends a synchronous soap request through NSURLRequest, receives soap response, serializes response.
|
static |
Buffers the http/soap request in plugin data.
soap | The soap context | |
[in] | buf | The buffer holding the serialized http/soap request |
[in] | len | The buffer size |
Note: This send function does not send any data to its peer. Rather it buffers the serialied soap request including http header to the plugin data. The sending happens actually in frecv function.
void soap_ios_setcachepolicy | ( | struct soap * | soap, |
unsigned int | policy | ||
) |
Sets cache policy The constants used to specify interaction with the cached responses are:
enum { NSURLRequestUseProtocolCachePolicy = 0, NSURLRequestReloadIgnoringLocalCacheData = 1, NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData, NSURLRequestReturnCacheDataElseLoad = 2, NSURLRequestReturnCacheDataDontLoad = 3, NSURLRequestReloadIgnoringLocalAndRemoteCacheData =4, NSURLRequestReloadRevalidatingCacheData = 5 };
soap | The soap context | |
[in] | policy | The policy to be specified for he request |
void soap_ios_settimeoutinterval | ( | struct soap * | soap, |
double | seconds | ||
) |
Sets timeout interval.
soap | The soap context | |
[in] | seconds | The value for the timeout interval to be specifed (in seconds) |
soap | The soap context | |
[in] | seconds | The value for the timeout interval to be specified (in seconds) |
const char soap_ios_id[13] = SOAP_IOS_ID |
plugin identification for plugin registry