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);
    connect(AccessManager,SIGNAL(finished(QNetworkReply*)),this,SLOT(FileIsReady(QNetworkReply*)));
    
    QFile CurrentFile("/home/odroid/validar.xml");
    CurrentFile.open(QIODevice::ReadOnly);
    QByteArray Buffer= CurrentFile.readAll();
    
    QSslConfiguration Config = QSslConfiguration::defaultConfiguration();
    Config.setProtocol(QSsl::TlsV1_2);
    
    QNetworkRequest *Request=new QNetworkRequest();
    Request->setUrl(QUrl("https://xxxxxxxxxxxx/servicefront.svc"));
    Request->setSslConfiguration(Config);
    Request->setHeader(QNetworkRequest::ContentTypeHeader,"Accept-Encoding");
    
    AccessManager->post(*Request, Buffer);
    

    Can you help me?


  • Lifetime Qt Champion

    Hi,

    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