Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Web services library qtsoap

    General and Desktop
    qtsoap
    2
    4
    775
    Loading More Posts
    • 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.
    • threecam
      threecam last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • threecam
          threecam last edited by

          @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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post