1. Skip to navigation
  2. Skip to content

THAT'S COOL! RPG-XML SUITE TIPS & TRICKS FOR DEVELOPERS

How to create longer named URLs

Sometimes longer URLs are necessary to make a web service name more meaningful than an acronym coupled with a number (i.e. RXS3). This RPG-XML Suite tip details how to modify your Apache configuration to facilitate longer named URLs by using the ScriptAlias directive.

Modify your Apache config to have the below ScriptAlias tag, replacing mylongprogramname and rxs3.pgm with the appropriate name of your longer URL name and the actual name of the program you want that longer URL to map to. Note that this will require a restart of the Apache server.

To edit from the green screen side use the EDTF command:

EDTF '/www/myrxs/conf/httpd.conf'

To restart the MYRXS Apache server first issue the ENDTCPSVR command below. Look in the QHTTPSVR subsystem and make sure that all MYRXS jobs have ended before issuing the STRTCPSVR command below.

ENDTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)

STRTCPSVR SERVER(*HTTP) HTTPSVR(MYRXS)

IFS File Contents: /www/myrxs/conf/httpd.conf

Listen *:8181

DocumentRoot /www/MYRXS/htdocs

CGIConvMode %%EBCDIC/EBCDIC%%

ScriptAlias /MYRXS/mylongprogramname /qsys.lib/MYRXS.lib/rxs3.pgm

ScriptAliasMatch ^/MYRXS/(.*) /qsys.lib/MYRXS.lib/$1.pgm

<Directory />

Options None

order deny,allow

deny from all

</Directory>

<Directory /www/MYRXS/htdocs>

order allow,deny

allow from all

<FilesMatch "\.html(\..+)?$">

Options +Includes

SetOutputFilter Includes

</FilesMatch>

</Directory>

<Directory /qsys.lib/MYRXS.lib>

allow from all

order allow,deny

options +ExecCGI

</Directory>

See the below screen shot showing how to invoke it from the Web Service Tester application included with your zip file download.


Create your own XML web service from RPG today.

Download The Free Trial! Go

Client Satisfaction

I would like to take this opportunity to thank you for being so helpful during our process and specifically to Aaron for all your prompt communications. Apart from the functionality of the product, you have largely sold your product to us through the support you have shown.

Mark Briggs,
Pfizer Australia

Case Study

Horizon Hobby

"processes credit authorizations real-time."More

Client Satisfaction

I followed some example code on your website and have a simple app up and running very similar to what my client needs. I just need to adapt it to their JD Edwards World Database. Your software is making me look like a hero!

Carl Galgano
EDI Consulting

Client Satisfaction

With the help of RPG-XML Suite I was able to cut my personal project time in half. RPG-XML Suite is a proven toolset that allows for easy creation of XML web services from RPG. I'd recommend it to anyone on the iSeries / System i platform because it runs natively in RPG with Apache giving it excellent performance!

Bruce 'Hoss' Collins,
AAA Cooper Transportation

Client Satisfaction

RPG-XML Suite enables us to communicate from our AS400 real-time with our credit vendors, and the implementation was quick and easy. I would recommend it to anyone.

Margaret,
Spartan Insurance

Case Study

Sunbelt rentals

"....keeping Java in their coffee cup!"More

Client Satisfaction

Aaron,
I just wanted to take a few moments and say thanks for the help with the web service. I have it working now and we are creating tickets from the XML data. Really cool stuff! Thanks!

Brad Abernathy
Sunbelt Rentals




Employment

View Current
Employment Opportunities.

Go

Our Partners

Get an overview of how to leverage a partnership with us.

Go

FAQs

See the questions everyone else is asking.

Read

Glossary of Terms

Get a better handle
on all the acronymns.

Read