Scripts to deploy iSeries web services

Deploying a web service on the Integrated Web Services for i5/OS server is cumbersome. You have to step through a wizard in the IBM Web Administration for i5/OS browser interface. This is extremely slow and error-prone. Fortunately there is a way to automate the deployment of your web services.

It turns out there are a couple of (currently undocumented) shell scripts that come with the product. They can be found in the /qibm/proddata/os/webservices/v1/server/bin directory of the IFS.

There are 5 scripts available (for use in a QShell session):

  • installWebService.sh
  • uninstallWebService.sh
  • listWebServices.sh
  • startWebService.sh
  • stopWebService.sh

When you run a script without specifying any parameters some basic help is displayed.

The following sequence of commands can be used to redeploy a web service:

cd /qibm/proddata/os/webservices/v1/server/bin
sh ./stopWebService.sh -server WSERVICE1 -service MYSERVICE
sh ./uninstallWebService.sh -server WSERVICE1 -service MYSERVICE
sh ./installWebService.sh -server WSERVICE1 -programObject
     /QSYS.LIB/MYLIB.LIB/MYSERVICE.SRVPGM

These small scripts make a developer's life much easier when developing and testing web services on iSeries.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options