|
a/libupnpp/control/service.cxx |
|
b/libupnpp/control/service.cxx |
|
... |
|
... |
177 |
|
177 |
|
178 |
int ret = UpnpSendAction(hdl, m->actionURL.c_str(), m->serviceType.c_str(),
|
178 |
int ret = UpnpSendAction(hdl, m->actionURL.c_str(), m->serviceType.c_str(),
|
179 |
0 /*devUDN*/, request, &response);
|
179 |
0 /*devUDN*/, request, &response);
|
180 |
|
180 |
|
181 |
if (ret != UPNP_E_SUCCESS) {
|
181 |
if (ret != UPNP_E_SUCCESS) {
|
|
|
182 |
if (ret < 0) {
|
182 |
LOGINF("Service::runAction: UpnpSendAction failed: " << ret <<
|
183 |
LOGINF("Service::runAction: UpnpSendAction failed: " << ret <<
|
183 |
" : " << UpnpGetErrorMessage(ret) << " for " <<
|
184 |
" : " << UpnpGetErrorMessage(ret) << " for " <<
|
184 |
ixmlwPrintDoc(request) << endl);
|
185 |
ixmlwPrintDoc(request) << endl);
|
|
|
186 |
} else {
|
|
|
187 |
// A remote error then
|
|
|
188 |
SoapIncoming error;
|
|
|
189 |
error.decode("UPnPError", response);
|
|
|
190 |
int code = -1;
|
|
|
191 |
string desc;
|
|
|
192 |
error.get("errorCode", &code);
|
|
|
193 |
error.get("errorDescription", &desc);
|
|
|
194 |
LOGINF("Service::runAction: failed: errcode: " << code << " : \""
|
|
|
195 |
<< desc << "\" for request: " <<
|
|
|
196 |
ixmlwPrintDoc(request) << endl);
|
|
|
197 |
}
|
185 |
return ret;
|
198 |
return ret;
|
186 |
}
|
199 |
}
|
187 |
LOGDEB1("Service::runAction: rslt: [" <<
|
200 |
LOGDEB1("Service::runAction: rslt: [" <<
|
188 |
ixmlwPrintDoc(response) << "]" << endl);
|
201 |
ixmlwPrintDoc(response) << "]" << endl);
|
189 |
|
202 |
|