Basic steps for calling the API

  • Create an instance of the LawsonHttpClient class.

    Do not reuse this instance, such as for another user. Always be sure to log out before attempting to log in again through your own program.

  • Verify a valid user through the login() method.

  • If the user is valid, make an HTTP call through the executeGetMethod() or executePostMethod() method. A URL, for example, the call to Data, Drill, or Transaction, is a parameter of this method.

  • Log out of the session using the logout() method.

    You can make multiple calls to executeGetMethod() and executePostMethod() within an application. In this case, do not perform a logout() after each executeGetMethod() or executePostMethod(). Call logout() after all calls to executeGetMethod() or executePostMethod().