servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r472607 - in /incubator/servicemix/site/main: jbi-components.html servicemix-http.html
Date Wed, 08 Nov 2006 19:36:50 GMT
Author: chirino
Date: Wed Nov  8 11:36:49 2006
New Revision: 472607

URL: http://svn.apache.org/viewvc?view=rev&rev=472607
Log:
Latest export from confluence

Modified:
    incubator/servicemix/site/main/jbi-components.html
    incubator/servicemix/site/main/servicemix-http.html

Modified: incubator/servicemix/site/main/jbi-components.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/jbi-components.html?view=diff&rev=472607&r1=472606&r2=472607
==============================================================================
--- incubator/servicemix/site/main/jbi-components.html (original)
+++ incubator/servicemix/site/main/jbi-components.html Wed Nov  8 11:36:49 2006
@@ -130,15 +130,9 @@
                           <a href="http://goopen.org/confluence/display/SM/servicemix-
bpe" title="servicemix- bpe">servicemix- bpe</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/servicemix-
http" title="servicemix- http">servicemix- http</a>
-              <span class="smalltext">(ServiceMix)</span>
-              <br>
                           <a href="http://goopen.org/confluence/display/SM/servicemix-
jms" title="servicemix- jms">servicemix- jms</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
-                          <a href="http://goopen.org/confluence/display/SM/servicemix-
eip" title="servicemix- eip">servicemix- eip</a>
-              <span class="smalltext">(ServiceMix)</span>
-              <br>
                           <a href="http://goopen.org/confluence/display/SM/servicemix-
ftp" title="servicemix- ftp">servicemix- ftp</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
@@ -155,6 +149,12 @@
               <span class="smalltext">(ServiceMix)</span>
               <br>
                           <a href="http://goopen.org/confluence/display/SM/servicemix-
wsn2005+old" title="servicemix- wsn2005 old">servicemix- wsn2005 old</a>
+              <span class="smalltext">(ServiceMix)</span>
+              <br>
+                          <a href="http://goopen.org/confluence/display/SM/servicemix-
eip" title="servicemix- eip">servicemix- eip</a>
+              <span class="smalltext">(ServiceMix)</span>
+              <br>
+                          <a href="http://goopen.org/confluence/display/SM/servicemix-
http" title="servicemix- http">servicemix- http</a>
               <span class="smalltext">(ServiceMix)</span>
               <br>
                       </div>

Modified: incubator/servicemix/site/main/servicemix-http.html
URL: http://svn.apache.org/viewvc/incubator/servicemix/site/main/servicemix-http.html?view=diff&rev=472607&r1=472606&r2=472607
==============================================================================
--- incubator/servicemix/site/main/servicemix-http.html (original)
+++ incubator/servicemix/site/main/servicemix-http.html Wed Nov  8 11:36:49 2006
@@ -36,7 +36,7 @@
         <TR>
           <TD align="left" valign="middle" nowrap="">
             <DIV id="site-breadcrumbs">
-<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components.html"
title="Components">Components</A>&nbsp;&gt;&nbsp;<A href="jbi-components.html"
title="JBI Components">JBI Components</A>&nbsp;&gt;&nbsp;<A href=""
title="servicemix-http">servicemix-http</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A>&nbsp;&gt;&nbsp;<A
href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="documentation.html"
title="Documentation">Documentation</A>&nbsp;&gt;&nbsp;<A href="components-list.html"
title="Components list">Components list</A>&nbsp;&gt;&nbsp;<A href="jbi-components.html"
title="JBI Components">JBI Components</A>&nbsp;&gt;&nbsp;<A href=""
title="servicemix-http">servicemix-http</A>
             </DIV>
           </TD>
           <TD align="right" valign="middle" nowrap="">
@@ -198,7 +198,7 @@
 <P>You can deploy Service Units containing a file named xbean.xml for activating consumer
and provider endpoints.</P>
 
 <P>This xml file should respect the given syntax, though this is a spring based xml
configuration file from where all beans of class <SPAN class="nobr"><A href="http://incubator.apache.org/servicemix/maven/servicemix-http/apidocs/org/apache/servicemix/http/HttpEndpoint.html"
title="Visit page outside Confluence" rel="nofollow">HttpEndpoint<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN> are retrieved.<BR>
-See a full example <SPAN class="nobr"><A href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-http/src/test/resources/xbean/xbean.xml"
title="Visit page outside Confluence" rel="nofollow">here<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN>.&nbsp; Note that you have to
define the http namespace with</P>
+See a full example <SPAN class="nobr"><A href="http://svn.apache.org/repos/asf/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/test/resources/xbean/xbean.xml"
title="Visit page outside Confluence" rel="nofollow">here<SUP><IMG class="rendericon"
src="http://goopen.org/confluence/images/icons/linkext7.gif" height="0" width="0" align="absmiddle"
alt="" border="0"></SUP></A></SPAN>.&nbsp; Note that you have to
define the http namespace with</P>
 <DIV class="code"><DIV class="codeContent">
 <PRE class="code-xml"><SPAN class="code-tag">&lt;beans <SPAN class="code-keyword">xmlns:http</SPAN>=<SPAN
class="code-quote">&quot;http://servicemix.apache.org/http/1.0&quot;</SPAN>&gt;</SPAN>
     ...
@@ -211,7 +211,13 @@
 <P>A consumer endpoint is a server-side http endpoint that will consumer plain HTTP,
or HTTP+SOAP requests and send them into the NMR to a given JBI endpoint, which is called
the proxied endpoint.</P>
 
 <P>Following is an example of an http consumer endpoint.</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">&lt;http:endpoint service=<SPAN class="code-quote">&quot;test:MyConsumerService&quot;</SPAN>
+               endpoint=<SPAN class="code-quote">&quot;myConsumer&quot;</SPAN>
+               role=<SPAN class="code-quote">&quot;consumer&quot;</SPAN>

+               locationURI=<SPAN class="code-quote">&quot;http://localhost:8192/Service/&quot;</SPAN>
+               defaultMep=<SPAN class="code-quote">&quot;http://www.w3.org/2004/08/wsdl/in-out&quot;</SPAN>
/&gt;</PRE>
+</DIV></DIV>
 <TABLE cellpadding="5" width="85%" cellspacing="8px" class="infoMacro" border="0" align="center"><COLGROUP><COL
width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/information.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">Consumer
endpoint attributes</B><BR>
 <TABLE class="confluenceTable"><TBODY>
 <TR>
@@ -352,7 +358,13 @@
 <P>A provider endpoint is a client-side jbi endpoint which can receive requests from
the NMR and send them to a given url where the service is provided.</P>
 
 <P>Here is an example of an http provider endpoint:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">&lt;http:endpoint service=<SPAN class="code-quote">&quot;test:MyProviderService&quot;</SPAN>
+               endpoint=<SPAN class="code-quote">&quot;myProvider&quot;</SPAN>
+               role=<SPAN class="code-quote">&quot;provider&quot;</SPAN>

+               locationURI=<SPAN class="code-quote">&quot;http://localhost:8192/Service/&quot;</SPAN>
+               wsdlResource=<SPAN class="code-quote">&quot;classpath:provider.wsdl&quot;</SPAN>
/&gt;</PRE>
+</DIV></DIV>
 <TABLE cellpadding="5" width="85%" cellspacing="8px" class="infoMacro" border="0" align="center"><COLGROUP><COL
width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/information.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">Provider
endpoint attributes</B><BR>
 <TABLE class="confluenceTable"><TBODY>
 <TR>
@@ -416,7 +428,30 @@
 <P>Both consumer and provider endpoints support SSL.</P>
 
 <P>SSL parameters can be provided using the following syntax:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">&lt;http:endpoint service=<SPAN class="code-quote">&quot;testSsl:MyConsumerService&quot;</SPAN>
+  endpoint=<SPAN class="code-quote">&quot;myConsumer&quot;</SPAN>
+  role=<SPAN class="code-quote">&quot;consumer&quot;</SPAN> 
+  locationURI=<SPAN class="code-quote">&quot;https://localhost:8193/Service/&quot;</SPAN>
+  defaultMep=<SPAN class="code-quote">&quot;http://www.w3.org/2004/08/wsdl/in-out&quot;</SPAN>&gt;
+  <SPAN class="code-tag">&lt;http:ssl&gt;</SPAN>
+    &lt;http:sslParameters keyStore=<SPAN class="code-quote">&quot;classpath:org/apache/servicemix/http/server.keystore&quot;</SPAN>
+    keyStorePassword=<SPAN class="code-quote">&quot;password&quot;</SPAN>/&gt;
+  <SPAN class="code-tag">&lt;/http:ssl&gt;</SPAN>
+<SPAN class="code-tag">&lt;/http:endpoint&gt;</SPAN>
+
+&lt;http:endpoint service=<SPAN class="code-quote">&quot;testSsl:MyProviderService&quot;</SPAN>
+  endpoint=<SPAN class="code-quote">&quot;myProvider&quot;</SPAN>
+  role=<SPAN class="code-quote">&quot;provider&quot;</SPAN> 
+  locationURI=<SPAN class="code-quote">&quot;https://localhost:8193/Service/&quot;</SPAN>&gt;
+  <SPAN class="code-tag">&lt;http:ssl&gt;</SPAN>
+    &lt;http:sslParameters keyStore=<SPAN class="code-quote">&quot;classpath:org/apache/servicemix/http/server.keystore&quot;</SPAN>
+      keyStorePassword=<SPAN class="code-quote">&quot;password&quot;</SPAN>
+      trustStore=<SPAN class="code-quote">&quot;classpath:org/apache/servicemix/http/client.keystore&quot;</SPAN>
+      trustStorePassword=<SPAN class="code-quote">&quot;password&quot;</SPAN>/&gt;
+  <SPAN class="code-tag">&lt;/http:ssl&gt;</SPAN>
+<SPAN class="code-tag">&lt;/http:endpoint&gt;</SPAN></PRE>
+</DIV></DIV>
 <TABLE cellpadding="5" width="85%" cellspacing="8px" class="infoMacro" border="0" align="center"><COLGROUP><COL
width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/information.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">SSL
attributes</B><BR>
 <TABLE class="confluenceTable"><TBODY>
 <TR>
@@ -500,13 +535,68 @@
 To retrieve the necessary informations from the wsdl, the component can recognize a jbi extension,
in addition to the standard http and soap bindings, which specified the role of the component
and the default MEP to use for JBI exchanges.</P>
 
 <P>Here is an example of a WSDL:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml">&lt;definitions name=&apos;Consumer&apos; 
+             targetNamespace=&apos;http://http.servicemix.org/Test&apos; 
+             <SPAN class="code-keyword">xmlns:tns</SPAN>=&apos;http://http.servicemix.org/Test&apos;

+             <SPAN class="code-keyword">xmlns:http</SPAN>=&apos;http://schemas.xmlsoap.org/wsdl/http/&apos;

+             <SPAN class="code-keyword">xmlns:soap</SPAN>=&apos;http://schemas.xmlsoap.org/wsdl/soap/&apos;

+             xmlns=&apos;http://schemas.xmlsoap.org/wsdl/&apos;
+             <SPAN class="code-keyword">xmlns:jbi</SPAN>=&apos;http://servicemix.org/wsdl/jbi/&apos;&gt;
+
+    <SPAN class="code-tag">&lt;portType name=&apos;ConsumerInterface&apos;&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/portType&gt;</SPAN>
+
+    <SPAN class="code-tag">&lt;binding name=&apos;ConsumerSoapBinding&apos;
type=&apos;tns:ConsumerInterface&apos;&gt;</SPAN>
+        <SPAN class="code-tag">&lt;soap:binding transport=<SPAN class="code-quote">&quot;http&quot;</SPAN>/&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/binding&gt;</SPAN>
+
+    <SPAN class="code-tag">&lt;binding name=&apos;ConsumerHttpBinding&apos;
type=&apos;tns:ConsumerInterface&apos;&gt;</SPAN>
+        <SPAN class="code-tag">&lt;http:binding verb=<SPAN class="code-quote">&quot;POST&quot;</SPAN>&gt;</SPAN><SPAN
class="code-tag">&lt;/http:binding&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/binding&gt;</SPAN>
+
+    <SPAN class="code-tag">&lt;service name=&apos;ConsumerInOnly&apos;&gt;</SPAN>
+        <SPAN class="code-tag">&lt;port name=&apos;TestEndpoint&apos; binding=&apos;tns:ConsumerSoapBinding&apos;&gt;</SPAN>
+            <SPAN class="code-tag">&lt;soap:address location=<SPAN class="code-quote">&quot;http://localhost:8192/InOnly&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;jbi:endpoint role=<SPAN class="code-quote">&quot;consumer&quot;</SPAN>
defaultMep=&apos;in-only&apos;/&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/port&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/service&gt;</SPAN>
+
+    <SPAN class="code-tag">&lt;service name=&apos;ConsumerInOut&apos;&gt;</SPAN>
+        <SPAN class="code-tag">&lt;port name=&apos;TestEndpoint&apos; binding=&apos;tns:ConsumerHttpBinding&apos;&gt;</SPAN>
+            <SPAN class="code-tag">&lt;http:address location=<SPAN class="code-quote">&quot;http://localhost:8192/InOut&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;jbi:endpoint role=<SPAN class="code-quote">&quot;consumer&quot;</SPAN>
defaultMep=&apos;in-out&apos;/&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/port&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/service&gt;</SPAN>
+    
+<SPAN class="code-tag">&lt;/definitions&gt;</SPAN></PRE>
+</DIV></DIV>
 
 <H2><A name="servicemix-http-Lightweightmode"></A>Lightweight mode</H2>
 
 <P>The servicemix-http component can also be configured in a spring/xbean configuration
file, for use in an embedded ServiceMix.<BR>
 Here is an example of such a configuration:</P>
-
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-xml"><SPAN class="code-tag">&lt;sm:activationSpec&gt;</SPAN>
+  <SPAN class="code-tag">&lt;sm:component&gt;</SPAN>
+    <SPAN class="code-tag">&lt;http:component&gt;</SPAN>
+      <SPAN class="code-tag">&lt;http:endpoints&gt;</SPAN>
+        &lt;http:endpoint service=<SPAN class="code-quote">&quot;test:dummy&quot;</SPAN>
+                       endpoint=<SPAN class="code-quote">&quot;dummy&quot;</SPAN>
+                       role=<SPAN class="code-quote">&quot;consumer&quot;</SPAN>

+                       soap=<SPAN class="code-quote">&quot;true&quot;</SPAN>
+                       locationURI=<SPAN class="code-quote">&quot;http://localhost:8192/Service/&quot;</SPAN>
+                       defaultMep=<SPAN class="code-quote">&quot;http://www.w3.org/2004/08/wsdl/in-out&quot;</SPAN>
/&gt;
+
+        &lt;http:endpoint service=<SPAN class="code-quote">&quot;test:MyProviderService&quot;</SPAN>
+                       endpoint=<SPAN class="code-quote">&quot;myProvider&quot;</SPAN>
+                       role=<SPAN class="code-quote">&quot;provider&quot;</SPAN>

+                       locationURI=<SPAN class="code-quote">&quot;http://localhost:8192/Service/&quot;</SPAN>
/&gt;
+      <SPAN class="code-tag">&lt;/http:endpoints&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/http:component&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/sm:component&gt;</SPAN>
+<SPAN class="code-tag">&lt;/sm:activationSpec&gt;</SPAN></PRE>
+</DIV></DIV>
 <TABLE cellpadding="5" width="85%" cellspacing="8px" class="warningMacro" border="0" align="center"><COLGROUP><COL
width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="http://goopen.org/confluence/images/icons/emoticons/forbidden.gif"
width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B class="strong">Classpath
issues when embedding servicemix-http component</B><BR>
 <P>When using the servicemix.xml configuration file to create http endpoints, you must
include the servicemix-http-xxx.jar in your classpath.<BR>
 You will find this file inside the component installer (./components/servicemix-http-xxx.zip).<BR>
@@ -601,8 +691,8 @@
     </DIV>
     <DIV id="site-footer">
           Added by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnt">gnt</A>,
-    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Aug 31, 2006
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1928&originalId=13358">view
change</A>)
+    last edited by     <A href="http://goopen.org/confluence/users/viewuserprofile.action?username=gnodet">Guillaume
Nodet</A> on Nov 12, 2006
+                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=1928&originalId=14939">view
change</A>)
               
       (<A href="http://goopen.org/confluence/pages/editpage.action?pageId=1928">edit
page</A>)
     </DIV>



Mime
View raw message