Results 1 to 9 of 9

Thread: Calling a webservice

  1. #1
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Calling a webservice

    Hi,

    Has anybody called a webservice up from Qt? I've normally done this in the .NET environment which makes it very easy to do, also do this using java using AXIS.

    Regards,
    Steve

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Calling a webservice

    Quote Originally Posted by steg90 View Post
    Hi,
    Has anybody called a webservice up from Qt? I've normally done this in the .NET environment which makes it very easy to do, also do this using java using AXIS.
    Steve
    I dont know waht is .NET environment, if not cross-platform i dont like...

    but i call many webservice client server ... waht exact you want to call....
    wddx , xml-rpc, ssh, webdav, lua on c++r?

  3. #3
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Calling a webservice

    You don't know what .NET is? Well, it isn't cross-platform.

    I just want to call a webserver, usually over SOAP.

    Regards,
    Steve

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Calling a webservice

    I don't know much about such netowork protocols, but if SOAP is "riding" on HTTP, then you should look up the QHttp class and co.
    Ofcrouse, in general you will have to use the QTcpSocket for the connection it self.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  5. The following user says thank you to high_flyer for this useful post:

    steg90 (23rd May 2007)

  6. #5
    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: Calling a webservice

    There are two entries in our contest related to XML-RPC. Maybe you should contact their authors and use their solutions instead of reinventing the wheel.

  7. #6
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Calling a webservice

    Hi,

    I don't want to re-invent the wheel, are the entries not doing that? XML-RPC been around for a very, very long time. I just wanted to know if QT supported any classes that made calling a webservice easier.

    Kind regards,
    Steve

  8. #7
    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: Calling a webservice

    They are introducing XML-RPC support for Qt.

  9. #8
    Join Date
    May 2007
    Posts
    301
    Thanks
    46
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Calling a webservice

    Ok, sounds good, thanks.

  10. #9
    Join Date
    Dec 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Calling a webservice

    Hi,

    you might also want to take a look at this:
    http://www.clausmark.com/feast_en.phtml

    FEAST can also be used in a pure client role. The advantage over Qt SOAP is that is supports generating the client (and server) code based on the WSDL description (that you should get from the SOAP server). That way you don't have to worry about the details of the SOAP implementation. You will get a normal function that you can call from your client.
    The generation of the SOAP envelope, serialization, de-serialization and mapping of Qt types to and from SOAP types are handled by FEAST.

    /Niklas

Similar Threads

  1. Calling Recursivly loading function in Run() method of QThread
    By santosh.kumar in forum Qt Programming
    Replies: 2
    Last Post: 15th May 2007, 14:42
  2. Calling Webservices from QT4
    By Declan in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2007, 08:04
  3. Replies: 4
    Last Post: 10th March 2007, 18:01
  4. Replies: 5
    Last Post: 6th March 2007, 05:34
  5. Problems calling C function in C++/Qt class
    By Rayven in forum General Programming
    Replies: 2
    Last Post: 2nd June 2006, 21:32

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.