This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
engine:webservices:start [2015/07/01 22:57] asok |
engine:webservices:start [2017/06/20 17:13] (current) asok [Testing a Web Service using catest] |
||
---|---|---|---|
Line 60: | Line 60: | ||
See the method **ca_test_server.method** for examples of #json usage. | See the method **ca_test_server.method** for examples of #json usage. | ||
+ | ====Testing a Web Service using catest==== | ||
+ | |||
+ | Here is an example. Run something like the followings: | ||
+ | <code> | ||
+ | str host="http://ig.dreamapps.com/da/ws" | ||
+ | set s=#json(file "zx_auth_q.json") | ||
+ | set s=#json(s,"businessid","630006") | ||
+ | set s=#json(s,"username","asok@dreamapps.com") | ||
+ | set s=#json(s,"password","go") | ||
+ | |||
+ | set s=#http(host,"POST",s) | ||
+ | |||
+ | print s | ||
+ | </code> |