Modified: websites/production/cxf/content/docs/annotations.html
==============================================================================
--- websites/production/cxf/content/docs/annotations.html (original)
+++ websites/production/cxf/content/docs/annotations.html Mon Jun 24 17:10:51
2013
@@ -25,6 +25,17 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework -
Annotations">
+
+ <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
+ <link
href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css'
rel='stylesheet' type='text/css' />
+ <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+
<title>
Apache CXF -- Annotations
</title>
@@ -42,19 +53,15 @@ Apache CXF -- Annotations
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +101,7 @@ Apache CXF -- Annotations
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -135,24 +142,24 @@ Apache CXF -- Annotations
<p>For example:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
@WebService
@WSDLDocumentationCollection(
{
- @WSDLDocumentation(<span class="code-quote">"My portType
documentation"</span>),
- @WSDLDocumentation(value = <span class="code-quote">"My top level
documentation"</span>,
+ @WSDLDocumentation("My portType documentation"),
+ @WSDLDocumentation(value = "My top level documentation",
placement = WSDLDocumentation.Placement.TOP),
- @WSDLDocumentation(value = <span class="code-quote">"My binding
doc"</span>,
+ @WSDLDocumentation(value = "My binding doc",
placement = WSDLDocumentation.Placement.BINDING)
}
)
-<span class="code-keyword">public</span> <span
class="code-keyword">interface</span> MyService {
+public interface MyService {
- @WSDLDocumentation(<span class="code-quote">"The docs <span
class="code-keyword">for</span> echoString"</span>)
- <span class="code-object">String</span> echoString(<span
class="code-object">String</span> s);
+ @WSDLDocumentation("The docs for echoString")
+ String echoString(String s);
}
-</pre>
+]]></script>
</div></div>
<p><a shape="rect" name="Annotations-SchemaValidation"></a></p>
@@ -163,14 +170,14 @@ Apache CXF -- Annotations
<h3><a shape="rect"
name="Annotations-org.apache.cxf.annotations.DataBinding%28since2.2.4%29"></a>org.apache.cxf.annotations.DataBinding
(since 2.2.4)</h3>
<p>Sets the DataBinding class that is associated with the service. By
default, CXF assumes you are using the JAXB data binding. However, CXF
supports different databindings such as XMLBeans, Aegis, SDO, and possibly
more. This annotation can be used in place of configuration to select the
databinding class.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
@DataBinding(org.apache.cxf.sdo.SDODataBinding.class)
-<span class="code-keyword">public</span> <span
class="code-keyword">interface</span> MyService {
- <span class="code-keyword">public</span> commonj.sdo.DataObject echoStruct(
+public interface MyService {
+ public commonj.sdo.DataObject echoStruct(
commonj.sdo.DataObject struct
);
}
-</pre>
+]]></script>
</div></div>
<p><a shape="rect" name="Annotations-Logging"></a></p>
@@ -183,14 +190,14 @@ Apache CXF -- Annotations
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
-@Logging(limit=16000, inLocation=<span
class="code-quote">"<stdout>"</span>)
-<span class="code-keyword">public</span> <span
class="code-keyword">interface</span> MyService {
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+@Logging(limit=16000, inLocation="<stdout>")
+public interface MyService {
- <span class="code-object">String</span> echoString(<span
class="code-object">String</span> s);
+ String echoString(String s);
}
-</pre>
+]]></script>
</div></div>
@@ -219,17 +226,17 @@ Apache CXF -- Annotations
<p>Adds a property to an endpoint. Many things such as WS-Security related
things and such can be configured via endpoint properties. Traditionally,
these would be set via the <jaxws:properties> element on the
<jaxws:endpoint> element in the spring config, but these annotations
allow these properties to be configured into the code.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
@WebService
@EndpointProperties(
{
- @EndpointProperty(key = <span class="code-quote">"my.property"</span>,
value=<span class="code-quote">"some value"</span>),
- @EndpointProperty(key = <span
class="code-quote">"my.other.property"</span>, value=<span
class="code-quote">"some other value"</span>),
+ @EndpointProperty(key = "my.property", value="some value"),
+ @EndpointProperty(key = "my.other.property", value="some other value"),
})
-<span class="code-keyword">public</span> <span
class="code-keyword">interface</span> MyService {
- <span class="code-object">String</span> echoString(<span
class="code-object">String</span> s);
+public interface MyService {
+ String echoString(String s);
}
-</pre>
+]]></script>
</div></div>
<p><a shape="rect" name="Annotations-Policy"></a></p>
@@ -243,37 +250,37 @@ Apache CXF -- Annotations
<div class="panelMacro"><table class="noteMacro"><colgroup span="1"><col
span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1"
valign="top"><img align="middle"
src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif"
width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">When
using a custom Spring configuration, you need to import
META-INF/cxf/cxf-extension-policy.xml</td></tr></table></div>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
@Policies({
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestInterfacePolicy.xml"</span>),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestImplPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestInterfacePolicy.xml"),
+ @Policy(uri = "annotationpolicies/TestImplPolicy.xml",
placement = Policy.Placement.SERVICE_PORT),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestPortTypePolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestPortTypePolicy.xml",
placement = Policy.Placement.PORT_TYPE)
}
)
@WebService
-<span class="code-keyword">public</span> <span
class="code-keyword">static</span> <span class="code-keyword">interface</span>
TestInterface {
+public static interface TestInterface {
@Policies({
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationPolicy.xml"</span>),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationInputPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestOperationPolicy.xml"),
+ @Policy(uri = "annotationpolicies/TestOperationInputPolicy.xml",
placement = Policy.Placement.BINDING_OPERATION_INPUT),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationOutputPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestOperationOutputPolicy.xml",
placement = Policy.Placement.BINDING_OPERATION_OUTPUT),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationPTPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestOperationPTPolicy.xml",
placement = Policy.Placement.PORT_TYPE_OPERATION),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationPTInputPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestOperationPTInputPolicy.xml",
placement = Policy.Placement.PORT_TYPE_OPERATION_INPUT),
- @Policy(uri = <span
class="code-quote">"annotationpolicies/TestOperationPTOutputPolicy.xml"</span>,
+ @Policy(uri = "annotationpolicies/TestOperationPTOutputPolicy.xml",
placement = Policy.Placement.PORT_TYPE_OPERATION_OUTPUT)
}
)
- <span class="code-object">int</span> echoInt(<span
class="code-object">int</span> i);
+ int echoInt(int i);
}
-</pre>
+]]></script>
</div></div>
<p><a shape="rect" name="Annotations-Policy"></a></p>
@@ -281,35 +288,35 @@ Apache CXF -- Annotations
<p>Used on the JAX-WS service implementation object to mark a method as
preferring the 'async' version of the method instead of the synchronous
version. With JAX-WS, services default to the synchronous methods that
require the returning value to be returned from the method. By marking a
method with the @UseAsyncMethod annotation, if the transport supports it, CXF
will call the async version that takes an AsynHandler object and the service
can call that handler when the response is ready. If the transport does not
support the CXF continuations, the synchronous method will be called as
normal.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
@UseAsyncMethod
- <span class="code-keyword">public</span> <span
class="code-object">String</span> greetMeSometime(<span
class="code-object">String</span> me) {
- LOG.info(<span class="code-quote">"Executing operation greetMeSometime
synchronously"</span>);
- <span class="code-object">System</span>.out.println(<span
class="code-quote">"Executing operation greetMeSometime
synchronously\n"</span>);
- <span class="code-keyword">return</span> <span class="code-quote">"How
are you "</span> + me;
+ public String greetMeSometime(String me) {
+ LOG.info("Executing operation greetMeSometime synchronously");
+ System.out.println("Executing operation greetMeSometime
synchronously\n");
+ return "How are you " + me;
}
- <span class="code-keyword">public</span> Future<?>
greetMeSometimeAsync(<span class="code-keyword">final</span> <span
class="code-object">String</span> me,
- <span
class="code-keyword">final</span> AsyncHandler<GreetMeSometimeResponse>
asyncHandler) {
- LOG.info(<span class="code-quote">"Executing operation
greetMeSometimeAsync asynchronously"</span>);
- <span class="code-object">System</span>.out.println(<span
class="code-quote">"Executing operation greetMeSometimeAsync
asynchronously\n"</span>);
- <span class="code-keyword">final</span>
ServerAsyncResponse<GreetMeSometimeResponse> r
- = <span class="code-keyword">new</span>
ServerAsyncResponse<GreetMeSometimeResponse>();
- <span class="code-keyword">new</span> <span
class="code-object">Thread</span>() {
- <span class="code-keyword">public</span> void run() {
- GreetMeSometimeResponse resp = <span
class="code-keyword">new</span> GreetMeSometimeResponse();
- resp.setResponseType(<span class="code-quote">"How are you
"</span> + me);
+ public Future<?> greetMeSometimeAsync(final String me,
+ final
AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
+ LOG.info("Executing operation greetMeSometimeAsync asynchronously");
+ System.out.println("Executing operation greetMeSometimeAsync
asynchronously\n");
+ final ServerAsyncResponse<GreetMeSometimeResponse> r
+ = new ServerAsyncResponse<GreetMeSometimeResponse>();
+ new Thread() {
+ public void run() {
+ GreetMeSometimeResponse resp = new GreetMeSometimeResponse();
+ resp.setResponseType("How are you " + me);
r.set(resp);
- <span class="code-object">System</span>.out.println(<span
class="code-quote">"Responding on background thread\n"</span>);
+ System.out.println("Responding on background thread\n");
asyncHandler.handleResponse(r);
}
} .start();
- <span class="code-keyword">return</span> r;
+ return r;
}
-</pre>
+]]></script>
</div></div></div>
</div>
<!-- Content -->
Modified: websites/production/cxf/content/docs/apache-camel-transport.html
==============================================================================
--- websites/production/cxf/content/docs/apache-camel-transport.html (original)
+++ websites/production/cxf/content/docs/apache-camel-transport.html Mon Jun 24
17:10:51 2013
@@ -25,6 +25,8 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework - Apache
Camel Transport">
+
+
<title>
Apache CXF -- Apache Camel Transport
</title>
@@ -42,19 +44,15 @@ Apache CXF -- Apache Camel Transport
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +92,7 @@ Apache CXF -- Apache Camel Transport
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
Modified:
websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
==============================================================================
---
websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
(original)
+++
websites/production/cxf/content/docs/application-server-specific-configuration-guide.html
Mon Jun 24 17:10:51 2013
@@ -25,6 +25,18 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework - Application
Server Specific Configuration Guide">
+
+ <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
+ <link
href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css'
rel='stylesheet' type='text/css' />
+ <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+
<title>
Apache CXF -- Application Server Specific Configuration Guide
</title>
@@ -42,19 +54,15 @@ Apache CXF -- Application Server Specifi
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +102,7 @@ Apache CXF -- Application Server Specifi
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -138,15 +146,15 @@ Starting from JBoss AS 6 M4, the default
<p>In particular, when willing to run Apache CXF based applications on top of
JBoss AS 7 series, users have basically two options:</p>
<ul><li>use JBoss AS as if it was a servlet container with no WS
functionalities: this basically implies disabling the webservices subsystem for
the user deployment, hence preventing the AS webservices stack from processing
the ws endpoint deployment and letting the CXF libs included in the archive
deal with any WS invocations when CXFServlet is hit; the webservices subsystem
is turned off by adding a jboss-deployment-structure.xml as follows to the ws
endpoint deployment:
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><jboss-deployment-structure xmlns=<span
class="code-quote">"urn:jboss:deployment-structure:1.2"</span>></span>
- <span class="code-tag"><deployment></span>
- <span class="code-tag"><exclude-subsystems></span>
- <span class="code-tag"><subsystem name=<span
class="code-quote">"webservices"</span> /></span>
- <span class="code-tag"></exclude-subsystems></span>
- <span class="code-tag"></deployment></span>
-<span class="code-tag"></jboss-deployment-structure></span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
+ <deployment>
+ <exclude-subsystems>
+ <subsystem name="webservices" />
+ </exclude-subsystems>
+ </deployment>
+</jboss-deployment-structure>
+]]></script>
</div></div>
<p>this approach offers the fastest route to deploying CXF apps on JBoss AS;
the drawback is that no special ws integration with JBoss AS internals is
available</p></li></ul>
@@ -170,38 +178,38 @@ Starting from JBoss AS 6 M4, the default
<ul><li>Create a standard J2EE application.xml file in the META-INF folder.
(Take $CXF_HOME/samples/java_first_spring_support for example)
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><?xml version=<span class="code-quote">"1.0"</span>
encoding=<span class="code-quote">"UTF-8"</span>?></span>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
- <span class="code-quote">"-//Sun Microsystems, Inc.//DTD J2EE
Application 1.3//EN"</span>
- <span
class="code-quote">"http://java.sun.com/dtd/application_1_3.dtd"</span>>
-<span class="code-tag"><application></span>
- <span class="code-tag"><display-name></span>spring_http<span
class="code-tag"></display-name></span>
- <span class="code-tag"><module></span>
- <span class="code-tag"><web></span>
- <span
class="code-tag"><web-uri></span>spring_http.war<span
class="code-tag"></web-uri></span>
- <span
class="code-tag"><context-root></span>spring<span
class="code-tag"></context-root></span>
- <span class="code-tag"></web></span>
- <span class="code-tag"></module></span>
-<span class="code-tag"></application></span>
-</pre>
+ "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
+ "http://java.sun.com/dtd/application_1_3.dtd">
+<application>
+ <display-name>spring_http</display-name>
+ <module>
+ <web>
+ <web-uri>spring_http.war</web-uri>
+ <context-root>spring</context-root>
+ </web>
+ </module>
+</application>
+]]></script>
</div></div></li></ul>
<ul><li>Create a weblogic-application.xml (Weblogic specific) in the META-INF
folder.
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><?xml version=<span class="code-quote">"1.0"</span>
encoding=<span class="code-quote">"UTF-8"</span>?></span>
-<span class="code-tag"><weblogic-application xmlns=<span
class="code-quote">"http://www.bea.com/ns/weblogic/90"</span>></span>
- <span class="code-tag"><application-param></span>
- <span
class="code-tag"><param-name></span>webapp.encoding.default<span
class="code-tag"></param-name></span>
- <span class="code-tag"><param-value></span>UTF-8<span
class="code-tag"></param-value></span>
- <span class="code-tag"></application-param></span>
- <span class="code-tag"><prefer-application-packages></span>
- <span
class="code-tag"><package-name></span>javax.jws.*<span
class="code-tag"></package-name></span>
- <span class="code-tag"></prefer-application-packages></span>
-<span class="code-tag"></weblogic-application></span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
+<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">
+ <application-param>
+ <param-name>webapp.encoding.default</param-name>
+ <param-value>UTF-8</param-value>
+ </application-param>
+ <prefer-application-packages>
+ <package-name>javax.jws.*</package-name>
+ </prefer-application-packages>
+</weblogic-application>
+]]></script>
</div></div></li></ul>
@@ -280,7 +288,7 @@ wsdl4j-1.6.2.jar</p>
<p>One user has reported that he was able to get CXF working on WebSphere with
a minimal set of CXF jars by following the above<br clear="none">
procedures and using the list of jars:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
FastInfoset-1.2.9.jar
aopalliance-1.0.jar
commons-logging-1.1.1.jar
@@ -307,7 +315,7 @@ stax2-api-3.1.1.jar
woodstox-core-asl-4.1.1.jar
wsdl4j-1.6.2.jar
xmlschema-core-2.0.1.jar
-</pre>
+]]></script>
</div></div>
<h2><a shape="rect"
name="ApplicationServerSpecificConfigurationGuide-Glassfish"></a>Glassfish</h2>
@@ -315,15 +323,15 @@ xmlschema-core-2.0.1.jar
<p>CXF Interceptors will not work in Glassfish without this sun-web.xml file
to configure the classloader. By default, Glassfish will use Metro for JAX-WS
services so the classloader needs to be configured to allow CXF libraries to
provide JAX-WS services. The following sun-web.xml xml source was added to
/WEB-INF to resolve this issue:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><?xml version=<span class="code-quote">"1.0"</span>
encoding=<span class="code-quote">"UTF-8"</span>?></span>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD
Application Server 9.0 Servlet 2.5//EN'
'http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd'>
-<span class="code-tag"><sun-web-app></span>
-<span class="code-tag"><class-loader delegate=<span
class="code-quote">"false"</span>/></span>
-<span class="code-tag"></sun-web-app></span>
-</pre>
+<sun-web-app>
+<class-loader delegate="false"/>
+</sun-web-app>
+]]></script>
</div></div>
<h2><a shape="rect"
name="ApplicationServerSpecificConfigurationGuide-OC4J"></a>OC4J</h2>
@@ -384,20 +392,20 @@ OC4J 10.1.3 comes with <a shape="rect" c
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><span class="code-comment"><!-- WS jax-rpc
--></span></span>
- <span class="code-tag"><code-source path=<span
class="code-quote">"${oracle.home}/webservices/lib/jaxr-api.jar"</span>/></span>
- <span class="code-tag"><code-source path=<span
class="code-quote">"${oracle.home}/webservices/lib/jaxrpc-api.jar"</span>/></span>
- <span class="code-tag"><code-source path=<span
class="code-quote">"${oracle.home}/webservices/lib/jaxb-api.jar"</span>/></span>
- <span class="code-tag"><code-source path=<span
class="code-quote">"${oracle.home}/webservices/lib/saaj-api.jar"</span>/></span>
- <span class="code-tag"><code-source path=<span
class="code-quote">"${oracle.home}/webservices/lib/jws-api.jar"</span> if=<span
class="code-quote">"java.specification.version == /1\.[5-6]/"</span>/></span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<!-- WS jax-rpc -->
+ <code-source path="${oracle.home}/webservices/lib/jaxr-api.jar"/>
+ <code-source
path="${oracle.home}/webservices/lib/jaxrpc-api.jar"/>
+ <code-source path="${oracle.home}/webservices/lib/jaxb-api.jar"/>
+ <code-source path="${oracle.home}/webservices/lib/saaj-api.jar"/>
+ <code-source path="${oracle.home}/webservices/lib/jws-api.jar"
if="java.specification.version == /1\.[5-6]/"/>
+]]></script>
</div></div>
<p>and comment out line which include <tt>jws-api.jar</tt> entry, like
below</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<span class="code-tag"><span class="code-comment"><!-- <code-source
path=<span
class="code-quote">"${oracle.home}/webservices/lib/jws-api.jar"</span> if=<span
class="code-quote">"java.specification.version ==
/1\.[5-6]/"</span>/></span> --></span>
-</pre>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<!-- <code-source path="${oracle.home}/webservices/lib/jws-api.jar"
if="java.specification.version == /1\.[5-6]/"/> -->
+]]></script>
</div></div>
<ul><li>repackage <tt>oc4j.jar</tt> (don't forget about <tt>MANIFEST.MF</tt> -
use <tt>jar -m META-INF/MANIFEST.MF</tt>)</li></ul>
Modified: websites/production/cxf/content/docs/architectural-decisions.html
==============================================================================
--- websites/production/cxf/content/docs/architectural-decisions.html (original)
+++ websites/production/cxf/content/docs/architectural-decisions.html Mon Jun
24 17:10:51 2013
@@ -25,6 +25,8 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework -
Architectural Decisions">
+
+
<title>
Apache CXF -- Architectural Decisions
</title>
@@ -42,19 +44,15 @@ Apache CXF -- Architectural Decisions
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +92,7 @@ Apache CXF -- Architectural Decisions
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
Modified:
websites/production/cxf/content/docs/asynchronous-client-http-transport.html
==============================================================================
---
websites/production/cxf/content/docs/asynchronous-client-http-transport.html
(original)
+++
websites/production/cxf/content/docs/asynchronous-client-http-transport.html
Mon Jun 24 17:10:51 2013
@@ -25,6 +25,17 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework -
Asynchronous Client HTTP Transport">
+
+ <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
+ <link
href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css'
rel='stylesheet' type='text/css' />
+ <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+
<title>
Apache CXF -- Asynchronous Client HTTP Transport
</title>
@@ -42,19 +53,15 @@ Apache CXF -- Asynchronous Client HTTP T
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +101,7 @@ Apache CXF -- Asynchronous Client HTTP T
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -138,20 +145,18 @@ Apache CXF -- Asynchronous Client HTTP T
<ul><li>Turn on the AutoRedirect and turn off the Chunking for the Conduit.
This will allow CXF to cache the response in a manner that will allow the
transport to keep resending the request during the authentication
negotiation.</li></ul>
-<ul><li>Force the use of the Async transport even for synchronous calls
-<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
-bp.getRequestContext().put(<span
class="code-quote">"use.async.http.conduit"</span>, <span
class="code-object">Boolean</span>.TRUE);
-</pre>
+<ul><li>Force the use of the Async transport even for synchronous calls <div
class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+bp.getRequestContext().put("use.async.http.conduit", Boolean.TRUE);
+]]></script>
</div></div></li></ul>
-<ul><li>Set the property "org.apache.http.auth.Credentials" to an instance of
the Credentials. For example:
-<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
-Credentials creds = <span class="code-keyword">new</span> NTCredentials(<span
class="code-quote">"username"</span>, <span class="code-quote">"pswd"</span>,
<span class="code-keyword">null</span>, <span
class="code-quote">"domain"</span>);
+<ul><li>Set the property "org.apache.http.auth.Credentials" to an instance of
the Credentials. For example: <div class="code panel" style="border-width:
1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+Credentials creds = new NTCredentials("username", "pswd", null, "domain");
bp.getRequestContext().put(Credentials.class.getName(), creds);
-</pre>
+]]></script>
</div></div></li></ul>
Modified: websites/production/cxf/content/docs/banner.html
==============================================================================
--- websites/production/cxf/content/docs/banner.html (original)
+++ websites/production/cxf/content/docs/banner.html Mon Jun 24 17:10:51 2013
@@ -25,6 +25,8 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework - Banner">
+
+
<title>
Apache CXF -- Banner
</title>
@@ -42,19 +44,15 @@ Apache CXF -- Banner
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +92,7 @@ Apache CXF -- Banner
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -121,13 +119,13 @@ Apache CXF -- Banner
<td height="100%">
<!-- Content -->
<div class="wiki-content">
-<div id="ConfluenceContent">
+<div id="ConfluenceContent"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
+</p></div>
</div>
<!-- Content -->
</td>
Modified: websites/production/cxf/content/docs/bus-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/bus-configuration.html (original)
+++ websites/production/cxf/content/docs/bus-configuration.html Mon Jun 24
17:10:51 2013
@@ -25,6 +25,18 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework - Bus
Configuration">
+
+ <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
+ <link
href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css'
rel='stylesheet' type='text/css' />
+ <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushXml.js'
type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+
<title>
Apache CXF -- Bus Configuration
</title>
@@ -42,19 +54,15 @@ Apache CXF -- Bus Configuration
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +102,7 @@ Apache CXF -- Bus Configuration
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -132,23 +140,23 @@ Apache CXF -- Bus Configuration
<p>Here, simply define a bus element in your Spring configuration file, and
add child elements as required, for example:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-xml">
-<beans xmlns=<span
class="code-quote">"http://www.springframework.org/schema/beans"</span>
- <span class="code-keyword">xmlns:xsi</span>=<span
class="code-quote">"http://www.w3.org/2001/XMLSchema-instance"</span>
- <span class="code-keyword">xmlns:cxf</span>=<span
class="code-quote">"http://cxf.apache.org/core"</span>
+<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:cxf="http://cxf.apache.org/core"
xsi:schemaLocation="
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
- <span class="code-tag"><bean id=<span
class="code-quote">"logOutbound"</span> class=<span
class="code-quote">"org.apache.cxf.interceptor.LoggingOutInterceptor"</span>/></span>
+ <bean id="logOutbound"
class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
- <span class="code-tag"><cxf:bus></span>
- <span class="code-tag"><cxf:outInterceptors></span>
- <span class="code-tag"><ref bean=<span
class="code-quote">"logOutbound"</span>/></span>
- <span class="code-tag"></cxf:outInterceptors></span>
- <span class="code-tag"></cxf:bus></span>
-<span class="code-tag"></beans></span>
-</pre>
+ <cxf:bus>
+ <cxf:outInterceptors>
+ <ref bean="logOutbound"/>
+ </cxf:outInterceptors>
+ </cxf:bus>
+</beans>
+]]></script>
</div></div>
<p>The configurable properties of the bus are defined in the bus configuration
schema <a shape="rect" class="external-link"
href="http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/resources/schemas/core.xsd?view=markup">http://cxf.apache.org/schemas/core.xsd</a>.
Be sure to include the namespace - URI pair for this schema in the
schemaLocation attribute of the <beans> element.</p>
@@ -165,18 +173,18 @@ http://www.springframework.org/schema/be
<p>Although usually less convenient, interceptors can be added to the bus
using Java code. Given an <a shape="rect"
href="http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxws/EndpointImpl.html">EndpointImpl</a>
object, the bus can be accessed (and interceptors added) as follows:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
-<span class="code-keyword">import</span> javax.xml.ws.Endpoint;
-<span class="code-keyword">import</span>
org.apache.cxf.interceptor.LoggingInInterceptor;
-<span class="code-keyword">import</span>
org.apache.cxf.interceptor.LoggingOutInterceptor;
-<span class="code-keyword">import</span> org.apache.cxf.jaxws.EndpointImpl;
-
-<span class="code-object">Object</span> implementor = <span
class="code-keyword">new</span> GreeterImpl();
-EndpointImpl ep = (EndpointImpl) Endpoint.publish(<span
class="code-quote">"http:<span
class="code-comment">//localhost/service"</span>, implementor);
-</span>
-ep.getServiceFactory().getBus().getInInterceptors().add(<span
class="code-keyword">new</span> LoggingInInterceptor());
-ep.getServiceFactory().getBus().getOutInterceptors().add(<span
class="code-keyword">new</span> LoggingOutInterceptor());
-</pre>
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+import javax.xml.ws.Endpoint;
+import org.apache.cxf.interceptor.LoggingInInterceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.jaxws.EndpointImpl;
+
+Object implementor = new GreeterImpl();
+EndpointImpl ep = (EndpointImpl) Endpoint.publish("http://localhost/service",
implementor);
+
+ep.getServiceFactory().getBus().getInInterceptors().add(new
LoggingInInterceptor());
+ep.getServiceFactory().getBus().getOutInterceptors().add(new
LoggingOutInterceptor());
+]]></script>
</div></div>
<h1><a shape="rect" name="BusConfiguration-ExtendingtheBus"></a>Extending the
Bus</h1>
Modified: websites/production/cxf/content/docs/celtix-migration-guide.html
==============================================================================
--- websites/production/cxf/content/docs/celtix-migration-guide.html (original)
+++ websites/production/cxf/content/docs/celtix-migration-guide.html Mon Jun 24
17:10:51 2013
@@ -25,6 +25,17 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="keywords" content="business integration, EAI, SOA, Service
Oriented Architecture, web services, SOAP, JBI, JMS, WSDL, XML, EDI, Electronic
Data Interchange, standards support, integration standards, application
integration, middleware, software, solutions, services, CXF, open source">
<meta name="description" content="Apache CXF, Services Framework - Celtix
Migration Guide">
+
+ <link href='http://cxf.apache.org/resources/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' />
+ <link
href='http://cxf.apache.org/resources/highlighter/styles/shThemeCXF.css'
rel='stylesheet' type='text/css' />
+ <script src='http://cxf.apache.org/resources/highlighter/scripts/shCore.js'
type='text/javascript'></script>
+ <script
src='http://cxf.apache.org/resources/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script>
+
+ <script type="text/javascript">
+ SyntaxHighlighter.defaults['toolbar'] = false;
+ SyntaxHighlighter.all();
+ </script>
+
<title>
Apache CXF -- Celtix Migration Guide
</title>
@@ -42,19 +53,15 @@ Apache CXF -- Celtix Migration Guide
<td id="cell-1-0"> </td>
<td id="cell-1-1"> </td>
<td id="cell-1-2">
- <div style="padding: 5px;">
- <div id="banner">
- <!-- Banner -->
-<div id="banner-content">
+ <!-- Banner -->
+<div class="banner" id="banner"><p>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td
align="left" colspan="1" nowrap>
<a shape="rect" href="http://cxf.apache.org/" title="Apache CXF"><span
style="font-weight: bold; font-size: 170%; color: white">Apache CXF</span></a>
</td><td align="right" colspan="1" nowrap>
<a shape="rect" href="http://www.apache.org/" title="The Apache Sofware
Foundation"><img border="0" alt="ASF Logo"
src="http://cxf.apache.org/images/asf-logo.png"></a>
</td></tr></table>
-</div>
- <!-- Banner -->
- </div>
- </div>
+</p></div>
+ <!-- Banner -->
<div id="top-menu">
<table border="0" cellpadding="1" cellspacing="0" width="100%">
<tr>
@@ -94,7 +101,7 @@ Apache CXF -- Celtix Migration Guide
<hr>
-<ul class="alternate" type="square"><li>Search
+<ul class="alternate" type="square"><li>Search<br clear="none">
<form enctype="application/x-www-form-urlencoded" method="get"
id="cse-search-box" action="http://www.google.com/cse">
<div>
@@ -131,17 +138,17 @@ Apache CXF -- Celtix Migration Guide
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
-SpringBusFactory bf = <span class="code-keyword">new</span> SpringBusFactory();
- Bus bus = bf.createBus(<span class="code-quote">"ws_rm.xml"</span>);
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
+SpringBusFactory bf = new SpringBusFactory();
+ Bus bus = bf.createBus("ws_rm.xml");
bf.setDefaultBus(bus);
-</pre>
+]]></script>
</div></div>
<p> Later, to get the bus, you can call:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
Bus bus = bf.getDefaultBus();
-</pre>
+]]></script>
</div></div>
<ul><li>On your classpath, change <tt>celtix.jar</tt> to
<tt>cxf-manifest.jar</tt>; this jar contains manifest entries to pick up all
other required jars in the CXF runtime.</li></ul>
@@ -150,11 +157,11 @@ Bus bus = bf.getDefaultBus();
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
-<pre class="code-java">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
HelloWorld helloWorld = helloWorldService.getPort(
- <span class="code-keyword">new</span> QName(<span
class="code-quote">"http:<span
class="code-comment">//www.my/wsdl/target/namespace"</span>, <span
class="code-quote">"SOAPOverHTTPEndpoint"</span>),
-</span> HelloWorld.class );
-</pre>
+ new QName("http://www.my/wsdl/target/namespace",
"SOAPOverHTTPEndpoint"),
+ HelloWorld.class );
+]]></script>
</div></div>
<p>In Celtix you could leave the namespace of the port name as an empty string
"". However, if you do that in CXF, the call to <tt>getPort()</tt> will fail.
This latter behavior is more in keeping with the JAX-WS specification (see
Section 4.2.3 of the JAX-WS Specification).</p></div>
</div>