public WsJsonError xmlToJson(WsJsonSessionId wsSessionId, WsConversionParams wsParams) throws RemoteException {
try {
JsonEngine engine = getEngine();
JsonSessionCredentials credentials = createSessionCredentials(wsSessionId);
ConversionParams conversionParams = createConversionParams(wsParams);
engine.xmlToJson(credentials, conversionParams);
return createForSuccess();
} catch (Exception e) {
return createForException(-1, e, "jsonToXml");
}
}