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. Web services library qtsoap
QtWS25 Last Chance

Web services library qtsoap

Scheduled Pinned Locked Moved Solved General and Desktop
qtsoap
4 Posts 2 Posters 1.0k 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.
  • T Offline
    T Offline
    threecam
    wrote on 6 Apr 2016, 14:40 last edited by
    #1

    Hi, hope you can help me. I'm trying to integrate a SOAP service with the qtsoap library. I tried a basic example and it works correctly.

    // Submit the request the the web service.
    http.setAction("http://ws.cdyne.com/WeatherWS/GetCityWeatherByZIP");
    http.setHost("wsf.cdyne.com");

    // Set the method and add one argument.
    QtSoapMessage request;
    request.setMethod(QtSoapQName("GetCityWeatherByZIP", "http://ws.cdyne.com/WeatherWS/"));
    request.addMethodArgument("ZIP", "http://ws.cdyne.com/WeatherWS/", "90210");

    http.submitRequest(request, "/WeatherWS/Weather.asmx");
    qDebug("Looking up population of %s...", "es");

    However, when I try to test with another type of web service as it does not work. Making the call tells me that the SOAP structure is not correct.

    I leave the example code if I can help.

    https://bitbucket.org/kapsule/testsoap

    Thanks,

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Apr 2016, 21:59 last edited by
      #2

      Hi and welcome to devnet,

      What do you mean by "another type of web service" ?

      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
      0
      • T Offline
        T Offline
        threecam
        wrote on 15 Apr 2016, 21:03 last edited by
        #3

        @SGaist said:

        Hi and welcome to devnet,

        What do you mean by "another type of web service" ?

        Hi @SGaist ,

        Sorry for the delay. Finally now I have been able to fix it. Thanks a lot.

        Thanks.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Apr 2016, 21:30 last edited by
          #4

          What was the problem ?

          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
          0

          • Login

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