【发布时间】:2010-12-02 11:53:20
【问题描述】:
在我的应用程序中,我使用了许多 Web 服务。由于 WSDL 没有更改,我已将 WSDL 文件集成到我的项目中。如果我使用 CXF 中的 WSDL2Java 工具,则 WSDL 位置的绝对路径是硬编码的。
现在我的问题是,如何将@WebserviceClient 注解中的“wsdlocation”参数更改为相对路径?
这是一个例子:
@WebServiceClient(name = "Time",
wsdlLocation = "file:/C:/Users/dominik/Documents/NetBeansProjects/Webservices/src/wsdl/Time.wsdl" ) /*I want this path to be relative */
public class Time extends Service {
【问题讨论】:
标签: wsdl cxf relative-path