SLIDE 11 Java Web Services, Software Park Thailand, 2004
- Dr. Kanda Runapongsa, Khon Kaen University
11
21
Example (cont.) Example (cont.)
/ / Output the results System.out.println("Subtotal: 21.00, Total: 23.10, Tax: " + taxpercent); System.out.println("Subtotal: 21.00, Tax: 0.10, Total: " + total); System.out.println("Total: 23.10, Tax: 0.10, Subtotal: " + subtotal); } catch (AxisFault af) { System.err.println("An Axis Fault occurred: " + af); } catch (Exception e) { System.err.println("Exception caught: " + e); } } }
22
Example (cont.) Example (cont.)
- Compile the client which the following command
Compile the client which the following command
taxservice> >javac javac – –classpath classpath .;%AXISCLASSPATH% .;%AXISCLASSPATH% TaxClient.java TaxClient.java
- Execute the client which the
Execute the client which the following command following command
taxservice>java >java – –cp cp .;%AXISCLASSPATH% .;%AXISCLASSPATH% TaxClient TaxClient Subtotal: 21.00, Total: 23.10, Tax: 0.10000000000000006 Subtotal: 21.00, Total: 23.10, Tax: 0.10000000000000006 Subtotal: 21.00, Tax: 0.10, Total: 23.1 Subtotal: 21.00, Tax: 0.10, Total: 23.1 Total: 23.10, Tax: 0.10, Subtotal: 21.0 Total: 23.10, Tax: 0.10, Subtotal: 21.0
- You should see the above output!
You should see the above output!