cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r842296 - in /websites/production/cxf/content: cache/docs.pageCache docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html
Date Fri, 14 Dec 2012 10:48:04 GMT
Author: buildbot
Date: Fri Dec 14 10:48:04 2012
New Revision: 842296

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html

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

Modified: websites/production/cxf/content/docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html
==============================================================================
--- websites/production/cxf/content/docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html
(original)
+++ websites/production/cxf/content/docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html
Fri Dec 14 10:48:04 2012
@@ -145,7 +145,7 @@ Apache CXF -- Defining Contract first we
 @XmlAccessorType( XmlAccessType.FIELD )
 <span class="code-keyword">public</span> class Customer {
     <span class="code-object">String</span> name;
-    <span class="code-object">String</span>\[\] address;
+    <span class="code-object">String</span>[] address;
     <span class="code-object">int</span> numOrders;
     <span class="code-object">double</span> revenue;
     BigDecimal test;
@@ -179,11 +179,11 @@ Apache CXF -- Defining Contract first we
 @WebFault(name=<span class="code-quote">"NoSuchCustomer"</span>)
 @XmlAccessorType( XmlAccessType.FIELD )
 <span class="code-keyword">public</span> class NoSuchCustomerException <span
class="code-keyword">extends</span> RuntimeException {
-	/**
-	 * We only define the fault details here. Additionally each fault has a message
-	 * that should not be defined separately
-	 */
-	<span class="code-object">String</span> customerName;
+    /**
+      * We only define the fault details here. Additionally each fault has a message
+      * that should not be defined separately
+      */
+    <span class="code-object">String</span> customerName;
 }
 </pre>
 </div></div>
@@ -196,11 +196,11 @@ Apache CXF -- Defining Contract first we
 
 @WebService
 <span class="code-keyword">public</span> <span class="code-keyword">interface</span>
CustomerService {
-<span class="code-keyword">public</span> Customer[] getCustomersByName(@WebParam(name=<span
class="code-quote">"name"</span>) <span class="code-object">String</span>
name) <span class="code-keyword">throws</span> NoSuchCustomerException;
+    <span class="code-keyword">public</span> Customer[] getCustomersByName(@WebParam(name=<span
class="code-quote">"name"</span>) <span class="code-object">String</span>
name) <span class="code-keyword">throws</span> NoSuchCustomerException;
 }
 </pre>
 </div></div>
-<p>As you can see only two annotations are necessary here. @WebService marks the interface
as a service and @Webparam is necessary as Java will else loose the name of the parameter
and the wsdl will contain arg0 instead of the desired name. Using the @WebService annotation
you can also customize the port name and service name.</p>
+<p>As you can see only two annotations are necessary here. @WebService marks the interface
as a service and @Webparam is necessary as Java will else lose the name of the parameter and
the wsdl will contain arg0 instead of the desired name. Using the @WebService annotation you
can also customize the port name and service name.</p>
 
 <h2><a shape="rect" name="DefiningContractfirstwebserviceswithwsdlgenerationfromjava-Howisthewsdlgenerated"></a>How
is the wsdl generated</h2>
 



Mime
View raw message