|
a/libupnpp/soaphelp.cxx |
|
b/libupnpp/soaphelp.cxx |
|
... |
|
... |
41 |
ixmlNode_getFirstChild((IXML_Node *)actReq);
|
41 |
ixmlNode_getFirstChild((IXML_Node *)actReq);
|
42 |
if (topNode == 0) {
|
42 |
if (topNode == 0) {
|
43 |
cerr << "decodeSoap: Empty Action request (no topNode) ??" << endl;
|
43 |
cerr << "decodeSoap: Empty Action request (no topNode) ??" << endl;
|
44 |
return false;
|
44 |
return false;
|
45 |
}
|
45 |
}
|
46 |
//cerr << "decodeSoap: top node name: " << ixmlNode_getNodeName(topNode)
|
46 |
// cerr << "decodeSoap: top node name: " << ixmlNode_getNodeName(topNode)
|
47 |
//<< endl;
|
47 |
// << endl;
|
48 |
|
48 |
|
49 |
nl = ixmlNode_getChildNodes(topNode);
|
49 |
nl = ixmlNode_getChildNodes(topNode);
|
50 |
if (nl == 0) {
|
50 |
if (nl == 0) {
|
51 |
cerr << "decodeSoap: empty Action request (no childs) ??" << endl;
|
51 |
// cerr << "decodeSoap: empty Action request (no childs)" << endl;
|
52 |
// Ok actually, there are no args
|
52 |
// Ok actually, there are no args
|
53 |
return true;
|
53 |
return true;
|
54 |
}
|
54 |
}
|
|
|
55 |
// cerr << "decodeSoap: childnodes list length: " << ixmlNodeList_length(nl)
|
|
|
56 |
// << endl;
|
|
|
57 |
|
55 |
for (unsigned long i = 0; i < ixmlNodeList_length(nl); i++) {
|
58 |
for (unsigned long i = 0; i < ixmlNodeList_length(nl); i++) {
|
56 |
IXML_Node *cld = ixmlNodeList_item(nl, i);
|
59 |
IXML_Node *cld = ixmlNodeList_item(nl, i);
|
57 |
if (cld == 0) {
|
60 |
if (cld == 0) {
|
58 |
cerr << "decodeSoap: got null node from nodelist??" << endl;
|
61 |
// cerr << "decodeSoap: got null node from nodelist at index " <<
|
|
|
62 |
// i << " ??" << endl;
|
|
|
63 |
// Seems to happen with empty arg list?? This looks like a bug,
|
|
|
64 |
// should we not get an empty node instead?
|
|
|
65 |
if (i == 0) {
|
|
|
66 |
ret = true;
|
|
|
67 |
}
|
59 |
goto out;
|
68 |
goto out;
|
60 |
}
|
69 |
}
|
61 |
const char *name = ixmlNode_getNodeName(cld);
|
70 |
const char *name = ixmlNode_getNodeName(cld);
|
62 |
if (cld == 0) {
|
71 |
if (cld == 0) {
|
63 |
cerr << "decodeSoap: got null name ??:" <<
|
72 |
cerr << "decodeSoap: got null name ??:" <<
|