如何将服务IP添加到cxf wsdl2java生成的Soap客户端

时间:2019-07-07 21:52:02

标签: java soap cxf

我正在用Apache CXF 3.x中的wsdl实现一些自动生成的代码的soap客户端。肥皂存根由apache cxf wsdl2java实用程序生成。为了与Web服务对话,我需要在客户端代码上传递服务ip。看来我无法找到设置服务IP的方法,需要一些帮助才能使其通过。

public class SampleService extends Service {    
    public SampleService (URL wsdlLocation) {
        super(wsdlLocation, SERVICE);
    }

    public SampleService (URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public SampleService () {
        super(WSDL_LOCATION, SERVICE);
    }

    public SampleService (WebServiceFeature ... features) {
        super(WSDL_LOCATION, SERVICE, features);
    }

    public SampleService (URL wsdlLocation, WebServiceFeature ... features) {
        super(wsdlLocation, SERVICE, features);
    }

    public SampleService (URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
        super(wsdlLocation, serviceName, features);
    }
}

0 个答案:

没有答案