Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GSoap integration into Qt
QtWS25 Last Chance

GSoap integration into Qt

Scheduled Pinned Locked Moved General and Desktop
15 Posts 7 Posters 15.5k Views
  • 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.
  • G Offline
    G Offline
    giesbert
    wrote on 29 Mar 2011, 11:01 last edited by
    #6

    perhaps it's easy:

    it says undefined reference, which means, you don't link against a lib that implements soap_new or you include a header that reference it but don use the cpp file.

    Please check this.

    Nokia Certified Qt Specialist.
    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

    1 Reply Last reply
    0
    • A Offline
      A Offline
      awasay
      wrote on 29 Mar 2011, 11:06 last edited by
      #7

      Volker

      Thank you :)

      As you know, I am new and it completely slipped my mind that I should mention the platform as well (and I don't mind being told off for stuff like this). I have added a new line to my .pro file

      @LIBS += C:\NokiaQtSDK\mingw\lib\libws2_32.a@

      Still the error persists. I am going to look into the pkg-config thing. I have a feeling that the problem lies in there. Because I think the soap_* undefined problem stems from there.

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on 29 Mar 2011, 11:12 last edited by
        #8

        And reading README and INSTALL text files of the libraries you use can also help:

        [quote]README.txt:

        To compile a client, all you need to do is to compile and link 'soapC.cpp', 'soapClient.cpp', and 'stdsoap2.cpp' (or the installed libgsoap++, see INSTALLATION below) with your code. [/quote]

        [quote]INSTALL.txt:

        You also need the following libraries (built from stdsoap2.c[pp]):
        @
        libgsoap++.a C++ runtime
        libgsoapck++.a C++ runtime with HTTP cookie support
        libgsoapssl++.a C++ runtime with cookies, zlib, and SSL
        libgsoap.a C runtime
        libgsoapck.a C runtime with HTTP cookie support
        libgsoapssl.a C runtime with cookies, zlib, and SSL
        @
        Or you can use the stdsoap2.c and stdsoap2.cpp source directly, but you need to use the propoer -DWITH_X flags to enable support for 'X' (see above).
        [/quote]

        EDIT:
        To complete the things, you should add to your source list in the .pro:

        @
        SOURCES += C:\gsoap-2.8\gsoap\stdsoap2.cpp
        @

        And look for the WITH_XXX defines if you need SSL.

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on 29 Mar 2011, 11:13 last edited by
          #9

          Please give us some more information:

          • Platform (windows, which one)
          • Compiler (mingw?)
          • Qt version (4.7.2?)

          The file you reference may be used by mingw, but not by MSVS. mingw and MSVS may not be mixed.

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yshurik
            wrote on 29 Mar 2011, 11:29 last edited by
            #10

            just interesting, had you a look at QtSoap? may it fit your needs?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on 29 Mar 2011, 11:58 last edited by
              #11

              To top off the comments: I doubt -QtSoap- gSoap will work properly without the network and XML modules of Qt. You might need to add those to your QT line in your .pro file.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                awasay
                wrote on 29 Mar 2011, 12:03 last edited by
                #12

                Gerolf - I am using windows xp and mingw compiler but my original problem has now been resolved. Thank you for your help and time.

                It is my understanding that QtSoap is a paid addition and that support for it is very negligible that is why I was sticking with gSoap.

                Like Volker pointed out the problem was with the pkg_config addition in my original .pro file.

                It was not working. Instead of that I added the stdsoap2.cpp to my sources. The project now compiles. Both methods work, you can either add it like volker did above or you can simply copy paste it into the app folder and then add it to your sources.

                There is a lot of junk in my code due to all the hit and trial. I shall post the minimum requirements to run gSoap once I sort through all of this.

                Please continue this discussion with other problems that you are facing or have faced in the past.

                1 Reply Last reply
                0
                • U Offline
                  U Offline
                  ucomesdag
                  wrote on 29 Mar 2011, 12:16 last edited by
                  #13

                  QtSoap is also released under GPL and part of "QtSolutions":http://qt.gitorious.org/qt-solutions
                  I'm currently using it on a project and it works fine for my needs.
                  Hope it is of any help.

                  Write “Qt”, not “QT” (QuickTime).

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on 29 Mar 2011, 12:25 last edited by
                    #14

                    According to the "Qt Solutions Archive":http://qt.nokia.com/products/qt-addons/solutions-archive/ page at Nokia, the Qt SOAP solution has been "relicensed under the BSD license".

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Smar
                      wrote on 29 Mar 2011, 12:32 last edited by
                      #15

                      [quote author="awasay" date="1301400187"]Gerolf - I am using windows xp and mingw compiler but my original problem has now been resolved. Thank you for your help and time.

                      It is my understanding that QtSoap is a paid addition and that support for it is very negligible that is why I was sticking with gSoap.

                      Like Volker pointed out the problem was with the pkg_config addition in my original .pro file.

                      It was not working. Instead of that I added the stdsoap2.cpp to my sources. The project now compiles. Both methods work, you can either add it like volker did above or you can simply copy paste it into the app folder and then add it to your sources.

                      There is a lot of junk in my code due to all the hit and trial. I shall post the minimum requirements to run gSoap once I sort through all of this.

                      Please continue this discussion with other problems that you are facing or have faced in the past.[/quote]

                      I remember seeing this problem too and solved it by linking the library against binary I’m compiling properly. Maybe those scripts of mine helps about that.

                      Are you using CPP mode or C mode of it? You need link different library regarding which way you are using.

                      EDIT: And yeah, Google has been for me completely useless about gsoap, and their own documentation barely mentions CPP side of this... I basically read the files myself and that way forced it to work... C side works better but it’s very annoying to use.

                      And using QtSoap is viable alternative if it is enough good for one’s needs; for me it was not.

                      1 Reply Last reply
                      0

                      15/15

                      29 Mar 2011, 12:32

                      • Login

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