String wsdlUrl = "";
String wsdlMethod = "";
if (!StringUtil.isNullOrEmptyNoTrim(wsdlUrl) && !StringUtil.isNullOrEmptyNoTrim(wsdlMethod)) {
try {
Client client = new Client(new URL(wsdlUrl.trim()));
Object[] results = client.invoke(wsdlMethod.trim(), new Object[] { param1, param2, param3});
String result = (String) results[0];
LOG.info(result);
} catch (MalformedURLException e) {
LOG.error("接口调用失败!", e);
} catch (Exception e) {
LOG.error("接口调用失败!", e);
}
} else {
LOG.info("Webservice接口地址、Webservice接口方法、Webservice接口方法命名空间系统选项中配置有误,请检查!");
}