Use a network sniffer like ethereal to find out what data is sent over network, really.
(It helps to be sure that you actually send and receive correctly formatted xml and the reply matches your expectations.)
HTH
Use a network sniffer like ethereal to find out what data is sent over network, really.
(It helps to be sure that you actually send and receive correctly formatted xml and the reply matches your expectations.)
HTH
Thanks for the pointer. I just tried doing that wireshark and fail miserable primarily because I donot know what I should be looking for. Wireshark spitted out loads of information. What do I look for and where? Any pointers?
I am still wondering if my way of passing xml over the network is wrong? Should I be doing it some other way?
try maybe to print the reply data with qDebug() or to some QTextBrowser or something to see how it looks like.
I would like to be a "Guru"
Useful hints (try them before asking):
- Use Qt Assistant
- Search the forum
If you haven't found solution yet then create new topic with smart question.
That is exactly what readXml() does. It takes the QNetworkReply and creates a QXmlStreamReader out of it and then parses it. The xml looks like this -
Qt Code:
<response status="fail"> <error>Incorrectly formatted xml</error> </response>To copy to clipboard, switch view to plain text mode
For the sake of completeness, if I post the same xml using curl commandline, it works great and gives me the correct response as well.
Bookmarks