If you are willing to add another layer, you could implement a tag library which transforms the data returned from the WebService into html or something else. I did that with success and used it in many projects. Let me know if you need more information.<br>

<br><div class="gmail_quote">On 20 July 2012 11:44, Enrico Ballarin Dolfin <span dir="ltr"><<a href="mailto:enrico@sed.ethz.ch" target="_blank">enrico@sed.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I'm looking for a way to include results of a webservice call into a JSP that<br>
generates an OpenCms 8.0.0 page.<br>
<br>
<br>
The webservice calls can returns a PNG image, a text, an XML file, etc, that<br>
is stored in a DB table as blob field.<br>
<br>
<br>
For the webservice call I'm using a syntax similar to this:<br>
<br>
/MyServices/GetPngBlob?parameter=...<br>
/MyServices/GetXmlBlob?parameter=...<br>
/MyServices/GetTextBlob?parameter=...<br>
<br>
<br>
While this approach works well for PNG images, e.g.<br>
<br>
<p><img src="/MyServices/GetPngBlob?param2=<%= value %>" /></p><br>
<br>
I'm having problems to use the GetTextBlob and the GetXmlBlob service:<br>
I need to call the service and to store the result of the service call in a<br>
JSP variable (e.g. String data) and then to display it in HTML:<br>
<br>
<p><%= data %></p><br>
<br>
<br>
The JSP that I use to generate the page has a structure like this and uses a<br>
bean that I have programmed in Java to be able to access an other DB:<br>
<br>
-------------------------------------------------<br>
<%@page buffer="none" session="false" taglibs="c,cms"<br>
    import="java.util.*,org.apache.log4j.*,mypackage.opencms.v8.dbtable.*" %><br>
<br>
<%=<br>
    // create the bean and the other needed objects<br>
    DBTableJspTemplate dbtable = new DBTableJspTemplate(pageContext, request,<br>
response);<br>
<br>
    String param1 = request.getParameter("param1");<br>
...<br>
...<br>
<br>
%><br>
<br>
<cms:formatter var="content" val="value"><br>
<br>
<div class="dbtable"><br>
<br>
...<br>
...<br>
<br>
</div><br>
<br>
</cms:formatter><br>
-------------------------------------------------<br>
<br>
<br>
Any idea how can I perform the webservice call inside my JSP ?<br>
<br>
Many thanks<br>
Enrico<br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div><br>