.NET 服务端 提供wsdl接口 显示 当前已禁用此服务的元数据发布
java 客户端 使用cxf,wsdl 未禁用前可以正常使用,禁用后无法调用接口
public static Su8Service getSu8Service(String nowWsdlUrl) throws MalformedURLException {
if (su8Service == null || (!StringUtilExtend.equalsWithTrim(WSDL_LOCATION.getAuthority(), nowWsdlUrl) && StringUtil.isValidString(nowWsdlUrl))) {
su8Service = null;
synchronized (createLocker) {
if (su8Service == null) {
URL url = new URL(nowWsdlUrl);
WSDL_LOCATION = url;
su8Service = new Su8Service(url, SERVICE);
}
}
}
return su8Service;
}
org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.