33 #define HTTP_VERSION "1.1" 35 typedef enum { OSSOAPV1, OSSOAPV2 } OSSoapVersion;
37 typedef struct OSSOAPCONN {
40 OSSoapVersion soapVersion;
45 const char* soapAction;
50 int responseStatusCode;
51 OSUINT32 recvTimeoutSecs;
68 (OSSOAPCONN* pSoapConn,
OSCTXT* pctxt, OSSoapVersion soapv,
const char* url);
79 (
OSRTSOCKET listenSocket, OSSOAPCONN* pSoapConn);
116 (OSSOAPCONN* pSoapConn, OSOCTET** ppbuf);
118 EXTERNRT
int rtxSoapRecvHttpLine
119 (OSSOAPCONN* pSoapConn,
char* lbuf,
size_t lbufsiz);
130 (OSSOAPCONN* pSoapConn,
const OSUTF8CHAR* soapMsg);
143 (OSSOAPCONN* pSoapConn,
const OSUTF8CHAR* soapMsg);
159 EXTERNRT
int rtxHttpParseHdr
160 (OSSOAPCONN* pSoapConn,
const char* key,
const char* value);
163 EXTERNRT
int rtxHttpPost (OSSOAPCONN* pSoapConn,
size_t count);
166 EXTERNRT
int rtxHttpPostHdr
167 (OSSOAPCONN* pSoapConn,
const char* key,
const char* value);
169 EXTERNRT
int rtxHttpTagCmp (
const char *s,
const char *t);
EXTERNRT int rtxSoapSendHttp(OSSOAPCONN *pSoapConn, const OSUTF8CHAR *soapMsg)
This function sends a complete HTTP POST request to a SOAP connection.
EXTERNRT int rtxSoapRecvHttp(OSSOAPCONN *pSoapConn)
This function receives the initial header returned from an HTTP request.
int OSRTSOCKET
Socket handle type definition.
EXTERNRT int rtxSoapRecvHttpContent(OSSOAPCONN *pSoapConn, OSOCTET **ppbuf)
This function receives a complete HTTP response from a SOAP connection.
EXTERNRT int rtxSoapSetReadTimeout(OSSOAPCONN *pSoapConn, OSUINT32 nsecs)
This function sets the read timeout value to the given number of seconds.
EXTERNRT int rtxSoapAcceptConn(OSRTSOCKET listenSocket, OSSOAPCONN *pSoapConn)
This function accepts an incoming connection request and sets up a stream on which to receive message...
EXTERNRT int rtxSoapConnect(OSSOAPCONN *pSoapConn)
This function creates a connection to a SOAP endpoint.
EXTERNRT int rtxSoapSendHttpResponse(OSSOAPCONN *pSoapConn, const OSUTF8CHAR *soapMsg)
This function sends a SOAP message as an HTTP response.
Run-time context structure.
EXTERNRT int rtxSoapInitConn(OSSOAPCONN *pSoapConn, OSCTXT *pctxt, OSSoapVersion soapv, const char *url)
This function initializes a connection to a SOAP endpoint.
Common runtime constants, data structure definitions, and run-time functions to support various data ...