example of apache axis2 service client consumption

http://briansjavablog.blogspot.in/2013/01/axis2-web-service-client-tutorial.html 1: package com.org.samples.webservices.client; 2: import java.rmi.RemoteException; 3: import com.org.webservices.client.AccountDetailsServicesStub; 4: import com.org.webservices.client.AccountDetailsServicesStub.AccountDetailsRequest; 5: import com.org.webservices.client.AccountDetailsServicesStub.AccountDetailsResponse; 6: public class SynchronousWebServiceClientTest 7: { 8: public static void main (String [] args) throws RemoteException 9: { 10: AccountDetailsServicesStub servicesStub = new AccountDetailsServicesStub(WebServiceCientUtils.SERVICE_ENDPOINT); 11: AccountDetailsRequest accountDetailsRequest = new AccountDetailsRequest(); 12: accountDetailsRequest.setAccountNumber("12345"); 13: AccountDetailsResponse accountDetailsResponse = servicesStub.accountDetails(accountDetailsRequest); 14: WebServiceCientUtils.logAccountDetails(accountDetailsResponse.getAccountDetails()); 15: } 16: }

Comments

Popular posts from this blog

தீபம் பிளக்ஸ்

தட்டு வண்டியில் காளிக்கோயில் - சிறுகதை

காது புடி வாத்தியார்