XML Request rejected

  • Hi.

    I´m trying to use a webservice soap. I have not problem with other libraries with http but if i try to send a xml to other https i don´t receive a good response. I receive "The requested URL was rejected. Please consult with your administrator.<br><br>Your Suppoer ID is: xxxxxxxxx

    It´s my code:

    QNetworkAccessManager *AccessManager=new QNetworkAccessManager(this);
    QFile CurrentFile("/home/odroid/validar.xml");
    QByteArray Buffer= CurrentFile.readAll();
    QSslConfiguration Config = QSslConfiguration::defaultConfiguration();
    QNetworkRequest *Request=new QNetworkRequest();
    AccessManager->post(*Request, Buffer);

    Can you help me?

  • Lifetime Qt Champion


    What version of Qt are you using ?
    What Linux distribution are you running ?
    What versions of OpenSSL do you have installed ?

    You are not connecting the error related signals anywhere, you should so you'll have more information about what is going wrong.

    On a side note, there's no need to create your QNetworkRequest on the the heap as shown in the QNetworkAccessManager documentation.

Log in to reply