#include "soapGatewayWSPortBindingProxy.h"
class Core : public QObject
Q_INVOKABLE bool authySlot(QString log);
void setLog(const QString &log);
void setPass(const QString &pass);
const char* const ENDPOINT = "http://Ваш_сервер/ws?wsdl";
std::string CHECKED_DEV_NUM;
std::string CHECKED_DEV_TYPE;
GatewayWSPortBindingProxy Proxy;
ns1__getLastResponse Response;
QString m_errorDescription;
#include "GatewayWSPortBinding.nsmap"
void Core::setLog(const QString &log)
void Core::setPass(const QString &pass)
QString Core::log() const
QString Core::pass() const
bool Core::authySlot(QString log)
Proxy.soap_endpoint = ENDPOINT;
CHECKED_DEV_NUM = log.toUtf8().constData();
CHECKED_DEV_TYPE = m_devType.toUtf8().constData();
Request.arg1 = &CHECKED_DEV_NUM;
Request.arg2 = &CHECKED_DEV_TYPE;
if (Proxy.getLast(&Request, Response) == SOAP_OK)
if (Response.return_->devParams.size() == 1) {
m_counter = *Response.return_->devParams[0]->currCounter;
setErrorDescription(QString::fromStdString(*Response.return_->errorCode));
} else {Proxy.soap_stream_fault(std::cerr);}