Web service calls *FROM* Lawson
Last Post 05/25/2016 9:29 PM by Jason Beard. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
MBond
New Member
(7 points)
New Member
Posts:3


Send Message:

--
12/15/2009 8:52 AM

    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
    (738 points)
    Veteran Member
    Posts:248


    Send Message:

    --
    12/18/2009 7:09 AM

    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
    (7 points)
    New Member
    Posts:3


    Send Message:

    --
    12/18/2009 7:43 AM
    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
    (7 points)
    New Member
    Posts:3


    Send Message:

    --
    12/18/2009 7:44 AM
    I failed to mention that we do not have process flow integrator.
    John Henley
    Private
    Private
    Senior Member
    (9323 points)
    Senior Member
    Posts:3125


    Send Message:

    --
    12/18/2009 8:10 AM
    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
    Sr. Software Engineer
    Jack In The Box Inc
    New Member
    (3 points)
    New Member
    Posts:1


    Send Message:

    --
    04/07/2016 4:00 PM
    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
    Private
    Private
    Veteran Member
    (179 points)
    Veteran Member
    Posts:65


    Send Message:

    --
    05/25/2016 9:29 PM
    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.