thanks mate.
so i need to call the request, like this?
http.request( GET, xmlrequest);
I need to have the xml request like this
<request client_id="1" client_serial_number="abcded" version="0.1">
<call name="test.reverse">abc</call>
</request>
but after using this code,
doc.appendChild(root);
QString name
= "teci.test.reverse";
tag.setAttribute(name,value);
root.appendChild(tag);
QString xmlrequest
= doc.
toString();
QDomDocument doc("request");
QDomElement root = doc.createElement("request");
doc.appendChild(root);
QDomElement tag = doc.createElement("call");
QString name = "teci.test.reverse";
QString value = "abc";
tag.setAttribute(name,value);
root.appendChild(tag);
QString xmlrequest = doc.toString();
To copy to clipboard, switch view to plain text mode
i am able to only this.
"<!DOCTYPE request>
<request>
<call test.reverse="abc" />
</request>
can you help me with this?
Bookmarks