Hi all
We have a new business partner that allows us to use API calls to retrieve data from their system. We have done similar projects before; but the difference with this business partner is that they can only send/receive in XML format rather than in the JSON format that other business partners ...
Search found 9 matches
- Mon Aug 14, 2023 5:29 pm
- Forum: Questions & Answers
- Topic: Does Lansa v15 have a built-in equivalent of RandomAccessJsonReader for XML responses?
- Replies: 1
- Views: 7539
- Wed Jul 07, 2021 9:27 pm
- Forum: Questions & Answers
- Topic: How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
- Replies: 11
- Views: 50227
Re: How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
Hi Jim
I got the details from:-
https://docs.lansa.com/15/en/lansa018/index.htm#lansa/webserviceseng01_0395.htm
I have the following code at the beginning of my function to turn the debugging.
DEFINE_COM CLASS(#XPRIM_OSUtil) NAME(#OSUtil)
#OSUtil.SetEnvironmentVariable NAME('LANSA_XLIB_CONFIG ...
I got the details from:-
https://docs.lansa.com/15/en/lansa018/index.htm#lansa/webserviceseng01_0395.htm
I have the following code at the beginning of my function to turn the debugging.
DEFINE_COM CLASS(#XPRIM_OSUtil) NAME(#OSUtil)
#OSUtil.SetEnvironmentVariable NAME('LANSA_XLIB_CONFIG ...
- Tue Jul 06, 2021 11:19 pm
- Forum: Questions & Answers
- Topic: How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
- Replies: 11
- Views: 50227
How do I handle HTTP response 303 errors from APIs in Visual Lansa - #XPRIM_HttpRequest
Hi Lansa forum
I am using the #XPRIM_UriBuilder, #XPRIM_HttpRequest and #XPRIM_RandomAccessJsonReader functionality within Visual Lansa v15.
I have previously used Lansa Integrator but have changed to using this new built in functionality for my projects for the last few years.
Usually web service ...
I am using the #XPRIM_UriBuilder, #XPRIM_HttpRequest and #XPRIM_RandomAccessJsonReader functionality within Visual Lansa v15.
I have previously used Lansa Integrator but have changed to using this new built in functionality for my projects for the last few years.
Usually web service ...
- Wed Jan 23, 2019 3:14 am
- Forum: Questions & Answers
- Topic: How do I pass a parameter into a jsmproxy RESTful web service via the URL?
- Replies: 1
- Views: 4836
Re: How do I pass a parameter into a jsmproxy RESTful web service via the URL?
This has now been answered by Karen from Lansa support.
The URL syntax is:-
https://MYSERVER.com/cgi-bin/jsmproxy.exe?MYFUNCTION+auth(123)
Then:-
- define field #auth in the web service function
- add BIND(*FIELD) SERVICE_EXCHANGE(*FIELD) to the HTTPInboundJSONBindService service load command ...
The URL syntax is:-
https://MYSERVER.com/cgi-bin/jsmproxy.exe?MYFUNCTION+auth(123)
Then:-
- define field #auth in the web service function
- add BIND(*FIELD) SERVICE_EXCHANGE(*FIELD) to the HTTPInboundJSONBindService service load command ...
- Tue Jan 22, 2019 3:23 am
- Forum: Questions & Answers
- Topic: How do I specify the return status code passed back to a RESTful web service
- Replies: 1
- Views: 5262
Re: How do I specify the return status code passed back to a RESTful web service
This has now been solved by Theo from Lansa Support.
The code need is:
The code need is:
Code: Select all
SEND RESPONSE(*EMPTY)- Mon Jan 21, 2019 11:31 pm
- Forum: Questions & Answers
- Topic: How do I pass a parameter into a jsmproxy RESTful web service via the URL?
- Replies: 1
- Views: 4836
How do I pass a parameter into a jsmproxy RESTful web service via the URL?
Hi Lansa Forum
Sorry; another question about Lansa Integrator RESTful web services.
I have written an RDMLX function that uses Lansa Integrator to process some data sent to us from a business partner in JSON format via a RESTful web service. They can use a URL in the format:-
https://MYSERVER.com ...
Sorry; another question about Lansa Integrator RESTful web services.
I have written an RDMLX function that uses Lansa Integrator to process some data sent to us from a business partner in JSON format via a RESTful web service. They can use a URL in the format:-
https://MYSERVER.com ...
- Sat Jan 19, 2019 3:09 am
- Forum: Questions & Answers
- Topic: How do I specify the return status code passed back to a RESTful web service
- Replies: 1
- Views: 5262
How do I specify the return status code passed back to a RESTful web service
We have just had a jsmproxy/jsmdirect server set up to enable our business partners to send us data via a RESTful web service.
I have written a new function in RDMLX using JSMX functions to process the JSON data that is sent via the web service.
The basic outline of the function is:-
USE ...
I have written a new function in RDMLX using JSMX functions to process the JSON data that is sent via the web service.
The basic outline of the function is:-
USE ...
- Mon May 21, 2018 6:50 pm
- Forum: Questions & Answers
- Topic: Integrator-Processing unknown JSON fragments
- Replies: 2
- Views: 5693
Re: Integrator-Processing unknown JSON fragments
Hi
Sorry to bump this post but the project I am working on is getting near to the delivery deadline.
I was just wondering if anybody had come across this situation before and how they solved this issue? or if Integrator simply does not allow for this situation?
Thanks in advance
Colin
Sorry to bump this post but the project I am working on is getting near to the delivery deadline.
I was just wondering if anybody had come across this situation before and how they solved this issue? or if Integrator simply does not allow for this situation?
Thanks in advance
Colin
- Wed May 02, 2018 8:33 pm
- Forum: Questions & Answers
- Topic: Integrator-Processing unknown JSON fragments
- Replies: 2
- Views: 5693
Integrator-Processing unknown JSON fragments
Hi All
I have been using Lansa for about 10 years; mostly to produce intranet websites using WAMS. I am currently using Lanas v13SP2. I have been using Lansa Integrator for about 6 months and have had a lot of success with some basic RESTful web services sending a receiving some straightforward JSON ...
I have been using Lansa for about 10 years; mostly to produce intranet websites using WAMS. I am currently using Lanas v13SP2. I have been using Lansa Integrator for about 6 months and have had a lot of success with some basic RESTful web services sending a receiving some straightforward JSON ...