ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

HTTP Server - Script Request Not Valid

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • HTTP Server - Script Request Not Valid

    I'm attempting to provide an RPG REST Web Service for the first time. Fun stuff! I've created the standard IBM HTTP server using Scott Klement guide (thank for all that you do Scott). The HTTP server is running and seems to be functioning. I created/copied a very basic example RPG program for the web service to return customer and address (again copying Scott's examples). When testing the web service, I've gotten several errors which I've been able to resolve (I think).

    Problem 1 - I was using an incorrect url - http://name.com/zappix/MEIGR and received 404 not found errors. Once I added the port # to the url I was able to bypass this issue. http://name.com:8008/zappix/MEIGR.
    Problem 2 - Forbidden - Rule - the IBM configuration file had an entry for the root directory with order deny,allow deny from all; which I changed to order allow,deny allow from all, which fixed the forbidden rule issue. I'm not sure if I corrected this issue properly, but I no longer have the Forbidden by rule issue.
    Problem 3 - script request is not valid. The script is not executable. Is this referring to the ScriptAlias entry in the configuration file? I've checked and re-checked the Script Alias line and it looks ok to me, but then this is my first time I've created an HTTP server. Here is what the ScriptAlias looks like.

    ScriptAlias /zappix /qsys.lib/zappixrest.lib/zappixws.pgm
    <Directory /qsys.lib/zappixrest.lib>
    Order Allow,Deny
    Allow From all
    </Directory>


    The HTTP server was created using IBM Web Administrator for I. I've verified that a folder susezappix was created in the IFS under www folder and the susezappix folder contains 3 other folders conf, htdocs, & logs. The HTTP configuration file says to "allow from all", I've checked the permissions on the susezappix folder in IFS and QTMHTTP as read, write, & execute. The URI that I'm using is http://name.com:8008/zappix/MEIGR. I've tested this using SOAPUI, POSTMAN, and directly from IE browser and get the same error FORBIDDN - by rule.


  • #2
    This appears to be related to the following thread. If a moderator could eliminate all the duplicate posts, put the replies together with the original thread, etc... that would be much appreciated.
    I'm attempting to provide an RPG REST Web Service for the first time. Fun stuff! I've created the standard IBM HTTP server using Scott Klement's guide (thank for all that you do Scott). The HTTP server is running and seems to be functioning. I created/copied a very basic example RPG program for the web

    Comment

    Working...
    X