如何避免需要在CXF或JAX-WS生成的Web服务客户端中指定WSDL位置?
当我从CXF使用wsdl2java生成Web服务客户端(生成类似于wsimport的东西)时,通过maven,我的服务从以下代码开始: @WebServiceClient(name = "StatusManagement", wsdlLocation = "c:/some_absolute_path_to_a_wsdl_file.wsdl", targetNamespace = "http://tempuri.org/") public class StatusManagement extends Service { public final static URL WSDL_LOCATION; public final static QName SERVICE = new QName("http://tempuri.org/", "StatusManagement"); public final static QName WSHttpBindingIStatus = new QName("http://tempuri.org/", "WSHttpBinding_IStatus"); static { URL url = null; try { url = new …