|
a/libupnpp/device.cxx |
|
b/libupnpp/device.cxx |
|
... |
|
... |
149 |
{
|
149 |
{
|
150 |
switch (et) {
|
150 |
switch (et) {
|
151 |
case UPNP_CONTROL_ACTION_REQUEST:
|
151 |
case UPNP_CONTROL_ACTION_REQUEST:
|
152 |
{
|
152 |
{
|
153 |
struct Upnp_Action_Request *act = (struct Upnp_Action_Request *)evp;
|
153 |
struct Upnp_Action_Request *act = (struct Upnp_Action_Request *)evp;
|
|
|
154 |
DOMString pdoc = ixmlPrintDocument(act->ActionRequest);
|
154 |
LOGDEB("UPNP_CONTROL_ACTION_REQUEST: " << act->ActionName <<
|
155 |
LOGDEB("UPNP_CONTROL_ACTION_REQUEST: " << act->ActionName <<
|
155 |
". Params: " << ixmlPrintDocument(act->ActionRequest) << endl);
|
156 |
". Params: " << pdoc << endl);
|
|
|
157 |
ixmlFreeDOMString(pdoc);
|
156 |
|
158 |
|
157 |
unordered_map<string, UpnpService*>::const_iterator servit =
|
159 |
unordered_map<string, UpnpService*>::const_iterator servit =
|
158 |
m_servicemap.find(act->ServiceID);
|
160 |
m_servicemap.find(act->ServiceID);
|
159 |
if (servit == m_servicemap.end()) {
|
161 |
if (servit == m_servicemap.end()) {
|
160 |
LOGERR("Bad serviceID" << endl);
|
162 |
LOGERR("Bad serviceID" << endl);
|
|
... |
|
... |
185 |
return ret;
|
187 |
return ret;
|
186 |
}
|
188 |
}
|
187 |
|
189 |
|
188 |
// Encode result data
|
190 |
// Encode result data
|
189 |
act->ActionResult = buildSoapBody(dt);
|
191 |
act->ActionResult = buildSoapBody(dt);
|
|
|
192 |
|
|
|
193 |
//{DOMString pdoc = ixmlPrintDocument(act->ActionResult);
|
190 |
//LOGDEB("Response data: " <<
|
194 |
//LOGDEB("Response data: " << pdoc << endl);
|
191 |
// ixmlPrintDocument(act->ActionResult) << endl);
|
195 |
//ixmlFreeDOMString(pdoc);
|
|
|
196 |
//}
|
192 |
|
197 |
|
193 |
return ret;
|
198 |
return ret;
|
194 |
}
|
199 |
}
|
195 |
break;
|
200 |
break;
|
196 |
|
201 |
|