Configuring an HTTP filtered value set provider
You can configure an HTTP filtered value set customization
that fetches data sets from XML documents through HTTP.
About this task
Important: The XML data source URL used in this procedure
(http://example.com/makes) is fictitious and does not work.
Tip: You can find several samples online that include more instructions on how to configure an
HTTP filtered value set provider. To help find the XML data source URL, you can use Apache Tomcat.
The example that is described in this procedure adds an HTTP filtered
value set that retrieves car makes from an XML document. The XML document uses the following
structure:If a Jazz™ Team Server is installed by using the directory structure InstallDir/server/tomcat/webapps/ROOT/ and you have a file that you want to publish on your Tomcat server, you can copy the file into the root folder or subfolder structure: $CATALINA_HOME/webapps/ROOT/
For example, in a standard Jazz Team Server and Tomcat deployment, to publish a file that is named makes.xml as https://localhost:9443/example_data/makes.xml, complete the following steps:
Note: If you are importing large HTTP value sets from an external server, you may experience
significant delay. This delay can reduce overall server performance. Caching these requests in an
intermediate format allows the server to handle a large volume of requests rapidly. The default for
this caching ability is set to Off.
You can set the caching ability to
On in the advanced properties of the application settings. Available options are:
- HTTP Filtered Value Set Cache Duration: currently defaults to 600 seconds
- HTTP Filtered Value Set Cache Enabled: currently defaults to false. Changing HTTP Filtered Value Set Cache Enabled to true will enable the caching.
- HTTP Filtered Value Sets max Entries: currently defaults to 150.
- Create a folder named example_data in the following location: InstallDir/server/tomcat/webapps/ROOT/
- Copy the file makes.xml into the folder you created.
<xml>
<node>
<id>1</id>
<make>Car_A</make>
<regions>,1,2,</regions>
</node>
<node>
<id>2</id>
<make>Car_B</make>
<regions>,2,</regions>
</node>
...
</xml>
Procedure
Results
Jazz.net channel User Education channel |
Agile learning circle Learning circles |
developerWorks forums |
Deployment wiki Support blog |