Qt Forum

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

    Debugging a Protocol Network Error

    General and Desktop
    3
    4
    3832
    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.
    • R
      reactive last edited by

      Hi, I'm trying to write a simple test app to post a SOAP request.
      I'm using the example code from the QNetworkAccessManagerDoc.
      http://doc.qt.nokia.com/latest/qnetworkaccessmanager.html#details

      I set the header's content type to text/html and utf-8. I set accept to application/soap+xml
      I call manager->post(request, xmlQString.toUtf8())

      The error I keep getting back is 301: "the Network Access API cannot honor the request because the protocol is not known"
      http://doc.qt.nokia.com/latest/qnetworkreply.html#NetworkError-enum

      Can anyone give me hints about what could be causing that type of error? For example, header, content or connection?

      1 Reply Last reply Reply Quote 0
      • J
        jsprenkle last edited by

        Are you sure the service you're trying to use is a SOAP service?

        1 Reply Last reply Reply Quote 0
        • R
          reactive last edited by

          Gah! After almost 2 hours of trying to solve this someone just pointed out that I needed "http://" in front of the IP when I call request.setUrl(QUrl("000.000..."))
          Sorry for the post! :)

          1 Reply Last reply Reply Quote 0
          • M
            MaximAlien last edited by

            Thanks for suggestion reactive!

            I had the same issue and adding @http://@ helped me.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post