11lxm 发表于 2017-1-4 06:13:49

apache cxf Client (soupUI)

public class CxfClientTest {
public static void main(String[] args) throws Exception {
URL url = new URL("http://localhost:8080/finance/services/hello?wsdl");
LoginServiceImplService service = new LoginServiceImplService(url);
LoginService login = service.getLoginServiceImplPort();
MapConvertor convert = new MapConvertor();
MapEntry mapEntry = new MapEntry();
mapEntry.setKey("dasdas");
mapEntry.setValue("dddd");
convert.getEntries().add(mapEntry);
MapConvertor result = login.login(convert);
System.err.println(result);
}
}
页: [1]
查看完整版本: apache cxf Client (soupUI)