Section 10.19. Testing the Web Service Client


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 = [2005], Make = [Toyota], Model = [Camry], status = [Available]      [java] Year = [1999], Make = [Toyota], Model = [Corolla], status = [Available]      [java] Year = [2005], Make = [Ford], Model = [Explorer], status = [Available] 



JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net