mUPnP for C
soap.h File Reference
#include <mupnp/typedef.h>
#include <mupnp/http/http.h>
#include <mupnp/xml/xml.h>

Data Structures

struct  _mUpnpSoapResponse
 
struct  _mUpnpSoapRequest
 

Macros

#define MUPNP_SOAP_VERSION_HEADER   "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
 
#define MUPNP_HTTP_SOAP_ACTION   "SOAPACTION"
 
#define MUPNP_HTTP_SOAP_URN_DELIM   ":"
 
#define MUPNP_SOAP_ENVELOPE   "Envelope"
 
#define MUPNP_SOAP_BODY   "Body"
 
#define MUPNP_SOAP_RESPONSE   "Response"
 
#define MUPNP_SOAP_FAULT   "Fault"
 
#define MUPNP_SOAP_FAULT_CODE   "faultcode"
 
#define MUPNP_SOAP_FAULT_STRING   "faultstring"
 
#define MUPNP_SOAP_FAULTACTOR   "faultactor"
 
#define MUPNP_SOAP_DETAIL   "detail"
 
#define MUPNP_SOAP_ATTRIBUTE_XMLNS   "xmlns"
 
#define MUPNP_SOAP_XMLNS   "s"
 
#define MUPNP_SOAP_METHODNS   "u"
 
#define MUPNP_SOAP_DELIM   ":"
 
#define MUPNP_SOAP_XMLNS_URL   "http://schemas.xmlsoap.org/soap/envelope/"
 
#define MUPNP_SOAP_ENCSTYLE_URL   "http://schemas.xmlsoap.org/soap/encoding/"
 
#define MUPNP_SOAP_CONTENT_TYPE   "text/xml; charset=\"utf-8\""
 
#define MUPNP_SOAP_ENCORDING   "encodingStyle"
 
#define mupnp_soap_request_gethttprequest(soapReq)
 
#define mupnp_soap_request_setsoapaction(soapReq, name)
 
#define mupnp_soap_request_getsoapaction(soapReq)
 
#define mupnp_soap_request_getsoapactionwithns(soapReq)
 
#define mupnp_soap_request_getsoapresponse(soapReq)
 
#define mupnp_soap_request_getrootnoodelist(soapReq)
 
#define mupnp_soap_request_getrootnoode(soapReq)
 
#define mupnp_soap_request_getenvelopenode(soapReq)
 
#define mupnp_soap_request_createcontent(soapReq)
 
#define mupnp_soap_request_setuserdata(soapReq, value)
 
#define mupnp_soap_request_getuserdata(soapReq)
 
#define mupnp_soap_response_gethttpresponse(soapRes)
 
#define mupnp_soap_response_getrootnoodelist(soapRes)
 
#define mupnp_soap_response_getrootnoode(soapRes)
 
#define mupnp_soap_response_getenvelopenode(soapRes)
 
#define mupnp_soap_response_createcontent(soapRes)
 
#define mupnp_soap_response_getstatuscode(soapRes)
 
#define mupnp_soap_response_issuccessful(soapRes)
 
#define mupnp_soap_response_setuserdata(soapRes, value)
 
#define mupnp_soap_response_getuserdata(soapRes)
 

Typedefs

typedef struct _mUpnpSoapResponse mUpnpSoapResponse
 
typedef struct _mUpnpSoapRequest mUpnpSoapRequest
 

Functions

mUpnpSoapRequestmupnp_soap_request_new (void)
 
void mupnp_soap_request_delete (mUpnpSoapRequest *soapReq)
 
void mupnp_soap_request_clear (mUpnpSoapRequest *soapReq)
 
bool mupnp_soap_request_sethttprequest (mUpnpSoapRequest *soapReq, mUpnpHttpRequest *httpReq)
 
bool mupnp_soap_request_parsemessage (mUpnpSoapRequest *soapReq, char *msg, size_t msgLen)
 
mUpnpSoapResponsemupnp_soap_request_post (mUpnpSoapRequest *soapReq, const char *ipaddr, int port)
 
mUpnpXmlNodemupnp_soap_request_getbodynode (mUpnpSoapRequest *soapReq)
 
void mupnp_soap_request_setcontent (mUpnpSoapRequest *soapReq, mUpnpXmlNode *node)
 
mUpnpSoapResponsemupnp_soap_response_new (void)
 
void mupnp_soap_response_delete (mUpnpSoapResponse *soapRes)
 
void mupnp_soap_response_clear (mUpnpSoapResponse *soapRes)
 
void mupnp_soap_response_sethttpresponse (mUpnpSoapResponse *soapRes, mUpnpHttpResponse *httpRes)
 
mUpnpXmlNodemupnp_soap_response_getbodynode (mUpnpSoapResponse *soapRes)
 
void mupnp_soap_response_setcontent (mUpnpSoapResponse *soapRes, mUpnpXmlNode *node)
 
mUpnpXmlNodemupnp_soap_createenvelopebodynode (void)
 

Macro Definition Documentation

◆ MUPNP_HTTP_SOAP_ACTION

#define MUPNP_HTTP_SOAP_ACTION   "SOAPACTION"

◆ MUPNP_HTTP_SOAP_URN_DELIM

#define MUPNP_HTTP_SOAP_URN_DELIM   ":"

◆ MUPNP_SOAP_ATTRIBUTE_XMLNS

#define MUPNP_SOAP_ATTRIBUTE_XMLNS   "xmlns"

◆ MUPNP_SOAP_BODY

#define MUPNP_SOAP_BODY   "Body"

◆ MUPNP_SOAP_CONTENT_TYPE

#define MUPNP_SOAP_CONTENT_TYPE   "text/xml; charset=\"utf-8\""

◆ MUPNP_SOAP_DELIM

#define MUPNP_SOAP_DELIM   ":"

◆ MUPNP_SOAP_DETAIL

#define MUPNP_SOAP_DETAIL   "detail"

◆ MUPNP_SOAP_ENCORDING

#define MUPNP_SOAP_ENCORDING   "encodingStyle"

◆ MUPNP_SOAP_ENCSTYLE_URL

#define MUPNP_SOAP_ENCSTYLE_URL   "http://schemas.xmlsoap.org/soap/encoding/"

◆ MUPNP_SOAP_ENVELOPE

#define MUPNP_SOAP_ENVELOPE   "Envelope"

◆ MUPNP_SOAP_FAULT

#define MUPNP_SOAP_FAULT   "Fault"

◆ MUPNP_SOAP_FAULT_CODE

#define MUPNP_SOAP_FAULT_CODE   "faultcode"

◆ MUPNP_SOAP_FAULT_STRING

#define MUPNP_SOAP_FAULT_STRING   "faultstring"

◆ MUPNP_SOAP_FAULTACTOR

#define MUPNP_SOAP_FAULTACTOR   "faultactor"

◆ MUPNP_SOAP_METHODNS

#define MUPNP_SOAP_METHODNS   "u"

◆ mupnp_soap_request_createcontent

#define mupnp_soap_request_createcontent ( soapReq)
Value:
#define mupnp_soap_request_getenvelopenode(soapReq)
Definition soap.h:93
void mupnp_soap_request_setcontent(mUpnpSoapRequest *soapReq, mUpnpXmlNode *node)
Definition soap_request.c:272

◆ mupnp_soap_request_getenvelopenode

#define mupnp_soap_request_getenvelopenode ( soapReq)
Value:
mupnp_xml_nodelist_gets(soapReq->rootNodeList)
#define mupnp_xml_nodelist_gets(nodeList)
Definition xml.h:103

◆ mupnp_soap_request_gethttprequest

#define mupnp_soap_request_gethttprequest ( soapReq)
Value:
(soapReq->httpReq)

◆ mupnp_soap_request_getrootnoode

#define mupnp_soap_request_getrootnoode ( soapReq)
Value:
mupnp_xml_nodelist_gets(soapReq->rootNodeList)

◆ mupnp_soap_request_getrootnoodelist

#define mupnp_soap_request_getrootnoodelist ( soapReq)
Value:
(soapReq->rootNodeList)

◆ mupnp_soap_request_getsoapaction

#define mupnp_soap_request_getsoapaction ( soapReq)
Value:
const char * mupnp_http_packet_getheadervalue(mUpnpHttpPacket *httpPkt, const char *name)
Definition http_packet.c:179
#define MUPNP_HTTP_SOAP_ACTION
Definition soap.h:29
Definition http.h:178

◆ mupnp_soap_request_getsoapactionwithns

#define mupnp_soap_request_getsoapactionwithns ( soapReq)
Value:
#define MUPNP_HTTP_SOAP_ACTION_WITH_NS
Definition http.h:94

◆ mupnp_soap_request_getsoapresponse

#define mupnp_soap_request_getsoapresponse ( soapReq)
Value:
(soapReq->soapRes)

◆ mupnp_soap_request_getuserdata

#define mupnp_soap_request_getuserdata ( soapReq)
Value:
(soapReq->userData)

◆ mupnp_soap_request_setsoapaction

#define mupnp_soap_request_setsoapaction ( soapReq,
name )
Value:
void mupnp_http_packet_setheadervalue(mUpnpHttpPacket *httpPkt, const char *name, const char *value)
Definition http_packet.c:106

◆ mupnp_soap_request_setuserdata

#define mupnp_soap_request_setuserdata ( soapReq,
value )
Value:
(soapReq->userData = value)

◆ MUPNP_SOAP_RESPONSE

#define MUPNP_SOAP_RESPONSE   "Response"

◆ mupnp_soap_response_createcontent

#define mupnp_soap_response_createcontent ( soapRes)
Value:
#define mupnp_soap_response_getenvelopenode(soapRes)
Definition soap.h:116
void mupnp_soap_response_setcontent(mUpnpSoapResponse *soapRes, mUpnpXmlNode *node)
Definition soap_response.c:119

◆ mupnp_soap_response_getenvelopenode

#define mupnp_soap_response_getenvelopenode ( soapRes)
Value:
mupnp_xml_nodelist_gets(soapRes->rootNodeList);

◆ mupnp_soap_response_gethttpresponse

#define mupnp_soap_response_gethttpresponse ( soapRes)
Value:
(soapRes->httpRes)

◆ mupnp_soap_response_getrootnoode

#define mupnp_soap_response_getrootnoode ( soapRes)
Value:
mupnp_xml_nodelist_gets(soapRes->rootNodeList);

◆ mupnp_soap_response_getrootnoodelist

#define mupnp_soap_response_getrootnoodelist ( soapRes)
Value:
(soapRes->rootNodeList);

◆ mupnp_soap_response_getstatuscode

#define mupnp_soap_response_getstatuscode ( soapRes)
Value:
int mupnp_http_response_getstatuscode(mUpnpHttpResponse *httpRes)
Definition http_response.c:123

◆ mupnp_soap_response_getuserdata

#define mupnp_soap_response_getuserdata ( soapRes)
Value:
(soapRes->userData)

◆ mupnp_soap_response_issuccessful

#define mupnp_soap_response_issuccessful ( soapRes)
Value:
#define mupnp_http_response_issuccessful(httpRes)
Definition http.h:452

◆ mupnp_soap_response_setuserdata

#define mupnp_soap_response_setuserdata ( soapRes,
value )
Value:
(soapRes->userData = value)

◆ MUPNP_SOAP_VERSION_HEADER

#define MUPNP_SOAP_VERSION_HEADER   "<?xml version=\"1.0\" encoding=\"utf-8\"?>"

◆ MUPNP_SOAP_XMLNS

#define MUPNP_SOAP_XMLNS   "s"

◆ MUPNP_SOAP_XMLNS_URL

#define MUPNP_SOAP_XMLNS_URL   "http://schemas.xmlsoap.org/soap/envelope/"

Typedef Documentation

◆ mUpnpSoapRequest

◆ mUpnpSoapResponse

Function Documentation

◆ mupnp_soap_createenvelopebodynode()

mUpnpXmlNode * mupnp_soap_createenvelopebodynode ( void )

◆ mupnp_soap_request_clear()

void mupnp_soap_request_clear ( mUpnpSoapRequest * soapReq)

◆ mupnp_soap_request_delete()

void mupnp_soap_request_delete ( mUpnpSoapRequest * soapReq)

◆ mupnp_soap_request_getbodynode()

mUpnpXmlNode * mupnp_soap_request_getbodynode ( mUpnpSoapRequest * soapReq)

◆ mupnp_soap_request_new()

mUpnpSoapRequest * mupnp_soap_request_new ( void )

◆ mupnp_soap_request_parsemessage()

bool mupnp_soap_request_parsemessage ( mUpnpSoapRequest * soapReq,
char * msg,
size_t msgLen )

◆ mupnp_soap_request_post()

mUpnpSoapResponse * mupnp_soap_request_post ( mUpnpSoapRequest * soapReq,
const char * ipaddr,
int port )

◆ mupnp_soap_request_setcontent()

void mupnp_soap_request_setcontent ( mUpnpSoapRequest * soapReq,
mUpnpXmlNode * node )

◆ mupnp_soap_request_sethttprequest()

bool mupnp_soap_request_sethttprequest ( mUpnpSoapRequest * soapReq,
mUpnpHttpRequest * httpReq )

◆ mupnp_soap_response_clear()

void mupnp_soap_response_clear ( mUpnpSoapResponse * soapRes)

◆ mupnp_soap_response_delete()

void mupnp_soap_response_delete ( mUpnpSoapResponse * soapRes)

◆ mupnp_soap_response_getbodynode()

mUpnpXmlNode * mupnp_soap_response_getbodynode ( mUpnpSoapResponse * soapRes)

◆ mupnp_soap_response_new()

mUpnpSoapResponse * mupnp_soap_response_new ( void )

◆ mupnp_soap_response_setcontent()

void mupnp_soap_response_setcontent ( mUpnpSoapResponse * soapRes,
mUpnpXmlNode * node )

◆ mupnp_soap_response_sethttpresponse()

void mupnp_soap_response_sethttpresponse ( mUpnpSoapResponse * soapRes,
mUpnpHttpResponse * httpRes )