kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 1 | <?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
|
| 8 | the open Apache Axis platform. Both Axis1 and Axis2 are supported by the Web
|
| 9 | services tools.</shortdesc>
|
| 10 | <prolog><metadata>
|
kprice | e0e059a | 2008-05-14 20:04:50 +0000 | [diff] [blame] | 11 | <keywords><indexterm keyref="caxis2tover|1|AxisruntimeenvironmentWebservicesoverview"
|
| 12 | status="unchanged">Axis2 runtime environment<indexterm>Web services<indexterm>overview</indexterm></indexterm></indexterm>
|
| 13 | <indexterm keyref="caxis2tover|2|WebservicesAxisruntimeenvironment" status="unchanged">Web
|
| 14 | services<indexterm>Axis2 runtime environment<indexterm>overview</indexterm></indexterm></indexterm>
|
kprice | 6decb03 | 2008-04-01 19:05:41 +0000 | [diff] [blame] | 15 | </keywords>
|
| 16 | </metadata></prolog>
|
| 17 | <conbody>
|
| 18 | <section><title>Apache Axis2 Overview</title><p>Axis2 evolved from the Apache
|
| 19 | Axis1.x architecture and is more flexible, configurable, and efficient, while
|
| 20 | retaining the positive aspects of Apache Axis1.x architecture.</p><p>The Web
|
| 21 | service tools provided with this product support the following specifications
|
| 22 | when 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.
|
| 27 | Axis2 can be deployed to any server that supports <tm tmclass="special" tmowner="Sun Microsystems, Inc."
|
| 28 | tmtype="tm" trademark="Java">Java</tm> Servlet 2.2 specification or higher,
|
| 29 | including <tm tmclass="ibm" tmowner="IBM Corporation" tmtype="reg" trademark="IBM">IBM</tm> <tm
|
| 30 | tmclass="ibm" tmowner="IBM Corporation" tmtype="reg" trademark="WebSphere">WebSphere</tm> Application
|
| 31 | Server 6.1, and Apache Tomcat server. For more information on Axis2, refer
|
| 32 | to <xref format="html" href="http://ws.apache.org/axis2/" scope="external">http://ws.apache.org/axis2</xref>. </p><p>The
|
| 33 | support for Apache Axis2 is limited to validation that the application is
|
| 34 | invoking the Axis2 emitters correctly. Support for other Axis2 issues should
|
| 35 | be 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
|
| 37 | Web services in the Apache Axis1.x runtime, before creating a Web service
|
| 38 | using Apache Axis2 you must download the Axis2 runtime and install it the
|
| 39 | workbench 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"
|
| 41 | href="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"
|
| 44 | scope="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"
|
| 46 | scope="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
|
| 49 | the workbench. In the workbench, open <menucascade><uicontrol>Window</uicontrol>
|
| 50 | <uicontrol>Preferences</uicontrol><uicontrol>Web services</uicontrol><uicontrol>Axis2
|
| 51 | Preferences</uicontrol></menucascade>. On the <uicontrol>Axis2 Runtime</uicontrol> tab,
|
| 52 | browse to the location where you installed Apache Axis2. A message will display
|
| 53 | if the runtime is installed successfully.</li>
|
| 54 | </ol></p></section>
|
| 55 | <section><title>Creating projects for Axis2 Web services</title><p>The Web
|
| 56 | service wizards will automatically add the correct facets to a dynamic Web
|
| 57 | project. However if you want to manually create a dynamic Web project enabled
|
| 58 | for 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
|
| 63 | to an EAR</uicontrol> is not selected. If you do not clear this checkbox you
|
| 64 | will be unable to select the Tomcat server. If you are deploying to <tm tmclass="ibm"
|
| 65 | tmowner="IBM Corporation" tmtype="reg" trademark="WebSphere">WebSphere</tm> Application
|
| 66 | server 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
|
| 68 | your Web service. If it is not listed, click <uicontrol>New</uicontrol> and
|
| 69 | browse 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
|
| 75 | project</uicontrol><uicontrol>Axis2 Web Services</uicontrol></menucascade>,
|
| 76 | and click <uicontrol>Finish</uicontrol>.</li>
|
| 77 | <li>If you have chosen to deploy to a server in which the Axis2 JAR files
|
| 78 | will reside on the server (such as WebSphere Application Server), you must
|
| 79 | change the classloading for the EAR from PARENT_FIRST to PARENT_LAST. Expand
|
| 80 | the EAR associated with your Axis2 project, and launch its deployment descriptor.
|
| 81 | On the <uicontrol>Deployment</uicontrol> tab, expand the <uicontrol>Application</uicontrol> section.
|
| 82 | Change the <uicontrol>Classloader mode</uicontrol> field to PARENT_LAST and
|
| 83 | save 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>
|