Package org.jitterbit.integration.server.engine.json

Examples of org.jitterbit.integration.server.engine.json.JsonSessionCredentials


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


            return createForException(-1, e, "jsonToXml");
        }
    }

    private static JsonSessionCredentials createSessionCredentials(WsJsonSessionId wsSessionId) {
        return new JsonSessionCredentials(new JsonSessionId(wsSessionId.getSessionGuid()),
                        wsSessionId.getJitterbitUser(),
                        wsSessionId.getMd5Pwd());
    }
View Full Code Here

    @Override
    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");
View Full Code Here

    @Override
    public WsJsonError closeJsonSession(WsJsonSessionId wsSessionId) throws java.rmi.RemoteException {
        try {
            JsonEngine engine = getEngine();
            JsonSessionCredentials credentials = createSessionCredentials(wsSessionId);
            engine.closeSession(credentials);
            return createForSuccess();
        } catch (Exception e) {
            return createForException(-1, e, "closeSession");
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.server.engine.json.JsonSessionCredentials

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.