/* (non-Javadoc)
* @see org.codehaus.xfire.jaxb2.IPictureService#EchoPicture(org.codehaus.xfire.mtom.EchoPicture)
*/
public EchoPictureResponse EchoPicture(EchoPicture req)
{
EchoPictureResponse response = new EchoPictureResponse();
Assert.assertNotNull(req.getImage());
try
{
InputStream is = req.getImage().getInputStream();
int i = 0;
while (is.read() != -1)
i++;
Assert.assertEquals(27364, i);
}
catch (IOException e)
{
Assert.fail(e.getMessage());
e.printStackTrace();
}
FileDataSource source = new FileDataSource(getTestFile("src/test-resources/xfire.jpg"));
response.setImage(new DataHandler(source));
return response;
}