Main Page | File List | File Members

Service.h File Reference

OpenSOAP API Service Processing. More...

#include <OpenSOAP/Envelope.h>

Go to the source code of this file.

Typedefs

typedef tagOpenSOAPService OpenSOAPService
 OpenSOAPService Structure Type Definition.

typedef OpenSOAPServiceOpenSOAPServicePtr
 OpenSOAP Service Ponter Definition.

typedef int(* OpenSOAPServiceFuncPtr )(OpenSOAPEnvelopePtr request, OpenSOAPEnvelopePtr *response, void *opt)
 Define Service Function Pointer.


Functions

int OpenSOAPServiceCreateMB (OpenSOAPServicePtr *srv, const char *srv_name, const char *connect_type, int is_loop,...)
 Create An OpenSOAP Service(MB).

int OpenSOAPServiceCreateWC (OpenSOAPServicePtr *srv, const wchar_t *srv_name, const char *connect_type, int is_loop,...)
 Create An OpenSOAP Service(WC).

int OpenSOAPServiceRelease (OpenSOAPServicePtr srv)
 Release an OpenSOAP Service.

int OpenSOAPServiceRegisterMB (OpenSOAPServicePtr srv, const char *name, OpenSOAPServiceFuncPtr func, void *opt)
 Register OpenSOAP Service.

int OpenSOAPServiceRegisterWC (OpenSOAPServicePtr srv, const wchar_t *name, OpenSOAPServiceFuncPtr func, void *opt)
 Register OpenSOAP Service.

int OpenSOAPServiceRun (OpenSOAPServicePtr srv)
 Execute OpenSOAP Service.


Detailed Description

OpenSOAP API Service Processing.

Author:
OpenSOAP Development Team

Typedef Documentation

int(* OpenSOAPServiceFuncPtr)(OpenSOAPEnvelopePtr request, OpenSOAPEnvelopePtr *response, void *opt)
 

Define Service Function Pointer.

Parameters:
request OpenSOAPEnvelopePtr [in] ((|request|)) Service Request
response OpenSOAPEnvelopePtr * [out] ((|response|))
opt void * [in, out] ((|opt|))
Returns:
Error Code


Function Documentation

int OpenSOAPServiceCreateMB OpenSOAPServicePtr srv,
const char *  srv_name,
const char *  connect_type,
int  is_loop,
  ...
 

Create An OpenSOAP Service(MB).

Parameters:
srv OpenSOAPServicePtr * [out] ((|srv|)) OpenSOAP Service pointer
srv_name const char * [in] ((|srv_name|)) Service Type
connect_type const char * [in] ((|connect_type|)) Connection Type [stdio|cgi]
is_loop int [in] ((|is_loop|))
Returns:
Error Code

int OpenSOAPServiceCreateWC OpenSOAPServicePtr srv,
const wchar_t *  srv_name,
const char *  connect_type,
int  is_loop,
  ...
 

Create An OpenSOAP Service(WC).

Parameters:
srv OpenSOAPServicePtr * [out] ((|srv|)) OpenSOAP Service pointer
srv_name const wchar_t * [in] ((|srv_name|)) Service Type
connect_type const wchar_t * [in] ((|connect_type|)) Connection Type [stdio|cgi]
is_loop int [in] ((|is_loop|))
Returns:
Error Code

int OpenSOAPServiceRegisterMB OpenSOAPServicePtr  srv,
const char *  name,
OpenSOAPServiceFuncPtr  func,
void *  opt
 

Register OpenSOAP Service.

Parameters:
srv OpenSOAPServicePtr [in] ((|srv|)) OpenSOAP Service
name const char * [in, out] ((|name|)) service function name
func OpenSOAPServiceFuncPtr [in] ((|func|)) service function pointer
opt void * [in] ((|opt|)) service function option parameter
Returns:
Error Code
Note:
In OpenSOAPServiceRun function, if service function name is equal to ((|name|)), then call func(request_env, response_env, opt) and return value is FAILED, stop OpenSOAPServiceRun and return func's return value.

int OpenSOAPServiceRegisterWC OpenSOAPServicePtr  srv,
const wchar_t *  name,
OpenSOAPServiceFuncPtr  func,
void *  opt
 

Register OpenSOAP Service.

Parameters:
srv OpenSOAPServicePtr [in] ((|srv|)) OpenSOAP Service
name const wchar_t * [in, out] ((|name|)) service function name
func OpenSOAPServiceFuncPtr [in] ((|func|)) service function pointer
opt void * [in] ((|opt|)) service function option parameter
Returns:
Error Code
Note:
In OpenSOAPServiceRun function, if service function name is equal to ((|name|)), then call func(request_env, response_env, opt) and return value is FAILED, stop OpenSOAPServiceRun and return func's return value.

int OpenSOAPServiceRelease OpenSOAPServicePtr  srv  ) 
 

Release an OpenSOAP Service.

Parameters:
srv OpenSOAPServicePtr [in, out] ((|srv|)) OpenSOAP Service
Returns:
Error Code

int OpenSOAPServiceRun OpenSOAPServicePtr  srv  ) 
 

Execute OpenSOAP Service.

Parameters:
srv OpenSOAPServicePtr [in, out] ((|srv|)) OpenSOAP Service
Returns:
Error Code


Generated on Mon Oct 18 18:29:44 2004 for OpenSOAP by doxygen 1.3.6