After a long time I got a chance to work again with QT framework, Here are some of the findings about how to invoke RESTful webservices using QT. It's pretty easy really!! requirements g++ or compatible c++ compiler QT5 or later with QtNetwork module source main.cpp #include <QCoreApplication> #include <QtCore/QUrl> #include <QtNetwork/QNetworkRequest> #include <QtNetwork/QNetworkReply> #include <QJsonDocument> #include <QJsonObject> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QEventLoop eventLoop; QNetworkAccessManager mgr; QObject::connect(&mgr, SIGNAL(finished(QNetworkReply*)), &eventLoop, SLOT(quit())); QNetworkRequest req( QUrl( QString("http://api.openweathermap.org/data/2.5/weather?q=colombo,lk") ) ); QNetworkReply *reply = mgr.get(req); eventLoop.exec(); if (reply->error() == QNetworkReply::NoError) { QString strReply = (QString)reply->r
This blog post shows the basics of using the WSO2 Developer Studio to develop a JAX-WS. After creating the web service, you can write web services clients that use the web service on a network. Java API for XML-Based Web Services (JAX-WS) , which is also known as JSR-224, is the next generation Web services programming model that extends the foundation provided by the Java API for XML-based RPC (JAX-RPC) programming model. Using JAX-WS, developing Web services and clients is simplified with greater platform independence for Java applications by the use of dynamic proxies and Java annotations. Apache CXF is an open source web service framework that provides an easy to use, standard-based programming model for developing web services. Web services can be implemented using different application protocols like SOAP, XML, JSON, RESTful HTTP, and support various transport protocols like HTTP or JMS. WSO2 Developer Studio (formerly named WSO2 Carbon Studio) is a complete Eclipse-based
In this blog post I focus on deploying the pre-built EC2 image of Apache Stratos. Note : This blog post is based on "Stratos Quick Start Guide", Starting the Apache Stratos demo image Spawning the Apache Stratos instance Configuring the Apache Stratos instance Registering a tenant and configuring Cartridges Starting the Apache Stratos demo image Common Prerequisites The following are the recommended prerequisites when running the Apache Stratos demo setup in a single node. Please note that for production deployment the prerequisites will vary based on the scalability requirements. System Requirements Processor : 2.8GHz CPU Memory : At least 8GB memory. However, 16GB is recommended. Disk : 40G hard disk space The following are the memory allocations for Amazon EC2 instance types that you may require: m1.large = 7.5 GB m1.xlarge =15 GB m3.xlarge= 15 GB Software Requirements Git Facter Java (JDK1.6.x) ZIP MySQL Server
Comments
Post a Comment