blob: 51519149c467af63def55bb86fd639f9fb902931 [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="(C) Copyright 2005" />
<meta name="DC.rights.owner" content="(C) Copyright 2005" />
<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="task" name="DC.Type" />
<meta name="DC.Title" content="Publishing a Web service" />
<meta name="abstract" content="The Web service, also known as the business service, describes a Web service's endpoint and where its WSDL file resides. The WSDL file lists the operations that service provides." />
<meta name="description" content="The Web service, also known as the business service, describes a Web service's endpoint and where its WSDL file resides. The WSDL file lists the operations that service provides." />
<meta content="XHTML" name="DC.Format" />
<meta content="tpublish" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/commonltr.css" type="text/css" rel="stylesheet" />
<title>Publishing a Web service</title>
</head>
<body id="tpublish"><a name="tpublish"><!-- --></a>
<h1 class="topictitle1">Publishing a Web service</h1>
<div><p>The Web service, also known as the business service, describes
a Web service's endpoint and where its WSDL file resides. The WSDL file lists
the operations that service provides.</p>
<div class="p">Prerequisites:<ol>
<li> <a href="treg.html">Register with a registry</a>.</li>
<li> <a href="tstrtexp.html">Launch the Web Services Explorer</a>.</li>
<li> <a href="taddreg.html">Add the registry to the Web Services Explorer</a>.</li>
<li>Create a Web service.</li>
<li>Deploy the Web service.</li>
<li> <a href="tpubent.html">Publish a Business Entity</a>.</li>
</ol>
</div>
<div class="section"><p>You can publish a business service using two different publication
formats: simple and advanced.</p>
</div>
</div>
<div class="nested1" xml:lang="en-us" id="d0e74"><a name="d0e74"><!-- --></a>
<h2 class="topictitle2">Publish a business service using the simple option</h2>
<div>
<div class="section"><p>To publish a Web service using the simple option:</p>
</div>
<ol>
<li><span>In the Web Services Explorer Navigator pane, select the business
entity for which you want to publish the business service.</span></li>
<li><span>In the Actions pane toolbar, click the <strong>Publish Service</strong> icon
<img src="../images/pubserv.gif" alt="Picture of the Publish Service icon." />.</span></li>
<li><span>Select the <strong>Simple</strong> radio button.</span></li>
<li><span>Enter the publish URL, your user ID, password, WSDL URL, business
name, and business description in the respective fields.</span></li>
<li><span>Click <strong>Go</strong> to publish your business entity.</span></li>
</ol>
<div class="section"><p> <strong>Important:</strong> Ensure that you select the service document,
since the service element is the basis for the Business Service that you will
publish. You cannot publish a Business Service using a WSDL document that
does not have service elements.</p>
<p>The Web Services Explorer is automatically
updated with your published Web service. The registry contains pointers to
the URL of the WSDL service document of the Web service. Businesses can now
discover and integrate with your Web service.</p>
</div>
</div>
</div>
<div class="nested1" xml:lang="en-us" id="d0e113"><a name="d0e113"><!-- --></a>
<h2 class="topictitle2">Publish a business service using the advanced option</h2>
<div>
<div class="section"><p>To publish a Web service using the advanced option:</p>
</div>
<ol>
<li><span>In the Web Services Explorer Navigator pane, select the business
entity for which you want to publish the business service.</span></li>
<li><span>In the Actions pane toolbar, click the <strong>Publish Service</strong> icon
<img src="../images/pubserv.gif" alt="Picture of the Publish Service icon." />.</span></li>
<li><span>Select the <strong>Advanced</strong> radio button.</span></li>
<li><span>Enter the publish URL, your user ID, password, and WSDL URL in
the respective fields.</span></li>
<li><span>Click <strong>Get</strong> or <span class="uicontrol">Find</span> to associate the
service with a business entity.</span></li>
<li><span>Click <strong>Get</strong> or <span class="uicontrol">Find</span> to associate a
specific service interface with the service.</span></li>
<li><span>Click <strong>Add</strong> to create business service names.</span></li>
<li><span>Click <strong>Add</strong> to create business service descriptions.</span>
</li>
<li><span>Click <strong>Add</strong> to create categories. Enter your business service
categories. Select a category type from the drop down list. Click <strong>Browse</strong> to
open the Categories pane.  Navigate through the hierarchical taxonomy
and select the appropriate classification for your business service, then
exit the Categories pane.</span></li>
<li><span>Click <strong>Go</strong> to publish your business entity.</span></li>
</ol>
<div class="section"><p> <strong>Important:</strong> Ensure that you select the service document,
since the service element is the basis for the Business Service that you will
publish.  You cannot publish a Business Service using a WSDL document
that does not have service elements.</p>
<p>The Web Services Explorer
is automatically updated with your published Web service. The registry contains
pointers to the URL of the WSDL service document of the Web service. Businesses
can now discover and integrate with your Web service.</p>
</div>
</div>
<div>
<div class="linklist"><strong>Related Concepts</strong><br />
<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cwsinwsa.html"> Tools for Web services development</a></div>
<div><a href="../../org.eclipse.jst.ws.doc.user/concepts/cws.html">Web services development</a></div>
<div><a href="../concepts/cuddi.html" title="Universal Description, Discovery, and Integration (UDDI) specification defines a way to publish and discover information about Web services.">Universal Description, Discovery, and Integration (UDDI)</a></div></div>
<div class="linklist"><strong>Related Tasks</strong><br />
<div><a href="tuddiexp.html" title="Through UDDI and WSIL, other applications can discover WSDL documents and bind with them to execute transactions or perform other business processes.">Publishing Web services and business entities</a></div>
<div><a href="tstrtexp.html" title="The Web services tools allows you to launch the Web Services Explorer in several ways.">Launching the Web Services Explorer</a></div>
<div><a href="treg.html" title="In order to publish your business entity and Web service to a UDDI registry, you must first register with the registry that you want to use.">Registering with a UDDI registry</a></div></div>
<div class="linklist"><strong>Related Reference</strong><br />
<div><a href="../ref/ruddi.html" title="Once you have registered and logged in to the UDDI registry that you want to use, you can register your Web service.  Registration of a service involves four core data structure types: business information, service information, binding information, and information describing the specifications for services. The relationship between these data types is described in Figure 1.">Data structure types (UDDI registry)</a></div></div>
</div>
</div>
</body>
</html>