Author: buildbot Date: Tue Jan 14 04:43:21 2014 New Revision: 894037 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/cxf-example-osgi-blueprint.html websites/production/camel/content/cxf-example-osgi.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/cxf-example-osgi-blueprint.html ============================================================================== --- websites/production/camel/content/cxf-example-osgi-blueprint.html (original) +++ websites/production/camel/content/cxf-example-osgi-blueprint.html Tue Jan 14 04:43:21 2014 @@ -39,8 +39,8 @@ <link href='http://camel.apache.org/styles/highlighter/styles/shCoreCamel.css' rel='stylesheet' type='text/css' /> <link href='http://camel.apache.org/styles/highlighter/styles/shThemeCamel.css' rel='stylesheet' type='text/css' /> <script src='http://camel.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> - <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script> + <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' type='text/javascript'></script> <script type="text/javascript"> SyntaxHighlighter.defaults['toolbar'] = false; @@ -85,64 +85,26 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><h2 id="CXFExampleOSGiBlueprint-CXFExampleOSGiBlueprint">CXF Example OSGi Blueprint</h2> -<p><strong>Available as of Camel 2.8</strong></p> - - <div class="aui-message hint shadowed information-macro"> +<div class="wiki-content maincontent"><h2 id="CXFExampleOSGiBlueprint-CXFExampleOSGiBlueprint">CXF Example OSGi Blueprint</h2><p><strong>Available as of Camel 2.8</strong></p> <div class="aui-message hint shadowed information-macro"> <p class="title">Spring-DM vs. OSGi Blueprint</p> <span class="aui-icon icon-hint">Icon</span> <div class="message-content"> - -<p>This example uses OSGi Blueprint for OSGi. There is another <a shape="rect" href="cxf-example-osgi.html">CXF Example OSGi</a> that uses Spring-DM. </p> + <p>This example uses OSGi Blueprint for OSGi. There is another <a shape="rect" href="cxf-example-osgi.html">CXF Example OSGi</a> that uses Spring-DM.</p> </div> </div> - - -<p>A simple example which receives web service calls (via a CXF consumer, using bean binding)<br clear="none"> -and writes these requests into the file system. It's not a very useful use case, but the goal<br clear="none"> -of this example is to show you how you can use the CXF consumer component in an OSGI<br clear="none"> -environment with the OSGI HTTP service. If your target container is Apache Karaf or Apache<br clear="none"> -ServiceMix, you can use PAX Web to setup and start an OSGI HTTP service. All Camel<br clear="none"> -bundles using a Camel CXF consumer can use this HTTP service without needing to start<br clear="none"> -individual Jetty instances. Another advantage is that all provided services can now share<br clear="none"> -the same port.</p> - -<p>This example is located in the <code>examples/camel-example-cxf-blueprint</code> directory of the Camel distribution.<br clear="none"> -There is a <code>README.txt</code> file with instructions how to run it.</p> - -<p>You will need to compile this example first:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - mvn install +<p>A simple example which receives web service calls (via a CXF consumer, using bean binding)<br clear="none"> and writes these requests into the file system. It's not a very useful use case, but the goal<br clear="none"> of this example is to show you how you can use the CXF consumer component in an OSGI<br clear="none"> environment with the OSGI HTTP service. If your target container is Apache Karaf or Apache<br clear="none"> ServiceMix, you can use PAX Web to setup and start an OSGI HTTP service. All Camel<br clear="none"> bundles using a Camel CXF consumer can use this HTTP service without needing to start<br clear="none"> individual Jetty instances. Another advantage is that all provided services can now share<br clear="none"> the same port.</p><p>This example is located in the <code>examples/camel-example-cxf-blueprint</code> directory of the Camel distribution.<br clear="none"> There is a <code>README.txt</code> file with instructions how to run it.</p><p>You will need to com pile this example first:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ mvn install ]]></script> -</div></div> - -<p>To run the example on Apache ServiceMix 4.x or Apache Karaf 2.x</p> - -<p> 1) launch the server</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - karaf.bat +</div></div><p>To run the example on Apache ServiceMix 4.x or Apache Karaf 2.x</p><p>1) launch the server</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ karaf.bat ]]></script> -</div></div> - -<p>Note for Karaf 2.2.x: <br clear="none"> - a) edit the etc/jre.properties file to add the following packages to be exported</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - jre-1.6=, \ +</div></div><p>Note for Karaf 2.2.x: <br clear="none"> a) edit the etc/jre.properties file to add the following packages to be exported</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ jre-1.6=, \ com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp, \ ]]></script> -</div></div> - -<p> b) from the same file comment out the following exports already provided by the bundles<br clear="none"> - that will be imported next: javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, <br clear="none"> - javax.activation, javax.annotation, javax.xml.stream*.</p> - -<p> 2) Add features required</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ +</div></div><p>b) from the same file comment out the following exports already provided by the bundles<br clear="none"> that will be imported next: javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, <br clear="none"> javax.activation, javax.annotation, javax.xml.stream*.</p><p>2) Add features required</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features features:install war features:install cxf @@ -150,40 +112,13 @@ There is a <code>README.txt</code> file features:install camel-blueprint features:install camel-cxf ]]></script> -</div></div> - -<p> Note: Apache Camel 2.9.0 is being used above, but you should of course change the<br clear="none"> - version number to the exact version of Camel being used.</p> - -<p> 3) Deploy the example bundle</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - osgi:install -s mvn:org.apache.camel/camel-example-cxf-blueprint +</div></div><p>Note: Apache Camel 2.9.0 is being used above, but you should of course change the<br clear="none"> version number to the exact version of Camel being used.</p><p>3) Deploy the example bundle</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ osgi:install -s mvn:org.apache.camel/camel-example-cxf-blueprint ]]></script> -</div></div> - -<p> 4) Verify that your service is available using the following url in the browser. <br clear="none"> - We assume you're using Karaf's default PAX Web configuration which uses <br clear="none"> - port 8181 for http. If you would like to use another port or https, change the configuration in <br clear="none"> - ${KARAF_HOME}/etc/org.ops4j.pax.web.cfg. The immediate extension after the hostname and port ("cxf" in<br clear="none"> - the below URL) is configured via the org.apache.cxf.osgi.cfg file (Please see <br clear="none"> - <a shape="rect" class="external-link" href="http://team.ops4j.org/wiki//display/paxweb/Pax+Web" rel="nofollow">http://team.ops4j.org/wiki//display/paxweb/Pax+Web</a> for more information on PAX Web).</p> - - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl +</div></div><p>4) Verify that your service is available using the following url in the browser. <br clear="none"> We assume you're using Karaf's default PAX Web configuration which uses <br clear="none"> port 8181 for http. If you would like to use another port or https, change the configuration in <br clear="none"> ${KARAF_HOME}/etc/org.ops4j.pax.web.cfg. The immediate extension after the hostname and port ("cxf" in<br clear="none"> the below URL) is configured via the org.apache.cxf.osgi.cfg file (Please see <br clear="none"> <a shape="rect" class="external-link" href="http://team.ops4j.org/wiki//display/paxweb/Pax+Web" rel="nofollow">http://team.ops4j.org/wiki//display/paxweb/Pax+Web</a> for more information on PAX Web).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl ]]></script> -</div></div> - -<p> 5) Start SOAPUI <br clear="none"> - Create a new project called camel-example-cxf-osgi<br clear="none"> - Point to the following url: <a shape="rect" class="external-link" href="http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl" rel="nofollow">http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl</a><br clear="none"> - Open the request 1 (under camel-example-cxf-blueprint --> ReportIncidentBinding --> ReportIncident) and copy/paste a SOAP<br clear="none"> - message generated by the unit test, for example:</p> - -<p> ex :<br clear="none"> - --> and the message formatted that you copy in SOAPUI</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><p>5) Start SOAPUI or use curl to send the request<br clear="none"> Create a new project called camel-example-cxf-osgi<br clear="none"> Point to the following url: <a shape="rect" class="external-link" href="http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl" rel="nofollow">http://localhost:8181/cxf/camel-example-cxf-blueprint/webservices/incident?wsdl</a><br clear="none"> Open the request 1 (under camel-example-cxf-blueprint --> ReportIncidentBinding --> ReportIncident) and copy/paste a SOAP<br clear="none"> message generated by the unit test, for example:</p><p>ex :<br clear="none"> --> and the message formatted that you copy in SOAPUI</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ <xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> @@ -202,14 +137,17 @@ There is a <code>README.txt</code> file </soap:Body> </soap:Envelope> ]]></script> -</div></div> - -<p> 6) Check the file system<br clear="none"> - Check the folder "target/inbox/" in the Karaf base directory to see that a message has arrived.</p> - - -<h3 id="CXFExampleOSGiBlueprint-SeeAlso">See Also</h3> -<ul class="alternate"><li><a shape="rect" href="cxf-example-osgi.html">CXF Example OSGi</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div> +</div></div><p>If you use curl, you need to save the upper message in a file (data.xml) first and use the blow command to send the message. </p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[curl -X POST -T data.xml -H "Content-Type: text/xml" http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident]]></script> +</div></div><p>The response message looks like this</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> + <soap:Body> + <ns2:outputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org"> + <code>Accepted</code> + </ns2:outputReportIncident> + </soap:Body> +</soap:Envelope>]]></script> +</div></div><p> </p><p>6) Check the file system<br clear="none"> Check the folder "target/inbox/" in the Karaf base directory to see that a message has arrived.</p><h3 id="CXFExampleOSGiBlueprint-SeeAlso">See Also</h3><ul class="alternate"><li><a shape="rect" href="cxf-example-osgi.html">CXF Example OSGi</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div> </td> <td valign="top"> <div class="navigation"> Modified: websites/production/camel/content/cxf-example-osgi.html ============================================================================== --- websites/production/camel/content/cxf-example-osgi.html (original) +++ websites/production/camel/content/cxf-example-osgi.html Tue Jan 14 04:43:21 2014 @@ -39,8 +39,8 @@ <link href='http://camel.apache.org/styles/highlighter/styles/shCoreCamel.css' rel='stylesheet' type='text/css' /> <link href='http://camel.apache.org/styles/highlighter/styles/shThemeCamel.css' rel='stylesheet' type='text/css' /> <script src='http://camel.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script> - <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script> <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script> + <script src='http://camel.apache.org/styles/highlighter/scripts/shBrushPlain.js' type='text/javascript'></script> <script type="text/javascript"> SyntaxHighlighter.defaults['toolbar'] = false; @@ -85,111 +85,39 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><h2 id="CXFExampleOSGi-CXFExampleOSGi">CXF Example OSGi</h2> -<p><strong>Available as of Camel 2.8</strong></p> - - <div class="aui-message hint shadowed information-macro"> +<div class="wiki-content maincontent"><h2 id="CXFExampleOSGi-CXFExampleOSGi">CXF Example OSGi</h2><p><strong>Available as of Camel 2.8</strong></p> <div class="aui-message hint shadowed information-macro"> <p class="title">Spring-DM vs. OSGi Blueprint</p> <span class="aui-icon icon-hint">Icon</span> <div class="message-content"> - -<p>This example uses Spring DM for OSGi. There is another <a shape="rect" href="cxf-example-osgi-blueprint.html">CXF Example OSGi Blueprint</a> that uses Blueprint. </p> + <p>This example uses Spring DM for OSGi. There is another <a shape="rect" href="cxf-example-osgi-blueprint.html">CXF Example OSGi Blueprint</a> that uses Blueprint.</p> </div> </div> - - -<p>A simple example which receives web service calls (via a CXF consumer, using bean binding)<br clear="none"> -and writes these requests to the file system. It's not a very useful use case, but the goal<br clear="none"> -of this example is to show you how you can use the CXF consumer component in an OSGI<br clear="none"> -environment with the OSGI HTTP service. If your target container is Apache Karaf or Apache<br clear="none"> -ServiceMix, you can use PAX Web to setup and start an OSGI HTTP service. All Camel<br clear="none"> -bundles using a Camel CXF consumer can use this HTTP service without needing to start <br clear="none"> -individual Jetty instances. Another advantage is that all provided services can now share<br clear="none"> -the same port.</p> - -<p>This example is located in the <code>examples/camel-example-cxf-osgi</code> directory of the Camel distribution.<br clear="none"> -There is a <code>README.txt</code> file with instructions how to run it.</p> - -<p>You will need to compile the example first:</p> -<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - mvn install +<p>A simple example which receives web service calls (via a CXF consumer, using bean binding)<br clear="none"> and writes these requests to the file system. It's not a very useful use case, but the goal<br clear="none"> of this example is to show you how you can use the CXF consumer component in an OSGI<br clear="none"> environment with the OSGI HTTP service. If your target container is Apache Karaf or Apache<br clear="none"> ServiceMix, you can use PAX Web to setup and start an OSGI HTTP service. All Camel<br clear="none"> bundles using a Camel CXF consumer can use this HTTP service without needing to start <br clear="none"> individual Jetty instances. Another advantage is that all provided services can now share<br clear="none"> the same port.</p><p>This example is located in the <code>examples/camel-example-cxf-osgi</code> directory of the Camel distribution.<br clear="none"> There is a <code>README.txt</code> file with instructions how to run it.</p><p>You will need to compile t he example first:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ mvn install ]]></script> -</div></div> - -<p>Remarks:</p> -<ul class="alternate"><li>During the compilation phase, a unit test will be performed which simulates the<br clear="none"> - client calling the web service exposed by our camel/cxf route.</li><li>In Eclipse, I have used the following option when starting the junit test case. This option tells<br clear="none"> - CXF that it must use log4j : -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger</li></ul> - - -<p>To run the example on Apache ServiceMix 4.x or Apache Karaf 2.2.x</p> - -<p> 1) launch the server</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - karaf.bat +</div></div><p>Remarks:</p><ul class="alternate"><li>During the compilation phase, a unit test will be performed which simulates the<br clear="none"> client calling the web service exposed by our camel/cxf route.</li><li>In Eclipse, I have used the following option when starting the junit test case. This option tells<br clear="none"> CXF that it must use log4j : -Dorg.apache.cxf.Logger=org.apache.cxf.common.logging.Log4jLogger</li></ul><p>To run the example on Apache ServiceMix 4.x or Apache Karaf 2.2.x</p><p>1) launch the server</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ karaf.bat ]]></script> -</div></div> - -<p>Note for Karaf 2.2.x: <br clear="none"> - a) edit the etc/jre.properties file to add the following packages to be exported</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - jre-1.6=, \ +</div></div><p>Note for Karaf 2.2.x: <br clear="none"> a) edit the etc/jre.properties file to add the following packages to be exported</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ jre-1.6=, \ com.sun.org.apache.xerces.internal.dom, \ com.sun.org.apache.xerces.internal.jaxp, \ ]]></script> -</div></div> - -<p> b) from the same file comment out the following exports already provided by the bundles<br clear="none"> - that will be imported next: javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, <br clear="none"> - javax.activation, javax.annotation, javax.xml.stream*.</p> - -<p> 2) Add features required</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features +</div></div><p>b) from the same file comment out the following exports already provided by the bundles<br clear="none"> that will be imported next: javax.xml.bind*, javax.jws*, javax.xml.soap*, javax.xml.ws*, <br clear="none"> javax.activation, javax.annotation, javax.xml.stream*.</p><p>2) Add features required</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ features:addUrl mvn:org.apache.camel.karaf/apache-camel/2.9.0/xml/features features:install war features:install cxf features:install camel-spring features:install camel-jaxb features:install camel-cxf ]]></script> -</div></div> - -<p>Note: Apache Camel 2.9.0 is being used above, but you should of course change the<br clear="none"> - version number to the exact version of Camel being used.</p> - - -<p> 3) Deploy the example bundle</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.9.0 +</div></div><p>Note: Apache Camel 2.9.0 is being used above, but you should of course change the<br clear="none"> version number to the exact version of Camel being used.</p><p>3) Deploy the example bundle</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ osgi:install -s mvn:org.apache.camel/camel-example-cxf-osgi/2.9.0 ]]></script> -</div></div> - -<p> 4) Verify that your service is available using the following url in the browser. <br clear="none"> - We assume assuming the OOTB Karaf defaults you use the default PAX Web configuration which use the port 8181<br clear="none"> - for http. If you would like to use another port or https, change the configuration in <br clear="none"> - ${KARAF_HOME}/etc/org.ops4j.pax.web.cfg. The immediate extension after the hostname and port ("cxf" in<br clear="none"> - the below URL) is configured via the org.apache.cxf.osgi.cfg file (Please see <br clear="none"> - <a shape="rect" class="external-link" href="http://team.ops4j.org/wiki//display/paxweb/Pax+Web" rel="nofollow">http://team.ops4j.org/wiki//display/paxweb/Pax+Web</a> for more information on PAX Web).</p> - - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> -<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[ - http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl +</div></div><p>4) Verify that your service is available using the following url in the browser. <br clear="none"> We assume assuming the OOTB Karaf defaults you use the default PAX Web configuration which use the port 8181<br clear="none"> for http. If you would like to use another port or https, change the configuration in <br clear="none"> ${KARAF_HOME}/etc/org.ops4j.pax.web.cfg. The immediate extension after the hostname and port ("cxf" in<br clear="none"> the below URL) is configured via the org.apache.cxf.osgi.cfg file (Please see <br clear="none"> <a shape="rect" class="external-link" href="http://team.ops4j.org/wiki//display/paxweb/Pax+Web" rel="nofollow">http://team.ops4j.org/wiki//display/paxweb/Pax+Web</a> for more information on PAX Web).</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[ http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl ]]></script> -</div></div> - -<p> 5) Start SOAPUI <br clear="none"> - Create a new project called camel-example-cxf-osgi<br clear="none"> - Point to the following url: <a shape="rect" class="external-link" href="http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl" rel="nofollow">http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl</a><br clear="none"> - Open the request 1 (under camel-example-cxf-osgi --> ReportIncidentBinding --> ReportIncident) and copy/paste a SOAP<br clear="none"> - message generated by the unit test, for example:</p> - -<p> --> and the message formatted that you copy in SOAPUI</p> - <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><p>5) Start SOAPUI or use curl to send the request<br clear="none"> Create a new project called camel-example-cxf-osgi<br clear="none"> Point to the following url: <a shape="rect" class="external-link" href="http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl" rel="nofollow">http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl</a><br clear="none"> Open the request 1 (under camel-example-cxf-osgi --> ReportIncidentBinding --> ReportIncident) and copy/paste a SOAP<br clear="none"> message generated by the unit test, for example:</p><p>--> and the message formatted that you copy in SOAPUI and send the message</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header /> @@ -207,13 +135,17 @@ There is a <code>README.txt</code> file </soap:Body> </soap:Envelope> ]]></script> -</div></div> - -<p> 6) Check the file system<br clear="none"> - Check the folder "target/inbox/" in the Karaf base directory to see that a message has arrived.</p> - -<h3 id="CXFExampleOSGi-SeeAlso">See Also</h3> -<ul class="alternate"><li><a shape="rect" href="cxf-example-osgi-blueprint.html">CXF Example OSGi Blueprint</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div> +</div></div><p> </p><p>If you use curl, you need to save the upper message in a file (data.xml) first and use the blow command to send the message. </p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: text; gutter: false" type="syntaxhighlighter"><![CDATA[curl -X POST -T data.xml -H "Content-Type: text/xml" http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident]]></script> +</div></div><p> </p><p>The response message looks like this</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> + <soap:Body> + <ns2:outputReportIncident xmlns:ns2="http://reportincident.example.camel.apache.org"> + <code>Accepted</code> + </ns2:outputReportIncident> + </soap:Body> +</soap:Envelope>]]></script> +</div></div><p> </p><p> </p><p>6) Check the file system<br clear="none"> Check the folder "target/inbox/" in the Karaf base directory to see that a message has arrived.</p><h3 id="CXFExampleOSGi-SeeAlso">See Also</h3><ul class="alternate"><li><a shape="rect" href="cxf-example-osgi-blueprint.html">CXF Example OSGi Blueprint</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div> </td> <td valign="top"> <div class="navigation">