proxyFactory.setAddress(address);
proxyFactory.setServiceClass(SmallImageWebService.class);
SmallImageWebService imageService = (SmallImageWebService) proxyFactory.create();
//调用SmallImageService
SmallImageResult result = imageService.getImage();
assertTrue(result.getImageData().length > 0);
//保存图片文件并校验
String tempFilePath = System.getProperty("java.io.tmpdir") + "smalllogo.jpg";
OutputStream os = new FileOutputStream(tempFilePath);
IOUtils.write(result.getImageData(), os);
IOUtils.closeQuietly(os);
System.out.println("图片已保存至" + tempFilePath);
}