1 //测试实例
2 public classtest {3
4 public static voidmain(String[] args) {5 //TODO Auto-generated method stub
6 test t=newtest();7 //发送的报文
8 String requestXml="<?xml version=\"1.0\" encoding=\"UTF-8\"?>SWNDPJSWZJsdfas123201511021449477700000
交易成功获取纳税人年度评价结果成功。identityTypesjrysjjgNSXYNSXY440681791920151]]>";;9 String responseXml=t.getResponseXml(requestXml);10 Map xmlMap=t.parseXml2Map(responseXml);11 System.out.println(xmlMap);12 }13 /**
14 * 使用axis调用接口发送报文15 *@paramrequestXml 发送的报文16 *@returnresponseXml 返回的报文17 *@throwsException18 */
19 public static String getResponseXml(String requestXml) throwsException{20 String url = "";//输入TargetEndpointAddress的地址
21 String TargetEndpointAddress =url;22 String TargetNamespace = "";//输入TargetNamespace
23 Service service = newService