本文共 851 字,大约阅读时间需要 2 分钟。
在实际操作中,对于如何在Linux系统上调用接口,可以按照以下步骤进行:
调用现网SPI接口:
ping 10.211.93.48telnet 127.0.0.1 8080
调用Hyp_testing SPI接口:
echo '157105312831' | curl -X POST -H 'Content-type:text/xml' -d @$- http://10.211.93.142:9093/hyspi/getCatelogIdByVcode
调用相关接口:
curl -t http://10.211.93.48:9088/r/getCatelogIdByVcodemsisdn=15088775046
curl -d '15088775046' -H 'Content-type:text/xml' -v -X POST http://10.211.93.48:9088/r/
检查日志文件:
tail -f 20171106.logtail -f HY_SPI.log
tail -f HY_SPI.log | grep 'GetCatelogIdByVcodeServlet'tail -f HY_SPI.log | grep 'GetCatelogIdByVcode'
grep 'Enter GetCatelogIdByVcode service' portal.loggrep '################################msisdn = ' portal.log
关于Hyp_testing接口的变更:
转载地址:http://euzfk.baihongyu.com/