title: Creating simple WebService in C++ / Qt (acting as server) providing JSON data
body: <p>I need to create a <strong>simple web service</strong> (being the "server"). The goal is to provide some data I do read in an Qt / C++ application as <a href="http://en.wikipedia.org/wiki/JSON" rel="nofollow noreferrer">JSON</a> data. Basically a JavaScript application in the browser shall read its data from the Qt app. It is usually a single user scenario, so the user runs a Google Maps application in her browser, while additional data come from the Qt application.</p>
  
  <p>So far I have found these libs:</p>
  
  <ol>
  <li>Qxt: <a href="http://libqxt.bitbucket.org/doc/0.6/index.html" rel="nofollow noreferrer">http://libqxt.bitbucket.org/doc/0.6/index.html</a> but being a newbie on C++/Qt I miss some examples. Added: I have found one example <a href="https://sites.google.com/a/embeddedlab.org/community/technical-articles/qt/qt-posts/howtocreateasimplewebserviceusingqtandlibqxt" rel="nofollow noreferrer">here</a></li>
  <li>gSoap: <a href="http://www.cs.fsu.edu/~engelen/soap.html" rel="nofollow noreferrer">http://www.cs.fsu.edu/~engelen/soap.html</a> has more examples and documentation and also seems to support JSON</li>
  <li>KD SOAP: <a href="http://www.kdab.com/kdab-products/kd-soap/" rel="nofollow noreferrer">http://www.kdab.com/kdab-products/kd-soap/</a> with no example as far as I can tell, docu is <a href="http://docs.kdab.com/kdsoap/1.2.0/index.html" rel="nofollow noreferrer">here</a></li>
  <li>Qt features itself, but it is more about acting as a client: <a href="http://qt-project.org/videos/watch/qt-networking-web-services" rel="nofollow noreferrer">http://qt-project.org/videos/watch/qt-networking-web-services</a></li>
  </ol>
  
  <p>Checking SO gives me basically links to the above libs</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/3315411/webservice-with-qt">webservice with Qt</a> with an example I do not really get.</li>
  <li><a href="https://stackoverflow.com/questions/3078486/how-to-create-a-webservice-by-qt?rq=1">How to Create a webservice by Qt</a></li>
  </ol>
  
  <p>So basically I do have the <strong>following questions</strong>:</p>
  
  <ol>
  <li>Which lib would you use? I want to keep it as simple as possible and <strong>would need an example</strong>.</li>
  <li>Is there another (easy!) way to provide the JSON data to the JavaScript Web page besides the WebService?</li>
  </ol>
  
  <p>-- Edit, remarks: ---</p>
  
  <p>Needs to be application intrinsic. No web server can be installed, no extra run time can be used. The user just runs the app. Maybe the Qt WebKit could be an approach....</p>
  
  <p>-- Edit 2 --</p>
  
  <p>Currently checking the tiny web servers as of SO " <a href="https://stackoverflow.com/questions/3122508/qt-http-server">Qt HTTP Server?</a> "</p>