10.19. Testing the Web Service Client
We've generated Web Service proxy code and written a client to call the findAvailableCars Web Service. Go to the ch10/client sub-directory, and compile and run the client by typing: ant run-client.
Ant runs the client (by MyAxisClient's main( ) method) after generating and compiling the client code. You should see the following output in the client console:
... [java] Finding InventoryService ... [java] Getting InventoryEndpoint ... [java] Getting Cars ... [java] Year = , Make = [Toyota], Model = [Camry], status = [Available] [java] Year = , Make = [Toyota], Model = [Corolla], status = [Available] [java] Year = , Make = [Ford], Model = [Explorer], status = [Available]