Results 1 to 2 of 2

Thread: Document/literal Soap Message..

  1. #1
    Join Date
    Jun 2007
    Location
    italy
    Posts
    126
    Thanks
    15
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Document/literal Soap Message..

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Document/literal Soap Message..

    QtSoap module only supports one encoding.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. SOAP message
    By rohan_m_e in forum Qt Programming
    Replies: 2
    Last Post: 3rd December 2008, 09:01
  2. Replies: 4
    Last Post: 12th October 2008, 13:47
  3. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34
  4. treewidget and a message system
    By alisami in forum Qt Programming
    Replies: 7
    Last Post: 27th July 2008, 18:05
  5. statusBar() message color change
    By mclark in forum Qt Programming
    Replies: 2
    Last Post: 7th August 2007, 23:20

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.