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);
	}

}

猜你喜欢

转载自hamber.iteye.com/blog/1837914