Qtsoap MethodArgument

Hello

I use qtsoap to make a Web service

my body is:

  
    
      
        string
        string
      
    
  

the arguments of the method is asGuids with a list of string, I can not find a method to add this argument.

his does not work with addMethodArgument.

Does anyone have an idea?

I found the solution:

QtSoapMessage request;
    request.setMethod("GetSupportRequests", "http://xxxxxxxxxx");
QtSoapStruct *myStruct=new QtSoapStruct(QtSoapQName("asGuids"));
    myStruct->insert( new QtSoapSimpleType(QtSoapQName("string"),"46f2c54dfaac404d93"));
  request.addMethodArgument(myStruct);

Tags: BlackBerry Developers

Similar Questions

  • How to define soap headers in the soap request using qtsoap?

    Hi all!

    I need to add a soap from the soap request header. I use qtsoap to post the soap request. It comes to my complete application. How can I add headers in the code...!

    
    http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      
        http://tempuri.org/">
          string
          string
        
      
      
        http://tempuri.org/">
          string
        
      
    
    

    I tried like this:

    QtSoapMessage request;
    
        QtSoapStruct soap_struct(QtSoapQName("SecureSoapHeader", "http://tempuri.org/"));
    soap_struct.insert(new QtSoapSimpleType(QtSoapQName("Platform"), "BlackBerry"));
        soap_struct.insert(new QtSoapSimpleType(QtSoapQName("AuthToken"), "4A2EDCDA-E5A9-4E77-B41A-F1C1FF15A645"));
    
        request.addHeaderItem(&soap_struct);
    
        request.setMethod("GetCitiesByCountryCode", "http://tempuri.org/");
    
        request.addMethodArgument("countryCode", "", "IN");
        http.setHost("dev4.winitsoftware.com");
        http.setAction("http://tempuri.org/GetCitiesByCountryCode");
        http.submitRequest(request, "/EzeegoMiddleware/Services/HotelService.asmx");
    

    After the specification of it, the application closes...

    If anyone has tried it, help me please!

    Thank you.

    -Rezé

    Hello! I haven't used this API but I guess submitRequest is asynchronous.

    You create soap_struct on the stack (so it's a local variable).

    After the method submitRequest will end the service and all local variables will be destroyed, so the address passed to addHeaderItem will become invalid.

    Try to create soap_struct on the job:

    QtSoapStruct *soap_struct = new QtSoapStruct(...)
    soap_struct->insert(...);
    request.addHeaderItem(soap_struct);
    
  • How to use QtSoap to analyze service asmx web?

    Hello

    can QtSoap analyze the wsdl? I had problem with the header of web service, then

    I tried to use gsoap but I do not know how to integrate gsoap in project of cascade of bb...

    Thank you very much.

    Victor

    as qtsoap doesn't generate code, you can analyze most Web services with it.

    gsoap is not compatible with bb10, unfortunately.
    I use KDSoap for a more complex project, but it's a commercial framework.

  • Try QtSoap

    Hello

    I'm still trying to use a webservice soap of bb10. As my gsoap attempts failed and I don't have a response of the people to kdsoap yet I followed a tip from Mark Sohm and I tried to QtSoap, which seems to be a simple (and abandoned) soap implementation based on Qt: http://doc.qt.nokia.com/solutions/4/qtsoap/index.html

    I use the example of the population to

    http://Qt.Gitorious.org/Qt-solutions/Qt-solutions/trees/master/qtsoap

    I'm able to use the webservice with soapUI, so it seems to be very well:

    http://www.abundanttech.com/webservices/population/population.asmx?WSDL

    I created a new project and add classes. The project compiled (with a warning) and is running, but I do not get a response from the Web service, the application seems to crash.

    Here is the result:

    By raising the population of the Afghanistan...
    QWidget: Cannot create a QWidget when no GUI is used

    The first line is a qdebug exit. the second line is a critical error, or is the wrong thing?

    I joined the project as a zip (created using export file / archive)

    HA, I found the error myself!

    QApplication seems to imply that there must be a GUI, if I share it to QCoreApplication I get webservice response.

    By raising the population of the Afghanistan...
    The Afghanistan has a population of 30,420,000 (last updated in 2012)

  • QtSoap: Change the type of a Web service object.

    I want to add a tag with the type short, but do seem to not be able to do things.

    What I'm doing now (just add a string).

    the application is a QtSoapMessage

    request.addMethodArgument("Version", "", version);
    

    I'm looking for:

    QtSoapType* versionTag = new QtSoapType(QtSoapQName("Version", version), QtSoapType::Short);
    request.addMethodArgument(versionTag);
    

    This does not cause whatever it is added to the request if, toXmlString does not print it.

    Any ideas?

    I finally solved this, I didn't get no answer here or on other forums focus on the qt interval, I decided to check the source of the qtsoap library itself.

    I was able to add the type short by adding an additional constructor to QtSimpleType:

    qtsoap.h

    QtSoapSimpleType(const QtSoapQName &name, Type type, QVariant variant);
    

    qtsoap.cpp

    QtSoapSimpleType::QtSoapSimpleType(const QtSoapQName &name, Type type, QVariant variant): QtSoapType(name, type), v(variant){
    }
    

    just in case someone else has this problem in the future.

  • How to implement QtSoap in native development of cascade?

    Hello

    I want to ask you something QtSoap implementation. I use QtSoap to parse the Web services *.asmx files. I include qtsoap.h and qtsoap.cpp from external sources, but I can't find the libraries.

    Can you help me solve this problem and how to implement QtSoap in native waterfall?

    Thanks before.

    I got this error message:

    Build configuration Debug-Simulator for BB10BinusmayaMobile project *.

    make - j2 Simulator-Debug
    do .//translations - C f Makefile update
    make [1]: Entering directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
    D:, bbndk, host_10_1_0_132, win32 / x 86/usr/bin/lupdate BB10BinusmayaMobile.pro
    Update 'BB10BinusmayaMobile.ts '...
    Found 6 source text (s) (0 new and 6 already existing)
    make [1]: leaving directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
    do .//translations f - C release of Makefile
    make [1]: Entering directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
    D:, bbndk, host_10_1_0_132, win32 / x 86/usr/bin/lrelease BB10BinusmayaMobile.pro
    Update: / Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations/BB10BinusmayaMobile.qm'...
    Generated translation (s) 0 (0 finished and unfinished 0)
    Ignored for 6 text (s) of the untranslated source
    make [1]: leaving directory had: / ' Document Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/translations
    make - c / f - 86 Makefile debugging x
    "make [1]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    d:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/qmake.exe-spec... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86 - QCC CONFIG += debug_and_release += o Makefile... simulator config BB10BinusmayaMobile.Pro
    "make [1]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    "make [1]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    do f Makefile.Debug
    "make [2]: Entering directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/applicationui.o o I... /SRC/applicationui.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/main.o o I... /src/main.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/qtsoap.o o I... /SRC/qtsoap.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. /bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-o-g/.obj/webservices.o o I... /SRC/WebServices.cpp
    D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... / SRC/applicationui. HPP o o-g/.moc/moc_applicationui.cpp
    D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... /SRC/qtsoap.h o o-g/.moc/moc_qtsoap.cpp
    D:/bbndk/host_10_1_0_132/Win32/x86/usr/bin/MOC.exe-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-I.-D__QNXNTO__... /SRC/WebServices.h o o-g/.moc/moc_webservices.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_applicationui.o o-g/.moc/moc_applicationui.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_qtsoap.o o-g/.moc/moc_qtsoap.cpp
    CQS-Vgcc_ntox86 - c - Wc, - inclure-Wc,o-g/.obj/BB10BinusmayaMobile-Wno psabi - lang-c ++ - fstack-protector - fstack-protector-all - g - Wno-psabi-wall - W-D_REENTRANT-DQT_NO_IMPORT_QT47_QML-DQ_OS_BLACKBERRY-DQT_DECLARATIVE_DEBUG-DQT_DECLARATIVE_LIB-DQT_CORE_LIB-DQT_SHARED-j'ai... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/share/qt4/mkspecs/BlackBerry - x 86-QCC-... /... / BB10BinusmayaMobile-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/qtcore-... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4/QtDeclarative-I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/qt4-I... / SRC-Io-g/.moc - I... /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include-I /... /.. /.. / bbndk/target_10_1_0_1020/QNX6/usr/include/freetype2-i o o-g/.obj/moc_webservices.o o-g/.moc/moc_webservices.cpp
    CQS-Vgcc_ntox86-lang-c ++ - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/lib - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/usr/lib - Wl, - rpath - link, d, bbndk, target_10_1_0_1020, qnx6 / x 86/usr/lib/qt4/lib - o o-g/BB10BinusmayaMobile o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/qtsoap.o o-g/.obj/test.o o-g/.obj/webservices.o o-g/.obj/moc_applicationui.o o-g/.obj/moc_qtsoap.o o-g/.obj/moc_test.o o-g/.obj/moc_webservices.o - LD : / bbndk / target_10_1_0_1020/qnx6 / x 86/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / x 86/usr/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / x 86/usr/lib/qt4/lib - LD: / bbndk/target_10_1_0_1020/qnx6 / / usr/lib/qt4/lib - lbbcascades - lQtDeclarative - lQtScript - lQtSvg - lQtSql-lsqlite3 - lz - lQtXmlPatterns - lQtGui - lQtNetwork - lsocket - lQtCore - lm - lbps
    D:\bbndk\host_10_1_0_132\win32\x86\usr\bin\ntox86-ld: o-g/.obj/qtsoap.o: reference to undefined symbol '_ZN12QDomDocument15createElementNSERK7QStringS2_'
    D:\bbndk\host_10_1_0_132\win32\x86\usr\bin\ntox86-ld: Notes: '_ZN12QDomDocument15createElementNSERK7QStringS2_' is defined in DSO D:/bbndk/target_10_1_0_1020/qnx6/x86/usr/lib/qt4/lib/libQtXml.so.4 try so add to the linker command line
    D:/bbndk/target_10_1_0_1020/QNX6/x86/usr/lib/Qt4/lib/libQtXml.so.4: could not read symbols: invalid operation
    CC: D:/bbndk/host_10_1_0_132/win32 / x 86/usr/bin/ntox86-ld caught signal 1
    make [2]: * [o-g/BB10BinusmayaMobile] error 1
    make [1]: * [debug] error 2
    "make [2]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    "make [1]: leaving directory had: / Training/ndk-10.1.0-workspace/BB10BinusmayaMobile/x86 Document"
    make: * [Simulator-Debug] error 2

    Build completed *.

    QDomDocument part QtXml, if you check in the documentation of the API
    https://developer.BlackBerry.com/native/reference/Cascades/QtXml.html
    you see that:
    To connect the module, add this line to your qmake .pro file:
    QT += xml

    try this.

  • Slog2 logfile send

    Hello together,

    I am currently facing a bug, which can be found in the production, I wanted to add the ability to send the log file of the application for me. I did the following:

    Button {
                text: qsTr("Logfile an Entwickler senden")
                onClicked: {
                    console.log("logfilepath = " + _ApplicationUI.getLogfile());
                    emailInvocation.query.uri = "mailto:[email protected][email protected]&subject=ceAuToApp%20Logdatei&attachment=file:///" + _ApplicationUI.getLogfile();
                    emailInvocation.query.updateQuery();
                }
                horizontalAlignment: HorizontalAlignment.Center
            }
    
    Invocation {
                id: emailInvocation
                query.mimeType: "message/rfc822"
                query.invokeTargetId: "sys.pim.uib.email.hybridcomposer"
                query.invokeActionId: "bb.action.SENDEMAIL"
                onArmed: {
                    emailInvocation.trigger(emailInvocation.query.invokeActionId);
                }
            }
    

    The code for c ++ is the following:

    QString ApplicationUI::getLogfile()
    {
        QString filePath = QDir::current().absoluteFilePath("logs/");
        filePath.append("slog2.txt");
    
        FILE *file = fopen(filePath.toStdString().c_str(), "w");
        slog2_dump_logs_to_file(file,SLOG2_DUMP_LOGS_ALL);
        fclose(file);
        return filePath;
    }
    

    I get the error from the linker:

    qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/ceAuToApp -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED -Id:/bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ceAuToApp -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtXml -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -ID:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtSql -Io-g/.moc -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/moc_qtsoap.o o-g/.moc/moc_qtsoap.cpp
    qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/ceAuToApp -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED -Id:/bbndk/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../ceAuToApp -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtXml -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4 -ID:/bbndk/target_10_2_0_1155/qnx6/usr/include/qt4/QtSql -Io-g/.moc -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include -Id:/bbndk/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -o o-g/.obj/moc_AppSettings.o o-g/.moc/moc_AppSettings.cpp
    qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/lib -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib -Wl,-rpath-link,D:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -o o-g/ceAuToApp o-g/.obj/applicationui.o o-g/.obj/Address.o o-g/.obj/Execution.o o-g/.obj/Order.o o-g/.obj/VehicleItem.o o-g/.obj/OrderManager.o o-g/.obj/qtsoap.o o-g/.obj/main.o o-g/.obj/AppSettings.o o-g/.obj/moc_applicationui.o o-g/.obj/moc_Address.o o-g/.obj/moc_Execution.o o-g/.obj/moc_Order.o o-g/.obj/moc_VehicleItem.o o-g/.obj/moc_OrderManager.o o-g/.obj/moc_qtsoap.o o-g/.obj/moc_AppSettings.o    -LD:/bbndk/target_10_2_0_1155/qnx6/x86/lib -LD:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib -LD:/bbndk/target_10_2_0_1155/qnx6/x86/usr/lib/qt4/lib -LD:/bbndk/target_10_2_0_1155/qnx6//usr/lib/qt4/lib -lbbdata -lbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtXml -lQtCore -lm -lbps
    D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: o-g/.obj/applicationui.o: undefined reference to symbol 'slog2_dump_logs_to_file'
    D:\bbndk\host_10_2_0_15\win32\x86\usr\bin\ntox86-ld: note: 'slog2_dump_logs_to_file' is defined in DSO D:/bbndk/target_10_2_0_1155/qnx6/x86/lib/libslog2.so.1 so try adding it to the linker command line
    D:/bbndk/target_10_2_0_1155/qnx6/x86/lib/libslog2.so.1: could not read symbols: Invalid operation
    cc: D:/bbndk/host_10_2_0_15/win32/x86/usr/bin/ntox86-ld caught signal 1
    make[2]: *** [o-g/ceAuToApp] Error 1
    make[2]: Leaving directory `D:/MomenticsWorkspaces/ceAuTo/src/ceAuToApp/x86'
    make[1]: *** [debug] Error 2
    make[1]: Leaving directory `D:/MomenticsWorkspaces/ceAuTo/src/ceAuToApp/x86'
    make: *** [Simulator-Debug] Error 2
    

    What Miss me? Thanks for your help .

    Well, I already had the more things myself, but now I am facing a strange problem:

    void ApplicationUI::sendLogfile()
    {
        InvokeRequest request;
        request.setAction("bb.action.COMPOSE");
        request.setMimeType("message/rfc822");
        QVariantMap data;
        data["to"] = (QVariantList() << "[email protected]" << "[email protected]");
        data["subject"] = "ceAuToApp Logdatei";
        QString fileName = QString("log.txt.%1").arg(QDate::currentDate().toString("yyyy-MM-dd"));
        QString filePath = QString("logs/%1").arg(fileName);
        //QString logpath = "/accounts/1000/shared/downloads/listen.pls";
        QString logpath = "logs/log.txt";
        QFile::copy(logpath,"tmp/log.txt");
        QString logpathEncoded = QString(QUrl("/accounts/1000/appdata/de.carexpert.ceAuToApp.testDev_t_ceAuToApp72c58f33/tmp/log.txt").toEncoded());
        data["attachment"] = (QVariantList() << logpathEncoded);
        QVariantMap moreData;
        moreData["data"] = data;
        bool ok;
        request.setData(bb::PpsObject::encode(moreData, &ok));
        InvokeManager manager(this);
        manager.invoke(request);
    }
    

    The above method works using a path like "/ accounts/1000/shared/downloads/listen.pls" (the file exists, I downloaded it myself), but refuses to join the file when I use the path "/ log/log.txt". Any ideas, why does not work? I also tried the full path, copied what he tmp, this also does not work. I'm really confused. Thanks for your help .

  • Working with tables on a webservice response

    I use QtSoap to receive a response from a Web service, it consists mainly of three large paintings full of articles.

    I'm confused, how to manage the responses, especially the berries.

    Feel free to improve some of my code, developer java I'm collecting pieces of code from all the corners of the web and try to get running them together

    What I got so far is to iterate over the answer and 'find' the relevant tables.

    But how to convert the element in a table? So far, my weak attempts failed to succeed.

    const QtSoapMessage& resp = m_soap.getResponse();
    QtSoapStruct &m = (QtSoapStruct &) resp.method();
    for (QtSoapStructIterator it(m); it.current(); ++it) {
        QtSoapType *item = it.data();
        if (QString::compare("Attributes", item->name().name()) == 0) {
                qDebug() << "Attributes found";
        } else if (QString::compare("Box", item->name().name()) == 0) {
                qDebug() << "Box found";
        } else if (QString::compare("Tabs", item->name().name()) == 0) {
                qDebug() << "Tabs found";
        } else if (QString::compare("Version", item->name().name()) == 0) {
                qDebug() << "Version: "+item->value().toString();
        }
    }
    

    Have not tried it myself, but I think you can convert your points of QtSoapType to QtSoapArray if they are of this type.

    QtSoapType *item = it.data();
    
    if (item != NULL && item->type() == QtSoapType::Array)
    {
        QtSoapArray* array = (QtSoapArray*)item;
        // now work with array
    }
    

    I would like to know if it works.

  • Construction error suggested adding to the linker

    I'm adding some xml SOAP may app.  I'm following the example of xml SOAP as close as possible.  When I compile the application, I get a non-descript "Error 2" and "error 1".

    In the console, the last lines are

    make[1]: Entering directory `C:/Projects/BB10/BB10.2/TabbedProject/x86'
    make -f Makefile.Debug
    make[2]: Entering directory `C:/Projects/BB10/BB10.2/TabbedProject/x86'
    qcc -Vgcc_ntox86 -c -Wc,-include -Wc,o-g/.obj/TabbedProject -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/share/qt4/mkspecs/blackberry-x86-qcc -I../../TabbedProject -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/include/qt4/QtCore -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/include/qt4/QtDeclarative -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/include/qt4 -I../src/qtsoap -I../src -Io-g/.moc -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/include -Ic:/bbndk/target_10_1_0_4828/qnx6/usr/include/freetype2 -I. -o o-g/.obj/main.o ../src/main.cpp
    qcc -Vgcc_ntox86 -lang-c++ -Wl,-rpath-link,C:/bbndk/target_10_1_0_4828/qnx6/x86/lib -Wl,-rpath-link,C:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib -Wl,-rpath-link,C:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib/qt4/lib -o o-g/TabbedProject o-g/.obj/Answer.o o-g/.obj/MarketingService.o o-g/.obj/Person.o o-g/.obj/applicationui.o o-g/.obj/main.o o-g/.obj/qtsoap.o o-g/.obj/moc_Answer.o o-g/.obj/moc_MarketingService.o o-g/.obj/moc_Person.o o-g/.obj/moc_applicationui.o o-g/.obj/moc_qtsoap.o    -LC:/bbndk/target_10_1_0_4828/qnx6/x86/lib -LC:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib -LC:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib/qt4/lib -LC:/bbndk/target_10_1_0_4828/qnx6//usr/lib/qt4/lib -lbbdata -lbbsystem -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
    C:\bbndk\host_10_1_0_238\win32\x86\usr\bin\ntox86-ld: o-g/.obj/qtsoap.o: undefined reference to symbol '_ZN12QDomDocument15createElementNSERK7QStringS2_'
    make[2]: Leaving directory `C:/Projects/BB10/BB10.2/TabbedProject/x86'
    C:\bbndk\host_10_1_0_238\win32\x86\usr\bin\ntox86-ld: note: '_ZN12QDomDocument15createElementNSERK7QStringS2_' is defined in DSO C:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib/qt4/lib/libQtXml.so.4 so try adding it to the linker command line
    make[1]: Leaving directory `C:/Projects/BB10/BB10.2/TabbedProject/x86'
    C:/bbndk/target_10_1_0_4828/qnx6/x86/usr/lib/qt4/lib/libQtXml.so.4: could not read symbols: Invalid operation
    cc: C:/bbndk/host_10_1_0_238/win32/x86/usr/bin/ntox86-ld caught signal 1
    make[2]: *** [o-g/TabbedProject] Error 1
    make[1]: *** [debug] Error 2
    make: *** [Simulator-Debug] Error 2
    

    I wonder if Iam supposed to include libQtXml somewhere in my application.

    Guess I should have just even if it a bit longer.

    I added

    #include 
    

    In the web service class, and then added

    QT += xml
    

    In the file .pro as indicated in the reference QtXml.  The error disappeared.

  • using Web services

    I need to know a simple way to connect the webservice with SOAP and as json. can anyone help the simple way to create SOAP ws, with the exception of the sample code.

    in the code example (soapxml) hard to find the new value(eg: weatherid) statement. can any body help concepts ws...

    Please mark the thread as solved if you solved your problem.

    You must include qtsoap.h/MPC in each project that you want to use.
    Optionally, you can create a stand-alone library of her, but I'm not sure it's worth the hassle.

Maybe you are looking for

  • After installing new FN and multimedia keys do not work on Qosmio F20

    Hello, my friend buy Qosmio F20 of the Germany, but it comes with Windows Xp with the German language on this subject. I format the hard drive and install Windows Xp Professional SP2. I download all of the drivers who was very available and most of t

  • Typedef constant missing description

    I created a strict typdef cluster and gave him a description (Description of right click and tip). This description is displayed on a control and the indicator, but not on a constant or the wire itself. I belive that there is a bug in code. 2009 sp1

  • WAP321 Auto Assign channels (Single, Point)

    Hello I have 2 x WAP321 (each about 50 feet of eachother) and helped the Signle Point configuration so I can see them both there now). Now, I also see the allocation option automatically the channels in channel management for the entire cluster (two

  • How to start webcam?

    original title: How can I start th webcam? I would like to make a short video without using Skype etc. My webcam starts if I connect to Skype, but I would like to be able to make short videos to send by e-mail. How do iswitch on webcam to do this.

  • Acrobat Reader DC: Find and select Tools

    Here, it's a problem and a solution. In Adobe Reader MS you can use the hand tool and the selection tool. But you won't get to display in the main toolbar, no matter how deep digging into the menu show/hide.SOLUTION: move your mouse in the lower part