protected void initNet() { if (httpModule == null) { httpModule = new BaseHttpModule(this); httpModule.init(); httpModule.setRequestListener(requestListener); httpModule.setServiceNameSpace(RequestParamConfig.serviceNameSpace); httpModule.setServiceUrl(RequestParamConfig.ServerUrl); } }
@Override public void onSuccess(Response response) { if (progressDialog != null && progressDialog.isShowing()) progressDialog.dismiss(); httpModule.processResponse( httpModule, response, getXmlParser(response), httpModule.getResponseProcess()); }
protected BaseXmlParser getXmlParser(Response response) { response.setResponseAsString(response.getResponseAsString().replace("&", "#")); return httpModule.getBaseXmlParser(response, httpModule.getParseHandler()); }