<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FWeb_Services_SOA%2FPOJO_Web_service</id>
		<title>Java/Web Services SOA/POJO Web service - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FWeb_Services_SOA%2FPOJO_Web_service"/>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Web_Services_SOA/POJO_Web_service&amp;action=history"/>
		<updated>2026-04-07T12:06:20Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Web_Services_SOA/POJO_Web_service&amp;diff=9195&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Web_Services_SOA/POJO_Web_service&amp;diff=9195&amp;oldid=prev"/>
				<updated>2010-06-01T07:27:30Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 07:27, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://jexp.ru/index.php?title=Java/Web_Services_SOA/POJO_Web_service&amp;diff=9194&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/Web_Services_SOA/POJO_Web_service&amp;diff=9194&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== An example POJO Web service: how to expose the methods of a Java class as a Web service using Axis2. ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Sample: POJO (Plain Old Java Object)&lt;br /&gt;
====================================&lt;br /&gt;
Introduction&lt;br /&gt;
============&lt;br /&gt;
This is an example POJO Web service. It shows how to expose the methods of a Java class as a Web&lt;br /&gt;
service using Aixs2.&lt;br /&gt;
&lt;br /&gt;
Prerequisites  &lt;br /&gt;
=============&lt;br /&gt;
To build the sample service you must have ant-1.6.x installed in your system. &lt;br /&gt;
To set AXIS2_HOME in Unix/Linux type:&lt;br /&gt;
$export AXIS2_HOME=&amp;lt;path to axis2 distribution&amp;gt;&lt;br /&gt;
Building the Service&lt;br /&gt;
====================&lt;br /&gt;
To build the sample service, type: $ant generate.service or just ant&lt;br /&gt;
This will build the AddressBookService.aar in the build directory and copy it to the&lt;br /&gt;
&amp;lt;AXIS2_HOME&amp;gt;/repository/services directory.&lt;br /&gt;
You can start the Axis2 server by running either axis2server.bat (on Windows) or axis2server.sh&lt;br /&gt;
(on Linux)that are located in &amp;lt;AXIS2_HOME&amp;gt;/bin directory.&lt;br /&gt;
The WSDL for this service should be viewable at:&lt;br /&gt;
http://&amp;lt;yourhost&amp;gt;:&amp;lt;yourport&amp;gt;/axis2/services/AddressBookService?wsdl &lt;br /&gt;
(e.g. http://localhost:8080/axis2/services/AddressBookService?wsdl)&lt;br /&gt;
src/sample/addressbook/rpcclient/AddressBookRPCClient.java is a Client that uses RPCServiceClient&lt;br /&gt;
to invoke the methods of this web services just like the method invocations of a Java object.&lt;br /&gt;
&lt;br /&gt;
Running the Client&lt;br /&gt;
==================&lt;br /&gt;
To compile and run, type&lt;br /&gt;
$ant rpc.client&lt;br /&gt;
src/sample/addressbook/adbclient/AddressBookADBClient is Client that uses a generated stub with ADB&lt;br /&gt;
to invoke the methods of this web service.&lt;br /&gt;
To generate the stub, compile and run, type&lt;br /&gt;
$ant adb.client -Dwsdl=http://&amp;lt;yourhost&amp;gt;:&amp;lt;yourport&amp;gt;/axis2/services/AddressBookService?wsdl&lt;br /&gt;
Help&lt;br /&gt;
====&lt;br /&gt;
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== How to expose the getters and setters of a Service: this demo uses the Spring to initialize the property of the Service ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
POJO Web Services using Apache Axis2- Sample 2&lt;br /&gt;
==============================================&lt;br /&gt;
This sample contains source code for the xdocs/1_1/pojoguide.html document found in &lt;br /&gt;
the extracted Axis2 Documents Distribution. For a more detailed description on the &lt;br /&gt;
source code kindly see this &amp;quot;POJO Web Services using Apache Axis2&amp;quot; document.&lt;br /&gt;
In this specific sample you&amp;quot;ll be shown how to take a POJO  (Plain Old Java Object) &lt;br /&gt;
based on the Spring Framework, and deploy that as an AAR packaged Web service on Tomcat. &lt;br /&gt;
This is a quick way to get a Web service up and running in no time. &lt;br /&gt;
Introduction&lt;br /&gt;
============&lt;br /&gt;
This sample shows how to expose the getters and setters of WeatherSpringService that &lt;br /&gt;
takes Weather type Java Object as the argument and the return type. It uses the Spring &lt;br /&gt;
framework to initialize the weather property of the WeatherSpringService.&lt;br /&gt;
&lt;br /&gt;
Pre-Requisites&lt;br /&gt;
==============&lt;br /&gt;
Apache Ant 1.6.2 or later&lt;br /&gt;
Spring-1.2.6.jar or later &lt;br /&gt;
You need to have this jar in your build and runtime class path. The easiest way to do this &lt;br /&gt;
is to copy it to Axis2_HOME/lib directory.&lt;br /&gt;
Building the Service&lt;br /&gt;
====================&lt;br /&gt;
Type $ant from Axis2_HOME/samples/pojoguidespring&lt;br /&gt;
&lt;br /&gt;
Running the Client&lt;br /&gt;
==================&lt;br /&gt;
Type $ant rpc.client from from Axis2_HOME/samples/pojoguidespring&lt;br /&gt;
Help&lt;br /&gt;
====&lt;br /&gt;
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== In this sample, we are deploying a POJO after writing a services.xml and creating an aar ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Axis2 Quick Start Guide- Sample 1&lt;br /&gt;
=================================&lt;br /&gt;
This sample contains source code for the xdocs/1_1/quickstartguide.html document found in &lt;br /&gt;
the extracted Axis2 Documents Distribution. For a more detailed description on the &lt;br /&gt;
source code kindly see this &amp;quot;Axis2 Quick Start Guide&amp;quot; document.&lt;br /&gt;
Introduction&lt;br /&gt;
============&lt;br /&gt;
In this sample, we are deploying a POJO after writing a services.xml and&lt;br /&gt;
creating an aar. We also test the getPrice and update methods using a browser.&lt;br /&gt;
Pre-Requisites&lt;br /&gt;
==============&lt;br /&gt;
Apache Ant 1.6.2 or later&lt;br /&gt;
Building the Service&lt;br /&gt;
====================&lt;br /&gt;
Type &amp;quot;ant generate.service&amp;quot; or just &amp;quot;ant&amp;quot; from Axis2_HOME/samples/quickstart directory &lt;br /&gt;
and then deploy the Axis2_HOME/samples/quickstart/build/StockQuoteService.aar&lt;br /&gt;
Generate WSDL&lt;br /&gt;
==============&lt;br /&gt;
Type &amp;quot;ant generate.wsdl&amp;quot; from Axis2_HOME/samples/quickstart directory which generates a &lt;br /&gt;
WSDL file for the above Web service and it will be placed in Axis2_HOME/samples/quickstart/build &lt;br /&gt;
directory.&lt;br /&gt;
Running the Client&lt;br /&gt;
==================&lt;br /&gt;
- From your browser, If you point to the following URL:&lt;br /&gt;
http://localhost:8080/axis2/services/StockQuoteService/getPrice?symbol=IBM&lt;br /&gt;
You will get the following response:&lt;br /&gt;
&amp;lt;ns:getPriceResponse&amp;gt;&amp;lt;ns:return&amp;gt;42.0&amp;lt;/ns:return&amp;gt;&amp;lt;/ns:getPriceResponse&amp;gt;&lt;br /&gt;
- If you invoke the update method like so:&lt;br /&gt;
http://localhost:8080/axis2/services/StockQuoteService/update?symbol=IBM&amp;amp;price=100&lt;br /&gt;
And then execute the first getPrice url. You can see that the price got updated.&lt;br /&gt;
Help&lt;br /&gt;
====&lt;br /&gt;
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== This sample shows how to expose a Java class as a web service ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
POJO Web Services using Apache Axis2- Sample 1&lt;br /&gt;
=============================================&lt;br /&gt;
This sample contains source code for the xdocs/1_1/pojoguide.html document found in &lt;br /&gt;
the extracted Axis2 Documents Distribution. For a more detailed description on the &lt;br /&gt;
source code kindly see this &amp;quot;POJO Web Services using Apache Axis2&amp;quot; document.&lt;br /&gt;
The above mentioned document shows you how to take a simple POJO (Plain Old Java &lt;br /&gt;
Object), and deploy it on Apache Tomcat as a Web service in the exploded directory &lt;br /&gt;
format. This is a quick way to get a Web service up and running in no time. &lt;br /&gt;
Introduction&lt;br /&gt;
============&lt;br /&gt;
This sample shows how to expose a Java class as a web service.  &lt;br /&gt;
The WeatherService Java class provides methods to get and set a Weather &lt;br /&gt;
type Java objects. The client uses RPCServiceClient to invoke those two &lt;br /&gt;
methods just as Java object method invocation.&lt;br /&gt;
Prerequisites&lt;br /&gt;
==============&lt;br /&gt;
Apache Ant 1.6.2 or later&lt;br /&gt;
Building the Service&lt;br /&gt;
====================&lt;br /&gt;
Type $ant from Axis2_HOME/samples/pojoguide&lt;br /&gt;
&lt;br /&gt;
Running the Client&lt;br /&gt;
==================&lt;br /&gt;
Type $ant rpc.client&lt;br /&gt;
&lt;br /&gt;
Help&lt;br /&gt;
====&lt;br /&gt;
Please contact axis-user list (axis-user@ws.apache.org) if you have any trouble running the sample.&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>