f355e1a7b18ee10b9304185ab2486c9ec9114268
[src/app-framework-binder.git] / src / afb-wsj1-test.cpp
1 #include "afb-wsj1.hpp"
2
3 void onreply(const char *value){
4         std::cout << value << std::endl;
5     exit(0);
6 }
7
8 int main(int ac, char **av){
9     char*uri=av[1];
10     char*api =av[2];
11     char*verb =av[3]; 
12     char*req =av[4];
13     afb::wsj1 sj1;
14     sj1.connect(uri);
15     sj1.call(api,verb,req,onreply);
16         system("PAUSE");
17     return EXIT_SUCCESS;
18 }