本文整理汇总了C++中QtSoapMessage::faultDetail方法的典型用法代码示例。如果您正苦于以下问题:C++ QtSoapMessage::faultDetail方法的具体用法?C++ QtSoapMessage::faultDetail怎么用?C++ QtSoapMessage::faultDetail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QtSoapMessage
的用法示例。
在下文中一共展示了QtSoapMessage::faultDetail方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getResponse
void KEcm::getResponse(const QtSoapMessage &message)
{
//std::cout << "\nresponse " << message.toXmlString().toStdString();
if (message.isFault()) {
std::cout << "\n" << message.faultDetail().toString().toStdString();
qDebug("Errorssssss: %s", qPrintable(message.faultString().toString()));
}else {
/* QString res = message.returnValue().toString();
QDateTime dt = QDateTime::fromString(res, Qt::ISODate);
if (dt.isValid())
res = QLocale::c().toString(dt.date());
*/
const QtSoapType &docInfo = message.returnValue();
qDebug() << docInfo[QtSoapQName("dDocName","http://www.stellent.com/DocInfo/")].toString().toLatin1().constData();
//qDebug("Easter is: %s", docInfo["DocInfoByNameResponse"].value().toString().toLatin1().constData());
//qDebug("Easter is: %s", docInfo.count());
std::cout << "\n\n\n\n\n\nTeste ";
//qDebug() << docInfo["DocInfoByNameResponse"]["DocInfoByNameResult"]["ContentInfo"]["dDocName"].toString().toLatin1().constData();
//qDebug() << "TDDDD" << docInfo[0]["dDocName"].value().toString().toLatin1().constData();
int docInfoCount = docInfo.count();
int docInfoCounty = 0;
for(int x= 0; x < docInfoCount; x++){
docInfoCounty = docInfo[x].count();
for(int y= 0; y < docInfoCounty; y++){
qDebug("Nome: %s \t Value: %s",
QString(docInfo[x][y].name().name()).toLatin1().constData(),
docInfo[x][y].value().toString().toLatin1().constData());
}
qDebug("\n\n");
}
std::cout << "\n\n\n\n\n\nTeste ";
}
}