You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ch...@apache.org on 2006/11/08 20:36:50 UTC
svn commit: r472607 - in /incubator/servicemix/site/main:
jbi-components.html servicemix-http.html
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> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components.html" title="Components">Components</A> > <A href="jbi-components.html" title="JBI Components">JBI Components</A> > <A href="" title="servicemix-http">servicemix-http</A>
+<A href="home.html" title="ServiceMix">ServiceMix</A> > <A href="home.html" title="Home">Home</A> > <A href="documentation.html" title="Documentation">Documentation</A> > <A href="components-list.html" title="Components list">Components list</A> > <A href="jbi-components.html" title="JBI Components">JBI Components</A> > <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>. 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>. 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"><beans <SPAN class="code-keyword">xmlns:http</SPAN>=<SPAN class="code-quote">"http://servicemix.apache.org/http/1.0"</SPAN>></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"><http:endpoint service=<SPAN class="code-quote">"test:MyConsumerService"</SPAN>
+ endpoint=<SPAN class="code-quote">"myConsumer"</SPAN>
+ role=<SPAN class="code-quote">"consumer"</SPAN>
+ locationURI=<SPAN class="code-quote">"http://localhost:8192/Service/"</SPAN>
+ defaultMep=<SPAN class="code-quote">"http://www.w3.org/2004/08/wsdl/in-out"</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">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"><http:endpoint service=<SPAN class="code-quote">"test:MyProviderService"</SPAN>
+ endpoint=<SPAN class="code-quote">"myProvider"</SPAN>
+ role=<SPAN class="code-quote">"provider"</SPAN>
+ locationURI=<SPAN class="code-quote">"http://localhost:8192/Service/"</SPAN>
+ wsdlResource=<SPAN class="code-quote">"classpath:provider.wsdl"</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">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"><http:endpoint service=<SPAN class="code-quote">"testSsl:MyConsumerService"</SPAN>
+ endpoint=<SPAN class="code-quote">"myConsumer"</SPAN>
+ role=<SPAN class="code-quote">"consumer"</SPAN>
+ locationURI=<SPAN class="code-quote">"https://localhost:8193/Service/"</SPAN>
+ defaultMep=<SPAN class="code-quote">"http://www.w3.org/2004/08/wsdl/in-out"</SPAN>>
+ <SPAN class="code-tag"><http:ssl></SPAN>
+ <http:sslParameters keyStore=<SPAN class="code-quote">"classpath:org/apache/servicemix/http/server.keystore"</SPAN>
+ keyStorePassword=<SPAN class="code-quote">"password"</SPAN>/>
+ <SPAN class="code-tag"></http:ssl></SPAN>
+<SPAN class="code-tag"></http:endpoint></SPAN>
+
+<http:endpoint service=<SPAN class="code-quote">"testSsl:MyProviderService"</SPAN>
+ endpoint=<SPAN class="code-quote">"myProvider"</SPAN>
+ role=<SPAN class="code-quote">"provider"</SPAN>
+ locationURI=<SPAN class="code-quote">"https://localhost:8193/Service/"</SPAN>>
+ <SPAN class="code-tag"><http:ssl></SPAN>
+ <http:sslParameters keyStore=<SPAN class="code-quote">"classpath:org/apache/servicemix/http/server.keystore"</SPAN>
+ keyStorePassword=<SPAN class="code-quote">"password"</SPAN>
+ trustStore=<SPAN class="code-quote">"classpath:org/apache/servicemix/http/client.keystore"</SPAN>
+ trustStorePassword=<SPAN class="code-quote">"password"</SPAN>/>
+ <SPAN class="code-tag"></http:ssl></SPAN>
+<SPAN class="code-tag"></http:endpoint></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"><definitions name='Consumer'
+ targetNamespace='http://http.servicemix.org/Test'
+ <SPAN class="code-keyword">xmlns:tns</SPAN>='http://http.servicemix.org/Test'
+ <SPAN class="code-keyword">xmlns:http</SPAN>='http://schemas.xmlsoap.org/wsdl/http/'
+ <SPAN class="code-keyword">xmlns:soap</SPAN>='http://schemas.xmlsoap.org/wsdl/soap/'
+ xmlns='http://schemas.xmlsoap.org/wsdl/'
+ <SPAN class="code-keyword">xmlns:jbi</SPAN>='http://servicemix.org/wsdl/jbi/'>
+
+ <SPAN class="code-tag"><portType name='ConsumerInterface'></SPAN>
+ <SPAN class="code-tag"></portType></SPAN>
+
+ <SPAN class="code-tag"><binding name='ConsumerSoapBinding' type='tns:ConsumerInterface'></SPAN>
+ <SPAN class="code-tag"><soap:binding transport=<SPAN class="code-quote">"http"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></binding></SPAN>
+
+ <SPAN class="code-tag"><binding name='ConsumerHttpBinding' type='tns:ConsumerInterface'></SPAN>
+ <SPAN class="code-tag"><http:binding verb=<SPAN class="code-quote">"POST"</SPAN>></SPAN><SPAN class="code-tag"></http:binding></SPAN>
+ <SPAN class="code-tag"></binding></SPAN>
+
+ <SPAN class="code-tag"><service name='ConsumerInOnly'></SPAN>
+ <SPAN class="code-tag"><port name='TestEndpoint' binding='tns:ConsumerSoapBinding'></SPAN>
+ <SPAN class="code-tag"><soap:address location=<SPAN class="code-quote">"http://localhost:8192/InOnly"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><jbi:endpoint role=<SPAN class="code-quote">"consumer"</SPAN> defaultMep='in-only'/></SPAN>
+ <SPAN class="code-tag"></port></SPAN>
+ <SPAN class="code-tag"></service></SPAN>
+
+ <SPAN class="code-tag"><service name='ConsumerInOut'></SPAN>
+ <SPAN class="code-tag"><port name='TestEndpoint' binding='tns:ConsumerHttpBinding'></SPAN>
+ <SPAN class="code-tag"><http:address location=<SPAN class="code-quote">"http://localhost:8192/InOut"</SPAN>/></SPAN>
+ <SPAN class="code-tag"><jbi:endpoint role=<SPAN class="code-quote">"consumer"</SPAN> defaultMep='in-out'/></SPAN>
+ <SPAN class="code-tag"></port></SPAN>
+ <SPAN class="code-tag"></service></SPAN>
+
+<SPAN class="code-tag"></definitions></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"><sm:activationSpec></SPAN>
+ <SPAN class="code-tag"><sm:component></SPAN>
+ <SPAN class="code-tag"><http:component></SPAN>
+ <SPAN class="code-tag"><http:endpoints></SPAN>
+ <http:endpoint service=<SPAN class="code-quote">"test:dummy"</SPAN>
+ endpoint=<SPAN class="code-quote">"dummy"</SPAN>
+ role=<SPAN class="code-quote">"consumer"</SPAN>
+ soap=<SPAN class="code-quote">"true"</SPAN>
+ locationURI=<SPAN class="code-quote">"http://localhost:8192/Service/"</SPAN>
+ defaultMep=<SPAN class="code-quote">"http://www.w3.org/2004/08/wsdl/in-out"</SPAN> />
+
+ <http:endpoint service=<SPAN class="code-quote">"test:MyProviderService"</SPAN>
+ endpoint=<SPAN class="code-quote">"myProvider"</SPAN>
+ role=<SPAN class="code-quote">"provider"</SPAN>
+ locationURI=<SPAN class="code-quote">"http://localhost:8192/Service/"</SPAN> />
+ <SPAN class="code-tag"></http:endpoints></SPAN>
+ <SPAN class="code-tag"></http:component></SPAN>
+ <SPAN class="code-tag"></sm:component></SPAN>
+<SPAN class="code-tag"></sm:activationSpec></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
- (<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
+ (<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>