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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Highlighted
Developer
Posts: 17,025
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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
Contributor
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