webMethods step by step creation and implementation of Hash Table:
Go to wMPublic.pub.hashTable and copy all the services in your empty flow:
Specify the below input and output variables.
Your Create HashTable service would be creating HashTable(to store your key and references)
If you run it it will show the below output (empty HashTable) created
Now, map and execute the put service, used to put key and value pair in your Hash Table
When you run the put service after mapping, the output will be the Key 'A' and the value 'a'
Again insert one more Key and value pair in the HashTable.
After you run you can find the result with two key and value pairs
Listkeys service is used to list all the keys in your HashTable
Result after running will be the Keys (A and B)
Likewise you can get the value of a Key by passing your key
Result for Key B value is b
Service size is used to get the size of HashTable
Since we have inserted only two key and value pairs, the result(size) is 2