cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r845858 - in /websites/production/cxf/content: cache/docs.pageCache docs/jax-ws-dispatch-api.html docs/provider-services.html docs/wsrmconfiguration.html
Date Thu, 10 Jan 2013 11:48:04 GMT
Author: buildbot
Date: Thu Jan 10 11:48:03 2013
New Revision: 845858

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/jax-ws-dispatch-api.html
    websites/production/cxf/content/docs/provider-services.html
    websites/production/cxf/content/docs/wsrmconfiguration.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/jax-ws-dispatch-api.html
==============================================================================
--- websites/production/cxf/content/docs/jax-ws-dispatch-api.html (original)
+++ websites/production/cxf/content/docs/jax-ws-dispatch-api.html Thu Jan 10 11:48:03 2013
@@ -194,13 +194,15 @@ Apache CXF -- JAX-WS Dispatch API
 <p>To create a <tt>Dispatch</tt> object do the following:</p>
 <ol><li>Create a <tt>Service</tt> object to represent the <tt>wsdl:service</tt>
element defining the service on which the <tt>Dispatch</tt> object will make invocations.</li><li>Create
the <tt>Dispatch</tt> object using the <tt>Service</tt> object's <tt>createDispatch()</tt>
method.
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> Dispatch&lt;T&gt;
createDispatch(QName portName, java.lang.<span class="code-object">Class</span>&lt;T&gt;
type, Service.Mode mode)
+<pre class="code-java">
+<span class="code-keyword">public</span> Dispatch&lt;T&gt; createDispatch(QName
portName, java.lang.<span class="code-object">Class</span>&lt;T&gt; type,
Service.Mode mode)
 <span class="code-keyword">throws</span> WebServiceException;
 </pre>
 </div></div>
 <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">If
you are using JAXB objects the method signature for <tt>createDispatch()</tt>
is:
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> Dispatch&lt;T&gt;
createDispatch(QName portName, javax.xml.bind.JAXBContext context, Service.Mode mode)
+<pre class="code-java">
+<span class="code-keyword">public</span> Dispatch&lt;T&gt; createDispatch(QName
portName, javax.xml.bind.JAXBContext context, Service.Mode mode)
 <span class="code-keyword">throws</span> WebServiceException;
 </pre>
 </div></div></td></tr></table></div></li></ol>
@@ -214,15 +216,14 @@ Apache CXF -- JAX-WS Dispatch API
 
 <p>The code below creates a <tt>Dispatch</tt> object that works with <tt>DOMSource</tt>
objects in payload mode.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">package</span> com.mycompany.demo;
+<pre class="code-java">
+<span class="code-keyword">package</span> com.mycompany.demo;
 
 <span class="code-keyword">import</span> javax.xml.namespace.QName;
 <span class="code-keyword">import</span> javax.xml.ws.Service;
 
-<span class="code-keyword">public</span> class Client
-{
-<span class="code-keyword">public</span> <span class="code-keyword">static</span>
void main(<span class="code-object">String</span> args[])
-  {
+<span class="code-keyword">public</span> class Client {
+  <span class="code-keyword">public</span> <span class="code-keyword">static</span>
void main(<span class="code-object">String</span> args[]) {
     QName serviceName = <span class="code-keyword">new</span> QName(<span
class="code-quote">"http:<span class="code-comment">//org.apache.cxf"</span>,
<span class="code-quote">"stockQuoteReporter"</span>);
 </span>    Service s = Service.create(serviceName);
 
@@ -231,6 +232,8 @@ Apache CXF -- JAX-WS Dispatch API
                                                   DOMSource.class,
                                                   Service.Mode.PAYLOAD);
     ...
+  }
+}
 </pre>
 </div></div>
 
@@ -250,20 +253,20 @@ Apache CXF -- JAX-WS Dispatch API
 
 <p>For consumers that make synchronous invocations that generate a response, you use
the <tt>Dispatch</tt> object's <tt>invoke()</tt> method shown bellow.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">T invoke(T msg)
-<span class="code-keyword">throws</span> WebServiceException;
+<pre class="code-java">
+T invoke(T msg) <span class="code-keyword">throws</span> WebServiceException;
 </pre>
 </div></div>
 <p>The type of both the response and the request passed to the <tt>invoke()</tt>
method are determined when the Dispatch object is created. For example if you created a <tt>Dispatch</tt>
object using <tt>createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE)</tt>
the response and the request would both be <tt>SOAPMessage</tt> objects.</p>
 <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 JAXB objects, the response and the request can be of any type the provided <tt>JAXBContext</tt>
object can marshal and unmarshal. Also, the response and the request can be different JAXB
objects.</td></tr></table></div>
 <p>The code bellow makes a synchronous invocation on a remote service using a <tt>DOMSource</tt>
object.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-comment">// Creating a DOMSource <span
class="code-object">Object</span> <span class="code-keyword">for</span>
the request
+<pre class="code-java">
+<span class="code-comment">// Creating a DOMSource <span class="code-object">Object</span>
<span class="code-keyword">for</span> the request
 </span>DocumentBuilder db = DocumentBuilderFactory.newDocumentBuilder();
 Document requestDoc = db.newDocument();
-Element root = requestDoc.createElementNS(<span class="code-quote">"http:<span class="code-comment">//org.apache.cxf/stockExample"</span>,
-</span>   <span class="code-quote">"getStockPrice"</span>);
-root.setNodeValue(<span class="code-quote">"DOW"</span>);
+Element root = requestDoc.createElementNS(<span class="code-quote">"http:<span class="code-comment">//org.apache.cxf/stockExample"</span>,
<span class="code-quote">"getStockPrice"</span>);
+</span>root.setNodeValue(<span class="code-quote">"DOW"</span>);
 DOMSource request = <span class="code-keyword">new</span> DOMSource(requestDoc);
 
 <span class="code-comment">// Dispatch disp created previously
@@ -277,15 +280,15 @@ DOMSource request = <span class="code-ke
 
 <p>When using the polling approach the <tt>invokeAsync()</tt> method returns
a <tt>Response&lt;t&gt;</tt> object that can be periodically polled to
see if the response has arrived.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">Response &lt;T&gt; invokeAsync(T msg)
-<span class="code-keyword">throws</span> WebServiceException;
+<pre class="code-java">
+Response &lt;T&gt; invokeAsync(T msg) <span class="code-keyword">throws</span>
WebServiceException;
 </pre>
 </div></div>
 
 <p>When using the callback approach the <tt>invokeAsync()</tt> method takes
an <tt>AsyncHandler</tt> implementation that processes the response when it is
returned.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">Future&lt;?&gt; invokeAsync(T msg, AsyncHandler&lt;T&gt;
handler)
-<span class="code-keyword">throws</span> WebServiceException;
+<pre class="code-java">
+Future&lt;?&gt; invokeAsync(T msg, AsyncHandler&lt;T&gt; handler) <span
class="code-keyword">throws</span> WebServiceException;
 </pre>
 </div></div>
 
@@ -295,15 +298,16 @@ DOMSource request = <span class="code-ke
 
 <p>When a request does not generate a response, you make remote invocations using the
<tt>Dispatch</tt> object's <tt>invokeOneWay()</tt>.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">void invokeOneWay(T msg)
-<span class="code-keyword">throws</span> WebServiceException;
+<pre class="code-java">
+void invokeOneWay(T msg) <span class="code-keyword">throws</span> WebServiceException;
 </pre>
 </div></div>
 <p>The type of object used to package the request is determined when the <tt>Dispatch</tt>
object is created. For example if the <tt>Dispatch</tt> object is created using
<tt>createDispatch(portName, DOMSource.class, Service.Mode.PAYLOAD)</tt> the request
would be packaged into a <tt>DOMSource</tt> object.</p>
 <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 JAXB objects, the response and the request can be of any type the provided <tt>JAXBContext</tt>
object can marshal and unmarshal. Also, the response and the request can be different JAXB
objects.</td></tr></table></div>
 <p>The code bellow makes a one way invocation on a remote service using a JAXB object.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-comment">// Creating a JAXBContext and
an Unmarshaller <span class="code-keyword">for</span> the request
+<pre class="code-java">
+<span class="code-comment">// Creating a JAXBContext and an Unmarshaller <span class="code-keyword">for</span>
the request
 </span>JAXBContext jbc = JAXBContext.newInstance(<span class="code-quote">"com.mycompany.StockExample"</span>);
 Unmarshaller u = jbc.createUnmarshaller();
 

Modified: websites/production/cxf/content/docs/provider-services.html
==============================================================================
--- websites/production/cxf/content/docs/provider-services.html (original)
+++ websites/production/cxf/content/docs/provider-services.html Thu Jan 10 11:48:03 2013
@@ -238,28 +238,28 @@ In other words, you cannot implement a <
     serviceName=<span class="code-quote">"stockQuoteReporter"</span>)
 @ServiceMode(value=<span class="code-quote">"Service.Mode.MESSAGE"</span>)
 <span class="code-keyword">public</span> class  stockQuoteReporterProvider 
-    <span class="code-keyword">implements</span> Provider&lt;SOAPMessage&gt;
+    <span class="code-keyword">implements</span> Provider&lt;SOAPMessage&gt;

 {
-<span class="code-keyword">public</span> stockQuoteReporterProvider()
+  <span class="code-keyword">public</span> stockQuoteReporterProvider() 
   {
   }
 
-<span class="code-keyword">public</span> SOAPMessage invoke(SOAPMessage request)
+  <span class="code-keyword">public</span> SOAPMessage invoke(SOAPMessage request)

   {
-  SOAPBody requestBody = request.getSOAPBody();
-  <span class="code-keyword">if</span>(requestBody.getElementName.getLocalName.equals(<span
class="code-quote">"getStockPrice"</span>))
+    SOAPBody requestBody = request.getSOAPBody();
+    <span class="code-keyword">if</span>(requestBody.getElementName.getLocalName.equals(<span
class="code-quote">"getStockPrice"</span>))
     {
-    MessageFactory mf = MessageFactory.newInstance();
-    SOAPFactory sf = SOAPFactory.newInstance();
+      MessageFactory mf = MessageFactory.newInstance();
+      SOAPFactory sf = SOAPFactory.newInstance();
 
-    SOAPMessage response = mf.createMessage();
-    SOAPBody respBody = response.getSOAPBody();
-    Name bodyName = sf.createName(<span class="code-quote">"getStockPriceResponse"</span>);
-    respBody.addBodyElement(bodyName);
-    SOAPElement respContent = respBody.addChildElement(<span class="code-quote">"price"</span>);
-    respContent.setValue(<span class="code-quote">"123.00"</span>);
-    response.saveChanges();
-    <span class="code-keyword">return</span> response;
+      SOAPMessage response = mf.createMessage();
+      SOAPBody respBody = response.getSOAPBody();
+      Name bodyName = sf.createName(<span class="code-quote">"getStockPriceResponse"</span>);
+      respBody.addBodyElement(bodyName);
+      SOAPElement respContent = respBody.addChildElement(<span class="code-quote">"price"</span>);
+      respContent.setValue(<span class="code-quote">"123.00"</span>);
+      response.saveChanges();
+      <span class="code-keyword">return</span> response;
     }
     ...
   }
@@ -282,11 +282,12 @@ In other words, you cannot implement a <
   serviceName=<span class="code-quote">"stockQuoteReporter"</span>)
 @ServiceMode(value=<span class="code-quote">"Service.Mode.PAYLOAD"</span>)
 <span class="code-keyword">public</span> class  stockQuoteReporterProvider <span
class="code-keyword">implements</span> Provider&lt;DOMSource&gt;
-<span class="code-keyword">public</span> stockQuoteReporterProvider()
+{
+  <span class="code-keyword">public</span> stockQuoteReporterProvider()
   {
   }
 
-<span class="code-keyword">public</span> DOMSource invoke(DOMSource request)
+  <span class="code-keyword">public</span> DOMSource invoke(DOMSource request)
   {
     DOMSource response = <span class="code-keyword">new</span> DOMSource();
     ...

Modified: websites/production/cxf/content/docs/wsrmconfiguration.html
==============================================================================
--- websites/production/cxf/content/docs/wsrmconfiguration.html (original)
+++ websites/production/cxf/content/docs/wsrmconfiguration.html Thu Jan 10 11:48:03 2013
@@ -169,15 +169,16 @@ Apache CXF -- WSRMConfiguration
 <p>Instead of attaching the PolicyReference attached to the wsdl:port element, you
can also specify it as a child element of the policies features, e.g. for the server endpoint:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-xml">
-<span class="code-tag">&lt;wsp:Policy wsu:Id=<span class="code-quote">"="</span>RM<span
class="code-quote">" <span class="code-keyword">xmlns:wsp</span>="</span>http://www.w3.org/2006/07/ws-policy"
...&gt;</span>
+<span class="code-tag">&lt;wsp:Policy wsu:Id=<span class="code-quote">"RM"</span>
<span class="code-keyword">xmlns:wsp</span>=<span class="code-quote">"http://www.w3.org/2006/07/ws-policy"</span>
...&gt;</span>
 <span class="code-tag">&lt;/wsp:Policy&gt;</span>
 
 <span class="code-tag">&lt;jaxws:endpoint ...&gt;</span>
     <span class="code-tag">&lt;jaxws:features&gt;</span>
-    <span class="code-tag">&lt;p:policies&gt;</span>
-        <span class="code-tag">&lt;wsp:PolicyReference URI=<span class="code-quote">"#RM"</span>
<span class="code-keyword">xmlns:wsp</span>=<span class="code-quote">"http://www.w3.org/2006/07/ws-policy"</span>/&gt;</span>
-    <span class="code-tag">&lt;/p:policies&gt;</span>
-<span class="code-tag">&lt;/jaxws:features&gt;</span>
+        <span class="code-tag">&lt;p:policies&gt;</span>
+            <span class="code-tag">&lt;wsp:PolicyReference URI=<span class="code-quote">"#RM"</span>
<span class="code-keyword">xmlns:wsp</span>=<span class="code-quote">"http://www.w3.org/2006/07/ws-policy"</span>/&gt;</span>
+        <span class="code-tag">&lt;/p:policies&gt;</span>
+    <span class="code-tag">&lt;/jaxws:features&gt;</span>
+<span class="code-tag">&lt;/jaxws:endpoint&gt;</span>
 </pre>
 </div></div>
 
@@ -242,31 +243,31 @@ Apache CXF -- WSRMConfiguration
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
 <pre class="code-xml">
 <span class="code-tag">&lt;bean id=<span class="code-quote">"rmLogicalOut"</span>
class=<span class="code-quote">"org.apache.cxf.ws.rm.RMOutInterceptor"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"bus"</span>
ref=<span class="code-quote">"cxf"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"rmLogicalIn"</span>
class=<span class="code-quote">"org.apache.cxf.ws.rm.RMInInterceptor"</span>&gt;</span>
-        <span class="code-tag">&lt;property name=<span class="code-quote">"bus"</span>
ref=<span class="code-quote">"cxf"</span>/&gt;</span>
-    <span class="code-tag">&lt;/bean&gt;</span>
-    <span class="code-tag">&lt;bean id=<span class="code-quote">"rmCodec"</span>
class=<span class="code-quote">"org.apache.cxf.ws.rm.soap.RMSoapInterceptor"</span>/&gt;</span>
-
-    <span class="code-tag">&lt;cxf:bus ...&gt;</span>
-        <span class="code-tag">&lt;cxf:inInterceptors&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalIn"</span>/&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
-        <span class="code-tag">&lt;/cxf:inInterceptors&gt;</span>
-        <span class="code-tag">&lt;cxf:inFaultInterceptors&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalIn"</span>/&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
-        <span class="code-tag">&lt;/cxf:inFaultInterceptors&gt;</span>
-        <span class="code-tag">&lt;cxf:outInterceptors&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalOut"</span>/&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
-        <span class="code-tag">&lt;/cxf:outInterceptors&gt;</span>
-        <span class="code-tag">&lt;cxf:outFaultInterceptors&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalOut"</span>/&gt;</span>
-            <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
-        <span class="code-tag">&lt;cxf:outFaultInterceptors&gt;</span>
-    <span class="code-tag">&lt;/cxf:bus&gt;</span>
+    <span class="code-tag">&lt;property name=<span class="code-quote">"bus"</span>
ref=<span class="code-quote">"cxf"</span>/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+<span class="code-tag">&lt;bean id=<span class="code-quote">"rmLogicalIn"</span>
class=<span class="code-quote">"org.apache.cxf.ws.rm.RMInInterceptor"</span>&gt;</span>
+    <span class="code-tag">&lt;property name=<span class="code-quote">"bus"</span>
ref=<span class="code-quote">"cxf"</span>/&gt;</span>
+<span class="code-tag">&lt;/bean&gt;</span>
+<span class="code-tag">&lt;bean id=<span class="code-quote">"rmCodec"</span>
class=<span class="code-quote">"org.apache.cxf.ws.rm.soap.RMSoapInterceptor"</span>/&gt;</span>
+
+<span class="code-tag">&lt;cxf:bus ...&gt;</span>
+    <span class="code-tag">&lt;cxf:inInterceptors&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalIn"</span>/&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
+    <span class="code-tag">&lt;/cxf:inInterceptors&gt;</span>
+    <span class="code-tag">&lt;cxf:inFaultInterceptors&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalIn"</span>/&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
+    <span class="code-tag">&lt;/cxf:inFaultInterceptors&gt;</span>
+    <span class="code-tag">&lt;cxf:outInterceptors&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalOut"</span>/&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
+    <span class="code-tag">&lt;/cxf:outInterceptors&gt;</span>
+    <span class="code-tag">&lt;cxf:outFaultInterceptors&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmLogicalOut"</span>/&gt;</span>
+        <span class="code-tag">&lt;ref bean=<span class="code-quote">"rmCodec"</span>/&gt;</span>
+    <span class="code-tag">&lt;cxf:outFaultInterceptors&gt;</span>
+<span class="code-tag">&lt;/cxf:bus&gt;</span>
 </pre>
 </div></div>
 



Mime
View raw message