Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. GSoap and Qt
Forum Updated to NodeBB v4.3 + New Features

GSoap and Qt

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
4 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mssmM Offline
    mssmM Offline
    mssm
    wrote on last edited by
    #1

    Re: GSoap integration into Qt

    Hi, that topic was too old so I start a new one.
    So far I successfully tested KDSOAP with Qt. Compared to gSoap it has the advantage of having native Qt containers and additional asynchronous calls using signals/slots.

    But now I found that KDSOAP is not complete and has no support for WS-Security. gSoap should support that, so I think about switching some existing code to from KDSOAP to gSoap.

    gSoap can at least generate STL containers so I would still need some type conversion. But what about the asynchronous calls? What way would be recommended to create a generic wrapper around gSoap to have signals/slots instead of blocking function calls?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      I haven't used gsoap in a long time, but from what I remember it doesn't have 2 way asynchronous calling. So to emulate a signal/slot type mechanic you are stuck with blocking calls and threads.

      Of course while it's in a blocking call if you wanted to stop the threads you wouldn't be able to and would have to kill them.

      Disclaimer: I don't remember fully though so this is just a hint as I may be completely wrong. :)

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      0
      • mssmM Offline
        mssmM Offline
        mssm
        wrote on last edited by mssm
        #3

        Using threads was my guess too. Of course the thread using a blocking gSoap call is still blocking inside the thread.

        As KDSOAP is fully Qt based I guess it's using QNetworkRequest internally, but how is that asynchronous? Does Qt also use Threads internally to keep track of a connection without blocking?

        Is there any design pattern how to create generic threads with signals around some blocking framework? This shouldn't only apply to gSoap but also other Libraries.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          It usually depends on how the library itself works. You can queue "commands" you want the library to execute and your thread can execute them one after the other, or you can use QtConcurrent which is higher level thread management.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved