Original Message:
Sent: Mon November 24, 2025 01:14 PM
From: Nadir K Amra
Subject: Library list for SQL RESTful Webservices in IWS
Hi, The following PTFs should resolve the field limitation in web admin GUI for library list:
SJ08056 V7R6M0
SJ08057 V7R5M0
SJ08058 V7R4M0
------------------------------
Nadir K Amra
Original Message:
Sent: Wed November 12, 2025 05:07 AM
From: Tim Fathers
Subject: Library list for SQL RESTful Webservices in IWS
Many thanks! Will these changes be made available as PTFs?
------------------------------
Tim Fathers
Original Message:
Sent: Tue November 11, 2025 10:54 AM
From: Nadir K Amra
Subject: Library list for SQL RESTful Webservices in IWS
Hi, I will update GUI to increase the maximum for library list. But I do not believe the Qshell command setWebServiceProperties.sh command has a limit, so that would be the way to go for now. You can try to set the JDBC property from web admin gui. Select the service. Go to properties and select the JDBC properties tab. Change the libraries property. For example:
libraries=lib1;lib2;lib3;
But as has been indicated, there is no way to map SQL codes to HTTP status code. Another thing that is on our TODO list.
------------------------------
Nadir K Amra
Original Message:
Sent: Tue November 11, 2025 06:39 AM
From: Tim Fathers
Subject: Library list for SQL RESTful Webservices in IWS
Yep, it's me! I think Nadir was answering a different question I had regarding HTTP headers, unless I missed something.
If we can't make IWS work for us, we'll stick with our existing framework but I'm not giving up yet, as it's so close to what we require.
Thanks again,
Tim.
------------------------------
Tim Fathers
Original Message:
Sent: Tue November 11, 2025 06:21 AM
From: Marius le Roux
Subject: Library list for SQL RESTful Webservices in IWS
Ah you are that Tim!. :)
If its the SQL only route, Nadir did confirm its on the roadmap in the last post for IWS from you.
For the QZDA* jobs library list (you can route them to a specific subsystem to get better control of them and also then inside of this subsystem , change their prestart settings accordingly (like the Class and the Job Description).
But it seems that using the Options inside the "Use Server's User ID" it will use that and append the libraries specified (if any is specified extra) during the webservice creation process from my understanding (though to be transparent here, I have not tested this yet - we just kept it simple by specifying the user in the webservice creation with the prestart Job config route change).
If might be open to other open source options to replace with, and don't mind some relatively easy coding , look at ILEAstic / NoxDB perhaps? (there is good community support on that though)
------------------------------
Marius le Roux theIBMiGuy
Owner , IBM i Modernization and Integration Consultant
MLR Consulting
Original Message:
Sent: Tue November 11, 2025 05:34 AM
From: Tim Fathers
Subject: Library list for SQL RESTful Webservices in IWS
Hi Marius,
Many thanks for the reply. My questions were about SQL webservices as I would like to avoid using RPG, where possible. We already use a framework that I wrote some time ago, which exposes SQL stored procedures as webservices, hence we already have quite a lot of SQL/web code in place. Also, it looks like an RPG program must be located using an absolute path, rather than using the library list, which would not work in our environment.
My goal here is to see if we can replace the framework we have with the IWS because ours has some limitations and it would make sense to move to something supported by IBM, instead of maintaining what we have.
I will try the JOBD suggestion but I am wondering if it will only affect the IWS server job and not the QZDA* job that runs the SQL. I think the library list I enquired about in the original post is the JDBC job library list, which is set when a job is grabbed from the pool but I will try it.
Not being able to set the HTTP status from SQL might prove to be a showstopper, unless I can use our reverse proxy to remap SQL exceptions to status codes.
Thanks again for taking the time to answer - much appreciated.
Tim.
------------------------------
Tim Fathers
Original Message:
Sent: Tue November 11, 2025 02:14 AM
From: Marius le Roux
Subject: Library list for SQL RESTful Webservices in IWS
Tim,
For the library list , try to consider running it through a JOBD that you can specify with the web services server creation's user?
That will give you the most flexibility for changes.
If you really want to mess with the "configs", navigate to the path on the IFS : /QIBM/ProdData/OS/WebServices/bin/
Then use the setWebServiceProperties.sh command for that WebService , see :
(all are listed in this pdf: https://public.dhe.ibm.com/systems/support/i/iws/systems_i_software_iws_pdf_WebServicesServer_new.pdf)
On your custom error returns (I am assuming this will be a RPGLE procedure right?) , you can return that as an Specific value in the Procedure to return , example :
(reference : https://developer.ibm.com/tutorials/i-rest-web-services-server3/ )


Just populate that variable then you are set to go.
Hope it helps.
------------------------------
Marius le Roux theIBMiGuy
Owner , IBM i Modernization and Integration Consultant
MLR Consulting
Original Message:
Sent: Mon November 10, 2025 06:38 AM
From: Tim Fathers
Subject: Library list for SQL RESTful Webservices in IWS
Hi all,
For RESTful webservices created in the IWS, there seems to be a limit of 100 characters for the library list (below), which is nowhere near long enough for our library list. Is there any way to specify a longer library list (maybe by modifying the underlying config file directly)?

EDIT:
I'd also like to know if there's a way to return other status codes, such as 401 (Unauthorized), 403 (Forbidden), etc.?

Many thanks,
Tim.
------------------------------
Tim Fathers
------------------------------