Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import stub.*;
- import stub.WSCustomerStub.GetBalance;
- import stub.WSCustomerStub.GetBalanceResponse;
- import stub.WSCustomerStub.MoveAmount;
- 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/Wcustomer");
- GetBalance b = new GetBalance();
- b.setAccountId(0);
- 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);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement