我正在用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);
}
}