blob: 5dfc4aba298f3df3b0a6ebfb4b73db206732d5f4 [file] [log] [blame]
kprice6decb032008-04-01 19:05:41 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2006, v.4002-->
3<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
4 "concept.dtd">
5<concept id="axisoverview" xml:lang="en-us">
6<title>Creating Web services with the Apache Axis2 runtime environments</title>
7<shortdesc>This runtime environment is for users who prefer to develop for
8the open Apache Axis platform. Both Axis1 and Axis2 are supported by the Web
9services tools.</shortdesc>
10<prolog><metadata>
kpricee0e059a2008-05-14 20:04:50 +000011<keywords><indexterm keyref="caxis2tover|1|AxisruntimeenvironmentWebservicesoverview"
12status="unchanged">Axis2 runtime environment<indexterm>Web services<indexterm>overview</indexterm></indexterm></indexterm>
13<indexterm keyref="caxis2tover|2|WebservicesAxisruntimeenvironment" status="unchanged">Web
14services<indexterm>Axis2 runtime environment<indexterm>overview</indexterm></indexterm></indexterm>
kprice6decb032008-04-01 19:05:41 +000015</keywords>
16</metadata></prolog>
17<conbody>
18<section><title>Apache Axis2 Overview</title><p>Axis2 evolved from the Apache
19Axis1.x architecture and is more flexible, configurable, and efficient, while
20retaining the positive aspects of Apache Axis1.x architecture.</p><p>The Web
21service tools provided with this product support the following specifications
22when creating Apache Axis2 Web services and clients:<ul>
23<li>SOAP 1.1 and 1.2</li>
24<li>WSDL 1.1, including both SOAP and HTTP bindings </li>
25<li>HTTP transports</li>
26</ul>The levels of Axis2 currently supported by the tools is 1.2 and 1.3.
27Axis2 can be deployed to any server that supports <tm tmclass="special" tmowner="Sun Microsystems, Inc."
28tmtype="tm" trademark="Java">Java</tm> Servlet 2.2 specification or higher,
29including <tm tmclass="ibm" tmowner="IBM Corporation" tmtype="reg" trademark="IBM">IBM</tm> <tm
30tmclass="ibm" tmowner="IBM Corporation" tmtype="reg" trademark="WebSphere">WebSphere</tm> Application
31Server 6.1, and Apache Tomcat server. For more information on Axis2, refer
32to <xref format="html" href="http://ws.apache.org/axis2/" scope="external">http://ws.apache.org/axis2</xref>. </p><p>The
33support for Apache Axis2 is limited to validation that the application is
34invoking the Axis2 emitters correctly. Support for other Axis2 issues should
35be directed to <xref format="html" href="http://ws.apache.org/axis2/" scope="external">http://ws.apache.org/axis2</xref></p></section>
36<section><title>Installing the Apache Axis2 runtime</title><p>Unlike creating
37Web services in the Apache Axis1.x runtime, before creating a Web service
38using Apache Axis2 you must download the Axis2 runtime and install it the
39workbench using the Web services Axis2 preferences page.<ol>
40<li>Download Apache Axis2 v1.2 or v1.3 from the following site: <xref format="html"
41href="http://ws.apache.org/axis2/download.cgi" scope="external">http://ws.apache.org/axis2/download.cgi</xref>.</li>
42<li>Follow the instructions in the appropriate Apache Axis2 installation guide: <ul>
43<li>Apache Axis2 v1.2<xref format="html" href="http://ws.apache.org/axis2/1_2/installationguide.html"
44scope="external">http://ws.apache.org/axis2/1_2/installationguide.html</xref></li>
45<li>Apache Axis2 v1.3<xref format="html" href="http://ws.apache.org/axis2/1_3/installationguide.html"
46scope="external">http://ws.apache.org/axis2/1_3/installationguide.html</xref></li>
47</ul></li>
48<li>Once the Apache Axis2 runtime is installed, you need to associate it with
49the workbench. In the workbench, open <menucascade><uicontrol>Window</uicontrol>
50<uicontrol>Preferences</uicontrol><uicontrol>Web services</uicontrol><uicontrol>Axis2
51Preferences</uicontrol></menucascade>. On the <uicontrol>Axis2 Runtime</uicontrol> tab,
52browse to the location where you installed Apache Axis2. A message will display
53if the runtime is installed successfully.</li>
54</ol></p></section>
55<section><title>Creating projects for Axis2 Web services</title><p>The Web
56service wizards will automatically add the correct facets to a dynamic Web
57project. However if you want to manually create a dynamic Web project enabled
58for Axis2 Web service development complete the following:<ol>
59<li>Create the service Web project by clicking <uicontrol>File > New > Project
60> Dynamic Web project</uicontrol>. Enter the following information: <ol>
61<li>Project Name: Type a project name</li>
62<li>If you are deploying to a Tomcat server, ensure that <uicontrol>Add project
63to an EAR</uicontrol> is not selected. If you do not clear this checkbox you
64will be unable to select the Tomcat server. If you are deploying to <tm tmclass="ibm"
65tmowner="IBM Corporation" tmtype="reg" trademark="WebSphere">WebSphere</tm> Application
66server you will need to add the project to an EAR.</li>
67<li>Target runtime: Select the version of the server to which you will deploy
68your Web service. If it is not listed, click <uicontrol>New</uicontrol> and
69browse to the location where it is installed.</li>
70<li>Configurations: Select the default configuration for your server type.</li>
71<li>Click <uicontrol>Finish</uicontrol>.</li>
72</ol></li>
73<li>Add the Axis2 facet. Right-click your project and click <menucascade>
74<uicontrol>Properties</uicontrol><uicontrol>Project Facets</uicontrol><uicontrol>Modify
75project</uicontrol><uicontrol>Axis2 Web Services</uicontrol></menucascade>,
76and click <uicontrol>Finish</uicontrol>.</li>
77<li>If you have chosen to deploy to a server in which the Axis2 JAR files
78will reside on the server (such as WebSphere Application Server), you must
79change the classloading for the EAR from PARENT_FIRST to PARENT_LAST. Expand
80the EAR associated with your Axis2 project, and launch its deployment descriptor.
81On the <uicontrol>Deployment</uicontrol> tab, expand the <uicontrol>Application</uicontrol> section.
82Change the <uicontrol>Classloader mode</uicontrol> field to PARENT_LAST and
83save your changes.</li>
84</ol></p></section>
85</conbody>
86<related-links>
87<linklist><title>Related Concepts</title>
88<link href="../../org.eclipse.jst.ws.doc.user/concepts/cws.dita" scope="peer">
89<linktext>Web services</linktext></link>
90<link href="../../org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.dita" scope="peer">
91<linktext>Tools for Web services development</linktext></link>
92<link href="../../org.eclipse.jst.ws.doc.user/concepts/cjaxrpc.dita" scope="peer">
93<linktext>JAX-RPC</linktext></link>
94</linklist>
95<linklist><title>Related Tasks</title>
96<link href="../../org.eclipse.jst.ws.doc.user/tasks/toverws.dita" scope="peer">
97<linktext> Developing Web services</linktext></link>
98</linklist>
99</related-links>
100</concept>