Page 1 of 1

TutorialPublish Error status code 404 (RESOLVED)

Posted: Fri Nov 01, 2019 1:38 am
by pkoopmanpk
I just tried the tutorial at https://apps.lansa.com/lansav14sp2/dem/ ... =APIBasics for creating REST API's.

I downloaded en checked in the imports from TutorialPublish.v1.zip and ConsumeTutorialPublish.v1.zip to our IBM i.

I think I'm missing a step because I get:

http://system8/dc-pgmlib/dem/tutorialw.html

Code: Select all

Error status code: 404 message: Not found received from server
Have you defined /Contacts in your Server Module?
EPC 142010 is installed.

I checked the sample sources and watched the video's, but I can't figure it out.

Re: TutorialPublish Error status code 404

Posted: Fri Nov 01, 2019 3:28 am
by Pablo
Hi,

If you are going to use IBM i you must set up a Windows / Linux to act as front end.

There have been people who set it up, take a look at this thread ... towards the end of it.

viewtopic.php?f=3&t=1915

Hope this helps.
Pablo

Re: TutorialPublish Error status code 404

Posted: Fri Nov 01, 2019 8:29 pm
by pkoopmanpk
Okay, I tried it on the test server, but got the same error. And while searching I found this:

https://apps.barenbrug.lan/dc-pgmlib/lansaweb?about
About LANSA Web Server Extension (IIS)
Version 14
Service Pack 2
EPC 142003
Build Date May 3 2018
I guess this should have been 142010?

EPC 142010 was installed on the development PC, but not on the IIS web server.

Re: TutorialPublish Error status code 404 (RESOLVED)

Posted: Mon Jan 06, 2020 9:44 pm
by pkoopmanpk
With the help of Lansa we found a solution.

webmodules.conf contains UTF-8 data but it's CCSID was (37) EBCDIC.

The following QSH command solved our issue:

Code: Select all

setccsid 819 /LANSA_dc@pgmlib/run/conf/webmodules.conf
The following link discusses how to change the CCSID (and content) of a streamfile:
https://www.code400.com/forum/forum/tip ... streamfile