?gzip=false
POST /axis2gzip_test_orders/services/WSProxyForDB?gzip=true HTTP/1.1SOAPAction: urn:ACTIONUser-Agent: USERHost: HOST:PORTTransfer-Encoding: chunkedContent-Type:text/xml; charset=Windows-1251<?xml version="1.0" encoding="Windows-1251"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header /> <soapenv:Body> <CSqueryP xmlns=\"http://service/xsd\"> <arg0 xmlns="">{call mod_sync_GetRemoteServersDB}</arg0> </CSqueryP> </soapenv:Body> </soapenv:Envelope>
QByteArray QSslClient::ConfigureQuery(){ QByteArray param0 = "{call mod_sync_GetShowsList}"; QByteArray request = ""; QByteArray query = ""; request += "<?xml version=\"1.0\" encoding=\"Windows-1251\"?>"; request += "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">"; request += "<soapenv:Header />"; request += "<soapenv:Body><CSqueryP xmlns=\"http://service/xsd\">"; request += "<arg0 xmlns=\"\">" + param0 + "</arg0>"; request += "</CSqueryP></soapenv:Body></soapenv:Envelope>"; int len = request.length(); QString reqLen = QString::number(len, 10); query += "POST /Cobo/services/WSProxyForDB?gzip=true"; query += " HTTP/1.1\r\n"; query += "SOAPAction: \""; query += "urn:ACTION"; query += "\"\r\n"; query += "User-Agent: "; query += "AGENT"; query += "\r\n"; query += "Host: "; query += "HOST"; query += ":"; query += "PORT"; query += "\r\n"; query += "Accept: */*\r\nf"; query += "Transfer-Encoding: chunked\r\n"; query += "Content-Type:text/xml; charset=Windows-1251\r\n\r\n"; query += reqLen + "\r\n"; query += request; query += "\r\n0\r\n\r\n"; return query;}
connect (pClient, SIGNAL(readyRead()), this, SLOT(slotReadyRead()));void QSslClient::slotReadyRead(){ try { QByteArray incoming; while(pClient->bytesAvailable() != 0) { incoming = pClient->readAll(); //Записываем ответ в глобальную переменную temp += incoming;//QByteArray temp } } catch(exception ex) { qDebug() << "###" << ex.what(); }}
query += "User-Agent: "; query += "AGENT"; query += "\r\n"; query += "Accept-Encoding: "; query += "\r\n";
POST /Cobo/services/WSProxyForDB?gzip=true