Examples of OEJsonRpc()


Examples of fr.inouk.OpenERPJSONRPCClient.OEJsonRpc()

    @Test(groups = {"protocol"})
    public void BadOpenERPServiceOrMethod() {
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);

        try {
            JSONObject sessionInfo = (JSONObject) server.OEJsonRpc("http://localhost:8069/web/session/get_session_infonas", "call", new JSONObject());
        } catch (OpenERPServiceOrMethodException ex) {
            System.out.println("catched HttpRequestException()");
            System.out.println("cause="+ex.getCause());
        }
    }
View Full Code Here

Examples of fr.inouk.OpenERPJSONRPCClient.OEJsonRpc()

    @Test(groups = {"protocol"})
    public void testConnection() {
        OpenERPJSONRPCClient server = new OpenERPJSONRPCClient(SERVER_URL+":"+SERVER_PORT);
        System.out.println("Server="+server);

        JSONObject sessionInfo = (JSONObject) server.OEJsonRpc("http://localhost:8069/web/session/get_session_info", "call", new JSONObject());
        System.out.println("session_info"+ sessionInfo.toString());
    }


    //*****( 'database' service )**************************************************************************************/
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.