<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Lijin&#039;s Localhost</title>
	<atom:link href="http://orangeslate.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://orangeslate.com</link>
	<description>The future belongs to those who believe in the beauty of their dreams.</description>
	<lastBuildDate>Mon, 23 Jan 2012 23:40:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='orangeslate.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/16105950e9450f38cd66899462a3611d?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Lijin&#039;s Localhost</title>
		<link>http://orangeslate.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://orangeslate.com/osd.xml" title="Lijin&#039;s Localhost" />
	<atom:link rel='hub' href='http://orangeslate.com/?pushpress=hub'/>
		<item>
		<title>11 OPEN Document-Oriented Databases which comes under NoSQL DB Category!</title>
		<link>http://orangeslate.com/2011/12/06/11-open-document-oriented-databases-which-comes-under-nosql-db-category/</link>
		<comments>http://orangeslate.com/2011/12/06/11-open-document-oriented-databases-which-comes-under-nosql-db-category/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 06:12:48 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">https://lijinjoseji.wordpress.com/?p=659</guid>
		<description><![CDATA[A document-oriented database is a designed for storing, retrieving, and managing document-oriented, or semi structured data. Document-oriented databases are one of the main categories of NoSQL databases. The central concept of a document-oriented database is the notion of a Document. While each document-oriented database implementation differs on the details of this definition, in general, they &#8230; <span class="more-link"><a href="http://orangeslate.com/2011/12/06/11-open-document-oriented-databases-which-comes-under-nosql-db-category/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=659&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p align="justify">A <strong>document-oriented database</strong> is a designed for storing, retrieving, and managing document-oriented, or semi structured data. Document-oriented databases are one of the main categories of <strong>NoSQL databases</strong>. The central concept of a document-oriented database is the notion of a <em>Document</em>. While each document-oriented database implementation differs on the details of this definition, in general, they all assume documents encapsulate and encode data (or information) in some standard format(s) (or encoding(s)). Encodings in use include XML, YAML, JSON and BSON, as well as binary forms like PDF and Microsoft Office documents (MS Word, Excel, and so on).</p>
<ul>
<li>
<div align="justify"><strong>MongoDB:</strong>  MongoDB is a collection-oriented, schema-free document database. Data is grouped into sets that are called &#8216;collections&#8217;. Each collection has a unique name in the database, and can contain an unlimited number of documents. Collections are analogous to tables in a RDBMS, except that they don&#8217;t have any defined schema.</div>
</li>
</ul>
<p align="justify">It store data (which is in BASON &#8211; &#8220;Binary Serialized dOcument Notation” format) that is a structured collection of key-value pairs, where keys are strings, and values are any of a rich set of data types, including arrays and documents.</p>
<p>Home: <a href="http://www.mongodb.org/">http://www.mongodb.org/</a><br />
Quick Start: <a href="http://www.mongodb.org/display/DOCS/Quickstart">http://www.mongodb.org/display/DOCS/Quickstart</a><br />
Download: <a href="http://www.mongodb.org/downloads">http://www.mongodb.org/downloads</a></p>
<ul>
<li><strong>CouchDB</strong>:  CouchDB is a document database server, accessible via a RESTful JSON API.  It is Ad-hoc and schema-free with a flat address space. Its Query-able and index-able, featuring a table oriented reporting engine that uses JavaScript as a query language. A CouchDB document is an object that consists of named fields. Field values may be strings, numbers, dates, or even ordered lists and associative maps.</li>
</ul>
<p>Home: <a href="http://couchdb.apache.org/">http://couchdb.apache.org/</a><br />
Quick Start: <a href="http://couchdb.apache.org/docs/intro.html">http://couchdb.apache.org/docs/intro.html</a><br />
Download: <a href="http://couchdb.apache.org/downloads.html">http://couchdb.apache.org/downloads.html</a></p>
<ul>
<li><strong>Terrastore</strong>: Terrastore is a modern document store which provides advanced scalability and elasticity features without sacrificing consistency. It is based on Terracotta, so it relies on an industry-proven, fast clustering technology.</li>
</ul>
<p>Home: <a href="http://code.google.com/p/terrastore/">http://code.google.com/p/terrastore/</a><br />
Quick Start: <a href="http://code.google.com/p/terrastore/wiki/Documentation">http://code.google.com/p/terrastore/wiki/Documentation</a><br />
Download: <a href="http://code.google.com/p/terrastore/downloads/list">http://code.google.com/p/terrastore/downloads/list</a></p>
<ul>
<li><strong>RavenDB</strong>: Raven is a .NET Linq enabled Document Database, focused on providing high performance, schema-less, flexible and scalable NoSQL data store for the .NET and Windows platforms.<br />
Raven store any JSON document inside the database. It is schema-less database where you can define indexes using C#&#8217;s Linq syntax.</li>
</ul>
<p>Home: <a href="http://ravendb.net/">http://ravendb.net/</a><br />
Quick Start: <a href="http://ravendb.net/tutorials">http://ravendb.net/tutorials</a><br />
Download: <a href="http://ravendb.net/download">http://ravendb.net/download</a></p>
<ul>
<li><strong>OrientDB</strong>: OrientDB is an open source NoSQL database management system written in Java. Even if it is a document-based database, the relationships are managed as in graph databases with direct connections between records. It supports schema-less, schema-full and schema-mixed modes. It has a strong security profiling system based on users and roles and supports SQL as a query languages.</li>
</ul>
<p>Home: <a href="http://www.orientechnologies.com/">http://www.orientechnologies.com/</a><br />
Quick Start: <a href="http://code.google.com/p/orient/wiki/Tutorials">http://code.google.com/p/orient/wiki/Tutorials</a><br />
Download: http://code.google.com/p/orient/wiki/Download</p>
<ul>
<li><strong>ThruDB: </strong>Thrudb is a set of simple services built on top of the Apache Thrift framework that provides indexing and document storage services for building and scaling websites. Its purpose is to offer web developers flexible, fast and easy-to-use services that can enhance or replace traditional data storage and access layers.<br />
It supports multiple storage backends such as BerkeleyDB, Disk, MySQL and also having     Memcache and Spread integration.</li>
</ul>
<p>Home: <a href="http://code.google.com/p/thrudb/">http://code.google.com/p/thrudb/</a><br />
Quick Start: <a href="http://thrudb.googlecode.com/svn/trunk/doc/Thrudb.pdf">http://thrudb.googlecode.com/svn/trunk/doc/Thrudb.pdf</a><br />
Download: <a href="http://code.google.com/p/thrudb/source/checkout">http://code.google.com/p/thrudb/source/checkout</a><strong></strong></p>
<ul>
<li><strong>SisoDB:</strong>  SisoDb is a document-oriented db-provider for Sql-Server written in C#. It lets you store object graphs of POCOs (plain old clr objects) without having to configure any mappings. Each entity is treated as an aggregate root and will get separate tables created on the fly.</li>
</ul>
<p>Home: <a href="http://www.sisodb.com">http://www.sisodb.com</a><br />
Quick Start: <a href="http://www.sisodb.com/Wiki">http://www.sisodb.com/Wiki</a><br />
Download: <a href="https://github.com/danielwertheim/SisoDb-Provider/">https://github.com/danielwertheim/SisoDb-Provider/</a></p>
<ul>
<li><strong>RaptorDB</strong>: RaptorDB is a extremely small size and fast embedded, noSql, persisted dictionary database using b+tree or MurMur hash indexing. It was primarily designed to store JSON data (see my fastJSON implementation), but can store any type of data that you give it.</li>
</ul>
<p>Home: <a href="http://www.codeproject.com/KB/database/RaptorDB.aspx">http://www.codeproject.com/KB/database/RaptorDB.aspx</a><br />
Quick Start: <a href="http://www.codeproject.com/KB/database/RaptorDB.aspx">http://www.codeproject.com/KB/database/RaptorDB.aspx</a><br />
Download: http://www.codeproject.com/KB/database/RaptorDB.aspx</p>
<ul>
<li><strong>CloudKit</strong>: CloudKit provides schema-free, auto-versioned, RESTful JSON storage with optional OpenID and OAuth support, including OAuth Discovery.</li>
</ul>
<p>Home: <a href="http://getcloudkit.com/">http://getcloudkit.com/</a><br />
Quick Start: <a href="http://getcloudkit.com/api/">http://getcloudkit.com/api/</a><br />
Download: <a href="https://github.com/jcrosby/cloudkit">https://github.com/jcrosby/cloudkit</a></p>
<ul>
<li><strong>Perservere</strong>: Persevere is an open source set of tools for persistence and distributed computing using an intuitive standards-based JSON interfaces of HTTP REST, JSON-RPC, JSONPath, and REST Channels. The core of the Persevere project is the Persevere Server. The Persevere server includes a Persevere JavaScript client, but the standards-based interface is intended to be used with any framework or client.</li>
</ul>
<p>Home: <a href="http://code.google.com/p/persevere-framework/">http://code.google.com/p/persevere-framework/</a><br />
Quick Start: <a href="http://code.google.com/p/persevere-framework/w/list">http://code.google.com/p/persevere-framework/w/list</a><br />
Download: http://code.google.com/p/persevere-framework/downloads/list</p>
<ul>
<li><strong>Jackrabbit</strong>: The Apache Jackrabbit™ content repository is a fully conforming implementation of the Content Repository for Java Technology API (JCR, specified in JSR 170 and 283). A content repository is a hierarchical content store with support for structured and unstructured content, full text search, versioning, transactions, observation, and more.</li>
</ul>
<p>Home: <a href="http://jackrabbit.apache.org">http://jackrabbit.apache.org</a><br />
Quick Start: <a href="http://jackrabbit.apache.org/getting-started-with-apache-jackrabbit.html">http://jackrabbit.apache.org/getting-started-with-apache-jackrabbit.html</a><br />
Download: <a href="http://jackrabbit.apache.org/downloads.html">http://jackrabbit.apache.org/downloads.html</a></p>
<p><strong>Conclusion:<br />
</strong>Document databases store and retrieve documents and basic atomic stored unit is a document.  As always your requirement leads into the decision. You need to think about your data-access patterns / use-cases to create a smart document-model. When your domain model can be split and partitioned across some documents, a document-database will be a suitable one for you. For example for a blog-software, a CMS or a wiki-software a document-db works extremely well. But at the same time a non-relational database is not better than a relational one in some cases where  your database have a lot of relations and normalization.</p>
<p>Just check the following link from stackoverflow also to cover the pros/cons of Relational Vs Document based databases.<br />
<a href="http://stackoverflow.com/questions/337344/pros-cons-of-document-based-databases-vs-relational-databases">http://stackoverflow.com/questions/337344/pros-cons-of-document-based-databases-vs-relational-databases</a></p>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c26ec455-afb4-4cf4-ba7b-dbd4763418eb" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/NoSQL" rel="tag">NoSQL</a>,<a href="http://del.icio.us/popular/Document+Oriented+Database" rel="tag">Document Oriented Database</a>,<a href="http://del.icio.us/popular/MongoDB" rel="tag">MongoDB</a>,<a href="http://del.icio.us/popular/CouchDB" rel="tag">CouchDB</a>,<a href="http://del.icio.us/popular/Terrastore" rel="tag">Terrastore</a>,<a href="http://del.icio.us/popular/RavenDB" rel="tag">RavenDB</a>,<a href="http://del.icio.us/popular/ThruDB" rel="tag">ThruDB</a>,<a href="http://del.icio.us/popular/SisoDB" rel="tag">SisoDB</a>,<a href="http://del.icio.us/popular/RaptorDB" rel="tag">RaptorDB</a>,<a href="http://del.icio.us/popular/Preservere" rel="tag">Preservere</a>,<a href="http://del.icio.us/popular/Jackrabbit" rel="tag">Jackrabbit</a>,<a href="http://del.icio.us/popular/Cloudkit" rel="tag">Cloudkit</a></div>
<div id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b726625e-3bd3-425a-a358-8f031205775f" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">Technorati Tags: <a href="http://technorati.com/tags/NoSQL" rel="tag">NoSQL</a>,<a href="http://technorati.com/tags/Document+Oriented+Database" rel="tag">Document Oriented Database</a>,<a href="http://technorati.com/tags/MongoDB" rel="tag">MongoDB</a>,<a href="http://technorati.com/tags/CouchDB" rel="tag">CouchDB</a>,<a href="http://technorati.com/tags/Terrastore" rel="tag">Terrastore</a>,<a href="http://technorati.com/tags/RavenDB" rel="tag">RavenDB</a>,<a href="http://technorati.com/tags/ThruDB" rel="tag">ThruDB</a>,<a href="http://technorati.com/tags/SisoDB" rel="tag">SisoDB</a>,<a href="http://technorati.com/tags/RaptorDB" rel="tag">RaptorDB</a>,<a href="http://technorati.com/tags/Preservere" rel="tag">Preservere</a>,<a href="http://technorati.com/tags/Jackrabbit" rel="tag">Jackrabbit</a>,<a href="http://technorati.com/tags/Cloudkit" rel="tag">Cloudkit</a></div>
<br />Filed under: <a href='http://orangeslate.com/category/java/'>Java</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/659/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=659&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2011/12/06/11-open-document-oriented-databases-which-comes-under-nosql-db-category/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://lijinjoseji.files.wordpress.com/2011/12/dsc_0144.jpg?w=150" />
		<media:content url="http://lijinjoseji.files.wordpress.com/2011/12/dsc_0144.jpg?w=150" medium="image">
			<media:title type="html">DSC_0144</media:title>
		</media:content>

		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Wink &#8211; A framework for RESTful web services from Apache</title>
		<link>http://orangeslate.com/2010/02/26/wink-a-framework-for-restful-web-services-from-apache/</link>
		<comments>http://orangeslate.com/2010/02/26/wink-a-framework-for-restful-web-services-from-apache/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 07:24:45 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2010/02/26/wink-a-framework-for-restful-web-services-from-apache/</guid>
		<description><![CDATA[Apache Wink 1.0 is a complete Java based solution for implementing and consuming REST based Web Services. The goal of the Wink framework is to provide a reusable and extendable set of classes and interfaces that will serve as a foundation on which a developer can efficiently construct applications. Taken from Apache Wink official site: &#8230; <span class="more-link"><a href="http://orangeslate.com/2010/02/26/wink-a-framework-for-restful-web-services-from-apache/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=637&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apache Wink 1.0 is a complete Java based solution for implementing and consuming REST based Web Services. The goal of the Wink framework is to provide a reusable and extendable set of classes and interfaces tha<a href="http://incubator.apache.org/wink/"><img style="display:inline;margin:10px 0 5px 20px;" height="55" alt="" src="http://incubator.apache.org/wink/1.0/html/attachments/2328628/2523211.jpg" width="138" align="right" /></a>t will serve as a foundation on which a developer can efficiently construct applications.</p>
<blockquote><p>Taken from Apache Wink official site: <a href="http://incubator.apache.org/wink/" target="_self">Click Here </a></p>
</blockquote>
<p>Wink consists of a Server module for developing REST services, and of a Client module for consuming REST services. It cleanly separates the low-level protocol aspects from the application aspects. Therefore, in order to implement and consume REST Web Services the developer only needs to focus on the application business logic and not on the low-level technical details.</p>
<p><strong>REST Web Service design structure</strong></p>
<p><img height="355" alt="" src="http://incubator.apache.org/wink/1.0/html/attachments/2328642/2523181.jpg" width="508" /></p>
<p>The <strong>Wink Server</strong> module is a complete implementation of the JAX-RS v1.0 specification. On top of this implementation, the Wink Server module provides a set of additional features that were designed to facilitate the development of RESTful Web services.</p>
<p>The <strong>Wink Client</strong> module is a Java based framework that provides functionality for communicating with RESTful Web services. The framework is built on top of the JDK HttpURLConnection and adds essential features that facilitate the development of such client applications.</p>
<p>How to create a RESTful service using Wink? [Coming soon - next post <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ]</p>
<br />Filed under: <a href='http://orangeslate.com/category/java/'>Java</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/637/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/637/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/637/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=637&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2010/02/26/wink-a-framework-for-restful-web-services-from-apache/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>

		<media:content url="http://incubator.apache.org/wink/1.0/html/attachments/2328628/2523211.jpg" medium="image" />

		<media:content url="http://incubator.apache.org/wink/1.0/html/attachments/2328642/2523181.jpg" medium="image" />
	</item>
		<item>
		<title>Story of an Old Carpenter</title>
		<link>http://orangeslate.com/2009/07/14/story-of-an-old-carpenter/</link>
		<comments>http://orangeslate.com/2009/07/14/story-of-an-old-carpenter/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 14:41:32 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/07/14/story-of-an-old-carpenter/</guid>
		<description><![CDATA[“Your life today is the result of your attitudes and choices in the past. Your life tomorrow will be the result.&#34; This is a story of an elderly carpenter who had been working for a contractor for the past 53 years. He had built many beautiful houses but now as he was getting old, he &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/07/14/story-of-an-old-carpenter/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=628&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>“Your life today is the result of your attitudes and choices in the past. Your life tomorrow will be the result.&quot; </p>
</blockquote>
<p>This is a story of an elderly carpenter who had been working for a contractor for the past 53 years. He had built many beautiful houses but now as he was getting old, he wanted to retire and lead a leisurely life with his family. So, he goes to the contractor and tells him about his plan of retiring. The contractor feels sad at the prospect of losing a good worker but agrees to the plan because the carpenter had indeed become too fragile for the tough building work. But as a last request, he asks the old carpenter to construct just one last house.     <br />The old man agrees and starts working but his heart was not in his work any more. He had lost the motivation towards work. So, he resorted to shoddy workmanship and constructed the house half-heartedly. After the house was built, the contractor came to visit his employee’s last piece of work. After inspecting the house, he handed over the front door keys to the carpenter and said, “This is your new house. My gift to you.” The carpenter was shocked and upset. Had he known that he was building his own house, he would have done a better job! Now, he would have to live in the house, which is not worth staying.    <br />Think of yourself as the carpenter. You work hard every day but are you giving your best? We put our least to the work we don’t like or do not have interest in. Later, we get shocked at the situation we have created for ourselves and try to figure out why we didn’t do it differently.     <br />Enjoy your tasks and carry on your responsibilities with pleasure and not with pain. “Life is a do-it-yourself project”. Do your job enthusiastically and with devotion, a positive output and a pleasing life will certainly be on your way. </p>
<br />Posted in Java  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/628/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/628/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/628/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=628&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/07/14/story-of-an-old-carpenter/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Web Services using CXF (Contract first Approach) Part 2 : WSDL Creation.</title>
		<link>http://orangeslate.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/</link>
		<comments>http://orangeslate.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 11:38:55 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[Xfire]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/</guid>
		<description><![CDATA[What is WSDL and what its Structure? A WSDL document defines services as collections of network endpoints, or ports. In WSDL, the abstract definition of endpoints and messages is separated from their concrete network deployment or data format bindings. This allows the reuse of abstract definitions: messages, which are abstract descriptions of the data being &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=601&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4><strong>What is WSDL and what its Structure?</strong></h4>
<p>A WSDL document defines services as collections of network endpoints, or ports. In WSDL, the abstract definition of endpoints and messages is separated from their concrete network deployment or data format bindings. This allows the reuse of abstract definitions: messages, which are abstract descriptions of the data being exchanged, and port types which are abstract collections of operations. </p>
<p>The concrete protocol and data format specifications for a particular port type constitutes a reusable binding. A port is defined by associating a network address with a reusable binding, and a collection of ports define a service. Hence, a WSDL document uses the following elements in the definition of network services:</p>
<p>WSDL document describes a web service using these major elements:</p>
<p>
<table cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td width="20%">
<p><b>Element</b></p>
</td>
<td width="80%">
<p><b>Defines</b></p>
</td>
</tr>
<tr>
<td valign="top">
<p>&lt;types&gt;</p>
</td>
<td valign="top">
<p>The data types used by the web service</p>
</td>
</tr>
<tr>
<td valign="top">
<p>&lt;message&gt;</p>
</td>
<td valign="top">
<p>The messages used by the web service</p>
</td>
</tr>
<tr>
<td valign="top">
<p>&lt;portType&gt;</p>
</td>
<td valign="top">
<p>The operations performed by the web service</p>
</td>
</tr>
<tr>
<td valign="top">
<p>&lt;binding&gt;</p>
</td>
<td valign="top">
<p>The communication protocols used by the web service</p>
</td>
</tr>
<tr>
<td valign="top">&lt;port&gt;</td>
<td valign="top">A single endpoint defined as a combination of a binding and a network address.</td>
</tr>
<tr>
<td valign="top">&lt;service&gt;</td>
<td valign="top">A collection of related endpoints.</td>
</tr>
</tbody>
</table>
<p>The main structure of a WSDL document looks like this:<br />
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td>
<p><em>&lt;definitions&gt;                <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#800040">&lt;types&gt;                  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; definition of types&#8230;&#8230;..                   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/types&gt;</font>                 <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#008000">&lt;message&gt;                  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; definition of a message&#8230;.                   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/message&gt;                   <br /></font>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#ff8000">&lt;portType&gt;                  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; definition of a port&#8230;&#8230;.                   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/portType&gt;                   <br /></font>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="#0000a0"></font></em><em><font color="#0000a0">&lt;binding&gt;                  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; definition of a binding&#8230;.                   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/binding&gt;</font></em></p>
<p><em><font color="#0000a0">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font><font color="#0080c0">&lt;service&gt;                  <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; definition of services&#8230;.                   <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;/service&gt;</font></em><em><font color="#0000a0">                  <br /></font>&lt;/definitions&gt;</em></p>
</td>
</tr>
</tbody>
</table>
<p>A WSDL document can also contain other elements, like extension elements and a service element that makes it possible to group together the definitions of several web services in one single WSDL document.</p>
<p><strong>Creating WSDL for our Example</strong></p>
<p><em><font color="#800040"><strong>&lt;types&gt;:</strong>In the Types we are defining or configuring the Datatypes which we are using for the entire application. Here we are importing the XSD files here.</font></em></p>
<p><em><font color="#008000"><strong>&lt;message&gt;:</strong></font></em><em><font color="#008000">In our example we need to configure our input and our parameters/ the message which we are passing through Webservice. We are configuring request and response objects here.</font></em></p>
<p><em><font color="#ff8000"><strong>&lt;portType&gt;: </strong></font></em><em><font color="#ff8000">We have one operation which is called getProduct. So here we need to declare this getProduct operation.</font></em></p>
<p><em><font color="#0000a0"><strong>&lt;binding&gt;</strong> : </font></em><em><font color="#0000a0">Here we will be providing our protocol types and we are using SOAP protocol.</font></em></p>
<p><em><font color="#0080c0"><strong>&lt;service&gt;</strong> : Defining the Service End point. And for the ProductService we are defining it as </font><a title="http://localhost:8080/ContractFirst/services/ProductService" href="http://localhost:8080/ContractFirst/services/ProductService"><font color="#0080c0">“http://localhost:8080/ContractFirst/services/ProductService</font></a><font color="#0080c0">”</font></em></p>
<p><em><font color="#ff8000"></font></em><em><font color="#008000"></font></em></p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;?xml version=<span style="color:#006080;">&quot;1.0&quot;</span> encoding=<span style="color:#006080;">&quot;UTF-8&quot;</span> standalone=<span style="color:#006080;">&quot;no&quot;</span>?&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &lt;wsdl:definitions xmlns:soap=<span style="color:#006080;">&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     xmlns:tns=<span style="color:#006080;">&quot;http://com/your/company/service/ProductService/&quot;</span> xmlns:wsdl=<span style="color:#006080;">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     xmlns:xsd=<span style="color:#006080;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span> name=<span style="color:#006080;">&quot;ProductService&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     targetNamespace=<span style="color:#006080;">&quot;http://com/your/company/service/ProductService/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     xmlns:prd=<span style="color:#006080;">&quot;http://com/your/company/service/Product/&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     &lt;wsdl:types&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>         &lt;xsd:schema targetNamespace=<span style="color:#006080;">&quot;http://com/your/company/service/ProductService/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>             xmlns:prd=<span style="color:#006080;">&quot;http://com/your/company/service/Product/&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>             &lt;xsd:import <span style="color:#0000ff;">namespace</span>=<span style="color:#006080;">&quot;http://com/your/company/service/Product/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>                 schemaLocation=<span style="color:#006080;">&quot;../Product.xsd&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;getProductRequest&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>                 &lt;xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>                     &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>                         &lt;xsd:element name=<span style="color:#006080;">&quot;productRequest&quot;</span> type=<span style="color:#006080;">&quot;prd:ProductRequest&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>                     &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>                 &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>             &lt;/xsd:element&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;getProductResponse&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>                 &lt;xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>                     &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>                         &lt;xsd:element name=<span style="color:#006080;">&quot;productResponse&quot;</span> type=<span style="color:#006080;">&quot;prd:ProductResponse&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>                     &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>                 &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>             &lt;/xsd:element&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>         &lt;/xsd:schema&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>     &lt;/wsdl:types&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>     &lt;wsdl:message name=<span style="color:#006080;">&quot;ProductRequest&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>         &lt;wsdl:part element=<span style="color:#006080;">&quot;tns:getProductRequest&quot;</span> name=<span style="color:#006080;">&quot;parameters&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>     &lt;/wsdl:message&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>     &lt;wsdl:message name=<span style="color:#006080;">&quot;ProductResponse&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span>         &lt;wsdl:part element=<span style="color:#006080;">&quot;tns:getProductResponse&quot;</span> name=<span style="color:#006080;">&quot;parameters&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  33:</span>     &lt;/wsdl:message&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  34:</span>     &lt;wsdl:portType name=<span style="color:#006080;">&quot;ProductService&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  35:</span>         &lt;wsdl:operation name=<span style="color:#006080;">&quot;getProduct&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  36:</span>             &lt;wsdl:input message=<span style="color:#006080;">&quot;tns:ProductRequest&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  37:</span>             &lt;wsdl:output message=<span style="color:#006080;">&quot;tns:ProductResponse&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  38:</span>         &lt;/wsdl:operation&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  39:</span>     &lt;/wsdl:portType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  40:</span>     &lt;wsdl:binding name=<span style="color:#006080;">&quot;ProductServiceSOAP&quot;</span> type=<span style="color:#006080;">&quot;tns:ProductService&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  41:</span>         &lt;soap:binding style=<span style="color:#006080;">&quot;document&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  42:</span>             transport=<span style="color:#006080;">&quot;http://schemas.xmlsoap.org/soap/http&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  43:</span>         &lt;wsdl:operation name=<span style="color:#006080;">&quot;getProduct&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  44:</span>             &lt;soap:operation</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  45:</span>                 soapAction=<span style="color:#006080;">&quot;http://com/your/company/service/ProductService/getProduct&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  46:</span>             &lt;wsdl:input&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  47:</span>                 &lt;soap:body use=<span style="color:#006080;">&quot;literal&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  48:</span>             &lt;/wsdl:input&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  49:</span>             &lt;wsdl:output&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  50:</span>                 &lt;soap:body use=<span style="color:#006080;">&quot;literal&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  51:</span>             &lt;/wsdl:output&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  52:</span>         &lt;/wsdl:operation&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  53:</span>     &lt;/wsdl:binding&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  54:</span>     &lt;wsdl:service name=<span style="color:#006080;">&quot;ProductService&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  55:</span>         &lt;wsdl:port binding=<span style="color:#006080;">&quot;tns:ProductServiceSOAP&quot;</span> name=<span style="color:#006080;">&quot;ProductServiceSOAP&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  56:</span>             &lt;soap:address</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  57:</span>                 location=<span style="color:#006080;">&quot;http://localhost:8080/ContractFirst/services/ProductService&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  58:</span>         &lt;/wsdl:port&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  59:</span>     &lt;/wsdl:service&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  60:</span> &lt;/wsdl:definitions&gt;</pre>
</p></div>
</div>
<p>In our next part we will go through Skelton creation using WSDL to Java tool which is giving by <a href="http://cxf.apache.org/" target="_blank">CXF</a>. We will go through class path settings and wsdl2java commands.</p>
<br />Posted in Celtix, CXF, Spring, web, webservices, Xfire  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/601/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/601/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/601/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=601&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating &#8220;Contract First&#8221; &#8211; Web Services using CXF (Top Down Approach) Part 1: Creating XSDs.</title>
		<link>http://orangeslate.com/2009/06/15/creating-contract-first-web-services-using-cxf-top-down-approach-part-1-creating-xsds/</link>
		<comments>http://orangeslate.com/2009/06/15/creating-contract-first-web-services-using-cxf-top-down-approach-part-1-creating-xsds/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 06:48:03 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[Contract First]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[WSDL]]></category>
		<category><![CDATA[Xfire]]></category>
		<category><![CDATA[XSD]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/15/creating-contract-first-web-services-using-cxf-top-down-approach-part-1-creating-xsds/</guid>
		<description><![CDATA[Why people are interested in CODE-FIRST approach? Answer is simple. No need to go through the complexities of XML, XSD, WSDL structure. Just code in any of your favorite programming language and create the WSDL file using any of your tools/frameworks. I had taken some interviews these days for a Webservice-SOA project. Honestly it was &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/15/creating-contract-first-web-services-using-cxf-top-down-approach-part-1-creating-xsds/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=597&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why people are interested in CODE-FIRST approach? Answer is simple. No need to go through the complexities of XML, XSD, WSDL structure. Just code in any of your favorite programming language and create the WSDL file using any of your tools/frameworks. I had taken some interviews these days for a Webservice-SOA project. Honestly it was too difficult to find out the right candidates with good knowledge in Webservices. Most of them are just consumed webservices. And if we find somebody who developed webservices then they would be just familiar with the Code first approach and have no idea about WSDL files. Becuase just seeing WSDL in that endpoint URL finishes their works.</p>
<p>Here in this series of Posts I would like to put a small webservice example which is doing in “CONTRACT FIRST” approach.</p>
<blockquote><p>If you want to go through a <strong>Code-First Approach</strong> using <a href="http://cxf.apache.org/" target="_blank">CXF</a> then please check my previous posts. For your convenience I am pasting it below.</p>
<ol>
<li><a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/">Creating Web services using Apache CXF (Part 1) : The Basics.</a> </li>
<li><a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/">Creating Web services using Apache CXF (Part 2) : Development</a>. </li>
<li><a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/">Creating Web services using Apache CXF (Part 3) : Configuration</a>. </li>
<li><a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/">Creating Web services using Apache CXF (Part 4): Testing</a>. </li>
</ol>
</blockquote>
<p><strong>Why we require CONTRACT FIRST approach?</strong></p>
<p>This <a href="http://soa.sys-con.com/node/143909" target="_blank">article from SOA world will help you to understand</a>. A contract-first approach results in better long-term development, interoperability, and maintenance. <strong>For larger applications, long-lasting Web services, and service-oriented architecture (SOA), contract-first thinking has advantages that usually outweigh the ease of method-first thinking</strong>. I know first exposure to Web services, WSDL and Schema are very tough to grasp but when you are coming into a BIG SOA application development people will choose contract-first. At least me!</p>
<p><strong>Some of the Points for this selection are:</strong></p>
<ul>
<li>Its better to define data types and all first than converting from a programming language. </li>
<li>It makes you be very clear with both the producer and consumer of the service exactly what is needed and what is expected </li>
<li>Contract-first is the generally accepted &#8216;best practice”. </li>
</ul>
<p><strong><u>Creating a small webservice application using CXF</u></strong></p>
<p>Lets start our example. Want we are trying to achieve is, we want to deploy a service called “getProduct”. If we are giving a “Composite ID” as an input to our web service then it should return a Product Details to us.</p>
<p>First we will start with our XSD structure. Even though this is a small service and we can define it inside the WSDL itself, we will create a separate XSD for our better understanding. We can import this XSD in the types tag of WSDL. </p>
<p><strong><u>Creating our XSD</u></strong></p>
<p>Here I had created one ProductDetails and one ProductId types.</p>
<p>Product Details contains all the product related information like productname, category, price and details. ProductId type is a composite primary key with sequence number and deptcode. I am also created a request and response types here. </p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;?xml version=<span style="color:#006080;">&quot;1.0&quot;</span> encoding=<span style="color:#006080;">&quot;UTF-8&quot;</span>?&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &lt;xsd:schema targetNamespace=<span style="color:#006080;">&quot;http://com/your/company/service/Product/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     xmlns:prd=<span style="color:#006080;">&quot;http://com/your/company/service/Product/&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     elementFormDefault=<span style="color:#006080;">&quot;qualified&quot;</span> xmlns:xsd=<span style="color:#006080;">&quot;http://www.w3.org/2001/XMLSchema&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     &lt;xsd:complexType name=<span style="color:#006080;">&quot;productID&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>             &lt;xsd:element minOccurs=<span style="color:#006080;">&quot;0&quot;</span> name=<span style="color:#006080;">&quot;sequenceNumber&quot;</span> type=<span style="color:#006080;">&quot;xsd:int&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>             &lt;xsd:element minOccurs=<span style="color:#006080;">&quot;0&quot;</span> name=<span style="color:#006080;">&quot;deptNumber&quot;</span> type=<span style="color:#006080;">&quot;xsd:string&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>         &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>     &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>     &lt;xsd:complexType name=<span style="color:#006080;">&quot;productDetails&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>         &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;id&quot;</span> nillable=<span style="color:#006080;">&quot;false&quot;</span> type=<span style="color:#006080;">&quot;prd:productID&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;productName&quot;</span> nillable=<span style="color:#006080;">&quot;false&quot;</span> type=<span style="color:#006080;">&quot;xsd:string&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;category&quot;</span> nillable=<span style="color:#006080;">&quot;true&quot;</span> type=<span style="color:#006080;">&quot;xsd:string&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;price&quot;</span> nillable=<span style="color:#006080;">&quot;false&quot;</span> type=<span style="color:#006080;">&quot;xsd:long&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;details&quot;</span> nillable=<span style="color:#006080;">&quot;true&quot;</span> type=<span style="color:#006080;">&quot;xsd:string&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>         &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>     &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>     &lt;xsd:complexType name=<span style="color:#006080;">&quot;ProductRequest&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>         &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;productID&quot;</span> type=<span style="color:#006080;">&quot;prd:productID&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>     &lt;xsd:complexType name=<span style="color:#006080;">&quot;ProductResponse&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>         &lt;xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>             &lt;xsd:element name=<span style="color:#006080;">&quot;product&quot;</span> type=<span style="color:#006080;">&quot;prd:productDetails&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>         &lt;/xsd:sequence&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>     &lt;/xsd:complexType&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span> &lt;/xsd:schema&gt;</pre>
</p></div>
</div>
<blockquote>
<p><strong><a href="http://lijinjoseji.wordpress.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/" target="_blank">In the next PART we will be creating a small WSDL file which internally using this XSD. Points we cover are WSDL Tags, XSD inclusion, NameSpaces.</a>&#160;<a href="http://lijinjoseji.wordpress.com/2009/06/15/creating-web-services-using-cxf-contract-first-approach-part-2-wsdl-creation/" target="_blank">&lt;Click on this link to move to that post&gt;</a></strong></p>
</blockquote>
<br />Posted in Contract First, CXF, webservices, WSDL, Xfire, XSD  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/597/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/597/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/597/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=597&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/15/creating-contract-first-web-services-using-cxf-top-down-approach-part-1-creating-xsds/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Web services using Apache CXF (Part 4): Testing</title>
		<link>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/</link>
		<comments>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 10:30:20 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[Xfire]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/</guid>
		<description><![CDATA[To test this we can follow the same client program which is given in the CXF site. Just create a simple Java class and execute it. 1: package com.your.company.service.client; 2:&#160; 3: import java.util.List; 4:&#160; 5: import org.apache.cxf.interceptor.LoggingInInterceptor; 6: import org.apache.cxf.interceptor.LoggingOutInterceptor; 7: import org.apache.cxf.jaxws.JaxWsProxyFactoryBean; 8:&#160; 9: import com.your.company.service.Product; 10: import com.your.company.service.ProductService; 11:&#160; 12: public final class &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=589&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[</p>
<p>To test this we can follow the same client program which is given in the <a href="http://cxf.apache.org/" target="_blank">CXF</a> site.</p>
<p>Just create a simple Java class and execute it.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> package com.your.company.service.client;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> import java.util.List;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> import org.apache.cxf.interceptor.LoggingInInterceptor;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> import org.apache.cxf.interceptor.LoggingOutInterceptor;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> import com.your.company.service.Product;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> import com.your.company.service.ProductService;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span> <span style="color:#0000ff;">public</span> final <span style="color:#0000ff;">class</span> Client {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     <span style="color:#0000ff;">private</span> Client() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">static</span> <span style="color:#0000ff;">void</span> main(String args[]) throws Exception {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>         JaxWsProxyFactoryBean factory = <span style="color:#0000ff;">new</span> JaxWsProxyFactoryBean();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>         factory.getInInterceptors().add(<span style="color:#0000ff;">new</span> LoggingInInterceptor());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>         factory.getOutInterceptors().add(<span style="color:#0000ff;">new</span> LoggingOutInterceptor());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         factory.setServiceClass(ProductService.<span style="color:#0000ff;">class</span>);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>         factory.setAddress(<span style="color:#006080;">&quot;http://localhost:8080/CXFExample/productservice&quot;</span>);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>         ProductService client = (ProductService) factory.create();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>         List&lt;Product&gt; products = client.getProducts();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>         <span style="color:#0000ff;">if</span> (products != <span style="color:#0000ff;">null</span> &amp;&amp; products.size() &gt; 0)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>             System.<span style="color:#0000ff;">out</span>.println(<span style="color:#006080;">&quot;Product Name : &quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>                     + products.get(0).getItemName() + <span style="color:#006080;">&quot;, Price: &quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>                     + products.get(0).getPrice());</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span>         System.exit(0);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  33:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  34:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  35:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  36:</span> }</pre>
</p></div>
</div>
<p><strong><u>Other related posts:</u></strong></p>
<p>1. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/" target="_blank">Creating Web services using Apache CXF (Part 1) : The Basics.</a></p>
<p>2. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/" target="_blank">Creating Web services using Apache CXF (Part 2) : Development</a>.</p>
<p>3. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/" target="_blank">Creating Web services using Apache CXF (Part 3) : Configuration</a>.</p>
<p>4. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/" target="_blank">Creating Web services using Apache CXF (Part 4): Testing</a>.</p>
<br />Posted in apache, Celtix, CXF, web, Web Applications, webservices, Xfire  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/589/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/589/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/589/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=589&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Web services using Apache CXF (Part 3): Configurations</title>
		<link>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/</link>
		<comments>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 08:42:00 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webservices]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/</guid>
		<description><![CDATA[Web.xml Declarations We have to declare Spring Context Listener, CXF Servlet, Spring Context Location and URL Mapping. 1: &#60;?xml version=&#34;1.0&#34; encoding=&#34;UTF-8&#34;?&#62; 2: &#60;web-app id=&#34;services&#34; version=&#34;2.5&#34; 3: xmlns:xsi=&#34;http://www.w3.org/2001/XMLSchema-instance&#34; xmlns=&#34;http://java.sun.com/xml/ns/javaee&#34; 4: xmlns:web=&#34;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#34; 5: xsi:schemaLocation=&#34;http://java.sun.com/xml/ns/javaee 6: http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&#34;&#62; 7: 8: &#60;!-- Adding the Spring Context Listener. It will help to init Spring Context --&#62; 9: &#60;listener&#62; 10: &#60;listener-class&#62; org.springframework.web.context.ContextLoaderListener &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=587&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>Web.xml Declarations </li>
</ul>
<p>We have to declare Spring Context Listener, CXF Servlet, Spring Context Location and URL Mapping.</p>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;?xml version=<span style="color:#006080;">&quot;1.0&quot;</span> encoding=<span style="color:#006080;">&quot;UTF-8&quot;</span>?&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &lt;web-app id=<span style="color:#006080;">&quot;services&quot;</span> version=<span style="color:#006080;">&quot;2.5&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     xmlns:xsi=<span style="color:#006080;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> xmlns=<span style="color:#006080;">&quot;http://java.sun.com/xml/ns/javaee&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     xmlns:web=<span style="color:#006080;">&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     xsi:schemaLocation=<span style="color:#006080;">&quot;http://java.sun.com/xml/ns/javaee</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     &lt;!-- Adding the Spring Context Listener. It will help to init Spring Context --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     &lt;listener&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         &lt;listener-<span style="color:#0000ff;">class</span>&gt; org.springframework.web.context.ContextLoaderListener </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>         &lt;/listener-<span style="color:#0000ff;">class</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>     &lt;/listener&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     &lt;!-- Context file location of Spring --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>     &lt;context-param&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>         &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>         &lt;param-<span style="color:#0000ff;">value</span>&gt;/WEB-INF/applicationContext.xml&lt;/param-<span style="color:#0000ff;">value</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>     &lt;/context-param&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>     &lt;!-- CXF Servlet --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>     &lt;servlet&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>         &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         &lt;servlet-<span style="color:#0000ff;">class</span>&gt; org.apache.cxf.transport.servlet.CXFServlet </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>         &lt;/servlet-<span style="color:#0000ff;">class</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>     &lt;/servlet&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>     &lt;!-- Mapping with a URL Pattern --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>     &lt;servlet-mapping&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>         &lt;servlet-name&gt;CXFServlet&lt;/servlet-name&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>         &lt;url-pattern&gt;/*&lt;/url-pattern&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>     &lt;/servlet-mapping&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span> &lt;/web-app&gt;</pre>
</p></div>
</div>
<ul>
<li>Application Context configurations </li>
</ul>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> &lt;?xml version=<span style="color:#006080;">&quot;1.0&quot;</span> encoding=<span style="color:#006080;">&quot;UTF-8&quot;</span>?&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span> &lt;beans xmlns=<span style="color:#006080;">&quot;http://www.springframework.org/schema/beans&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span>     xmlns:xsi=<span style="color:#006080;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span> xmlns:context=<span style="color:#006080;">&quot;http://www.springframework.org/schema/context&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>     xmlns:cxf=<span style="color:#006080;">&quot;http://cxf.apache.org/core&quot;</span> xmlns:jaxws=<span style="color:#006080;">&quot;http://cxf.apache.org/jaxws&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>     xsi:schemaLocation=<span style="color:#006080;">&quot;http://www.springframework.org/schema/beans</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>         http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>         http://www.springframework.org/schema/context</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>         http://www.springframework.org/schema/context/spring-context-2.5.xsd</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>         http://cxf.apache.org/core</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>         http://cxf.apache.org/schemas/core.xsd</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>         http://cxf.apache.org/jaxws</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>         http://cxf.apache.org/schemas/jaxws.xsd&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>     <span style="color:#0000ff;">default</span>-autowire=<span style="color:#006080;">&quot;byName&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>     &lt;!-- Load CXF modules from cxf.jar --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>     &lt;import resource=<span style="color:#006080;">&quot;classpath:META-INF/cxf/cxf.xml&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>     &lt;import resource=<span style="color:#006080;">&quot;classpath:META-INF/cxf/cxf-extension-soap.xml&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>     &lt;import resource=<span style="color:#006080;">&quot;classpath:META-INF/cxf/cxf-servlet.xml&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>         </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>     &lt;!-- The service bean --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>     &lt;bean id=<span style="color:#006080;">&quot;productServiceImpl&quot;</span> <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;com.your.company.service.ProductServiceImpl&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>     &lt;!-- Aegis data binding --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     &lt;bean id=<span style="color:#006080;">&quot;aegisBean&quot;</span> <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;org.apache.cxf.aegis.databinding.AegisDatabinding&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>         scope=<span style="color:#006080;">&quot;prototype&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     &lt;bean id=<span style="color:#006080;">&quot;aegis-service&quot;</span> <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>         scope=<span style="color:#006080;">&quot;prototype&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>         &lt;property name=<span style="color:#006080;">&quot;dataBinding&quot;</span> <span style="color:#0000ff;">ref</span>=<span style="color:#006080;">&quot;aegisBean&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>         &lt;property name=<span style="color:#006080;">&quot;serviceConfigurations&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>             &lt;list&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>                 &lt;bean <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;org.apache.cxf.jaxws.support.JaxWsServiceConfiguration&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span>                 &lt;bean <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;org.apache.cxf.aegis.databinding.AegisServiceConfiguration&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  33:</span>                 &lt;bean <span style="color:#0000ff;">class</span>=<span style="color:#006080;">&quot;org.apache.cxf.service.factory.DefaultServiceConfiguration&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  34:</span>             &lt;/list&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  35:</span>         &lt;/property&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  36:</span>     &lt;/bean&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  37:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  38:</span>     &lt;!-- Service endpoint --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  39:</span>     &lt;jaxws:endpoint id=<span style="color:#006080;">&quot;productService&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  40:</span>         implementorClass=<span style="color:#006080;">&quot;com.your.company.service.ProductServiceImpl&quot;</span></pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  41:</span>         implementor=<span style="color:#006080;">&quot;#productServiceImpl&quot;</span> address=<span style="color:#006080;">&quot;/productservice&quot;</span>&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  42:</span>         &lt;jaxws:serviceFactory&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  43:</span>             &lt;<span style="color:#0000ff;">ref</span> bean=<span style="color:#006080;">&quot;aegis-service&quot;</span> /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  44:</span>         &lt;/jaxws:serviceFactory&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  45:</span>     &lt;/jaxws:endpoint&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  46:</span>     </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  47:</span>         &lt;!-- Enable message logging <span style="color:#0000ff;">using</span> the CXF logging feature --&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  48:</span>     &lt;cxf:bus&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  49:</span>         &lt;cxf:features&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  50:</span>             &lt;cxf:logging /&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  51:</span>         &lt;/cxf:features&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  52:</span>     &lt;/cxf:bus&gt;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  53:</span> &lt;/beans&gt;</pre>
</p></div>
</div>
<p>Create a WAR out of this Project and deploy it in Apache Tomcat. And try to access the WSDL URL</p>
<p>&#160;<a href="http://localhost:8080/CXFExample/ProductService?wsdl">http://localhost:8080/CXFExample/ProductService?wsdl</a>.</p>
<p><strong><u>Other related posts:</u></strong></p>
<p>1. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/" target="_blank">Creating Web services using Apache CXF (Part 1) : The Basics.</a></p>
<p>2. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/" target="_blank">Creating Web services using Apache CXF (Part 2) : Development</a>.</p>
<p>3. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/" target="_blank">Creating Web services using Apache CXF (Part 3) : Configuration</a>.</p>
<p>4. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/" target="_blank">Creating Web services using Apache CXF (Part 4): Testing</a>.</p>
<br />Posted in apache, Celtix, CXF, web, webservices  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/587/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/587/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/587/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=587&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Web services using Apache CXF (Part 2): Development</title>
		<link>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/</link>
		<comments>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 13:50:59 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[Xfire]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/</guid>
		<description><![CDATA[We need to set-up the project&#160; environment first. Please download the following JARs. Versions Used : CXF 2.2.2&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Download Link : CXF Site&#160;Download Link Spring 2.5.6&#160;&#160;&#160;&#160;&#160;&#160; Download Link : SpringSource Download site The following jars are required for all CXF usage: But you will be getting it through CXF Download. - cxf.jar - commons-logging.jar - &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=580&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We need to set-up the project&#160; environment first. Please download the following JARs.</p>
<p>Versions Used : </p>
<blockquote><p>CXF 2.2.2&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Download Link : <a href="http://cxf.apache.org/download.html" target="_blank">CXF Site</a>&#160;<a href="http://cxf.apache.org/download.html" target="_blank">Download Link</a></p>
<p>Spring 2.5.6&#160;&#160;&#160;&#160;&#160;&#160; Download Link : <a href="http://www.springsource.org/download" target="_blank">SpringSource Download site</a></p>
<p>The following jars are required for all CXF usage: But you will be getting it through CXF Download.      <br /><em>- cxf.jar        <br />- commons-logging.jar         <br />- geronimo-activation.jar (Or the Sun equivalent) [6]         <br />- geronimo-annotation.jar (Or the Sun equivalent) [6]         <br />- geronimo-javamail.jar (Or the Sun equivalent) [6]         <br />- geronimo-stax-api.jar (Or the Sun equivalent) [6]         <br />- neethi.jar         <br />- jaxb-api.jar&#160; [6]         <br />- jaxb-impl.jar         <br />- XmlSchema.jar         <br />- wstx-asl.jar&#160; [6]         <br />- wsdl4j.jar </em></p>
<p><em>The following jars are required for XML catalog support:        <br />- xml-resolver.jar </em></p>
<p><em>For Java2WSDL and WSDL2Java:        <br />- The above jars         <br />- jaxb-xjc.jar         <br />- velocity.jar         <br />- commons-collections.jar         <br />- commons-lang.jar </em></p>
<p><em>For JAX-WS support:        <br />- geronimo-ws-metadata.jar [6]         <br />- geronimo-jaxws_2.1_spec-1.0.jar (Or the Sun equivalent) [6]         <br />- saaj-api.jar [6]         <br />- saaj-impl.jar [6]         <br />- asm.jar (semi-optional, helps with performance of wrapper types and is         <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; required when adding JAXB annotations onto the SEI methods and         <br />&#160;&#160;&#160; parameters.) </em></p>
<p><em>For XML Configuration support:        <br />- aopalliance.jar         <br />- spring-beans.jar         <br />- spring-context.jar         <br />- spring-core.jar         <br />- spring.web.jar         <br />- FastInfoset.jar </em></p>
<p><em>For standalone HTTP support:        <br />- geronimo-servlet.jar         <br />- jetty.jar         <br />- jetty-util.jar         <br />- sl4j.jar &amp; sl4j-jdk14.jar (optional &#8211; but improves logging)         <br />For Aegis support:         <br />- jdom.jar (optional, if you want to map xsd:anyType to JDOM) </em></p>
<p><em>For WS-Security support:        <br />- bcprov-jdk15.jar         <br />- xalan.jar         <br />- serializer.jar         <br />- wss4j.jar         <br />- xmlsec.jar </em></p>
<p><em>For HTTP Binding support:        <br />- jra.jar         <br />- jettison.jar (Needed for JSON services only) </em></p>
<p><em>For JAX-RS support:        <br />- abdera*         <br />- axiom*         <br />- jsr311-api.jar         <br />- jettison.jar (Needed for JSON services only) </em></p>
<p><em>For JMS transport        <br />- geronimo-jms.jar (Or the Sun equivalent)         <br />- spring-jms.jar </em></p>
<p><em>For CORBA support:        <br />- antlr.jar</em></p>
<p>If you want to use Aegis databinding which is providing by CXF then:</p>
<p>Download :<a href="http://www.jdom.org/downloads/index.html" target="_blank">jdom-1.0.jar</a></p>
<p>For Spring you can download its <a href="http://www.springsource.org/download" target="_blank">latest version say 2.5.</a></p>
</blockquote>
<p><font color="#333333"><strong>Step 2: Creating a Project</strong></font></p>
<ul>
<li><font color="#333333">Open your IDE ( I am using Eclipse) and create a Web project. Lets say with Name CXFExample. </font></li>
</ul>
<p><a href="http://lijinjoseji.files.wordpress.com/2009/06/project.jpg"><img title="Project" style="display:inline;border-width:0;" height="310" alt="Project" src="http://lijinjoseji.files.wordpress.com/2009/06/project_thumb.jpg?w=259&#038;h=310" width="259" border="0" /></a> </p>
<ul>
<li><font color="#333333">Create a package say “com.your.company.service”</font> </li>
<li><font color="#333333">Create a POJO class with a name say “Product”. And include some properties like productName etc.</font> </li>
</ul>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:99.35%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;height:393px;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> package com.your.company.service;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> import org.apache.cxf.aegis.type.java5.IgnoreProperty;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> <span style="color:#0000ff;">public</span> final <span style="color:#0000ff;">class</span> Product {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span>     <span style="color:#0000ff;">private</span> String itemName;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>     <span style="color:#0000ff;">private</span> String category;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>     <span style="color:#0000ff;">private</span> <span style="color:#0000ff;">double</span> price;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span>     <span style="color:#0000ff;">private</span> String details;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>     <span style="color:#0000ff;">public</span> Product() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>     <span style="color:#0000ff;">public</span> Product(String itemName, String category, <span style="color:#0000ff;">double</span> price,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>             String details) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>         <span style="color:#0000ff;">this</span>.itemName = itemName;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>         <span style="color:#0000ff;">this</span>.category = category;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>         <span style="color:#0000ff;">this</span>.price = price;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>         <span style="color:#0000ff;">this</span>.details = details;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>     <span style="color:#0000ff;">public</span> String getItemName() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         <span style="color:#0000ff;">return</span> itemName;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> setItemName(String itemName) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>         <span style="color:#0000ff;">this</span>.itemName = itemName;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>     <span style="color:#0000ff;">public</span> String getCategory() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>         <span style="color:#0000ff;">return</span> category;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  33:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  34:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> setCategory(String category) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  35:</span>         <span style="color:#0000ff;">this</span>.category = category;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  36:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  37:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  38:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">double</span> getPrice() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  39:</span>         <span style="color:#0000ff;">return</span> price;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  40:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  41:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  42:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> setPrice(<span style="color:#0000ff;">double</span> price) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  43:</span>         <span style="color:#0000ff;">this</span>.price = price;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  44:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  45:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  46:</span>     @IgnoreProperty</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  47:</span>     <span style="color:#0000ff;">public</span> String getDetails() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  48:</span>         <span style="color:#0000ff;">return</span> details;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  49:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  50:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  51:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> setDetails(String details) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  52:</span>         <span style="color:#0000ff;">this</span>.details = details;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  53:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  54:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  55:</span> }</pre>
</p></div>
</div>
<p>Note that we used one Annotation from Aegis. Its just to get some idea about that annotation. As you know Aegis is using for data binding. As the annotation denotes if we are mentioning it is not needed in the WSDL file.</p>
<ul>
<li>Creating the Service Interface </li>
</ul>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> package com.your.company.service;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> import java.util.List;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span> import javax.jws.WebParam;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> import javax.jws.WebService;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span> @WebService</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">interface</span> ProductService {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>     List&lt;Product&gt; getProducts();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>     <span style="color:#0000ff;">void</span> addProduct(@WebParam(name = <span style="color:#006080;">&quot;product&quot;</span>) Product product);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> addProducts(@WebParam(name = <span style="color:#006080;">&quot;products&quot;</span>) List&lt;Product&gt; products);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span> }</pre>
</p></div>
</div>
<p>Here we are using @WebService annotation and @WebParam Annotations. They are <a href="http://java.sun.com/javaee/5/docs/api/javax/jws/package-summary.html">JAX-WS annotations</a>.</p>
<p>@WebService is using to denote this Interface as the Web Service Interface. So while creating WSDL file this will consider.</p>
<p>@WebParam is using to name the Arguments in the WSDL file. Default it will be like Arg0, Arg1 etc. But if we are giving some names then that will be more identifiable in the WSDL.</p>
<ul>
<li>Create the Service Implementation class </li>
</ul>
<div style="border-right:gray 1px solid;border-top:gray 1px solid;font-size:8pt;overflow:auto;border-left:gray 1px solid;width:97.5%;cursor:text;line-height:12pt;border-bottom:gray 1px solid;font-family:consolas, &#39;background-color:#f4f4f4;max-height:200px;margin:20px 0 10px;padding:4px;">
<div style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;padding:0;">
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   1:</span> package com.your.company.service;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   2:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   3:</span> import java.util.ArrayList;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   4:</span> import java.util.List;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   5:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   6:</span> import javax.jws.WebParam;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   7:</span> import javax.jws.WebService;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   8:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">   9:</span> @WebService(endpointInterface = <span style="color:#006080;">&quot;edu.web.service.ProductService&quot;</span>)</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  10:</span> <span style="color:#0000ff;">public</span> final <span style="color:#0000ff;">class</span> ProductServiceImpl implements ProductService {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  11:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  12:</span>     <span style="color:#0000ff;">public</span> List&lt;Product&gt; getProducts() {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  13:</span>         List&lt;Product&gt; products = <span style="color:#0000ff;">new</span> ArrayList&lt;Product&gt;();</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  14:</span>         products.add(<span style="color:#0000ff;">new</span> Product(<span style="color:#006080;">&quot;SpringInAction&quot;</span>, <span style="color:#006080;">&quot;Manning&quot;</span>, 200,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  15:</span>                 <span style="color:#006080;">&quot;Book about Spring&quot;</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  16:</span>         products.add(<span style="color:#0000ff;">new</span> Product(<span style="color:#006080;">&quot;EJB3InAction&quot;</span>, <span style="color:#006080;">&quot;Manning&quot;</span>, 200,</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  17:</span>                 <span style="color:#006080;">&quot;Book about EJB3&quot;</span>));</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  18:</span>         <span style="color:#0000ff;">return</span> products;</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  19:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  20:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  21:</span>     @Override</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  22:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> addProduct(Product product) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  23:</span>         System.<span style="color:#0000ff;">out</span>.println(product);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  24:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  25:</span>&#160; </pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  26:</span>     @Override</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  27:</span>     <span style="color:#0000ff;">public</span> <span style="color:#0000ff;">void</span> addProducts(@WebParam(name = <span style="color:#006080;">&quot;products&quot;</span>) List&lt;Product&gt; products) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  28:</span>         <span style="color:#0000ff;">for</span> (Product product : products) {</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  29:</span>             System.<span style="color:#0000ff;">out</span>.println(product);</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  30:</span>         }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:white;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  31:</span>     }</pre>
<pre style="font-size:8pt;overflow:visible;width:100%;color:black;line-height:12pt;font-family:consolas, &#39;background-color:#f4f4f4;border-style:none;margin:0;padding:0;"><span style="color:#606060;">  32:</span> }</pre>
</p></div>
</div>
<p>Here we are writing the Impls of our Interface methods. <code>@WebService</code> annotation is marking this class as a web service implementation</p>
<p>In the next PART we will be discussing about the Configurations.</p>
<p><strong><u>Other related posts:</u></strong></p>
<p>1. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/" target="_blank">Creating Web services using Apache CXF (Part 1) : The Basics.</a></p>
<p>2. <a href="http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/" target="_blank">Creating Web services using Apache CXF (Part 2) : Development</a>.</p>
<p>3. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-3-configurations/" target="_blank">Creating Web services using Apache CXF (Part 3) : Configuration</a>.</p>
<p>4. <a href="http://lijinjoseji.wordpress.com/2009/06/11/creating-web-services-using-apache-cxf-part-4-testing/" target="_blank">Creating Web services using Apache CXF (Part 4): Testing</a>.</p>
<br />Posted in apache, Celtix, CXF, web, webservices, Xfire  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/580/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/580/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/580/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=580&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-2-development/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>

		<media:content url="http://lijinjoseji.files.wordpress.com/2009/06/project_thumb.jpg" medium="image">
			<media:title type="html">Project</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating Web services using Apache CXF (Part 1) : The Basics.</title>
		<link>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/</link>
		<comments>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 12:02:09 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Spring Framework]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[Xfire]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/</guid>
		<description><![CDATA[As we discussed in the previous post, CXF is the combination of two projects: Celtix developed by IONA and XFire developed by Codehaus working together at the Apache Software Foundation. If you want an Enterprise support&#160; for CXF then please find the following links. Click here to Read Full Article Posted in apache, Celtix, CXF, &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=578&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As we discussed in the previous post, CXF is the combination of two projects: Celtix developed by IONA and <a href="http://en.wikipedia.org/wiki/Codehaus_XFire">XFire</a> developed by Codehaus working together at the <a href="http://en.wikipedia.org/wiki/Apache_Software_Foundation">Apache Software Foundation</a>.</p>
<blockquote><p>If you want an Enterprise support&#160; for CXF then please find the following links.</p>
<p><a href="http://minddiary.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/">Click here to Read Full Article</a></p>
<p><a href="http://minddiary.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/"><img alt="" src="http://lijinjoseji.files.wordpress.com/2008/02/readfull.jpg?w=199&#038;h=52" title="Read Full Article" class="aligncenter" width="199" height="52" /></a></p>
<br />Posted in apache, Celtix, CXF, Spring, Spring Framework, web, Web Applications, webservices, Xfire  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/578/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/578/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/578/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=578&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/10/creating-web-services-using-apache-cxf-part-1-the-basics/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>

		<media:content url="http://lijinjoseji.files.wordpress.com/2008/02/readfull.jpg?w=199" medium="image">
			<media:title type="html">Read Full Article</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache CXF- An ultimate web service open source framework : Lets start learning&#8230;</title>
		<link>http://orangeslate.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/</link>
		<comments>http://orangeslate.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 08:43:15 +0000</pubDate>
		<dc:creator>Lijin</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Celtix]]></category>
		<category><![CDATA[CXF]]></category>
		<category><![CDATA[jax-ws]]></category>
		<category><![CDATA[Spring]]></category>
		<category><![CDATA[Spring Framework]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[webservices]]></category>
		<category><![CDATA[Xfire]]></category>

		<guid isPermaLink="false">http://lijinjoseji.wordpress.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/</guid>
		<description><![CDATA[Apache CXF is an open source services framework which is a result of the merge between the XFire and Celtix projects. CXF helps us build and develop services using JAX-WS. These services can speak a variety of protocols such as SOAP, XML/HTTP, RESTful HTTP, or CORBA and work over a variety of transports such as &#8230; <span class="more-link"><a href="http://orangeslate.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/">Continue reading &#187;</a></span><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=577&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Apache CXF is an open source services framework which is a result of the <a href="http://xfire.codehaus.org/XFire+and+Celtix+Merge">merge between the XFire and Celtix projects</a>. CXF helps us build and develop services using JAX-WS. These services can speak a variety of protocols such as SOAP, XML/HTTP, RESTful HTTP, or CORBA and work over a variety of transports such as HTTP, JMS or JBI.</p>
<p><a href="http://minddiary.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/">Click here to Read Full Article</a></p>
<p><a href="http://minddiary.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/"><img alt="" src="http://lijinjoseji.files.wordpress.com/2008/02/readfull.jpg?w=199&#038;h=52" title="Read Full Article" class="aligncenter" width="199" height="52" /></a></p>
<br />Posted in apache, Celtix, CXF, jax-ws, Spring, Spring Framework, web, Web Applications, webservices, Xfire  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lijinjoseji.wordpress.com/577/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lijinjoseji.wordpress.com/577/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lijinjoseji.wordpress.com/577/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=orangeslate.com&amp;blog=383653&amp;post=577&amp;subd=lijinjoseji&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://orangeslate.com/2009/06/10/apache-cxf-an-ultimate-web-service-open-source-framework-lets-start-learning/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Lijin</media:title>
		</media:content>

		<media:content url="http://lijinjoseji.files.wordpress.com/2008/02/readfull.jpg?w=199" medium="image">
			<media:title type="html">Read Full Article</media:title>
		</media:content>
	</item>
	</channel>
</rss>
