|
|
Index Data > YAZ > YAZ User's Guide and Reference > SOAP Packages Every SOAP package in YAZ is represented as follows:
#include <yaz/soap.h>
typedef struct {
char *fault_code;
char *fault_string;
char *details;
} Z_SOAP_Fault;
typedef struct {
int no;
char *ns;
void *p;
} Z_SOAP_Generic;
#define Z_SOAP_fault 1
#define Z_SOAP_generic 2
#define Z_SOAP_error 3
typedef struct {
int which;
union {
Z_SOAP_Fault *fault;
Z_SOAP_Generic *generic;
Z_SOAP_Fault *soap_error;
} u;
const char *ns;
} Z_SOAP;
The
The
int z_soap_codec(ODR o, Z_SOAP **pp,
char **content_buf, int *content_len,
Z_SOAP_Handler *handlers);
The
The
When decoding, the
When a NULL namespace is met (member Each handler is defined as follows:
typedef struct {
char *ns;
void *client_data;
Z_SOAP_fun f;
} Z_SOAP_Handler;
The The prototype for a SOAP service handler is:
int handler(ODR o, void * ptr, void **handler_data,
void *client_data, const char *ns);
The
|
|||
|
|
||||
| Copyright Index Data ApS 2008 | ||||