<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Bertrand Guiral : formateur et consultant</title>
	<atom:link href="http://bertrand.guiral.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://bertrand.guiral.info</link>
	<description>C'est l'imagination qui fait agir, pas la volonté</description>
	<pubDate>Sun, 29 Jun 2008 11:12:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Business Process Execution Language (BPEL): Ecrire un premier Web-Service  avec netbeans</title>
		<link>http://bertrand.guiral.info/2008/06/29/business-process-execution-language-bpel-ecrire-un-premier-web-service-avec-netbeans/</link>
		<comments>http://bertrand.guiral.info/2008/06/29/business-process-execution-language-bpel-ecrire-un-premier-web-service-avec-netbeans/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 11:06:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[bpel]]></category>

		<category><![CDATA[ws]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=18</guid>
		<description><![CDATA[BPEL permet de manipuler des web-services (on dit composer ou orchestrer) et génère lui-même un web service, défini par un wsdl , qui lui même s&#8217;appuie sur des schéma (xsd).
Netbeans, le célèbre IDE gratuit de SUN permet de réaliser assez facilement une application, et de la déployer sur un serveur jbi Glassfish.
Nous allons essayer de [...]]]></description>
			<content:encoded><![CDATA[<p>BPEL permet de manipuler des web-services (on dit composer ou orchestrer) et génère lui-même un web service, défini par un wsdl , qui lui même s&#8217;appuie sur des schéma (xsd).</p>
<p>Netbeans, le célèbre IDE gratuit de SUN permet de réaliser assez facilement une application, et de la déployer sur un serveur jbi Glassfish.</p>
<p>Nous allons essayer de construire une application de type &quot;HelloWorld&quot;</p>
<p><br/><br />
Cela passe par les étapes suivantes:</p>
<ol>
<li>Créer un schéma xsd </li>
<li>Créer un wsdl </li>
<li>Créer un bpel </li>
<li>Déployer et tester </li>
</ol>
<p>Il est impossible d&#8217;écrire des fichiers aussi complexes à la main. Il faut un outil: netbeans.</p>
<p/>
<h2> Ecrire un xsd (un schema)</h2>
<ol>
<li>Créer un nouveau projet : new Project>SOA>BPEL Module</li>
<li>Créer un nouveau schema: ProcessFils>New>XML schema   donner un nom au fichier</li>
<li>Rajouter un type complexe (ie : contactDetails)</li>
<li>Dans la séquence de &#8220;contact&#8221;, rajouter des champs comme firstName, lastName, address, email &#8230; de type (existing type) String</li>
<li> Rajouter une deuxièmme type complexe (ie : contactTitre), de type String celui ci (pour changer!)
<li> Rajouter 2 &#8220;elements&#8221;, des types complexes que nous avons définis précédemment<br />
	<br/> Remarque: Vous pouvez définir des éléments de type &#8220;simple&#8221; (String par exemple) . Mais cela semble créer des problèmes &#8230;
	</li>
</ol>
<p/>
Voilà le xsd sous sa forme xml:<br />
<br/></p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;"><div class="xml" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:schema</span> <span style="color: #000066;">xmlns:xsd</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">targetNamespace</span>=<span style="color: #ff0000;">&quot;http://xml.netbeans.org/schema/mySchema&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://xml.netbeans.org/schema/mySchema&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">elementFormDefault</span>=<span style="color: #ff0000;">&quot;qualified&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:complexType</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ContactDetails&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;firstName&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;xsd:string&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;lastname&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;xsd:string&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;xsd:string&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;address&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;xsd:string&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:complexType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;aContactDetails&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;tns:ContactDetails&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:complexType</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;ContactSimple&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:simpleContent<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:extension</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;xsd:string&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:simpleContent<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:complexType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:element</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;aContactSimple&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;tns:ContactSimple&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:element<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:schema<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<p></<img src="http://bertrand.guiral.free.fr/jee/images/></p>
<h2> Ecrire un wsdl </h2>
<ol>
<li>ProcessFiles>new>wsdl document </li>
<li> Premier écran: Importer le schéma que nous venons de définir </li>
<li> next</li>
<li> définir les entrées et les sorties <br/> <img src="http://bertrand.guiral.free.fr/jee/images/images/netbeans_wsdl.jpg"/></li>
</ol>
<p>	Voila le wsdl sous sa forme xml:<br/></p>
<div class="geshi" style="overflow: auto; width: 560px; height: 300px; padding-bottom: 15px;"><div class="xml" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;definitions</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdl&quot;</span> <span style="color: #000066;">targetNamespace</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:wsdl</span>=<span style="color: #ff0000;">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:xsd</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span> <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">xmlns:ns</span>=<span style="color: #ff0000;">&quot;http://xml.netbeans.org/schema/mySchema&quot;</span> <span style="color: #000066;">xmlns:plnk</span>=<span style="color: #ff0000;">&quot;http://docs.oasis-open.org/wsbpel/2.0/plnktype&quot;</span> <span style="color: #000066;">xmlns:soap</span>=<span style="color: #ff0000;">&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;types<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:schema</span> <span style="color: #000066;">targetNamespace</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsd:import</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;http://xml.netbeans.org/schema/mySchema&quot;</span> <span style="color: #000066;">schemaLocation</span>=<span style="color: #ff0000;">&quot;mySchema.xsd&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsd:schema<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/types<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;message</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlOperationRequest&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;part</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;part1&quot;</span> <span style="color: #000066;">element</span>=<span style="color: #ff0000;">&quot;ns:aContactDetails&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;message</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlOperationResponse&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;part</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;part1&quot;</span> <span style="color: #000066;">element</span>=<span style="color: #ff0000;">&quot;ns:aContactSimple&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;portType</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlPortType&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;operation</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlOperation&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;input</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;input1&quot;</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;tns:myWsdlOperationRequest&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;output</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;output1&quot;</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;tns:myWsdlOperationResponse&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/operation<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/portType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;binding</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlBinding&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;tns:myWsdlPortType&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;soap:binding</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;document&quot;</span> <span style="color: #000066;">transport</span>=<span style="color: #ff0000;">&quot;http://schemas.xmlsoap.org/soap/http&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;operation</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlOperation&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;soap:operation</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;input</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;input1&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;soap:body</span> <span style="color: #000066;">use</span>=<span style="color: #ff0000;">&quot;literal&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/input<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;output</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;output1&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;soap:body</span> <span style="color: #000066;">use</span>=<span style="color: #ff0000;">&quot;literal&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/output<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/operation<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/binding<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;service</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlService&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;port</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlPort&quot;</span> <span style="color: #000066;">binding</span>=<span style="color: #ff0000;">&quot;tns:myWsdlBinding&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;soap:address</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;http://localhost:${HttpDefaultPort}/myWsdlService/myWsdlPort&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/port<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/service<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;plnk:partnerLinkType</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdl&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.--&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;plnk:role</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myWsdlPortTypeRole&quot;</span> <span style="color: #000066;">portType</span>=<span style="color: #ff0000;">&quot;tns:myWsdlPortType&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/plnk:partnerLinkType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/definitions<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<h2> Créer un bpel </h2>
<ol>
<li>ProcessFiles>new>bpel </li>
<li>Dans la vue design, &#8220;Drag and drop&#8221; le fichier wsdl. Les positions où il peut se positionner sont sur les côtés</li>
<li>&#8220;Drag And Drop&#8221; l&#8217;élément &#8220;receive&#8221; de la palette vers le centre design . Parfois la palette est invisible! click droit au centre du design Add From Pallette> Web Service > Receive</li>
<li>Editer  l&#8217;élément receive, lui donner un nom (myReceive), L&#8217;associer à un &#8220;Partner link&#8221;,à une opération, créer une variable &#8220;input&#8221; </li>
<li>Mettre en place de la même manière l&#8217;élément &#8220;reply&#8221; sous l&#8217;élément &#8220;receive&#8221;. Définir une variable &#8220;output&#8221;</li>
<li>Mettre en place un élément assign. (entre les éléments receive et reply)</li>
<li> Sélectionner l&#8217;élément &#8220;assign&#8221; Choisir la vue &#8220;mapper&#8221;</li>
<li> Sélectionner la variable output (celle dans laquelle on veut assigner une valeur)<br />
		<br/> <img src="http://bertrand.guiral.free.fr/jee/images/images/netbeans_assign.jpg"/>
		</li>
</ol>
<p/>
<p>voilà le xml correpondant:</p>
<p/>
<div class="geshi" style="overflow: auto; width: 560px; height: 300px; padding-bottom: 15px;"><div class="xml" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;process</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myBpel&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">targetNamespace</span>=<span style="color: #ff0000;">&quot;http://enterprise.netbeans.org/bpel/bg_test_005/myBpel&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://docs.oasis-open.org/wsbpel/2.0/process/executable&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:xsd</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://enterprise.netbeans.org/bpel/bg_test_005/myBpel&quot;</span> xmlns:ns0=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">xmlns:sxt</span>=<span style="color: #ff0000;">&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace&quot;</span> <span style="color: #000066;">xmlns:sxed</span>=<span style="color: #ff0000;">&quot;http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor&quot;</span> xmlns:ns1=<span style="color: #ff0000;">&quot;http://xml.netbeans.org/schema/mySchema&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;import</span> <span style="color: #000066;">namespace</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;myWsdl.wsdl&quot;</span> <span style="color: #000066;">importType</span>=<span style="color: #ff0000;">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;partnerLinks<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;partnerLink</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;PartnerLink1&quot;</span> <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">partnerLinkType</span>=<span style="color: #ff0000;">&quot;tns:myWsdl&quot;</span> <span style="color: #000066;">myRole</span>=<span style="color: #ff0000;">&quot;myWsdlPortTypeRole&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/partnerLinks<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;variables<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;MyWsdlOperationOut&quot;</span> <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">messageType</span>=<span style="color: #ff0000;">&quot;tns:myWsdlOperationResponse&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;MyWsdlOperationIn&quot;</span> <span style="color: #000066;">xmlns:tns</span>=<span style="color: #ff0000;">&quot;http://j2ee.netbeans.org/wsdl/myWsdl&quot;</span> <span style="color: #000066;">messageType</span>=<span style="color: #ff0000;">&quot;tns:myWsdlOperationRequest&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/variables<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sequence</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Sequence2&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sequence</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Sequence1&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;receive</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Receive1&quot;</span> <span style="color: #000066;">createInstance</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">partnerLink</span>=<span style="color: #ff0000;">&quot;PartnerLink1&quot;</span> <span style="color: #000066;">operation</span>=<span style="color: #ff0000;">&quot;myWsdlOperation&quot;</span> <span style="color: #000066;">portType</span>=<span style="color: #ff0000;">&quot;ns0:myWsdlPortType&quot;</span> <span style="color: #000066;">variable</span>=<span style="color: #ff0000;">&quot;MyWsdlOperationIn&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;assign</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Assign1&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;copy<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;from<span style="font-weight: bold; color: black;">&gt;</span></span></span>concat($MyWsdlOperationIn.part1/ns1:firstName, $MyWsdlOperationIn.part1/ns1:lastname, $MyWsdlOperationIn.part1/ns1:email, $MyWsdlOperationIn.part1/ns1:address)<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/from<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;to</span> <span style="color: #000066;">variable</span>=<span style="color: #ff0000;">&quot;MyWsdlOperationOut&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/copy<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/assign<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;reply</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;myReply&quot;</span> <span style="color: #000066;">partnerLink</span>=<span style="color: #ff0000;">&quot;PartnerLink1&quot;</span> <span style="color: #000066;">operation</span>=<span style="color: #ff0000;">&quot;myWsdlOperation&quot;</span> <span style="color: #000066;">portType</span>=<span style="color: #ff0000;">&quot;ns0:myWsdlPortType&quot;</span> <span style="color: #000066;">variable</span>=<span style="color: #ff0000;">&quot;MyWsdlOperationOut&quot;</span><span style="font-weight: bold; color: black;">/&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sequence<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/process<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<p/>
<img src="http://bertrand.guiral.free.fr/jee/images/images/netbeans_bpel.jpg"/></p>
<h2>Déployer et tester le projet sur le serveur </h2>
<p>Remarquez qu&#8217;un projet BPEL n&#8217;est pas directement déployable.<br />
<br/><br />
Il doit être rajouté en tant que module JBI dans un projet  &#8220;Application Composite&#8221; qui sera ensuite déployée.</p>
<p/>
Créer le projet &#8220;Application Composite&#8221; et rajouter les modules JBI:</p>
<ol>
<li> Depuis le menu principal : File > New Project</li>
<li> Sémectionner le mode &#8220;Composite Application&#8221;</li>
<li> Next</li>
<li> Rajouter un nom, &#8220;finish&#8221; </li>
<li> Ouvrir ce nouveau projet &#8220;Composite Application&#8221;. &#8220;Click Droit&#8221;. choisir &#8220;Add JBI Module&#8221; Sélectionner le jar du projet BPEL que vous voulez rajouter</li>
<li> Remarquez qu&#8217;un jar a été rajouté dans le module JBI</li>
<li>Sur le projet &#8220;Application Composite&#8221;, click droit, choisir &#8220;Deploy Project&#8221;</li>
<li> Dans le projet &#8220;Composite Application&#8221;/Test, click droit et choisir &#8220;new test&#8221;</li>
<li>Sur le test créé, click droit &#8220;run&#8221;</li>
</ol>
<h2> ressources </h2>
<p><a href="http://home.izforge.com/index.php/2007/01/09/314-the-other-netbeans-bpel-tutorial"> the other netbeans bpel tutorial</a><br />
<br/><br />
<a href="http://www.netbeans.org/kb/55/helloworldca.html">netbeans helloword application </a></p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/06/29/business-process-execution-language-bpel-ecrire-un-premier-web-service-avec-netbeans/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sercices Oriented Architecture: Les outils et ressources de base</title>
		<link>http://bertrand.guiral.info/2008/05/17/sercices-oriented-architecture-les-outils-et-ressources-de-base/</link>
		<comments>http://bertrand.guiral.info/2008/05/17/sercices-oriented-architecture-les-outils-et-ressources-de-base/#comments</comments>
		<pubDate>Sat, 17 May 2008 15:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[java]]></category>

		<category><![CDATA[sca]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[ws]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=16</guid>
		<description><![CDATA[Les outils:
Deux éditeurs sont incontournables: Netbeans et Eclipse.
Netbeans propose des editeurs bpel , xsd et wsdl assez intuitifs. Il est particulièrement adapté à glassfish pour tester des applications jbi.
De la même manière, Eclipse propose de nombreux plugins permettant de développer des applications bpel et bpmn. La démarche serait plutot top down: Je commence par écrire [...]]]></description>
			<content:encoded><![CDATA[<p>Les outils:</p>
<p>Deux éditeurs sont incontournables: Netbeans et Eclipse.<br />
Netbeans propose des editeurs bpel , xsd et wsdl assez intuitifs. Il est particulièrement adapté à glassfish pour tester des applications jbi.</p>
<p>De la même manière, Eclipse propose de nombreux plugins permettant de développer des applications bpel et bpmn. La démarche serait plutot top down: Je commence par écrire un fichier bpmn ( Des spécifications uniquement business) et j&#8217;arrive à générer un fichier bpel (Un langage d&#8217;execution). Eclipse est plustot destiné à générer des applications jbi pour servicemix.<br />
Il existe une version d&#8217;eclipse comportant tous les plugins: spagic.</p>
<p>Pour ceux qui veulent apprendre à manipuler BPEL, je conseille netbeans.</p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/05/17/sercices-oriented-architecture-les-outils-et-ressources-de-base/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JBI : Un exemple avec ServiceMix</title>
		<link>http://bertrand.guiral.info/2008/05/15/jbi-un-exemple-avec-servicemix/</link>
		<comments>http://bertrand.guiral.info/2008/05/15/jbi-un-exemple-avec-servicemix/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:45:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[java]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[sca]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=15</guid>
		<description><![CDATA[Ce tutorial accompagne la création d&#8217;une première application:
Il s&#8217;agit de surveiller un répertoire, et lorsqu&#8217;un fichier xml apparaît dans ce répertoire, le déplacer vers un autre répertoire, et envoyer le contenu dans une queue JMS et d&#8217;en archiver une copie.
JBI Components
Les JBI Components (Binding Components et &#8220;Service Engine&#8221;) sont des plug-ins qui rajoutent des fonctionnalités [...]]]></description>
			<content:encoded><![CDATA[<p>Ce tutorial accompagne la création d&#8217;une première application:<br />
Il s&#8217;agit de surveiller un répertoire, et lorsqu&#8217;un fichier xml apparaît dans ce répertoire, le déplacer vers un autre répertoire, et envoyer le contenu dans une queue JMS et d&#8217;en archiver une copie.</p>
<h2>JBI Components</h2>
<p>Les JBI Components (Binding Components et &#8220;Service Engine&#8221;) sont des plug-ins qui rajoutent des fonctionnalités au &#8220;JBI Container&#8221;.</p>
<p> </p>
<p>Vous pouvez installer un &#8220;JBI Component&#8221; en le copiant dans le répertoire &#8220;hotdeploy&#8221;.</p>
<p> </p>
<p>Un &#8220;JBI Component&#8221; se compose d&#8217;un fichier zip, appelé aussi &#8220;Service Assembly&#8221; ou SA.<br />
Un SA se compose:</p>
<ul>
<li>D&#8217;un fichier META-INF/jbi.xml</li>
<li>De plusieurs fichier zip appelés SU (Service Unit) . Chaque SU contient au moins un fichier xbean.xml</li>
</ul>
<p>Il est possible de regarder les Components déployés avec une console jmx (jconsole), d&#8217;arrêter ou de démarrer les SA.</p>
<h2>Créer un SA (Service Assembly)</h2>
<h3>Créer un projet</h3>
<p>Recopier ce pom.xml dans un directory vide.<br />
 </p>
<p><!--l version="1.0" encoding="utf-8-->4.0.0 bg.servicemix parent 1.0-SNAPSHOT pom Tutorial http://servicemix.org</p>
<p>Exécuter la commande:</p>
<p>mvn install</p>
<p>Cela valide le fait que mvn est installé, et que le fichier pom.xml est correct.</p>
<p> </p>
<p>ServiceMix fournit plusieurs achetypes Maven pour faciliter la créattion de projets.</p>
<h3>Créer un projet SU (Service Unit) avec Maven et l&#8217;archetype &#8220;servicemix-service-unit&#8221;</h3>
<p>Nous commencerons par utiliser l&#8217;archétype permettant de créer des SU (Service Unit)</p>
<p>Depuis le directory que nous avons créé, la commande suivante créera un &#8220;service unit&#8221; projet appelé &#8220;tutorial-file-su&#8221;:</p>
<p>mvn archetype:create -DarchetypeArtifactId=servicemix-service-unit -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeVersion=3.2.1 -DartifactId=tutorial-file-su</p>
<p>Mettre la version correspondant à la version de serviceMix.</p>
<p> </p>
<p>Nous remarqons que le premier fichier pom.xml que nous avions écrit a été modifié, et qu&#8217;un nouveau répertoire a été créé, contenant un pom.xml.</p>
<p>Rajouter une dépendance pour un &#8220;component&#8221; JBI</p>
<p>Chaque SU (Service Unit) est detiné à être un &#8220;component&#8221; JBI. Nous spécifions cela dans le pom.xml , en rajoutant une dépendance au pom.xml.</p>
<p>L&#8217;outillage maven de servicemix fera le reste.</p>
<p>Le component &#8220;servicemix-file&#8221; fournit l&#8217;integration du JBI aux fichiers. Il peut être utilisé pour lire et écrire des fichiers, ou surveiller (poll) un répertoire.Il est décrit <a href="http://servicemix.apache.org/servicemix-file.html">ici</a></p>
<p>org.apache.servicemix servicemix-file ${servicemix-version}</p>
<h3>Configurer le xbean.xml</h3>
<p> </p>
<p>Ensuite, nous aurons à configurer notre nouveau SU pour fournir réellement un service.<br />
Nous faisons cela en créant un fichier appelé xbean.xml dans le répertoire src/main/resources</p>
<p> </p>
<p>L&#8217;exemple définit 2 namespaces: Le prefixe &#8220;file&#8221; fait référence à un namespace pour adresser les fonctionnalités standard, tandis que le prefixe &#8220;tut&#8221; sera utilisé pour le namespace dans lequel notre service sera défini.</p>
<p> </p>
<p><!-- add the sender endpoint here --><!-- add the poller endpoint here --> </p>
<p>Définition d&#8217;un &#8220;file sender endpoint&#8221;</p>
<p> </p>
<p>Un &#8220;file sender&#8221; peut être utiliser pour écrire des fichiers localement.<br />
Voilà un exemple de &#8220;file sender&#8221;:</p>
<p> </p>
<p>Remarquez les 2 attributs service (Qui font référence à l&#8217;ensemble du SU) et endpoint (Qui fait référence au sein du service , à cet interface file:sender).</p>
<p> </p>
<p>Définition d&#8217;un &#8220;file poller endpoint&#8221;</p>
<p> </p>
<p>Nous allons lire les fichiers XML dans un répertoire (spécifié par l&#8217;attribut &#8220;file&#8221;, aussi veillez a ce que ce directory existe sur votre système )</p>
<p>La ligne XML ci-dessous est destinée à configurer un &#8220;poller&#8221;, qui vérifiera la presence d&#8217;un nouveau fichier toutes les n secondes. Ce fichier sera envoyé au &#8220;file sender&#8221; endpoint spécifié par les attributs &#8220;targetService&#8221; et &#8220;targetEndpoint&#8221;.</p>
<p> </p>
<p>Le poller appartient au même service que le &#8220;sender&#8221;; mais à un autre endpoint.Il a 2 attributs targetService et targetEndpoint qui désignent vers quelle appli seront envoyée les fichiers (Dans notre exemple,c&#8217;est le même service).</p>
<p> </p>
<p>En résumé:</p>
<p>Vous spécifiez le component cible pour un SU comme une dépendance dans Maven (&#8221;dependancy&#8221; dans le pom.xml).</p>
<p>Dans ServiceMix, la pluspart des SU seront configurés par des fichiers xbean.xml</p>
<p> </p>
<h3>Créer le SA (&#8221;Service Assembly&#8221;) avec Maven et l&#8217;archetype &#8220;servicemix-service-assembly&#8221;</h3>
<p> </p>
<p>De la même manière que nous avons créer notre SU avec un archetype Maven, nous allons créer notre projet SA .</p>
<p>Exécuter cette commande :</p>
<p>mvn archetype:create -DarchetypeArtifactId=servicemix-service-assembly -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeVersion=3.2.1 -DartifactId=tutorial-sa</p>
<p>Un nouveau projet a été généré</p>
<p> </p>
<p>Ajouté le SU dans le SA</p>
<p> </p>
<p>Nous voulons ajouter le SU que nous avons créé au SA. L&#8217;outil Maven le fera automatiquement si nous mettons une dépendance dans le pom.xml du SA.<br />
Nous avons à utiliser le groupId, l&#8217;artifactId et la version du SU ici:</p>
<p>xxx org.apache.servicemix.tutorial tutorial-file-su 1.0-SNAPSHOT xxxx</p>
<p>Utilisons Maven pour construire l&#8217;ensemble:</p>
<p>mvn install</p>
<h3>Déployer le SA</h3>
<p>Avant de commencer, assurez vous que ServiceMix est démarré.</p>
<p>Maintenant , naviguez dans le directory de votre SA, et utiliser le plugin JBI &#8220;Maven&#8221; pour déployer votre projet:</p>
<p>cd tutorial-sa mvn jbi:projectDeploy</p>
<h3>Tester le SA</h3>
<p> </p>
<p>Nous avons configurer notre SU &#8220;file&#8221; pour surveiller la presence de fichiers dans un directory, et les envoyer à un autre répertoire.<br />
Copier juste un fichier xml dans le répertoire surveillé, et ServiceMix le déplacera après quelques secondes vers le &#8220;endpoint&#8221;</p>
<p> </p>
<h3>Rajouter 2 SU</h3>
<p>A la place de simplement copier des fichiers depuis un directory vers un autre, nous allons maintenant envoyer un message vers une queue JMS. Nous voulons aussi archiver une copie du message en utilisant le pattern &#8220;wiretap&#8221;.</p>
<p> </p>
<p>En premier, nous avons à créer 2 projets supplémentaires pour nos 2 SU.<br />
A la place d&#8217;utiliser le simple archetype &#8220;servicemix-service-unit&#8221; comme precedemment,nous allons utilser 2 nouveaux archetypes:</p>
<ul>
<li>&#8220;servicemix-eip-service-unit&#8221; pour créer le module &#8220;tutorial-eip-su&#8221;</li>
<li>&#8220;servicemix-jms-provider-service-unit&#8221; pour créer le module &#8220;tutorial-jms-su&#8221;</li>
</ul>
<p> </p>
<p>Nous connaissons la syntaxe:<br />
mvn archetype:create -DarchetypeArtifactId=XX -DarchetypeGroupId=org.apache.servicemix.tooling -DartifactId=YY</p>
<p>mvn archetype:create -DarchetypeArtifactId=servicemix-eip-service-unit -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeVersion=3.2.1 -DartifactId=tutorial-eip-su mvn archetype:create -DarchetypeArtifactId=servicemix-jms-provider-service-unit -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeVersion=3.2.1 -DartifactId=tutorial-jms-su</p>
<p>Ces archetypes sont un peu plus sophistiqué :<br />
Ils ajoutent les &lt; dependency &gt; pour les components JBI qu&#8217;ils ciblent. Ils fournissent un xbean.xml pour démarrer.</p>
<p>Après cela, ajouter ces 2 nouveaux SU au SA en rajoutant les &lt; dependency &gt; au pom.xml du SA.</p>
<p> </p>
<p>La documentation de serviceMix décrit comment utiliser jms : <a href="http://servicemix.apache.org/servicemix-jms.html">servicemix-jms</a>.</p>
<p> </p>
<p>Modifier le fichier xbean.xml de tutorial-jms-su, afin d&#8217;accéder à une queue appelée &#8220;queue/tutorial&#8221; sur ActiveMQ (qui est embarqué dans ServiceMix).</p>
<p> </p>
<p> </p>
<p> </p>
<p>Configurer le &#8220;tutorial-eip-su&#8221;</p>
<p> </p>
<p>Le &#8220;Servicemix-eip component&#8221; est un container &#8220;routeur&#8221; où plusieurs types de routage peuvent être déployés en tant que SU.</p>
<p> </p>
<p>Modifier le fichier xbean.xml de &#8220;tutorial-eip-su&#8221; pour définir le &#8220;wiretap&#8221; que nous voulons.</p>
<p>Les différents pattern sont définis dans la doc de ServiceMix-eip <a href="http://servicemix.apache.org/servicemix-eip.html#servicemix-eip-ContentBasedrouter"></a><br />
voici le shema du &#8220;wire-tap&#8221; pattern:<br />
<img src="http://bertrand.guiral.free.fr/jee/images/soa-jbi-1.gif" alt="wire-tap" /></p>
<p> </p>
<p> </p>
<p><!--l version="1.0" encoding="UTF-8--> </p>
<p> </p>
<p>Nous voulons envoyer les messages au &#8220;jms endpoint&#8221;, aussi, nous spécifions cette information au premier &lt; eip:exchange-target/ &gt;</p>
<p>Le deuxième fait référence au endpoint &lt; file:sender /&gt; que nous avons déclaré plus tôt.</p>
<p> </p>
<p>Modifier la configuration de tutorial-file-su</p>
<p> </p>
<p>Nous avons à modifier le &#8220;targetService&#8221; du endpoint &lt; file:poller &gt; pour réferrer à notre nouvellement créé &#8220;wiretap&#8221;.<br />
Cela pourrait être comme cela:</p>
<p> </p>
<p> </p>
<p>Construire et deployer</p>
<p> </p>
<p>Quand tout est fait, vous étes prèt pour construire et deployer le SA.<br />
Lors du build, les logs devraient ressembler à cela:</p>
<p>[INFO] Scanning for projects&#8230; [INFO] Reactor build order: [INFO] Tutorial [INFO] Tutorial :: File SU [INFO] Tutorial :: JMS SU [INFO] Tutorial :: EIP SU [INFO] Tutorial :: SA &#8230; [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; [INFO] BUILD SUCCESSFUL [INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8230;</p>
<p>Test</p>
<p> </p>
<p>Si vous copiez un fichier dans le directory surveillé par le &#8220;poller&#8221;, il sera copié dans le directory &#8220;sender&#8221;, comme avant.</p>
<p>Cependant, il devrait aussi y avoir une copie du message dans notre queue JMS.</p>
<p>Pour le controller, connectez vous à ServiceMix avec la console JMX et naviguez vers org.apache.activemq/localhost/Queues.</p>
<p>Une queue devrait avoir été créée avec le nom &#8220;queue/tutorial&#8221; et l&#8217;attribut &#8220;EnqueueCount&#8221; indique le nombre de messages qui ont déjà été envoyés.</p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/05/15/jbi-un-exemple-avec-servicemix/feed/</wfw:commentRss>
		</item>
		<item>
		<title>JBI  - Java Business Integration: C&#8217;est quoi ?</title>
		<link>http://bertrand.guiral.info/2008/05/15/jbi-java-business-integration/</link>
		<comments>http://bertrand.guiral.info/2008/05/15/jbi-java-business-integration/#comments</comments>
		<pubDate>Thu, 15 May 2008 17:01:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[java]]></category>

		<category><![CDATA[sca]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[architecture]]></category>

		<category><![CDATA[Entreprise Service Bus]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=14</guid>
		<description><![CDATA[JBI est un standard java (JSR 208) qui définit une architecture pour permettre l&#8217;interoperabilité d&#8217;applications avec un système d&#8217;échanges de messages.
Les messages entre les &#8220;components&#8221; sont échangés à travers un &#8220;Normalized Message Router&#8221; (NMR). Le NMR sert de &#8220;Message Exchange Pattern&#8221; (MEP). Le NMR sert d&#8217;intermédiare pour échanger des messages, quelquesoit l&#8217;endroit où est le [...]]]></description>
			<content:encoded><![CDATA[<p>JBI est un standard java (JSR 208) qui définit une architecture pour permettre l&#8217;interoperabilité d&#8217;applications avec un système d&#8217;échanges de messages.<br />
Les messages entre les &#8220;components&#8221; sont échangés à travers un &#8220;Normalized Message Router&#8221; (NMR). Le NMR sert de &#8220;Message Exchange Pattern&#8221; (MEP). Le NMR sert d&#8217;intermédiare pour échanger des messages, quelquesoit l&#8217;endroit où est le &#8220;Component&#8221;. Les plugins ne communiquent pas directement les uns avec les autres: Ils communiquent exclusivement vers le NMR.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/soa-jbi-2.gif" alt="jbi" /></p>
<h2>JBI Components</h2>
<p>Les &#8220;plugins&#8221; mentionné ci-dessus sont quelquefois appelé &#8220;JBI components&#8221;.</p>
<h2>&#8220;Binding Components&#8221;</h2>
<p>Un &#8220;binding component&#8221; (BC) a 2 buts:</p>
<ul>
<li>Communiquer en utilisant un protocole distant.</li>
<li>Normaliser les messages reçus</li>
</ul>
<p>Les BC sont utilisés pour communiquer en dehors l&#8217;environnement JBI.</p>
<p>Exemples de protocoles fournis par les BC: http, jms,ftp,smtp,xmpp,rmi,corba,xmpp</p>
<h2>JBI Components</h2>
<p>Les JBI Components (Binding Components et &#8220;Service Engine&#8221;) sont des plug-ins qui rajoutent des fonctionnalités au &#8220;JBI Container&#8221;.</p>
<p> </p>
<p> </p>
<h2>Vocabulaire</h2>
<ul>
<li>Java Business Integration (JBI) : C&#8217;est le nom d&#8217;une JSR (Java Spécification)</li>
<li>Entreprise Service Bus (ESB) : C&#8217;est la même chose qu&#8217;un JBI, mais pas forcemment normalisé.</li>
<li>Component Les composants proposent des services accessibles par l&#8217;intermédiaire d&#8217;interfaces. Ce sont les parties enfichables dans le framework JBI. Il se divisent en deux sous-familles:Service Engine (SE) et Binding Component (BC)</li>
<li>Service Engine (SE) :Les SE fournissent la logique métier et les transformations (XSLT, &#8230;). Il peuvent consommer eux-même d&#8217;autres SE.</li>
<li>Binding Component (BC) : Les BC fournissent la connectivité, qu&#8217;il s&#8217;agisse de protocoles (FTP, HTTP,&#8230;), de piles (SOAP, JMS, &#8230;) ou de services externes au conteneur JBI. Ils permettent l&#8217;accès de depuis l&#8217;extérieur au services d&#8217;une application JBI.</li>
<li>Rôles : Les composants peuvent avoir les rôles suivants : Consumer (Le composant utilise un service ) et Provider (Le composant fournit un service ) Chaque composant peut être à la fois consumer et provider.</li>
<li>EndPoint :Les services proposés par les composants sont accessibles via des endpoints. Un service correspond à un endpoint.</li>
<li>Normalized Message Router (NMR) :Le Normalized Message Router reçoit et envoi des messages de la part de composants. Il est responsable du routage des messages. Les messages sont tous dans un format normalisé</li>
<li>Normalized Message :Les Normalized Messages sont les messages echangés par une application JBI. Ce sont des documents XML formé :Du contexte du message ( Il inclut des informations tels que le protocole de communication, des informations spécifiques à d&#8217;autres composants &#8230; )et du contenu du message (Toutes les données)</li>
<li>Delivery Channel :Les composants se « connectent » sur le NMR grâce au delivery channel. C&#8217;est une voie de communication bidirectionnelle leur permettant d&#8217;envoyer et de recevoir les messages</li>
<li>Service Unit (SU) :Chaque composants à déployer est défini dans un SU. Celui contient toutes les informations relatives au composants (fiche de transformation Xslt&#8230; ) et obligatoirement un descripteur qui se trouve dans un dossier META-INF à la raçine de l&#8217;archive.</li>
<li>Service Assembly (SA) :Les composants qui doivent interagir ensemble sont rassemblé dans un SA. Celui-ci contient obligatoirement un descripteur où se trouvent toutes les informations relatives aux SUs à deployer, ainsi que les archives de ces Sus.</li>
</ul>
<p> </p>
<p>Dans notre prochain tutorial, nous implementeront une application sur ServiceMix</p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/05/15/jbi-java-business-integration/feed/</wfw:commentRss>
		</item>
		<item>
		<title>wsdl - Web Services Description Language</title>
		<link>http://bertrand.guiral.info/2008/05/10/wsdl-web-services-description-language/</link>
		<comments>http://bertrand.guiral.info/2008/05/10/wsdl-web-services-description-language/#comments</comments>
		<pubDate>Sat, 10 May 2008 17:23:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[sca]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[eclipse]]></category>

		<category><![CDATA[outils]]></category>

		<category><![CDATA[web-service]]></category>

		<category><![CDATA[ws]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=12</guid>
		<description><![CDATA[WSDL (Web Services Description Language) est un langage xml pour décrire les Web-Services et comment y accéder.

 Structure d&#8217;un wsdl 
Un wsdl décrit un Web-Service avec ces principales bailises:

La structure principale d&#8217;un wsdl ressemble à cela (liste non exhaustive):
&#160;
&#60;definitions&#62;
&#60;types&#62;
&#160; &#160;definition des types&#38;#8230;&#38;#8230;..
&#60;/types&#62;
&#160;
&#60;message&#62;
&#160; &#160;definition des messages &#38;#8230;.
&#60;/message&#62;
&#60;portType&#62;
&#160; &#160;definition des ports (opérations et messages)&#38;#8230;&#38;#8230;.
&#60;/portType&#62;
&#160;
&#60;binding&#62;
&#160; &#160;Les protocoles de [...]]]></description>
			<content:encoded><![CDATA[<p>WSDL (Web Services Description Language) est un langage xml pour décrire les Web-Services et comment y accéder.</p>
<p/>
<h2> Structure d&#8217;un wsdl </h2>
<p>Un wsdl décrit un Web-Service avec ces principales bailises:</p>
<p/>
La structure principale d&#8217;un wsdl ressemble à cela (liste non exhaustive):</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;"><div class="xml" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;definitions<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;types<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;definition des types<span style="color: #ddbb00;">&amp;#8230;</span><span style="color: #ddbb00;">&amp;#8230;</span>..</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/types<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;definition des messages <span style="color: #ddbb00;">&amp;#8230;</span>.</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;portType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;definition des ports (opérations et messages)<span style="color: #ddbb00;">&amp;#8230;</span><span style="color: #ddbb00;">&amp;#8230;</span>.</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/portType<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;binding<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Les protocoles de communication utilisés par le web-service</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/binding<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;service<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;Une adresse physique où accéder au service.</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/service<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/definitions<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<p/>
</hr>
<h3>WSDL &#8220;portType&#8221;</h3>
<p>L&#8217;élément < portType > est l&#8217;élément le plus important</p>
<p/>
Il décrit un web-service , les opérations qui peuvent être accomplies, et les messages échangés.</p>
<p/>
L&#8217;élément < portType > peut être comparé à une fonction d&#8217;une librairie dans un langage traditionnel.</p>
<h3>Messages WSDL </h3>
<p>L&#8217;élément < message > définit les données d&#8217;une opération.</p>
<p/>
Chaque message peut être formé d&#8217;une ou plusieurs partie. Les parties peuvent être comparés aux paramètres d&#8217;une fonction dans un langage de programmation traditionnel.</p>
<h2>Operation Types</h2>
<p>Les type de &#8220;Request-response&#8221; est l&#8217;opération la plus courrante. Mais wsdl définit d&#8217;autres types d&#8217;opération (&#8221;One-way&#8221;, &#8220;Solicit-response&#8221;,&#8221;Notification&#8221;)</p>
<h2> Outil / editeur </h2>
<p>Il est quasiment impossible d&#8217;écrire un wsdl à la main.(Sans erreurs!)</p>
<p/>
J&#8217;utilise l&#8217;éditeur wsdl d&#8217;eclipse (voir le projet STP, ils proposent un plugin avec l&#8217;ensemble de leurs outils), qui est gratuit et qui marche bien.</p>
<p> Cet outil permet à la fois d&#8217;éditer un fichier wsdl, mais aussi, de comprendre sa structure et de quoi il est composé: C&#8217;est une bonne idée d&#8217;éditer un wsdl existant, et de le regarder avec cet outil.</p>
<p/>
<p><a href="http://bertrand.guiral.free.fr/jee/images/wsdl_1.jpg"><img src="http://bertrand.guiral.free.fr/jee/images/wsdl_1.jpg" alt="wsdl_1" width="629" height="365" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/05/10/wsdl-web-services-description-language/feed/</wfw:commentRss>
		</item>
		<item>
		<title>BPMN - Business Process Modeling Notation</title>
		<link>http://bertrand.guiral.info/2008/05/07/bpmn-business-process-modeling-notation/</link>
		<comments>http://bertrand.guiral.info/2008/05/07/bpmn-business-process-modeling-notation/#comments</comments>
		<pubDate>Wed, 07 May 2008 16:19:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[sca]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[architecture]]></category>

		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=11</guid>
		<description><![CDATA[BPMN - Business Process Modeling Notation - définit essentiellement les tâches métier et leurs relations en format xml (wikipedia).
Le plugin &#8220;Eclipse STP Modeler&#8221; permet de créer des fichiers BPMN.
Nous allons essayé de créer un projet avec ce plugin.
Voilà un exemple de représentation BPML d&#8217;un processus métier:
Figure 1. Model of a business process

Ce schéma montre un [...]]]></description>
			<content:encoded><![CDATA[<p>BPMN - Business Process Modeling Notation - définit essentiellement les tâches métier et leurs relations en format xml (<a href="http://fr.wikipedia.org/wiki/BPMN">wikipedia</a>).</p>
<p>Le plugin &#8220;Eclipse STP Modeler&#8221; permet de créer des fichiers BPMN.<br />
Nous allons essayé de créer un projet avec ce plugin.</p>
<p>Voilà un exemple de représentation BPML d&#8217;un processus métier:</p>
<p>Figure 1. Model of a business process</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bpmn_1.jpg" alt="" /></p>
<p>Ce schéma montre un unique flux horizontal d&#8217;un processus métier coupé en trois tranches et disposé verticalement dans l&#8217;ordre.<br />
Ce schéma a été créé en utilisant le &#8220;STP BMN modeler&#8221; d&#8217;éclipse, que vous utiliserez plus tard.</p>
<p>Vous pouvez voir où le processus démarre avec le cercle vide sur la gauche, et le flux progresse vers la droite en suivant les flèches et les arcs, et se termine (à la fin :=))!) avec un cercle vide à droite.</p>
<p>BPMN est simplement un format XML décrivant, dans notre exemple , le modèle de la figure 1.</p>
<p>Il contient des &#8220;vertices&#8221; (Pluriel de &#8220;Vertex&#8221;: intersection, noeud) qui correspondent à des noeuds et des &#8220;sequenceEdges&#8221; qui correspondent à de flèches et des arcs.</p>
<p>Regardons un exemple: (Listing 1)</p>
<p>Les &#8220;Vertices&#8221; sont essentiellement des noeuds ou des tâches, représentés graphiquement dans la figure 1 par des cercles, des losanges (Têtes de diamant) et des carrés.</p>
<p>Dans le Listing 1, vous pouvez voir qu&#8217;ils sont identifiés, aussi, comme une liste de &#8220;outgoingEdges&#8221; et de &#8220;incommingEdges&#8221;.</p>
<p>Des identifiant donne simplement un ID à chaque &#8220;Vertices&#8221; qui peut être référencé comme &#8220;source&#8221; ou &#8220;target&#8221; d&#8217;un &#8220;sequenceEdge&#8221; (Représenté dans la figure 1 par des flèches directionnelles allant de &#8220;Vertices&#8221; en &#8220;Vertices&#8221;).</p>
<p>L&#8217;information importante dans chaque &#8220;sequenceEdges&#8221; sont les attributs &#8220;source&#8221; et &#8220;target&#8221; qui spécifient les référence des &#8220;vertices&#8221; (noeuds) source et destination.</p>
<p>Remarquez que ce format de fichier n&#8217;est pas exécutable sur un moteur BPEL comme le moteur &#8220;ODE&#8221; d&#8217;apache. C&#8217;est uniquement la modélisation d&#8217;un processus métier.</p>
<p>Des outils existent pour transformer ces fichiers BPMN en modèle BPEL exécutable (Par exemple le projet ATL d&#8217;éclipse et un open source écrit par BABEL) .</p>
<h2>BPEL Business Process Execution Language</h2>
<p>BPEL est exécutable sur des moteurs comme ODE (Orchestration Director Engine) d&#8217;Apache.</p>
<p>LA différence entre BPEL et BPMN est que BPEL est plus structuré, étant par définition un langage d&#8217;exécution.</p>
<p>A la place de &#8220;Vertices&#8221; et de &#8220;SequenceEdges&#8221;, un fichier xml BPEL contient des séquences d&#8217;instruction qui incluent l&#8217;invocation de Web-Service, des opérations et des instructions comme des boucles &#8220;while&#8217; qui peuvent exécuter une séquence de code encore et encore si une condition reste &#8220;true&#8221;.<br />
(Voir le tag &#8230; après l&#8217;ouverture dans le listing 2) ou encore des instructions &#8220;if&#8221; et &#8220;else-if&#8221;</p>
<p>Dans la figure 1 (Coupe 2), il y a une instance où un arc va vers l&#8217;arrière.</p>
<p>C&#8217;est comme ça qu&#8217;est représenté une boucle &#8220;while&#8221; en BPMN.</p>
<p>Là , vous pouvez voir 2 &#8220;vertices&#8221; (noeuds) appelés while1 et while2 qui facilitent le branchement correct des processus.<br />
(while1 a deux entrées (incomingEdges) en 1 seule sortie et while2 prend une entrée et la divise en deux sorties)</p>
<p>La condition de la boucle &#8220;while&#8221; est définie par &#8220;while_ok&#8221;, et si il reste &#8220;true&#8221;, la tâche (&#8221;shippingEstimator task&#8221;) sera exécutée encore et encore.<br />
Quand cette même condition n&#8217;est plus vraie, l&#8217;exécution s&#8217;arrête et passe à la tâche de fin (&#8221;checkout task&#8221;).</p>
<p>Pour additionner, BPMN XML définit un modèle graphique de votre processus métier avec des noeuds et des graphes, et BPEL définit un modèle exécutable de votre processus métier avec des constructions exécutables comme des boucles &#8220;while&#8221;, des instructions &#8220;if&#8221; et des instructions qui appellent des opérations sur des Web-Services existants.</p>
<p>Le processus métier que vous allez modéliser est un simple flux permettant d&#8217;ajouter un jouet à une liste d&#8217;achat.</p>
<p>Les utilisateurs auront le choix d&#8217;utiliser un &#8220;shippingEstimator&#8221;(Voir la condition de la boucle while dans le listing 2), de confirmer, et de passer une commande qui pourra être rejetée ou acceptée.<br />
Le processus devra éventuellement envoyer une facture au client et rajouter la commande dans la queue des commandes à expédier.</p>
<p>Pour faire cela, vous aurez à installer l&#8217;outil de développement Eclipse, avant de vous plonger dans votre &#8220;processus métier&#8221;.</p>
<h2>Installation du projet STP (&#8221;SOA Tool Platform&#8221;) d&#8217;eclipse</h2>
<p>Le projet &#8220;SOA Tools Paltform&#8221; (STP) d&#8217;éclipse fournit des outils permettant la conception, la configuration, l&#8217;assemblage, le déploiement, la surveillance et la gestion de software conçu dans le cadre de SOA (Service Oriented Architecture).<br />
STP suit les spécifications du SCA (Component Architecture Specification) .</p>
<p>STP comprend donc plusieurs outils (Liste non exhaustive):</p>
<ul>
<li>STP SOA System :Outils pour l&#8217;assemblage, la construction et le deploiement de Services dans des &#8220;Container&#8221; . Avec en plus des moyens de gestion des &#8220;Policy&#8221; lors des déploiement.</li>
<li>STP BPEL 2 Java (B2J) Outil pour traduire BPEL en classes Java.</li>
<li>STP BPMN (BPMN) Outil pour éditer les diagrammes BPMN.</li>
<li>STP Policy Editor (POLICY) Editeur pour &#8220;WS-Policy&#8221; avec un éditeur graphique.</li>
<li>STP SCA (SCA) Editeur graphique pour un SCA composite.</li>
</ul>
<p>Il est possible de télécharger l&#8217;ensemble de ces outils à l&#8217;url :<br />
<a href="http://download.eclipse.org/stp/downloads/"><br />
http://download.eclipse.org/stp/downloads/</a></p>
<p>( J&#8217;ai essayé de mettre à jour par l&#8217;outil update d&#8217;éclipse, ça n&#8217;a pas marché, je conseille donc de télécharger le zip &#8220;All in one&#8221; de le dezipper dans le répertoire d&#8217;eclipse.)</p>
<h2>Section 4. Utiliser l&#8217;éditeur BPMN d&#8217;éclipse</h2>
<p>L&#8217;éditeur STP BPMN se veut simple à utiliser et intuitif.</p>
<p>D&#8217;abord, nous allons apprendre à créer un diagramme BPMN pour modéliser les visiteurs achetant des jouets sur votre site web.</p>
<p>Puis nous apprendrons quel types d&#8217;activités que nous aurons à employer dans ce modèle.</p>
<p>Et finalement, vous verrez comment modéliser vos processus métier en utilisant l&#8217;éditeur BPMN</p>
<h3>Votre premier diagramme BPMN</h3>
<p>C&#8217;est le moment de démarrer Eclipse. Comme l&#8217;éditeur BPMN n&#8217;est pas basé sur un type de projet, vous avez juste à créer un projet générique:</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_1.jpg" alt="Nouveau projet" /></p>
<p>Vous devriez maintenant voir le nouveau projet dans la fenêtre &#8220;Package Explorer&#8221; .</p>
<p>Sélectionnez le et créez un nouveau diagramme BPMN:</p>
<p>File &gt; New &gt; Other. Expand the SOA Tools folder and select Bpmn Diagram.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_5.jpg" alt="figure 5 " /></p>
<p>Clickez sur &#8220;Finish&#8221; pour créer un diagramme BPMN. Votre projet devrait ressembler à la figure ci-dessous.<br />
Figure 6. La fenêtre Projet</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_6.jpg" alt="figure 6 " width="633" height="546" /></p>
<p>Excellent!</p>
<p>Maintenant, vous ètes prét à manipuler quelques types d&#8217;activités. Ces eléments sont affichés sur la palette de droite.</p>
<h4>Introduction des types d&#8217;activité</h4>
<p>Il y a plusieurs types d&#8217;activité que vous pouvez utiliser pour modéliser votre activité métier.<br />
Nous allons passé en revue 5 des types d&#8217;activité que vous allez utiliser.</p>
<p>&#8220;Empty Start&#8221; , sous &#8220;Start Events&#8221;</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_7.jpg" alt="figure 7 " /></p>
<p>Cette activité démarre le processus, le cercle vide sur la gauche de la Figure 1.</p>
<p>Apprenez à manipuler l&#8217;éditeur: Il faut sélectioner la tache, puis clicker au centre du diagramme.</p>
<p>La prochaine est une tâche, comme representée dessous:</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_8.jpg" alt="figure 8 " /></p>
<p>Les tâches (Task) sont des commandes comme invoquer un Web-Service.</p>
<p>Les deux suivantes sont une des &#8220;gateway&#8221; qui permettent à un processus de se diviser en 2 directions différentes, exclusivement ou en parallèles.</p>
<p>D&#8217;abord est la &#8220;exclusive data-based gateway&#8221;.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_9.jpg" alt="figure 9 " /></p>
<p>Vous comprendrez comment ca marche plus tard. En bref, c&#8217;est utilisé pour branché le processus métier vers 2 chemins différents,un pour le cas où la commande est un echec, et l&#8217;autre si la commande a été un succes.</p>
<p>Maintenant regardon la &#8220;parallel gateway&#8221;.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_10.jpg" alt="figure 10 " /></p>
<p>Vous pouvez utiliser ce &#8220;gateway&#8221; pour définir 2 tâches qui seront exécutées en parallèle, comme par exemple envoyé une facture au client et envoyé un ordre d&#8217;envoi au service des expéditions après une commande réussie.</p>
<p>La dernière activité à rajouter est la &#8220;Empty End Event&#8221;, un évènement qui termine le processus.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_11.jpg" alt="figure 11 " /></p>
<p>Cela correspond au cercle vide sur la droite de la figure 1, terminant le processus.</p>
<h4>Créer le processus metier</h4>
<p>Maintenant il faut modéliser le processus métier.</p>
<p>Pour commencer , clicker sur le &#8220;Empty Start Activity&#8221;. Puis &#8220;double-click&#8221; et appelé cette activité &#8220;start&#8221; par exemple.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_12.jpg" alt="figure 12 " /></p>
<p>Clicker sur l&#8217;activité de type &#8220;task&#8221;, la placer à la droite de cercle &#8220;start&#8221;, &#8220;double-click&#8221; et l&#8217;appelé &#8220;addToyToCart&#8221;.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_13.jpg" alt="figure 13 " /></p>
<p>Maintenant, nous allons créer un nouvel arc depuis le cercle &#8220;start&#8221; jusqu&#8217;à la tâche &#8220;addToyToCart&#8221;.</p>
<p>Plcer le curseur sur la bordure droite du cercle &#8220;start&#8221; jusqu&#8217;à ce que 2 petites flèches apparaissent à sa droite.Clicker sur le petit carré à l&#8217;extrémité de la flèche pleine.<br />
L&#8217;étirer jusqu&#8217;à la tâche &#8220;addToyToCart&#8221; jusqu&#8217;à ce qu&#8217;une flèche sombre apparaisse à sa droite.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_14.jpg" alt="figure 14 " /></p>
<p>Relacher la souris, et un nouveau lien devrait relier les 2 activités, comme ci-dessous:</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_15.jpg" alt="figure 15 " /></p>
<p>Bien, vous avez créé votre premier arc. Votre &#8220;business process&#8221; commence à prendre forme.</p>
<p><img src="http://bertrand.guiral.free.fr/jee/images/bp_16.jpg" alt="figure 16 " width="632" height="205" /></p>
<p>Avec l&#8217;aide de la figure 1, vous devez être capable de créer de nouvelles tâches.</p>
<p>Remarquez que vous pouvez donner un nom aux arcs, ce qui donne encore plus de clarté au shéma.</p>
<p>Une fois terminé, vous pouvez examiner le résultat en BPMN correspondant à votre diagramme en regardant le fichier .bpmn.</p>
<p>Vous pouvez voir les &#8220;vertices&#8221; et les &#8220;sequenceEdges&#8221; qui décrivent le &#8220;business process&#8221; que vous avez modelés.</p>
<p>Félicitations ! Vous avez réussi à modéliser un &#8220;Business Process&#8221; en utilisant le &#8220;BPMN modeler&#8221;.</p>
<p>Maintenant, il vous reste à convertir le BPMN en BPEL, et à déployer le BPEL sur un moteur BPEL (Ode d&#8217;Apache par exemple) . Ce sera peut-être l&#8217;objet de prochains tutoriels . Quand pensez-vous?</p>
]]></content:encoded>
			<wfw:commentRss>http://bertrand.guiral.info/2008/05/07/bpmn-business-process-modeling-notation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SOA et SCA: Le Projet Apache Tuscany</title>
		<link>http://bertrand.guiral.info/2008/05/04/soa-et-sca-le-projet-apache-tuscany/</link>
		<comments>http://bertrand.guiral.info/2008/05/04/soa-et-sca-le-projet-apache-tuscany/#comments</comments>
		<pubDate>Sun, 04 May 2008 14:40:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[java]]></category>

		<category><![CDATA[sca]]></category>

		<category><![CDATA[soa]]></category>

		<category><![CDATA[tutoriels]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[architecture]]></category>

		<category><![CDATA[tuscany]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://bertrand.guiral.info/?p=10</guid>
		<description><![CDATA[Le projet Tuscany a pour but de créer une infrastructure SOA.

Tuscany est basé sur les spécifications définis par l&#8217;&#8221;Open CSA&#8221;.

SCA (Service Component Architecture) définit un  modèle simple à base de service permettant la construction , l&#8217;assemblage et le déployment de services (Existant et nouveau) et de façon indépendante des languages et technologies.
 
SDO (Service [...]]]></description>
			<content:encoded><![CDATA[<p>Le projet Tuscany a pour but de créer une infrastructure SOA.<br />
<br/><br />
Tuscany est basé sur les spécifications définis par l&#8217;&#8221;Open CSA&#8221;.</p>
<p/>
<p>SCA (Service Component Architecture) définit un  modèle simple à base de service permettant la construction , l&#8217;assemblage et le déployment de services (Existant et nouveau) et de façon indépendante des languages et technologies.<br />
 <br/><br />
SDO (Service Data Object) fournit une interface pour manipuler les différentes formes de données, y compris des documents  XML, qui peuvent exister dans un réseau de Services eet fournit les mécanismes pour des conversions.</p>
<h2>Première Application Tuscany </h2>
<p>Ce tutorial est inspiré (traduit ?) de <a href="http://incubator.apache.org/tuscany/getting-started-with-tuscany-using-the-command-line.html">getting started with tuscany </a></p>
<h2> Etape 1 : Telecharger java, tuscany et maven</h2>
<p>Téléchargement: &#8220;<a href="http://incubator.apache.org/tuscany/sca-java-releases.html">Tuscany Java SCA release</a>&#8220;.<br />
<br/></p>
<h3>Construire le &#8220;Calulator&#8221; en java </h3>
<p>Cet exemple illustre comment définir votre application en restant concentré sur la logique métier. Il vous ammene à travers les étapes de la construction d&#8217;un  &#8220;Calculator&#8221;. Toutes les connections entre les &#8220;Components&#8221; à l&#8217;intérieur du &#8220;Composite&#8221; sont locales et décrires en utilisant des Interfaces Java.</p>
<p/>
<h4>Etape 0 - Obtenir les librairies nécessaires </h4>
<p>Pour cela il faut utiliser maven.<br />
<br/><br />
voila le POM.xml:</p>
<div class="geshi" style="overflow: auto; width: 560px; height: 300px; padding-bottom: 15px;"><div class="xml" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;project</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://maven.apache.org/POM/4.0.0&quot;</span> <span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;modelVersion<span style="font-weight: bold; color: black;">&gt;</span></span></span>0.0.0<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/modelVersion<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;groupId<span style="font-weight: bold; color: black;">&gt;</span></span></span>com.bg.soa.test<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/groupId<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;artifactId<span style="font-weight: bold; color: black;">&gt;</span></span></span>bg_soa_test_tutos_tuscany<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/artifactId<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;packaging<span style="font-weight: bold; color: black;">&gt;</span></span></span>jar<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/packaging<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;version<span style="font-weight: bold; color: black;">&gt;</span></span></span>1.0-SNAPSHOT<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/version<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;name<span style="font-weight: bold; color: black;">&gt;</span></span></span>bg_soa_test_tutos_tuscany<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/name<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;url<span style="font-weight: bold; color: black;">&gt;</span></span></span>http://maven.apache.org<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/url<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;repositories<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;repository<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;id<span style="font-weight: bold; color: black;">&gt;</span></span></span>apache.incubator<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/id<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;url<span style="font-weight: bold; color: black;">&gt;</span></span></span>http://people.apache.org/repo/m2-incubating-repository<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/url<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/repository<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/repositories<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;dependencies<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;dependency<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;groupId<span style="font-weight: bold; color: black;">&gt;</span></span></span>org.apache.tuscany.sca<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/groupId<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;artifactId<span style="font-weight: bold; color: black;">&gt;</span></span></span>tuscany-host-embedded<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/artifactId<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;version<span style="font-weight: bold; color: black;">&gt;</span></span></span>1.2-incubating<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/version<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/dependency<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;dependency<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: norma