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. QT, Google AdWords API & gsoap

QT, Google AdWords API & gsoap

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • DongD Offline
    DongD Offline
    Dong
    wrote on last edited by
    #1

    Hello everyone !

    I'm dealing with this situation for days but have no clue ! Please Help !!!

    I need to communicate with Google AdWords API from QT Quick Application.
    What I'm already done so far is get Access Token from Authentication Page.
    I can make a request use QNetworkRequest and Service return the result.

    What I want to do is using gSoap generated code to send the same request.
    But it return error code 30 : SOAP_SSL_ERROR

    What i'm missed?!

        CampaignServiceSoapBindingProxy *campaignService;
    
        _targetNamespace__get *get = new _targetNamespace__get();
        get->serviceSelector = new targetNamespace__Selector();
        get->serviceSelector->fields.push_back(std::string("ID"));
        get->serviceSelector->fields.push_back(std::string("Name"));
        get->serviceSelector->fields.push_back(std::string("Status"));
    
        _targetNamespace__getResponse response;
    
        targetNamespace__SoapHeader *requestHeader = new targetNamespace__SoapHeader();
        requestHeader->developerToken = &devToken;
        requestHeader->clientCustomerId = &customerId;
        requestHeader->userAgent = &userAgent;
        targetNamespace__SoapResponseHeader *responseHeader = new targetNamespace__SoapResponseHeader();
        campaignService->soap_header(requestHeader, responseHeader);
        campaignService->fposthdr(campaignService, "Content-Type", "application/soap+xml");
        campaignService->fposthdr(campaignService, "Authorization", QString("Bearer %1").arg(AccessToken()).toStdString().c_str());
        int result = campaignService->get(get, response);
        if (result == SOAP_OK)
        {
    
        }
        else
        {
    
        }
    
    1 Reply Last reply
    0
    • DongD Offline
      DongD Offline
      Dong
      wrote on last edited by
      #2

      Anyone have any ideal?

      I thought the problem is gsoap and https/ssl

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Since the error is happening with gSoap you should try to contact them for help about that SSL error. Usually it's related to a certificate that has expired, changed or that's self-signed.

        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