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" ?>
9988
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.
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" ?>
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.