Advertisement
simeonvarbanov

Untitled

Nov 24th, 2012
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. import stub.*;
  2. import stub.WSCustomerStub.GetBalance;
  3. import stub.WSCustomerStub.GetBalanceResponse;
  4. import stub.WSCustomerStub.MoveAmount;
  5. import stub.WSCustomerStub.MoveAmountResponse;
  6.  
  7. public class ClientWS {
  8.  
  9.     public static void main(String args[]) throws Exception {
  10.  
  11.         System.out.println("ClientWS called ...");
  12.         WSCustomerStub stub = new WSCustomerStub(
  13.                 "http://localhost:8080/axis2/services/Wcustomer");
  14.         GetBalance b = new GetBalance();
  15.         b.setAccountId(0);
  16.         GetBalanceResponse r = stub.getBalance(b);
  17.         double balance = r.get_return();
  18.         System.out.println("The balance of account with id " + b.getAccountId()
  19.                 + " is equal to: " + balance);
  20.  
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement