Hi all,
I have been using without any problem the RPC/encoding Soap message with Qt..

Here, a code snippet to show you how I use it to send request to a web service:

Qt Code:
  1. //I first create my xml request as follows (is an example..)
  2. QDomDocument doc("");
  3. QDomElement root = doc.createElement("request_root");
  4. doc.appendChild(root);
  5.  
  6. QDomElement tag = doc.createElement("first_child");
  7. root.appendChild(tag);
  8. QDomText t = doc.createTextNode("first_value");
  9. tag.appendChild(t);
  10.  
  11. QDomElement tag1 = doc.createElement("second_child");
  12. root.appendChild(tag1);
  13. QDomText t1 = doc.createTextNode(second_value);
  14. tag1.appendChild(t1);
  15.  
  16. // I then get the QString...
  17. QString xmlRequest = doc.toString();
  18.  
  19.  
  20. //I build the soap message as follows:
  21. QtSoapMessage request;
  22. request.setMethod("method_name", "https://service_url");
  23. request.addMethodArgument("message_tag", "", xmlRequest );
  24.  
  25. //
  26. QString requestMessage = request.toXmlString();
  27.  
  28. //and so on posting this to the web service URL..
To copy to clipboard, switch view to plain text mode 


The question is..is there an equivalent way of doing that for Document/Literal SOAP messages???

THX