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. get soap auth for dpd.com in QT C++
Forum Updated to NodeBB v4.3 + New Features

get soap auth for dpd.com in QT C++

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 153 Views 1 Watching
  • 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.
  • J Offline
    J Offline
    Jakobm789
    wrote on last edited by
    #1

    currently i try to connect to dpd and get an auth-key in QT C++. I am stuck and have no further ideas how to fix my issue, maybe you can help. I use qtsoap an currently my code looks like this:

        request.setMethod("getAuth", "http://dpd.com/common/service/LoginService/2.0");
        request.addMethodArgument("delisId", "", "sandboxdpd");
        request.addMethodArgument("password", "", "xMmshh1");
        request.addMethodArgument("messageLanguage", "", "de_DE");
    
        qDebug() << request.toXmlString();
    
        http.setHost("public-ws-stage.dpd.com");
        http.setAction("http://dpd.com/common/service/LoginService/2.0/getAuth");
        http.submitRequest(request, "/services/LoginService/V2_0/"); 
    

    I try to catch the response with this code

        connect(&http, SIGNAL(responseReady()), this, SLOT(getResponse()));
    

    but the connection always times out. Thank you for your help!!!

    In PHP it looks like this, but im unable to transfer it into my qt code: https://stackoverflow.com/questions/37065407/send-soap-request-for-dpd-com-in-php

    Axel SpoerlA 1 Reply Last reply
    0
    • J Jakobm789

      currently i try to connect to dpd and get an auth-key in QT C++. I am stuck and have no further ideas how to fix my issue, maybe you can help. I use qtsoap an currently my code looks like this:

          request.setMethod("getAuth", "http://dpd.com/common/service/LoginService/2.0");
          request.addMethodArgument("delisId", "", "sandboxdpd");
          request.addMethodArgument("password", "", "xMmshh1");
          request.addMethodArgument("messageLanguage", "", "de_DE");
      
          qDebug() << request.toXmlString();
      
          http.setHost("public-ws-stage.dpd.com");
          http.setAction("http://dpd.com/common/service/LoginService/2.0/getAuth");
          http.submitRequest(request, "/services/LoginService/V2_0/"); 
      

      I try to catch the response with this code

          connect(&http, SIGNAL(responseReady()), this, SLOT(getResponse()));
      

      but the connection always times out. Thank you for your help!!!

      In PHP it looks like this, but im unable to transfer it into my qt code: https://stackoverflow.com/questions/37065407/send-soap-request-for-dpd-com-in-php

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @Jakobm789
      Could you post your entire code, please?
      The event loop has to spin and the timeout looks a bit like blocking code or early exit.

      Software Engineer
      The Qt Company, Oslo

      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