最后,我使用CXF库,并使用Paul Vargas的答案实现:
没有WSDL文档文件
此解决方案需要客户端生成。
QName qname = new QName("http://thenamespace", "FooService");FooService service = new FooService(null, qname); // null for ignore WSDLFoo port = service.getFooPort();BindingProvider bindingProvider = (BindingProvider) port;bindingProvider.getRequestContext() .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://foo.com/soap/fooBean");// Use the serviceString result = port.doSomething(param);
使用标准的颚爪,此解决方案无效,CXF是必需的。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)