This topic describes the steps required to run the service discovery sample.
To run the service discovery sample, perform the following actions:
Specify your own WSDL URLs inside the <configuration> element. You can specify as many WSDL URLs as you want.
<discovery-task name="SampleDiscoveryTask">
<discoverer type="HTTP">
<discovererClass>
com.ibm.sr.servicediscovery.http.HTTPServiceDiscoverer
</discovererClass>
<parserClass>
com.ibm.sr.servicediscovery.http.HTTPParser
</parserClass>
<validatorClass>
com.ibm.sr.servicediscovery.http.HTTPConfigurationValidator
</validatorClass>
</discoverer>
<configuration>
<url>specify your first WSDL URL here</url>
<url>Specify your second WSDL URL here</url>
</configuration>
</discovery-task>
You add the sample service discovery task to the scheduler configuration so that the task can be run. In these sample instructions, you run the task manually, but if you change the value of the <enabled> element to true, you can schedule the task to run automatically.
<scheduler-task name="SampleDiscoveryTask">
<type>Timed</type>
<interval>60</interval>
<class>com.ibm.sr.servicediscovery.ServiceDiscoveryTask</class>
<enabled>false</enabled>
<startTimeOffset>1</startTimeOffset>
<intervalGranularity>minutes</intervalGranularity>
<transactionality>None</transactionality>
</scheduler-task>
<WAS_INSTALL_ROOT>\bin\wsadmin -f executeSchedulerTaskImmediate.jacl
-cell <CELLNAME> -node <NODENAME>
-server <SERVERNAME> -taskname SampleDiscoveryTask