I am facing an exception calling moses (Statistical Machine Translation) as a service with xmlrpc installed. I firstly open a port to the Moses server
--Listening on port 8082
but the main problem is when I send a rest request with an xml as body parameter.
<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>
When I execute it as a POST request on http://xxx.xxx.xxx.xxx:8082/RPC2
I notice that service on port fails with exception "terminate called after throwing an instance of 'xmlrpc_c::fault' Aborted "
I think the main problem is with xml body structure but I cannot find any documentation on the web for translate method. Any suggestions? Thank you.
UPDATE
Note that if I open a port with setting
--threads all
I never get response back.