[BISERVER-11268] -  Centralize and Standardize the encoding/decoding of WebService calls from clients of the Pentaho Servers

Using the new Encode API
Merge pull request #417 from brendan-lynch/encode

Encode
BISERVER-11241 - fix tests
Merge pull request #418 from aliakseihaidukou/BISERVER-11241

Biserver 11241 - fix tests