Results 1 to 10 of 10

Thread: QtSoap and .NET urgently need help

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Join Date
    Aug 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QtSoap and .NET urgently need help

    As my code below, I already have QDomDocument then How can I convert to QtSoapStruct. Other one that I tried to create QtSoapStruct as sample in qtsoap document. When I display the value I did not see any value as insertion on each item.
    Please see below "Start QtSoapStruct"

    ------ Start QDomDocument and How to convert to QtSoapStruct--------
    Qt Code:
    1. QDomDocument doc("");
    2. QDomElement sub01 = doc.createElement("Control xmlns=''");
    3. doc.appendChild(sub01);
    4.  
    5. // TransactionType
    6. QDomElement tag01 = doc.createElement("TT");
    7. sub01.appendChild(tag01);
    8. QDomText _tag01 = doc.createTextNode("100");
    9. tag01.appendChild(_tag01);
    10.  
    11. // TransactionReverse
    12. QDomElement tag02 = doc.createElement("TR");
    13. sub01.appendChild(tag02);
    14. QDomText _tag02 = doc.createTextNode("O01");
    15. tag02.appendChild(_tag02);
    16.  
    17. // TransactionEvent
    18. QDomElement tag03 = doc.createElement("TE");
    19. sub01.appendChild(tag03);
    20. QDomText _tag03 = doc.createTextNode("ACK");
    21. tag03.appendChild(_tag03);
    22.  
    23. QString xmlRequest = doc.toString();
    To copy to clipboard, switch view to plain text mode 

    ----------End QDomDocument----------


    ------------Start QtSoapStruct. Did not display and value from insertion-----------
    Qt Code:
    1. QtSoapStruct myStruct(QtSoapQName("xxx"));
    2. myStruct.insert(new QtSoapSimpleType(QtSoapQName("item1"), 5));
    3. myStruct.toDomElement(Noo);
    4. myStruct.insert(new QtSoapSimpleType(QtSoapQName("item2"), "hello"));
    5. myStruct.toDomElement(Noo);
    6. myStruct.insert(new QtSoapSimpleType(QtSoapQName("item3"), true));
    7. myStruct.toDomElement(Noo);
    8.  
    9. QString xml = Noo.toString();
    10.  
    11. qDebug() << xml;
    To copy to clipboard, switch view to plain text mode 
    --------------End QtSoapStruct----------------
    Last edited by wysota; 30th October 2009 at 09:35. Reason: missing [code] tags

Similar Threads

  1. qtsoap with .net webservice
    By drbergie in forum Qt Programming
    Replies: 11
    Last Post: 12th February 2009, 08:46
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41
  5. Qt and .NET
    By Brandybuck in forum Qt Programming
    Replies: 6
    Last Post: 6th July 2006, 01:01

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
  •  
Qt is a trademark of The Qt Company.