dreamhead / moco

Easy Setup Stub Server
MIT License
4.37k stars 1.08k forks source link

tcp socket api fail #246

Open guoyinqiuQAX opened 6 years ago

guoyinqiuQAX commented 6 years ago

my RESPONSE file is 123.json,

[ { "description":"yyy", "request":{ "xpaths":{ "/request/translation/id/text()":"99" } }, "response":{ "text":""
} } ]

when I start the moco server use cammand: java -jar moco-runner-0.12.0-standalone.jar http -p 12306 -c 123.json and send xml to the moco server ,can have successful response request http+xml(post): http://localhost:12306 <?xml version="1.0" encoding="UTF-8" ?>

99 88

but when I start the moco server use cammand: java -jar moco-runner-0.12.0-standalone.jar socket -p 12306 -c 123.json, and send TCP to the moco server,it will be failed,plese help me to solve the problem.

guoyinqiuQAX commented 6 years ago

log.txt

guoyinqiuQAX commented 6 years ago

tcpxml