Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import stub.*;
- import stub.WSCustomerStub.GetBalanceResponse;
- import stub.WSCustomerStub.MoveAmountResponse;
- public class ClientWS {
- public static void main(String args[]) throws Exception {
- System.out.println("ClientWS called ...");
- WSCustomerStub stub = new WSCustomerStub(
- "http://localhost:8080/axis2/services/WSCustomer");
- stub.WSCustomerStub.GetBalance b = new stub.WSCustomerStub.GetBalance();
- b.setAccountId(1);
- stub.WSCustomerStub.MoveAmount move = new stub.WSCustomerStub.MoveAmount();
- move.setFromId(0);
- move.setToId(2);
- move.setAmount(10);
- MoveAmountResponse r2 = stub.moveAmount(move);
- GetBalanceResponse r = stub.getBalance(b);
- double balance = r.get_return();
- System.out.println("The balance of account with id " + b.getAccountId()
- + " is equal to: " + balance);
- System.out.println(r2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement