Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
simon_hain
Posts: 15,868
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany
Accepted Solution

Trying QtSoap

Hello,

 

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

 

I use the population example found at

http://qt.gitorious.org/qt-solutions/qt-solutions/trees/master/qtsoap

I am able to use the webservice with soapUI, so it seems to be fine:

http://www.abundanttech.com/WebServices/Population/population.asmx?WSDL 

 

I created a new project and added the classes. The project compiles (with a warning) and executes, but i do not get a reply from the webservice, the application seems to crash.

 

here is the output:

Looking up population of Afghanistan...
QWidget: Cannot create a QWidget when no GUI is being used

 

The first line is a qdebug output. is the second line a critical error? or is something else wrong? 

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

 

 

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
simon_hain
Posts: 15,868
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Trying QtSoap

ha, i found the error myself!

QApplication seems to imply that there must be a GUI, if i exchange it to QCoreApplication i get the webservice reply.

Looking up population of Afghanistan...
Afghanistan has a population of 30,420,000 (last updated at 2012)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Contributor
actjak
Posts: 33
Registered: ‎05-02-2012
My Device: playbook
My Carrier: bouyig

Re: Trying QtSoap

hello simon_hain 

 

 if you use qtsoap for the web service you may be able to help me for  the problem that I post the following post

 

 

http://supportforums.blackberry.com/t5/Native-Development/Qtsoap-MethodArgument/m-p/1829915

 

 

thank you for avence


Please use plain text.