private Long lastBillMin = null;//getter & setter in code
private String status = null;//getter & setter in code
public CxLastBill(HashMap
//Call End point Runtime and set some properties for request
ECAAccountStub proxy;
try {
proxy = new ECAAccountStub(hm.get("RBMEP"));//Endpoint
proxy._getServiceClient()
.getOptions()
.setProperty(
org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
Boolean.FALSE);
proxy._getServiceClient()
.getOptions()
.setProperty(
org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,
basicAuthentication);
/*
Code implementation
ie, Set inputs and get Outputs for client requirement
cxRef is used for query the data
Ex: QueryAccountInput
queryAccountOutput
*/
setLastBillMin(queryAccountOutputObject.getLastBillMny());//get last Bill money from response value
setStatus("OK");
} catch (Exception e) {
// TODO: handle exception
setStatus("ERROR: " + e.getMessage());
}
Ref :
http://wiki.servicenow.com/index.php?title=Java_Apache_Axis2_Web_Services_Client_Examples#gsc.tab=0