INT006 - 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 iiiFN05.
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 XML Request and select iiiPRO04_client_test.lih. Open it for editing by right-clicking and select Open With, Properties Editor.
b. Select Save As from the File menu, or use 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 iiiFN04 service from INT003. The iiiPRO05_client_test.lih should still be open. Make the following change:
|
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?iiiFN05_SERVICE
3. The User Agent file is now ready to test iiiFN05_SERVICE and iiiFN05. Save and close the host configuration file iiiPRO05_client_test.lih.