The UPnP Media Renderer
UPnP Media Renderer's structure and behaviour
Control section
The control section is used to receive the SOAP requests containing the actions to be performed by the Media Renderer. The SOAP protocol uses HTTP. The default TCP port used by the device is the 4004. All the SOAP actions received from the Control Point are managed by the actionControlReceived method in the main class of the renderer. Here below you can see a pretty-print of a SOAP request for the play action.
=====================================================================================
Incoming HTTP request:
-------------------------------------------------------------------------------------
POST /upnp/control/avtransport/ HTTP/1.1
User-Agent: uhttp/0.6 libuhttp++/0.6
Accept: */*
Content-Type: text/xml; charset="utf-8"
HOST: 192.168.1.103:4004
Content-Length: 317
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Play"
Connection: close
0
=====================================================================================
Figure 4: SOAP request containing the play action into the body