Web service calls *FROM* Lawson

Sort:
You are not authorized to post a reply.
Author
Messages
MBond
New Member
Posts: 3
New Member

    How would one call a web service on another machine FROM lawson?  The call would need to be made in the background without opening a new window.   The web service can accept either a POST or GET request.  For this request, the response is not processed but future request probably would need to process the response. I think the xmlhttp request is the answer but have no documentation on it's use.

    I've seen a lot of posts on calling into Lawson web services from external applications but nothing going the other direction.

    Thanks for your help.

    Gary Davies
    Veteran Member
    Posts: 248
    Veteran Member

      Depends from where you are tyring to do it.  ProcessFlow Integrator has a Web Service node that is very easy to use and handles all the parameters, if it is with a web page within Lawson a http request will do it, as long as there are no authentication requirements it is not too difficult.

      MBond
      New Member
      Posts: 3
      New Member
        Thanks. Do you know where I could find any documentation on it's use or is this just pure Javascript
        and would be called the same as it would on any other web page. Normally I would be calling this from
        an .ASPX page with an ASP script manager tag that would cause the browser to download the AJAX
        libraries to handle the call. Since Lawson is handling the page, I don't know that it is capable of
        downloading foreign script files. Does anyone have a document or pdf that shows the syntax for making
        this kind of call?

        Thanks again for your help.
        MBond
        New Member
        Posts: 3
        New Member
          I failed to mention that we do not have process flow integrator.
          John Henley
          Senior Member
          Posts: 3348
          Senior Member
            Well, now you have a reason to buy it :). Plus the ability to hook into databases and the file/data iterators.
            Thanks for using the LawsonGuru.com forums!
            John
            Scott Nalian
            Basic Member
            Posts: 4
            Basic Member
              I have similar Question, we have only LID client with Lawson 9.0 and do have process flow integrator, Can we define a custom trigger in the Online LID Program to make a WEB call to outside of Lawson and get some data back to the Online LID application?
              Or how would you make a WEB call from an Online LID program to get some data from outside of Lawson?

              Any Sample code or documentation is really appreciated.
              Thank you in advance.
              Jason Beard
              Veteran Member
              Posts: 124
              Veteran Member
                Scott -
                There is nothing within the Lawson 4GL that would facilitate this type of integration. You could "shell out" of the COBOL and execute something else that did the web service call and returned the data but I'm not sure the performance would be acceptable to the end user... PFI could be triggered on any action from an online screen and make the call however it would be a disconnected process that would happen independently of the online screen once initiated. For example, on Add from your screen you can initiate a flow however there is nothing about that flow that is going to return data back to that online screen. If multiple steps/events are acceptable in the process you are developing I suppose you could initiate a flow that writes the results of the web service to a file or table and then perform a secondary action on the form to consume that data.... it's clunky but possible. Hope this helps.
                Jason Beard
                617-548-5568
                jabeard3@gmail.com
                You are not authorized to post a reply.