我正面临一个异常调用 moses(统计机器翻译)作为安装了 xmlrpc 的服务。我首先打开了一个到摩西服务器的端口
--Listening on port 8082
但主要问题是当我发送一个带有 xml 作为正文参数的休息请求时。
<methodCall>
<methodName>translate</methodName>
<params>
<param>
<value>
<array>
<data>
<value>
<array>
<data>
<value>
<string>struct</string>
</value>
<value>
<string>struct</string>
</value>
</data>
</array>
</value>
</data>
</array>
</value>
</param>
</params>
</methodCall>
当我在http://xxx.xxx.xxx.xxx:8082/RPC2上将其作为 POST 请求执行时
我注意到端口上的服务失败并出现异常“在抛出 'xmlrpc_c::fault' Aborted 的实例后调用终止”
我认为主要问题在于 xml 正文结构,但我在网上找不到任何有关翻译方法的文档。有什么建议么?谢谢你。
更新
请注意,如果我打开一个带有设置的端口
--threads all
我从来没有得到回应。