blob: 7bdad549a250e701f129ec10a7cacfef551929f0 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2008 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Creating Axis runtime environment Web services and clients using Web services Ant tasks" />
<meta name="abstract" content="If you prefer not to use the Web service wizard, you can use Ant files to create Web services and clients using the Axis runtime environment. The Web services Ant tasks can be run in two ways: through the Eclipse workspace using Run As &gt; Ant Build..., or they can be run headless through the command line. Once you have created your Web service, you can then deploy it to a server, test it, and publish it as a business entity or business service." />
<meta name="description" content="If you prefer not to use the Web service wizard, you can use Ant files to create Web services and clients using the Axis runtime environment. The Web services Ant tasks can be run in two ways: through the Eclipse workspace using Run As &gt; Ant Build..., or they can be run headless through the command line. Once you have created your Web service, you can then deploy it to a server, test it, and publish it as a business entity or business service." />
<meta content="Axis runtime environment, Web services, creating with Ant tasks, Axis runtime environment, creating with Ant tasks" name="DC.subject" />
<meta content="Axis runtime environment, Web services, creating with Ant tasks, Axis runtime environment, creating with Ant tasks" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/twbwsa.html" />
<meta scheme="URI" name="DC.Relation" content="../topics/twbwsclienta.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="creatingawebservicefromajavabean" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Creating Axis runtime environment Web services and clients using
Ant tasks</title>
</head>
<body id="creatingawebservicefromajavabean"><a name="creatingawebservicefromajavabean"><!-- --></a>
<h1 class="topictitle1">Creating Axis runtime environment Web services and clients using Web
services Ant tasks</h1>
<div><p>If you prefer not to use the Web service wizard, you can use Ant
files to create Web services and clients using the Axis runtime environment.
The Web services Ant tasks can be run in two ways: through the Eclipse workspace
using <span class="menucascade"><span class="uicontrol">Run As</span> &gt; <span class="uicontrol">Ant Build...</span>
</span>, or they can be run headless through the command line. Once
you have created your Web service, you can then deploy it to a server, test
it, and publish it as a business entity or business service.</p>
<div class="section"><h4 class="sectiontitle">Prerequisites</h4><p>Before you create a Web service or
client using the Ant tasks, you need to complete a few prerequisites.</p>
<ul>
<li>Install Apache Tomcat, create a server, and create a dynamic Web project
associated with that server as described in <a href="../../org.eclipse.jst.ws.axis.ui.doc.user/topics/ttomcatserv.html">Creating an Apache Tomcat server and Web project</a></li>
<li>Import the required Ant files into your workspace:<ol>
<li>Create a project.</li>
<li>Import the required Ant files. Select <span class="menucascade"><span class="uicontrol">File</span>
&gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Other</span> &gt; <span class="uicontrol">Web Services</span>
&gt; <span class="uicontrol">Ant Files</span> &gt; <span class="uicontrol">Next</span></span>.</li>
<li>Select the following:<ul>
<li>Web service runtime</li>
<li>Web service or client type</li>
<li>Location into which the ant files will be generated</li>
</ul>
Click <span class="uicontrol">Finish</span>.</li>
</ol>
Depending on the selections made on the previous panel, several files
may be imported into this project:<ul>
<li><em>runtime_servicetype</em>.xml - this is the Ant file.</li>
<li><em>runtime_servicetype</em>.properties - this is a sample Ant properties
file referenced by the Ant file. You can modify the properties in this file
to generate a Web service.</li>
</ul>
</li>
<li>Create a dynamic Web project for the Web service or client.</li>
</ul>
</div>
<div class="section"><h4 class="sectiontitle">Creating a Web service or client</h4><p>Once you've completed
the prerequisites you can do the following:</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="../topics/twbwsa.html">Creating a Web service using Ant tasks in the Workbench</a></strong><br />
You can use Ant through the Eclipse workspace to generate a Web service using the Axis run-time environment. Both top-down and bottom-up Web services development is supported with the Ant tasks.</li>
<li class="ulchildlink"><strong><a href="../topics/twbwsclienta.html">Creating a Web service client using Ant tasks</a></strong><br />
If you have a WSDL file you can use Ant through the Eclipse workspace to generate a Web service client using the Axis run-time environment.</li>
</ul>
</div>
</body>
</html>