<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Aragon DBE Community</title>
	<link>http://dbe.ita.es/wordpress</link>
	<description>Regional Activity Weblog</description>
	<pubDate>Wed, 08 Apr 2009 06:51:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>
	<language>en</language>
			<item>
		<title>OPAALS TOOLS</title>
		<link>http://dbe.ita.es/wordpress/?p=119</link>
		<comments>http://dbe.ita.es/wordpress/?p=119#comments</comments>
		<pubDate>Wed, 08 Apr 2009 06:51:40 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>Uncategorized</category>
	<category>DBE</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=119</guid>
		<description><![CDATA[We have deveoped OPAALS TOOLS, a set of tools developed in the OPAALs NeO project in order to validate the research done in the Applied methodologies for dynamic service composition task. 
XLS2XML The tool has been created for the generation of XML documents and contract-in a more friendly. Does not exist in the market for [...]]]></description>
			<content:encoded><![CDATA[<p>We have deveoped OPAALS TOOLS, a set of tools developed in the OPAALs NeO project in order to validate the research done in the Applied methodologies for dynamic service composition task. <span id="line-8" class="anchor" /><span id="line-9" class="anchor" /></p>
<p class="line874">XLS2XML The tool has been created for the generation of XML documents and contract-in a more friendly. Does not exist in the market for a publisher of e-contract. This tool will also generate these documents, also validates its syntactic structure. In addition, documentation generated by the semantics of e-contract, and finally creates a base document that serves the Finder tool to generate the search forms. <span id="line-8" class="anchor" /><span id="line-9" class="anchor" /></p>
<p>The tool handles Finder search within each of the utilities, the contracts of providers of services, companies that come closest to our needs. The end user is, who sought in each of the services offered which include a charge of their own to the results of the search. The results shown from the parameters entered by the user are presented with a success rate. This ratio shows the coincidence with the data entered into the contracts offered by the companies served.</p>
<p><strong>The project</strong></p>
<p class="line874"><strong> </strong>OPAALS (Open Philosophies for Associative Autopoietic Digital Ecosystems) is a multi-disciplinary network of research excellence for developing the science and technology behind Digital Ecosystems. <span id="line-8" class="anchor" /><span id="line-9" class="anchor" /></p>
<p>Digital Ecosystems represent the next generation of Internet usage. Applicable to many fields, they will perhaps have the greatest effect in enabling Small and Medium-sized Enterprises (SMEs) to compete on the global stage. Based on open and low-cost peer-to-peer architectures, Digital Ecosystems represent the future of technical, social, and economic aspects of the connected world.<strong>Our Task</strong></p>
<p>The Aragón Institute of Technology (ITA) is specialised in consultancy studies and product development (i.e. software engineering) for SMEs and companies in the Aragón region. The Advanced Laboratory for Legal and Business Applications in the Information Society from the University of Zaragoza (UniZar) represents the second main partner in this task. The task aims at describing contracts at a semantic level for dynamic service composition in the field of business negotiation and contractual automatisation processes in the DEs. Additionally, the task includes studies regarding negotiation processes between companies in a specific sector, the contractual relationships that the companies agree on, and the modes how they resolve their disputes. These conflicts may be solved through contractual mechanisms or through “not written” mechanisms, which are normally used in that specific sector. From an academic point of view, this research raises an interesting question, namely, to review the “custom” concept as a source of law in a background such as the DEs. Another interesting question is related to the business processes and the agreements reached by the companies in a specific sector, which is the need for a new culture of “collaborative competition” and its proper legal treatment. This issue is related to the interoperability concept, since any kind of cooperation between companies in the development of an activity, which is essential in our framework, has an impact on market competition, but has not yet a correct treatment by Law.</p>
<p>Reference: http://opaalstools.sourceforge.net/
</p>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=119</wfw:commentRSS>
		</item>
		<item>
		<title>Como desarrollar un adaptador que consume un web-service en el servENT v0.3.15</title>
		<link>http://dbe.ita.es/wordpress/?p=118</link>
		<comments>http://dbe.ita.es/wordpress/?p=118#comments</comments>
		<pubDate>Tue, 11 Nov 2008 08:03:55 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=118</guid>
		<description><![CDATA[Este tutorial muestra paso a paso cómo desarrollar un servicio que consume un web-service y desplegarlo en el servENT v0.3.15.
Desde el ITA queremos agradecer la colaboración ofrecida por Techideas en la elaboración de este ejemplo
Aspectos preliminares:

Debes tener Java 1.5
Debes tener el servent 0.3.15 ya instalado (puedes leer el tutorial asociado)
No puedes usar el DBEStudio
Puedes descargar [...]]]></description>
			<content:encoded><![CDATA[<p>Este tutorial muestra paso a paso cómo desarrollar un servicio que consume un web-service y desplegarlo en el servENT v0.3.15.</p>
<blockquote><p><em>Desde el <a href="http://www.ita.es" >ITA </a>queremos agradecer la colaboración ofrecida por <a href="http://www.techideas.es/" onclick="javascript:urchinTracker ('/outbound/article/www.techideas.es');">Techideas </a>en la elaboración de este ejemplo</em></p></blockquote>
<p>Aspectos preliminares:</p>
<ul>
<li>Debes tener Java 1.5</li>
<li>Debes tener el servent 0.3.15 ya instalado (puedes leer el <a href="http://dbe.ita.es/wordpress//?p=112" >tutorial asociado</a>)</li>
<li>No puedes usar el DBEStudio</li>
<li>Puedes descargar todo el código fuente asociado desde nuestro CVS <a href="http://dbe.ita.es/cgi-bin/viewcvs.cgi/dbe/dev/itademos/exe_0_3_15/itaglobalweather/" >aquí </a></li>
<li>No puedes usar versiones recientes de AXIS ni otras librerías externas que no sean compatibles con las librerías que ya incluye el propio servENT en la carpeta common. Por este motivo, usaremos AXIS 1.2 para generar el adaptador</li>
<li>Debes tener el Web-service disponible mediante su descriptor WSDL</li>
</ul>
<p>Generar el cliente con AXIS:</p>
<ul>
<li>En primer lugar debemos tener acceso al WDSL del servicio. En nuestro caso, vamos a utilizar como ejemplo el servicio <a href="http://www.webservicex.net/globalweather.asmx" onclick="javascript:urchinTracker ('/outbound/article/www.webservicex.net');">globalweather</a>.  Copiaremos el fichero wdsl a nuestra carpeta<a href="http://dbe.ita.es/wordpress/wp-admin/www.webservicex.net/globalweather.asmx"><br />
</a></li>
<li>Seguidamente usaremos axis1.2 para generar el cliente, mediante el WSDL2JAVA, como sigue</li>
</ul>
<blockquote><p><em>java -classpath c://dbe_0_3_15//servent//common//axis-1.2.1.jar;:c://dbe_0_3_15//servent//common//log4j.jar;c://dbe_0_3_15//servent//common//commons-logging-1.0.3.jar;c://dbe_0_3_15//servent//common//commons-discovery-0.2.jar;c://dbe_0_3_15//servent//common//axis-jaxrpc-1.2.jar;c://dbe_0_3_15//servent//common//axis-wsdl4j-1.2-RC2.jar;c://dbe_0_3_15//servent//common//axis-saaj-1.2.1.jar org.apache.axis.wsdl.WSDL2Java globalweather.wsdl</em></p></blockquote>
<ul>
<li>Nos creará una carpeta NET con las clases, que moveremos a la carpeta src como código fuente del servicio</li>
<li>Seguidamente debemos crear la interfaz que nuestro servicio va a ofrecer, que en nuestro caso es un proxy del servicio de globalweather</li>
</ul>
<blockquote><p><em>public interface IITAGlobalWeather {</em></p>
<p><em>    public String getWeather(String city, String country)</em><br />
<em>            throws java.rmi.RemoteException;</em></p>
<p><em>}</em></p></blockquote>
<ul>
<li>A continuación debemos desarrollar el propio servicio:</li>
</ul>
<blockquote><p><em>public class ITAGlobalWeatherAdapter implements IITAGlobalWeather, Adapter {</em></p>
<p><em>private ServiceContext serviceContext;</em></p>
<p><em>private static final QName SERVICE_NAME = new QName(<br />
&#8220;http://www.webserviceX.NET&#8221;, &#8220;GlobalWeather&#8221;);</em></p>
<p><em>public void destroy() {<br />
System.out<br />
.println(new Date() + &#8221; :: ITAGlobalWeatherAdapter.destroy()&#8221;);<br />
}</em></p>
<p><em>public void init(ServiceContext arg0) {<br />
System.out.println(new Date() + &#8221; :: ITAGlobalWeatherAdapter.init()&#8221;);<br />
this.serviceContext = arg0;<br />
}</em></p>
<p><em>public String getWeather(String city, String country)<br />
throws RemoteException {<br />
try {<br />
System.out.println(new Date()<br />
+ &#8221; :: ITAGlobalWeatherAdapter.getWeather city &#8221; + city<br />
+ &#8221; country &#8221; + country);<br />
String wsdlfilename = &#8220;globalweather.wsdl&#8221;;</em></p>
<p><em>URL wsdlURL = new File(serviceContext.getHome(), wsdlfilename)<br />
.toURL();</em></p>
<p><em>ServiceFactory serviceFactory = null;<br />
serviceFactory = (ServiceFactory) ServiceFactory.newInstance();<br />
Service afs = (Service) serviceFactory.createService(wsdlURL,<br />
SERVICE_NAME);<br />
GlobalWeatherSoap port = (GlobalWeatherSoap) afs<br />
.getPort(GlobalWeatherSoap.class);</em></p>
<p><em>System.out<br />
.println(new Date()<br />
+ &#8221; :: ITAGlobalWeatherAdapter.getWeather Invoking getWeather&#8230;&#8221;);<br />
String weather = port.getWeather(city, country);<br />
System.out.println(new Date()<br />
+ &#8221; :: ITAGlobalWeatherAdapter.getWeather result &#8221;<br />
+ weather);<br />
return weather;<br />
} catch (Exception ex) {<br />
ex.printStackTrace();<br />
return (ex.getMessage());<br />
} catch (Throwable t) {<br />
if (t instanceof Error) {<br />
Error err = (Error) t;<br />
} else if (t instanceof Exception) {<br />
Exception ex = (Exception) t;<br />
}<br />
System.out.println(t);<br />
throw new RemoteException(t.getCause().toString(), t);<br />
}</em></p>
<p><em>}<br />
}<br />
</em></p></blockquote>
<ul>
<li>Seguidamente debemos generar el fichero para desplegar el servicio dentro del servENT:</li>
</ul>
<blockquote><p><em /><br />
<em /><br />
<em>  </em><br />
<em>    ITAGlobalWeather</em><br />
<em>    ITAGlobalWeatherSMID</em><br />
<em>    Global Weather by ITA</em><br />
<em>    org.dbe.ita.demos.globalweather.ITAGlobalWeatherAdapter</em><br />
<em>  </em><br />
<em /></p></blockquote>
<ul>
<li>Por último, generaremos la estructura de carpetas necesaria y copiaremos la misma dentro de la carpeta deploy del servENT y lo iniciaremos:</li>
<li>itaglobalweather</li>
<ul>
<li>classes</li>
<ul>
<li>NET</li>
<ul>
<li>&#8230;</li>
</ul>
<li>org</li>
<ul>
<li>&#8230;</li>
</ul>
</ul>
<li>globalweather.wdsl</li>
<li>deployment.xml</li>
</ul>
</ul>
<ul>
<li>Ya sólo resta generar el cliente que lo consuma:</li>
</ul>
<blockquote><p><em>public class ITAGlobalWeatherClient {</em></p>
<p><em>    public void testGetWeather(IITAGlobalWeather myService) {</em><br />
<em>        try {</em><br />
<em>            System.out.println(&#8221;\tInvoking getWeather&#8230;&#8221;);</em><br />
<em>            String city = &#8220;Madrid&#8221;;</em><br />
<em>            String country = &#8220;Spain&#8221;;</em><br />
<em>            String weather = myService.getWeather(city, country);</em><br />
<em>            System.out.println(&#8221;\tInvoked OK!&#8221;);</em><br />
<em>            System.out.println(&#8221;\tReturn &#8221; + weather);</em><br />
<em>        } catch (Exception ex) {</em><br />
<em>            ex.printStackTrace();</em><br />
<em>        }</em><br />
<em>    }</em></p>
<p><em>    public void test(String machine, String smid) {</em><br />
<em>        try {</em><br />
<em>            System.out.println(&#8221;\tTesting on machine &#8221; + machine);</em><br />
<em>            System.out.println(&#8221;\tCreating ClientHelper&#8230;&#8221;);</em><br />
<em>            ClientHelper helper = new ClientHelper(new URL(&#8221;http://&#8221; + machine</em><br />
<em>                    + &#8220;:2728&#8243;));</em><br />
<em>            System.out.println(&#8221;\tGetting services with smid &#8221; + smid + &#8221; &#8230;&#8221;);</em><br />
<em>            String[] clase = new String[] { smid };</em><br />
<em>            Object proxies = helper.getProxies(IITAGlobalWeather.class, clase,</em><br />
<em>                    10000L, 13);</em></p>
<p><em>            if (proxies instanceof ArrayList) {</em><br />
<em>                ArrayList myList = (ArrayList) proxies;</em><br />
<em>                System.out.println(&#8221;\tWe have found &#8221; + myList.size()</em><br />
<em>                        + &#8221; services&#8230;&#8221;);</em><br />
<em>                for (int i = 0; i < myList.size(); i++) {</em><br />
<em>                    IITAGlobalWeather myService = (IITAGlobalWeather) myList</em><br />
<em>                            .get(i);</em><br />
<em>                    testGetWeather(myService);</em><br />
<em>                }</em><br />
<em>            } else {</em><br />
<em>                System.out.println(&#8221;\tNo services were found&#8221;);</em><br />
<em>            }</em><br />
<em>        } catch (Exception ex) {</em><br />
<em>            System.out.println(&#8221;\tERROR -> &#8221; + ex.getMessage());</em><br />
<em>            ex.printStackTrace();</em><br />
<em>        }</em><br />
<em>    }</em></p>
<p><em>    /**</em><br />
<em>     * @param args</em><br />
<em>     */</em><br />
<em>    public static void main(String[] args) {</em><br />
<em>        try {</em><br />
<em>            // Proxy Settings</em><br />
<em>            // System.setProperty(&#8221;http.proxySet&#8221;, &#8220;true&#8221;);</em><br />
<em>            // System.setProperty(&#8221;http.proxyHost&#8221;, &#8220;XXXX&#8221;);</em><br />
<em>            // System.setProperty(&#8221;http.proxyPort&#8221;, &#8220;8080&#8243;);</em></p>
<p><em>            String serventHost = &#8220;localhost&#8221;;</em><br />
<em>            // String SMID = &#8220;SM-8f41c086245468400ee359bdc7e117525f01f2ac-1&#8243;;</em><br />
<em>            String SMID = &#8220;ITAGlobalWeatherSMID&#8221;;</em></p>
<p><em>            ITAGlobalWeatherClient myClient = new ITAGlobalWeatherClient();</em><br />
<em>            myClient.test(serventHost, SMID);</em><br />
<em>        } catch (Exception ex) {</em><br />
<em>            ex.printStackTrace();</em><br />
<em>        }</em><br />
<em>    }</em></p>
<p><em>}</em></p></blockquote>
<ul>
<li>Y tendremos la traza correcta:</li>
</ul>
<blockquote><p><em>    Testing on machine localhost</em><br />
<em>    Creating ClientHelper&#8230;</em><br />
<em>    Getting services with smid ITAGlobalWeatherSMID &#8230;</em><br />
<em>log4j:WARN No appenders could be found for logger (org.sun.dbe.ClientHelper).</em><br />
<em>log4j:WARN Please initialize the log4j system properly.</em><br />
<em>    We have found 1 services&#8230;</em><br />
<em>    Invoking getWeather&#8230;</em><br />
<em>    Invoked OK!</em><br />
<em>    Return </em><br />
<em /><br />
<em>  Madrid / Cuatro Vientos, Spain (LEVS) 40-23N 003-47W 687M</em><br />
<em>  Nov 11, 2008 - 02:30 AM EST / 2008.11.11 0730 UTC</em><br />
<em>   Calm:0</em><br />
<em>   3 mile(s):0</em><br />
<em>   42 F (6 C)</em><br />
<em>   42 F (6 C)</em><br />
<em>   100%</em><br />
<em>   30.21 in. Hg (1023 hPa)</em><br />
<em>  Success</em></p></blockquote>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=118</wfw:commentRSS>
		</item>
		<item>
		<title>Material Code-Camp</title>
		<link>http://dbe.ita.es/wordpress/?p=117</link>
		<comments>http://dbe.ita.es/wordpress/?p=117#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:43:59 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=117</guid>
		<description><![CDATA[Se ha celebrado un code-camp para analizar los siguientes pasos a realizar para desplegar los web-services en el servENT. El material suministrado es:

Presentación realizada
Tutoriales disponibles en nuestro blog

Cómo instalar el servENT v0.3.15 en Windows
Cómo crear y desplegar un HelloWorld Service en el servent v0.3.15
Cómo consumir un servicio desplegado en el servENT v0.3.15
Desplegar un servicio web [...]]]></description>
			<content:encoded><![CDATA[<p>Se ha celebrado un code-camp para analizar los siguientes pasos a realizar para desplegar los web-services en el servENT. El material suministrado es:</p>
<ul>
<li><a href="http://www.ita.es/dbe/lib_asp/binarios.asp?TABLA=_DESCARGAS&#038;ID=234" >Presentación realizada</a></li>
<li>Tutoriales disponibles en nuestro <a href="http://dbe.ita.es/wordpress/" >blog</a></li>
<ul>
<li>Cómo instalar el servENT v0.3.15 en Windows</li>
<li>Cómo crear y desplegar un HelloWorld Service en el servent v0.3.15</li>
<li>Cómo consumir un servicio desplegado en el servENT v0.3.15</li>
<li>Desplegar un servicio web en Mule</li>
</ul>
<li>Ejemplos y código fuente de los mismos, disponible en nuestro <a href="http://dbe.ita.es/cgi-bin/viewcvs.cgi/dbe/dev/itademos/exe_0_3_15/" >CVS</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=117</wfw:commentRSS>
		</item>
		<item>
		<title>Cómo consumir un servicio desplegado en el servENT v0.3.15</title>
		<link>http://dbe.ita.es/wordpress/?p=116</link>
		<comments>http://dbe.ita.es/wordpress/?p=116#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:26:05 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=116</guid>
		<description><![CDATA[Este tutorial muestra paso a paso cómo desarrollar un cliente que consuma un servicio que ha sido desplegado en el servENT v0.3.15
Aspectos preliminares:

Debes tener Java 1.5
Debes tener el servent 0.3.15 ya instalado (puedes leer el tutorial asociado)
No puedes usar el DBEStudio
Puedes descargar todo el código fuente asociado desde nuestro CVS aquí 

Desarrollo del cliente:

Debes copiar [...]]]></description>
			<content:encoded><![CDATA[<p>Este tutorial muestra paso a paso cómo desarrollar un cliente que consuma un servicio que ha sido desplegado en el servENT v0.3.15</p>
<p>Aspectos preliminares:</p>
<ul>
<li>Debes tener Java 1.5</li>
<li>Debes tener el servent 0.3.15 ya instalado (puedes leer el <a href="http://dbe.ita.es/wordpress/?p=112" >tutorial asociado</a>)</li>
<li>No puedes usar el DBEStudio</li>
<li>Puedes descargar todo el código fuente asociado desde nuestro CVS <a href="http://dbe.ita.es/cgi-bin/viewcvs.cgi/dbe/dev/itademos/exe_0_3_15/itahelloworld/" >aquí </a></li>
</ul>
<p>Desarrollo del cliente:</p>
<ul>
<li>Debes copiar en el proyecto la interfaz que cumple el servicio que quieres consumir:</li>
</ul>
<blockquote><p><em>package org.dbe.demos.itahelloworld0315;</em></p>
<p><em>import javax.xml.rpc.holders.StringHolder;</em></p>
<p><em>public interface IITAHelloWorld {</em></p>
<p><em>public String sayHello(String message) throws java.rmi.RemoteException;</em></p>
<p><em>public StringHolder sayHelloHolder(StringHolder message) throws java.rmi.RemoteException;</em></p>
<p><em>}</em></p></blockquote>
<ul>
<li>El código del cliente que consume el servicio es el siguiente:</li>
</ul>
<blockquote><p><em>package org.dbe.demos.itahelloworld0315;</em></p>
<p><em>import java.net.URL;<br />
import java.util.ArrayList;<br />
import java.util.Date;</em></p>
<p><em>import javax.xml.rpc.holders.StringHolder;<br />
import org.sun.dbe.ClientHelper;</em></p>
<p><em>public class ITAHelloWorldClient {</em></p>
<p><em>public void testSayHello(IITAHelloWorld myService) {<br />
try {<br />
System.out.println(&#8221;\tInvoking sayHello&#8230;&#8221;);<br />
String inMessage = new String(&#8221;Incoming Message - &#8221; + new Date());<br />
String outMessage = myService.sayHello(inMessage);<br />
System.out.println(&#8221;\tInvoked OK!&#8221;);<br />
System.out.println(&#8221;\tReturn &#8221; + outMessage);<br />
} catch (Exception ex) {<br />
ex.printStackTrace();<br />
}<br />
}</em></p>
<p><em>public void testSayHelloHolder(IITAHelloWorld myService) {<br />
try {<br />
System.out.println(&#8221;\tInvoking sayHelloHolder&#8230;&#8221;);<br />
StringHolder inMessage = new StringHolder();<br />
inMessage.value = &#8220;Incoming MessageHolder - &#8221; + new Date();<br />
StringHolder outMessage = myService.sayHelloHolder(inMessage);<br />
System.out.println(&#8221;\tInvoked OK!&#8221;);<br />
System.out.println(&#8221;\tReturn &#8221; + outMessage.value);<br />
} catch (Exception ex) {<br />
ex.printStackTrace();<br />
}<br />
}</em></p>
<p><em>public void test(String machine, String smid) {<br />
try {<br />
System.out.println(&#8221;\tTesting on machine &#8221; + machine);<br />
System.out.println(&#8221;\tCreating ClientHelper&#8230;&#8221;);<br />
ClientHelper helper = new ClientHelper(new URL(&#8221;http://&#8221; + machine<br />
+ &#8220;:2728&#8243;));<br />
System.out.println(&#8221;\tGetting services with smid &#8221; + smid + &#8221; &#8230;&#8221;);<br />
String[] clase = new String[] { smid };<br />
Object proxies = helper.getProxies(IITAHelloWorld.class, clase,<br />
10000L, 13);</em></p>
<p><em>if (proxies instanceof ArrayList) {<br />
ArrayList myList = (ArrayList) proxies;<br />
System.out.println(&#8221;\tWe have found &#8221; + myList.size()<br />
+ &#8221; services&#8230;&#8221;);<br />
for (int i = 0; i < myList.size(); i++) {<br />
IITAHelloWorld myService = (IITAHelloWorld) myList.get(i);<br />
testSayHello(myService);<br />
// testSayHelloHolder(myService);<br />
}<br />
} else {<br />
System.out.println("\tNo services were found");<br />
}<br />
} catch (Exception ex) {<br />
System.out.println("\tERROR -> &#8221; + ex.getMessage());<br />
ex.printStackTrace();<br />
}<br />
}</em></p>
<p><em>/**<br />
* @param args<br />
*/<br />
public static void main(String[] args) {<br />
try {<br />
// Proxy Settings<br />
// System.setProperty(&#8221;http.proxySet&#8221;, &#8220;true&#8221;);<br />
// System.setProperty(&#8221;http.proxyHost&#8221;, &#8220;XXXX&#8221;);<br />
// System.setProperty(&#8221;http.proxyPort&#8221;, &#8220;8080&#8243;);</em></p>
<p><em>String serventHost = &#8220;localhost&#8221;;<br />
String SMID = &#8220;ITAHelloWorldSMID&#8221;;</em></p>
<p><em>ITAHelloWorldClient myClient = new ITAHelloWorldClient();<br />
myClient.test(serventHost, SMID);<br />
} catch (Exception ex) {<br />
ex.printStackTrace();<br />
}<br />
}</em></p>
<p><em>}</em></p></blockquote>
<ul>
<li>Incluimos las librerías necesarias</li>
<ul>
<li>Todas las de servent\common</li>
<li>Y las de servent\client</li>
</ul>
<li>Lanzamos el cliente y comprobamos que vaya bien</li>
<ul>
<li>Es posible que debas cambiar los datos de conexión o incluso configurar los proxies</li>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=116</wfw:commentRSS>
		</item>
		<item>
		<title>Cómo crear y desplegar un HelloWorld Service en el servent v0.3.15</title>
		<link>http://dbe.ita.es/wordpress/?p=115</link>
		<comments>http://dbe.ita.es/wordpress/?p=115#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:23:28 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>Uncategorized</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=115</guid>
		<description><![CDATA[Este tutorial muestra paso a paso cómo desarrollar y desplegar un servicio utilizando el servENT v0.3.15
Aspectos preliminares:

Debes tener Java 1.5
Debes tener el servent 0.3.15 ya instalado (puedes leer el tutorial asociado)
No puedes usar el DBEStudio
Puedes descargar todo el código fuente asociado desde nuestro CVS aquí 

Desarrollo del servicio:

Creamos la interfaz

package org.dbe.demos.itahelloworld0315;
import javax.xml.rpc.holders.StringHolder;
public interface IITAHelloWorld {
public [...]]]></description>
			<content:encoded><![CDATA[<p>Este tutorial muestra paso a paso cómo desarrollar y desplegar un servicio utilizando el servENT v0.3.15</p>
<p>Aspectos preliminares:</p>
<ul>
<li>Debes tener Java 1.5</li>
<li>Debes tener el servent 0.3.15 ya instalado (puedes leer el <a href="http://dbe.ita.es/wordpress/?p=112" >tutorial asociado</a>)</li>
<li>No puedes usar el DBEStudio</li>
<li>Puedes descargar todo el código fuente asociado desde nuestro CVS <a href="http://dbe.ita.es/cgi-bin/viewcvs.cgi/dbe/dev/itademos/exe_0_3_15/itahelloworld/" >aquí </a></li>
</ul>
<p>Desarrollo del servicio:</p>
<ul>
<li>Creamos la interfaz</li>
</ul>
<blockquote><p><em>package org.dbe.demos.itahelloworld0315;</em></p>
<p><em>import javax.xml.rpc.holders.StringHolder;</em></p>
<p><em>public interface IITAHelloWorld {</em></p>
<p><em>public String sayHello(String message) throws java.rmi.RemoteException;</em></p>
<p><em>public StringHolder sayHelloHolder(StringHolder message) throws java.rmi.RemoteException;<br />
}</em></p></blockquote>
<ul>
<li>Desarrollamos el código del adaptador:</li>
</ul>
<blockquote><p><em>package org.dbe.demos.itahelloworld0315;</em></p>
<p><em>import java.rmi.RemoteException;<br />
import java.util.Date;</em></p>
<p><em>import javax.xml.rpc.holders.StringHolder;</em></p>
<p><em>import org.dbe.servent.Adapter;<br />
import org.dbe.servent.ServiceContext;</em></p>
<p><em>public class ITAHelloWorldAdapter implements IITAHelloWorld, Adapter {</em></p>
<p><em>public String sayHello(String message) throws java.rmi.RemoteException {<br />
System.out.println(new Date()<br />
+ &#8221; :: ITAHelloWorldAdapter.sayHello(message): &#8221; + message);<br />
String dev = new String(&#8221;Hello &#8220;);<br />
dev += message;<br />
return dev;<br />
}</em></p>
<p><em>public void destroy() {<br />
System.out.println(new Date() + &#8221; :: ITAHelloWorldAdapter.destroy()&#8221;);<br />
}</em></p>
<p><em>public void init(ServiceContext arg0) {<br />
System.out.println(new Date() + &#8221; :: ITAHelloWorldAdapter.init()&#8221;);<br />
}</em></p>
<p><em>public StringHolder sayHelloHolder(StringHolder message)<br />
throws RemoteException {<br />
System.out.println(new Date()<br />
+ &#8221; :: ITAHelloWorldAdapter.sayHelloHolder(message): &#8221;<br />
+ message.value);<br />
StringHolder dev = new StringHolder();<br />
dev.value = &#8220;Hello &#8221; + message.value;<br />
return dev;<br />
}</em></p>
<p><em>}</em></p></blockquote>
<ul>
<li>Rellenamos el deployment.xml</li>
</ul>
<p><em /></p>
<p><em>HolaMundo<br />
ITAHelloWorldSMID<br />
Hello World by ITA<br />
org.dbe.demos.itahelloworld0315.ITAHelloWorldAdapter</em></p>
<p><em /></p>
<ul>
<li>Insertamos las librerías necesarias, todas los ficheros .jar de c:\dbe_0_3_15\servent\common</li>
</ul>
<p>Despliege del servicio en el servENT:</p>
<ul>
<li>Crear una carpeta itahelloworld</li>
<li>Copiar el fichero deployment.xml</li>
<li>Dentro crear una carpeta classes y copiar todas las clases</li>
<li>Se puede crear una carpeta lib y meter las librerias (no necesaria en este ejemplo)</li>
<li>Copiar toda la carpeta itahelloworld dentro de la carpeta deploy del servent</li>
<li>Iniciar el servent (run.bat)</li>
<li>Ver las trazas para asegurarse que ha sido iniciado OK (o bien lanzar el visor de FADA<a href="http://localhost:2002/services" onclick="javascript:urchinTracker ('/outbound/article/localhost:2002');"> http://localhost:2002/services </a>y verificar que ha sido lanzado el servicio ITAHelloWorldSMID)</li>
</ul>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=115</wfw:commentRSS>
		</item>
		<item>
		<title>Desplegar un servicio web en Mule</title>
		<link>http://dbe.ita.es/wordpress/?p=114</link>
		<comments>http://dbe.ita.es/wordpress/?p=114#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:14:23 +0000</pubDate>
		<dc:creator>emendoza</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=114</guid>
		<description><![CDATA[ REQUISITOS


Instalar Java Developer Kit (JDK) 1.5 http://java.sun.com/javase/download/)index_jdk5.jsp


INSTALAR MULE


Descargar Mule Community Edtion http://www.mulesource.org/display/MULE/Download


Descomprimir la distribución descargada en una carpeta sin espacios en su ruta, se sugiere C:\Mule.


CONFIGURAR ECLIPSE PARA MULE


Descargar e instalar Eclipse 3.4 (Ganymede) IDE for Java EE Developers http://www.eclipse.org/downloads/packages/


Ir a Window > Preferences, expandir Java en el árbol de navegación, seleccionar Compiler y cambiar [...]]]></description>
			<content:encoded><![CDATA[<p> REQUISITOS</p>
<ul>
<li>
<p style="margin-bottom: 0cm">Instalar Java Developer Kit (JDK) 1.5 <a href="http://java.sun.com/javase/download/)index_jdk5.jsp" onclick="javascript:urchinTracker ('/outbound/article/java.sun.com');">http://java.sun.com/javase/download/)index_jdk5.jsp</a></p>
</li>
</ul>
<p style="font-weight: normal; margin-bottom: 0cm">INSTALAR MULE</p>
<ul>
<li>
<p style="margin-bottom: 0cm">Descargar Mule Community Edtion <a href="http://www.mulesource.org/display/MULE/Download" onclick="javascript:urchinTracker ('/outbound/article/www.mulesource.org');">http://www.mulesource.org/display/MULE/Download</a></p>
</li>
<li>
<p style="margin-bottom: 0cm">Descomprimir la distribución descargada en una carpeta sin espacios en su ruta, se sugiere C:\Mule.</p>
</li>
</ul>
<p style="margin-bottom: 0cm">CONFIGURAR ECLIPSE PARA MULE</p>
<ul>
<li>
<p style="margin-bottom: 0cm">Descargar e instalar Eclipse 3.4 (Ganymede) IDE for Java EE Developers <a href="http://www.eclipse.org/downloads/packages/" onclick="javascript:urchinTracker ('/outbound/article/www.eclipse.org');">http://www.eclipse.org/downloads/packages/</a></p>
</li>
<li>
<p style="margin-bottom: 0cm">Ir a Window > Preferences, expandir Java en el árbol de navegación, seleccionar Compiler y cambiar la opción compiler compliance level a 1.5.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar Installed JREs, si el JRE no es la versión 1.5, seleccionar Edit, seleccionar Directory, navegar hasta la carpeta del JDK1.5 y cambiar el JRE a jre1.5. Seleccionar Finish y OK.</p>
</li>
</ul>
<p style="margin-bottom: 0cm">DESPLEGAR UN SERVICIO WEB EN MULE</p>
<ul>
<li value="1">
<p style="margin-bottom: 0cm">Crear un nuevo proyecto de Java en Eclipse.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Hacer click izquierdo en el Project Explorer y seleccionar Build Path > Configure Build.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar la pestaña Libraries en el diálogo Properties, y seleccionar Add Library.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar User Libraries, después Next, después User Libraries, y en el diálogo Preferences seleccionar New.</p>
</li>
<li>
<p style="margin-bottom: 0cm">En el diálogo New User Library, introducir MULE_LIB y selecionar OK.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar Add JARs, navegar a la carpeta \lib\mule en la carpeta de instalación de Mule, seleccionar todos los archivos JAR, y seleccionar Open. Hacer lo mismo todos los JARs de las carpetas \lib\boot, \lib\endorsed, \lib\opt y \lib\user después OK y después Finish.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Crear una carpeta para almacenar los ficheros de configuración, se sugiere nombrarla conf. En esta carpeta, crear un fichero xml de configuración, por ejemplo conf.xml, con la siguiente estructura:</p>
</li>
</ul>
<p><font color="#008080"><font face="Courier New, monospace"><font size="2"><font color="#3f7f7f"><font face="Courier New, monospace"><font size="2">xml</font></font></font><font color="#008080"><font face="Courier New, monospace"><font size="2"> </font></font></font><font color="#7f007f"><font face="Courier New, monospace"><font size="2">version</font></font></font><font color="#000000"><font face="Courier New, monospace"><font size="2">=</font></font></font><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em>&#8220;1.0&#8243;</em></font></font></font><font color="#008080"><font face="Courier New, monospace"><font size="2"> </font></font></font><font color="#7f007f"><font face="Courier New, monospace"><font size="2">encoding</font></font></font><font color="#000000"><font face="Courier New, monospace"><font size="2">=</font></font></font><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em>&#8220;UTF-8&#8243;</em></font></font></font><font color="#008080"><font face="Courier New, monospace"><font size="2">?></font></font></font></font><font color="#008080"><font color="#008080"><font color="#008080" /><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font color="#008080" /></font></font></font><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font color="#008080" /></font></font></font></font></font></font><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font color="#008080" /></font></font></font></font></font></font></font></font></font></font><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font face="Courier New, monospace"><font color="#008080"><font color="#008080"></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">mule</font> <font color="#7f007f">xmlns</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.mulesource.org/schema/mule/core/2.1&#8243;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xmlns:xsi</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.w3.org/2001/XMLSchema-instance&#8221;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xmlns:spring</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.springframework.org/schema/beans&#8221;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xmlns:soap</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.mulesource.org/schema/mule/soap/2.1&#8243;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xmlns:axis</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.mulesource.org/schema/mule/axis/2.1&#8243;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xmlns:vm</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://www.mulesource.org/schema/mule/vm/2.1&#8243;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">xsi:schemaLocation</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#2a00ff"><em>http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em>http://www.mulesource.org/schema/mule/core/2.1 <a href="http://www.mulesource.org/" onclick="javascript:urchinTracker ('/outbound/article/www.mulesource.org');">http://www.mulesource.org/</a> schema/mule/core/2.1/mule.xsd</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em>http://www.mulesource.org/schema/mule/soap/2.1 <a href="http://www.mulesource.org/" onclick="javascript:urchinTracker ('/outbound/article/www.mulesource.org');">http://www.mulesource.org/</a> schema/mule/soap/2.1/mule-soap.xsd</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em>http://www.mulesource.org/schema/mule/axis/2.1 <a href="http://www.mulesource.org/" onclick="javascript:urchinTracker ('/outbound/article/www.mulesource.org');">http://www.mulesource.org/</a> schema/mule/axis/2.1/mule-axis.xsd</em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#2a00ff"><font face="Courier New, monospace"><font size="2"><em><a href="http://www.mulesource.org/schema/mule/vm/2.1" onclick="javascript:urchinTracker ('/outbound/article/www.mulesource.org');">http://www.mulesource.org/schema/mule/vm/2.1</a></em></font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#2a00ff"><em>http://www.mulesource.org/schema/mule/vm/2.1/mule-vm.xsd&#8221;</em></font><font color="#008080">></font></font></font></p>
<p><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">description</font><font color="#008080">></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">Echo web service</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">To invoke the EchoUMO hit the following URL -</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">http://localhost:65081/services/EchoUMO?method=echo</font><font color="#2a00ff">&#038;</font><font color="#000000">param=Is </font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">there an echo?</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">(remember to replace the &#8216;</font><font color="#2a00ff">&#038;</font><font color="#000000">&#8216; with an ampersand)</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">To view the WSDL for the EchoUMO service go to -</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">http://localhost:65081/services/EchoUMO?wsdl</font></font></font></p>
<p><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">description</font><font color="#008080">></font></font></font></font></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"> </font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">model</font> <font color="#7f007f">name</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;echoSample&#8221;</em></font><font color="#008080">></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">service</font> <font color="#7f007f">name</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;Echo&#8221;</em></font><font color="#008080">></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">inbound</font><font color="#008080">></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">axis:inbound-endpoint</font> </font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">address</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://localhost:65081/services&#8221;</em></font><font color="#008080">></font></font></font></p>
<p><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">soap:http-to-soap-request-transformer</font><font color="#008080">/></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">axis:inbound-endpoint</font><font color="#008080">></font></font></font></font></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">axis:inbound-endpoint</font> </font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000" /></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000" /></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000" /></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000" /></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f007f">address</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;http://localhost:65082/services&#8221;</em></font><font color="#008080">/></font></font></font></p>
<p><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">vm:inbound-endpoint</font> <font color="#7f007f">path</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;echo&#8221;</em></font> <font color="#008080">/></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">inbound</font><font color="#008080">></font></font></font></font></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><</font><font color="#3f7f7f">component</font> <font color="#7f007f">class</font><font color="#000000">=</font><font color="#2a00ff"><em>&#8220;org.ita.mule.example.echo.echoImpl&#8221;</em></font><font color="#008080">/></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">service</font><font color="#008080">></font></font></font></font></font><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">model</font><font color="#008080">></font></font></font></font></font><font color="#000000"><font face="Courier New, monospace" /></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"> </font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace"><font size="2"><font color="#008080"><font color="#3f7f7f">mule</font><font color="#008080">></font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"> </font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font color="#000000"><font face="Courier New, monospace"><font face="Courier New, monospace"></p>
<ul>
<li value="1">
<p style="margin-bottom: 0cm">En la carpeta src, crear una interfaz java para la clase que implementará el servicio web, similar a la siguiente:</p>
</li>
</ul>
<p style="margin-bottom: 0cm"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>package</strong></font><font color="#000000"> </font>org.ita.mule.example.echo;</font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>import</strong></font><font color="#000000"> </font>javax.jws.WebParam;</font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>import</strong></font><font color="#000000"> javax.jws.WebResult;</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>import</strong></font><font color="#000000"> javax.jws.WebService;</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#646464"><font face="Courier New, monospace"><font size="2">@WebService</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>public</strong></font><font color="#000000"> </font><font color="#7f0055"><strong>interface</strong></font><font color="#000000"> echoInterface</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">{</font></font></font></p>
<p><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#646464">@WebResult</font><font color="#000000">(name=</font><font color="#2a00ff">&#8220;text&#8221;</font><font color="#000000">)</font></font></font></font><font color="#000000"><font color="#000000"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>public</strong></font><font color="#000000"> String echo(</font><font color="#646464">@WebParam</font><font color="#000000">(name=</font><font color="#2a00ff">&#8220;text&#8221;</font><font color="#000000">) String string);</font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000" /></font></font></font></font></font></font></font></font></font><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">}</font></font></font></p>
<p style="margin-bottom: 0cm"> </p>
<ul>
<li value="1">
<p style="margin-bottom: 0cm">En la carpeta src, crear una clase java que implemente el servicio web, similar a la siguiente:</p>
</li>
</ul>
<p style="margin-bottom: 0cm"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>package</strong></font><font color="#000000"> org.ita.mule.example.echo;</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font face="Courier New, monospace"><font size="2"><font color="#7f0055"><strong>public</strong></font><font color="#000000"> </font><font color="#7f0055"><strong>class</strong></font><font color="#000000"> echoImpl </font><font color="#7f0055"><strong>implements</strong></font><font color="#000000"> echoInterface{</font></font></font></p>
<p><font face="Courier New, monospace"><font size="2"><font color="#000000"><font color="#7f0055"><strong>public</strong></font><font color="#000000"> String echo(String string) {</font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font size="2"><font color="#000000"><font color="#3f7f5f">// </font><font color="#7f9fbf"><strong>TODO</strong></font><font color="#3f7f5f"> Auto-generated method stub</font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font size="2"><font color="#000000"><font color="#7f0055"><strong>return</strong></font><font color="#000000"> string;</font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace" /><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace" /></font></font></font></font></font></font></font></font></font></font></font><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"><font face="Courier New, monospace"></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">}</font></font></font></p>
<p style="margin-bottom: 0cm" align="left"><font color="#000000"><font face="Courier New, monospace"><font size="2">}</font></font></font></p>
<ul>
<li value="1">
<p style="margin-bottom: 0cm">Seleccionar Run > Run Configurations.</p>
</li>
<li>
<p style="margin-bottom: 0cm">En la ventana izquierda, hacer doble click en Java Application, crear una nueva configuración, ponerle un nombre y especificar org.mule.MuleServer como main class.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar la pestaña Arguments e introducir -config conf\config.xml en Program Arguments.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Seleccionar aplicar, y Run.</p>
</li>
<li>
<p style="margin-bottom: 0cm">Para posteriores ejecuciones, seleccionar Run > Run.</p>
</li>
</ul>
<p> </p>
<p> </p>
<p /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font> </p>
<p /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></p>
<p /></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=114</wfw:commentRSS>
		</item>
		<item>
		<title>Cómo instalar el servENT v0.3.15 en Windows</title>
		<link>http://dbe.ita.es/wordpress/?p=112</link>
		<comments>http://dbe.ita.es/wordpress/?p=112#comments</comments>
		<pubDate>Mon, 10 Nov 2008 09:12:09 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=112</guid>
		<description><![CDATA[Los pasos para instalar el serVENT v0.3.15 en Windows son:

Bajar la release all in one desde aquí
Instalar Java 1.5.X (no funciona con Java 1.6!). Puedes encontrar un mirror aquí
Descomprimir el fichero servent0.3.15-allinone-Windows-byITA.zip dentro de C:\dbe_0_3_15
Editar las preferencias del servENT en C:\dbe_0_3_15\servent\servent.props

En particular ajustar la parte de &#8220;Proxy configuration&#8221;

Editar el fichero lanzador en C:\dbe_0_3_15\servent\bin\run.bat

En particular el [...]]]></description>
			<content:encoded><![CDATA[<p>Los pasos para instalar el serVENT v0.3.15 en Windows son:</p>
<ol>
<li>Bajar la release all in one desde <a href="http://dbe.ita.es/tools/exe/servent0.3.15-allinone-Windows-byITA.zip" >aquí</a></li>
<li>Instalar Java 1.5.X (no funciona con Java 1.6!). Puedes encontrar un mirror <a href="http://dbe.ita.es/tools/java/" >aquí</a></li>
<li>Descomprimir el fichero servent0.3.15-allinone-Windows-byITA.zip dentro de C:\dbe_0_3_15</li>
<li>Editar las preferencias del servENT en C:\dbe_0_3_15\servent\servent.props</li>
<ol>
<li>En particular ajustar la parte de &#8220;Proxy configuration&#8221;</li>
</ol>
<li>Editar el fichero lanzador en C:\dbe_0_3_15\servent\bin\run.bat</li>
<ol>
<li>En particular el comando Java para ajustarlo al path en el que se tenga configurado Java1.5 (si sólo se tiene instalada una versión de Java, es suficiente con poner java)</li>
</ol>
<li>Lanzar el run.bat</li>
<li>Verificar que se han lanzado bien los servicios entrando en <a href="http://localhost:2002/services" onclick="javascript:urchinTracker ('/outbound/article/localhost:2002');">http://localhost:2002/services</a></li>
<ol>
<li>Nótese que la versión 0.3.15 no despliega bien la KB, SR, &#8230; por lo que no hace falta lanzar el XDB-Server y la imagen de servicios desplegados será la siguiente (sólo lanza bien DBEMeter, PortalService e itahelloworld)</li>
</ol>
</ol>
<div style="text-align: center"><img height="59" width="178" title="Screenshot" id="image113" alt="Screenshot" src="http://dbe.ita.es/wordpress/wp-content/uploads/2008/11/servent0_3_15_serviciosdesplegados.thumbnail.JPG" /></div>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=112</wfw:commentRSS>
		</item>
		<item>
		<title>Convocatoria para participar en el proyecto</title>
		<link>http://dbe.ita.es/wordpress/?p=111</link>
		<comments>http://dbe.ita.es/wordpress/?p=111#comments</comments>
		<pubDate>Tue, 22 Jan 2008 07:42:52 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=111</guid>
		<description><![CDATA[Actualmente se encuentra publicada una convocatoria para poder participar en el proyecto, en base a la ORDEN de 5 de octubre de 2007, del Departamento de Ciencia, Tecnología y Universidad, por la que se convocan subvenciones para la implantación y difusión de la sociedad de la información y de la sociedad del conocimiento, dirigidas a [...]]]></description>
			<content:encoded><![CDATA[<p>Actualmente se encuentra publicada una convocatoria para poder participar en el proyecto, en base a la <em>ORDEN de 5 de octubre de 2007, del Departamento de Ciencia, Tecnología y Universidad, por la que se convocan subvenciones para la implantación y difusión de la sociedad de la información y de la sociedad del conocimiento, dirigidas a PYMEs y microempresas aragonesas del sector de las tecnologías de la información y las comunicaciones para el año 2008</em>.</p>
<p>Puede encontrar más información sobre la convocatoria <a href="http://www.ita.es/dbe/?ID=6" >aquí</a>.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=111</wfw:commentRSS>
		</item>
		<item>
		<title>A simple example using ontologies</title>
		<link>http://dbe.ita.es/wordpress/?p=110</link>
		<comments>http://dbe.ita.es/wordpress/?p=110#comments</comments>
		<pubDate>Fri, 10 Aug 2007 06:51:34 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>DBE</category>
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=110</guid>
		<description><![CDATA[One common FAQ is related to the creation of services based on ontologies.
You can donwload a simple example from here 
Notice there is an error in the UI generated

]]></description>
			<content:encoded><![CDATA[<p>One common FAQ is related to the creation of services based on ontologies.</p>
<p>You can donwload a simple example from <a href="http://dbe.ita.es/viewcvs/dbe/dev/itademos/exe_0_3_14/ITAOntologyExample/" >here </a></p>
<p>Notice there is an <a href="http://sourceforge.net/tracker/index.php?func=detail&#038;aid=1771440&#038;group_id=143906&#038;atid=757076" onclick="javascript:urchinTracker ('/outbound/article/sourceforge.net');">error</a> in the UI generated
</p>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=110</wfw:commentRSS>
		</item>
		<item>
		<title>ITA - Examples</title>
		<link>http://dbe.ita.es/wordpress/?p=109</link>
		<comments>http://dbe.ita.es/wordpress/?p=109#comments</comments>
		<pubDate>Fri, 10 Aug 2007 06:48:50 +0000</pubDate>
		<dc:creator>mabarcelona</dc:creator>
		
	<category>ITA</category>
		<guid isPermaLink="false">http://dbe.ita.es/wordpress/?p=109</guid>
		<description><![CDATA[We have developed a set of test services using DBEStudio v1.0.2 and ExE v0.3.14
You can download all of them (even services included in the DBEStudio examples) at http://dbe.ita.es/viewcvs/dbe/dev/itademos/exe_0_3_14/

]]></description>
			<content:encoded><![CDATA[<p>We have developed a set of test services using DBEStudio v1.0.2 and ExE v0.3.14</p>
<p>You can download all of them (even services included in the DBEStudio examples) at <a href="http://dbe.ita.es/viewcvs/dbe/dev/itademos/exe_0_3_14/ " >http://dbe.ita.es/viewcvs/dbe/dev/itademos/exe_0_3_14/</a>
</p>
]]></content:encoded>
			<wfw:commentRSS>http://dbe.ita.es/wordpress/?feed=rss2&amp;p=109</wfw:commentRSS>
		</item>
	</channel>
</rss>

