简述:.asmx是webservice服务程序的后缀名,ASP.NET 使用.asmx 文件来对Web Services的支持。.asmx 文件和.aspx文件一样都属于文本文件。它包含在.aspx文件之中,成为ASP.NET应用程序的一部分。
废话不多说上代码
POM引用
commons-discovery
commons-discovery
0.2
webService接口调用,并解析
@Override
public List> selectStoreList(String FTY_CODE_, String DEPT_CODE_)throwsException {
List> storeItemList_ = new ArrayList<>();
//获取webservice接口地址
String endpoint = "http://10.18.26.71/WebService_SB/WS_EquipService.asmx";
//获取域名地址,server定义的
String soapaction = "http://tempuri.org/";
//调用的方法名
String method = "getStoreList";
//创建一个服务(service)调用(call)
org.apache.axis.client.Service service = neworg.apache.axis.client.Service();
//创建一个服务(service)调用(call)
Call call = (Call) service.c