bookmarks of the day 12/16/2009
Posted by Toshi | | Posted On Dec 16, 2009 at 11:30 PM
Make a SOAP client with C/C++ and gSOAP.
In this section I will show how to consume the readTemp() remote procedure. This fonction takes a param of type int and returns a float.
XML-RPC で C++ アプリケーションを Web サービス対応可能にする
- リスト 8. sampleClient.cpp
#include <iostream>
#include "XmlRpc.h"
using namespace XmlRpc;
int main(int argc, char* argv[])
{
const char *server = "localhost";
const int port = 8085;
const char *uri = NULL;
XmlRpcValue args, res;
XmlRpcClient c( server, port, uri);
c.execute("Add", args, res);
std::cout<<"result is "<<res<<std::endl;
} - #include <iostream>
#include "XmlRpc.h"
using namespace XmlRpc;
int main(int argc, char* argv[])
{
const char *server = "localhost";
const int port = 8085;
const char *uri = NULL;
XmlRpcValue args, res;
XmlRpcClient c( server, port, uri);
c.execute("Add", args, res);
std::cout<<"result is "<<res<<std::endl;
} - #include <iostream>
#include "XmlRpc.h"
using namespace XmlRpc;
int main(int argc, char* argv[])
{
const char *server = "localhost";
const int port = 8085;
const char *uri = NULL;
XmlRpcValue args, res;
XmlRpcClient c( server, port, uri);
c.execute("Add", args, res);
std::cout<<"result is "<<res<<std::endl;
} - SOAP、XML-RPC、RESTの比較
Programmer Archives IBM DB2 CSVファイルのインポート・エクスポート
・インポート
IMPORT FROM file_name OF DEL INSERT INTO table_name [(column_list)]
- file_name
- インポート元ファイル名(フルパス指定)
- table_name
- インポート先テーブル名
- column_list
- カラムを指定してインポートする場合はカラムのリストを記述
・エクスポート
EXPORT TO file_name OF DEL stmt
- file_name
- エクスポート先ファイル名(フルパスで拡張子も記述)
- stmt
- エクスポートデータ選択用 SELECT ステートメント
Posted from Diigo. The rest of my favorite links are here.