spring boot
soap示例不打印响应。
请添加此行
@Bean
CommandLineRunner lookup(WeatherClient weatherClient) {
return args -> {
String zipCode = "94304";
if (args.length > 0) {
zipCode = args[0];
}
GetCityForecastByZIPResponse response = weatherClient.getCityForecastByZip(zipCode);
/// ADD THIS LINE PLEASEEEEEE
weatherClient.printResponse(response);
};
}