Step 9. Create User Agent file for iiiFN07
INT007 - Department List Inquiry
In this step, you will create a new User Agent configuration file to test your server function. As in the previous exercise, the User Agent will act as a client querying the server function you have created. This time, however, the User Agent will invoke the new service implemented by function iiiFN07.
1. You need to copy the iiiPRO04_client_test.lih file to create iiiPRO05_client_test.lih. There are a number of ways to achieve this. This time follow these steps:
a. In your iii Training project, expand the folder iiiPRO04_client_test.lih. Open it for editing by right-clicking and selecting Open With, Properties Editor.
and selectb. Select Save As from the File menu, or select the Save As button from the toolbar.
c. Select the folder XML List Request and enter iiiPRO05_client_test.lih and click Save. Click Yes when prompted. Now you have a new User Agent configuration file to use for this exercise.
2. You need to modify the User Agent file to connect to the new service you have created, instead of your iiiFN05 service from INT004. The iiiPRO05_client_test.lih should still be open. Make the following change:
Old Line |
New Line |
Name=iiiFN06_SERVICE |
Name=iiiFN07_SERVICE |
xml.uri=/cgi-bin/jsmdirect?iiiFN06_SERVICE |
xml.uri=/cgi-bin/jsmdirect?iiiFN07_SERVICE |
If you are using a local Windows web server and JSM Server your code should look like the following:
xml.uri=/cgi-bin/jsmdirect.exe?iiiFN07_SERVICE
3. The User Agent file is now ready to test iiiFN07_SERVICE and iiiFN07. iiiPRO05_client_test.lih.
e and close the host configuration file