endpointInterface = "com.googlecode.jsonwebservice.attachment.ChartPort")
public class ChartPortImpl implements ChartPort {
@Override
public HtmlStreamOutput getHTMLStream(TestInput arg0) {
HtmlStreamOutput html = new HtmlStreamOutput();
html.setOutputFormates("text/html");
try {
// Also look at
//StreamingDataHandler
html.setHtml(new DataHandler(new URLDataSource(new URL("http://code.google.com/p/jsonwebservice/wiki/GettingStarted"))));
} catch (MalformedURLException e) {
e.printStackTrace();
}
return html;
}