WebService response is null in the code, but when I check in the customer REMAINS at this moment where I get the response ok
Hi all
Today, I try to call post webservice at this point, I get an answer anywhere via the webservice code I mentioned below, but when I try via the customer REMAINS this time that I get the right answer, so let me know what the problem?
WebService code: -.
QString ApplicationUI::postByWebUrl(QString qStrUrl, NetworkMethod method, QVariant data) { QNetworkRequest request = QNetworkRequest(); QNetworkAccessManager *networkAccessManager = new QNetworkAccessManager(this); QNetworkReply* reply; QString qStrReply; request.setUrl(QUrl(qStrUrl)); request.setRawHeader("Content-Type", "application/x-www-form-urlencoded"); request.setRawHeader("Accept", "application/json"); QByteArray *byteArray = new QByteArray(); JsonDataAccess jda; jda.saveToBuffer(data, byteArray); QBuffer buffer(byteArray); buffer.open(QIODevice::ReadOnly); QEventLoop loop; reply = networkAccessManager->post(request, QString(buffer.readAll()).toAscii()); connect(reply, SIGNAL(finished()), &loop, SLOT(quit())); loop.exit(); if (!loop.isRunning()) { loop.exec(); } qStrReply = reply->readAll(); delete (byteArray); buffer.deleteLater(); reply->deleteLater(); networkAccessManager->deleteLater(); return qStrReply; }
I'm waiting for your positive response.
There are a number of problems with the code you have posted. Take a look at this class, which accesses a REST web service and issues the response as a signal. ForumRequest.cpp
Tags: BlackBerry Developers
Similar Questions
-
I bought the products that goes for a year and I put the redemption code, but when I install programs, it says always that I only have a month's trial. That's happened?
Hello
Please see redemption code help
If you get the prompt in the first instance, please see the following help documents:
Applications creative Cloud back in test mode after an update until 2015 for CC
Kind regards
Sheena
-
Why what I receive update alerts, but, when I check, I said I use the latest version of FF?
Try to repair disk permissions:
-
Check the PLUG INS tells me that the Shockwave Flash plugin is obsolete. But when I check on the Adobe website, I have the latest version of this plugin (11.3.300.257)
I saw similar posts, but none of these.No, IE uses its own version of ActiveX of Flash plugin and that version will stay at the 11.3.300.257
-
I have an ifone6 that is not recognized by iTunes. It has a newer version of iTunes, but when I check the updates, it says I have the latest version. Thinking that it is a matter of Win XP. Thanks for help.
You can run the latest version of iTunes for your version of Windows, but you are not running the latest version of iTunes is available and it's iTunes 12.3. You must run Windows 7 at least. I'm not a Windows user, but I think 7 is newer than XP.
Check this.
-
Properties on my records show that about 25 GB, but when I check the properties on the disk C it says I have 103 GB. Are these files was hiding all? and how do I know if I can delete them or when they are?
My computer is running out of disk space, and I want to delete some files, so the computer longer smooth but I can not find about 80 GB which is supposed to be on my computer.
Very likely. This includes your Hibernate file, if there is one, your pagefile, and (I think) the Restore Points.
You have a single hard drive? If so, how much is spread over it? If only a C: partition, how big is it and how much space you have?
Deleting files (unless the hard drive is almost completely filled) won't help your performance. After the back if you need advice.
-
I called to cancel my subscription to the month for first adobe adobe support. The representative told me that my membership was cancelled successfully. But when I checked my account, it says my subscription needs to be renewed within a few days. Hoes it mean, the representative has not really cancelled my subscription?
Hello
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
I bought after effects CC from the Adobe website. The screen flashed a messaged saying "your request". I have not received an email from Adobe yet with an activation code. When I check my account it says I have no purchase. Don't know what to do next.
Hello
Please see the following links:
Manage your creative cloud membership
If you still need help please contact support: contact customer service
*Remember to stay signed with your Adobe ID ( email id used to purchase the subscription ) before accessing the link above*.
Let us know if that helps.
Kind regards
BANI
-
The use of Windows 7 and LR 5, when I look at the list of keywords a keyword has 7 photos but when I check the library with this 350 photos filter keywords appear which includes 7 photos that have the keyword. Why the library filter, showing images that do not match the query
John,
Thank you very much for the work you've put into this. I made the change you suggested making the subkeywords under 'schwartz' to be {name schwartz}. I don't know who has contributed something, but I think that there are more immediate problem which is mucked up. As well as the fact that I have several catalogs that I don't know how they were created, I think that the best thing would be to merge all the catalogs into one (it is better to have a single catalog, right?) and delete all the keywords from scratch.
Thanks for your help. I'll mark this as resolved issue.
Dan
-
I installed the latest version of flash player and it said installed successfully and I can use it very well, but when I checked the system requirements do not match. She required 2.33 ghz and I 2.13 ghz. then that cause problems on my computer? I have an intel i3 proccessor, windows 7, internet Explorer.
All processors Intel i3 having at least 2 hearts, your specifications far exceed the requirements; See http://ark.intel.com/products/family/75025#@All
I have some computers with much slower processors, and Flash Player 14 works perfectly well on them also.
-
I upgraded to 19.0. There is no upgrade to firefox 19.0 when I check, but when I open firefox, it says: I'm not using the latest version.
You can check the setting of the home page.
- Firefox > Preferences > General > startup: Homepage
See the following for a few suggestions:
- https://support.Mozilla.org/KB/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
- https://support.mozilla.org/kb/How+to+set+the+home+page - Firefox supports several home pages separated by ' |' symbol
-
I downloaded Firefox restarted 8.0.1, and it ran. However, I always get a message on my firefox start page saying: "you are not on the latest version of Firefox. But when I go to help and then on Firefox, it says I'm under 8.0 and I'm updating. Why do I get mixed messages?
The old homepage www.google.com/firefox is obsolete and is no longer used. You can restore your home page for the new default value, so you will get the new homepage.
http://support.Mozilla.com/en-us/KB/how%20To%20set%20The%20home%20page#w_restore-the-default-home-page
Click on the button "Restore default". -
I click on my plug-in update, he said: I need to update java I update java, but when I go back to plugin it still says that I have to update. I've updated several times and get the same result, what I am doing wrong? I know that I have the right version. I am running Windows 8.1 64bits.
Unfortunately, the auditor plugin will always recommend the latest version available even when Oracle recommends that regular users (non-developer) stick with Java SE 7 for now. For now, you will have to rely on the Java Update (it is constantly running in the background unless you've disabled it) until Oracle is easy put Java SE 8 on java.com , and then everything will line up again.
-
I can access Windows Live from my macbook, but when I try to go in my hotmail Inbox I get a sorry, there is a problem with hotmail right now. I CAN access my hotmail to my IMac account. What is happening that I can't access my account hotmail to my Macbook?
original title: Sorry there is a problem with hotmail right now!Hello
1. what browser you use to access Hotmail account?
2. what operating system is installed on the computer?
The question you have posted is related to Hotmail and would be better suited to the Windows Live community. Please visit the link below to find a community that will provide the support you want.
-
At 07:00 this morning, I got a strange call from what they said was Windows. They wanted me to go start my computer and of course I refused. When I checked my identity the only word he was SENMUKTA. What was that some kind of scam or what. Please check this and let me know. Hope you can take care of that. I changed my password on some of my accounts. Thank you for your help.
On Monday, October 8, 2012 12:41:19 + 0000, ThomasFren wrote:
At 07:00 this morning, I got a strange call from what they said was Windows. They wanted me to go start my computer and of course I refused. When I checked my identity the only word he was SENMUKTA. What was that some kind of scam or what. Please check this and let me know. Hope you can take care of that. I changed my password on some of my accounts. Thank you for your help.
It's a scam and with various names and phone numbers, is
very frequent lately. See
http://www.troyhunt.com/2012/08/virus-scams-social-engineering-victims.htmlIn addition to their money get on your part to do anything of any value,
If you leave them in your computer, which knows what losses they did are
where confidential information they stole.So if you have done so, I highly recommend that you do both of the following
immediately:1 do a clean reinstall of Windows.
2. change all of your passwords, especially banks or other
financial sites.However if you refused to let them in your computer, you're safe
and there is no need to do the foregoing. You can't even
change the password that you did.Ken Blake, Microsoft MVP
Maybe you are looking for
-
Nothing in streaming-plug to the problem?
Captain El 10.11.4, macbook pro 13 inch 2010 My mac suddenly stopped anything streaming on netflix, stan, ilary etc... It still allows me to play youtube videos. The video window is not appear at all (black screen) or it just sits on the load indefin
-
Gel downloads Firefox on 1 second after, after reboot download again (safe mode)
This is starting to happen after the update from 28 to 32 (not sure about 28). 1. download whatever it is2 download is complete, the Download Manager (default or any plugin) still have this file fixed on 1 second3. I can't cancel, press 'x' pause.4.
-
Satellite 1410 S102: WLan card detect the SSID but cannot connect
I have no PA3458U-1MPC installed part of the mini-map wireless in my PC Toshiba 1410 S102.The card works well, that it detects wireless (SSID) but the problem is that I can't able to connect to my router and also there is no light wireless ON my lapt
-
Range of HP printers and classes
I e fax in the past with no problems until this week, I get a message that says I must be on a network and I am on a network, all my tests say I'm connected, what happens? Darling
-
Original title: WINDOWS XP MEDIA PLAYYER my D: drive is missing could be in my compressed old files, & if its how that recover