Page 1 of 1

listen for a http post

Posted: Wed Jun 05, 2019 11:41 pm
by sotos
We are doing an http post request (using XPRIM_HttpRequest) to a third party webserver sending some information.

After this initial post the 3rd party webserver is supposed to sent us some information by making a post
to our webserver through a url that we have already sent them with the first post as a parameter.

Is there any way to listen for their post with lansa or even integrator within a time frame
(they are sending us back some fields within an encoded string)?

Re: listen for a http post

Posted: Tue Jun 11, 2019 11:16 am
by tsupartono
You can create an RDML server module that's exposed as web services.

Have a look at this guide for details on publishing web services:
https://apps.lansa.com/lansav14sp2/dem/xdemow_12.html

The guide explains how to create service endpoints (URLs from where the service can be accessed), and how to extract query string & form variables from any HTTP (e.g. POST) requests.

Try that out and see if that would do what you need.
Any questions just ask on this forum.