summaryrefslogtreecommitdiffstats
path: root/site/trunk/site-publish/build-your-first-web-services-with-tuscany.html
diff options
context:
space:
mode:
Diffstat (limited to 'site/trunk/site-publish/build-your-first-web-services-with-tuscany.html')
-rw-r--r--site/trunk/site-publish/build-your-first-web-services-with-tuscany.html346
1 files changed, 346 insertions, 0 deletions
diff --git a/site/trunk/site-publish/build-your-first-web-services-with-tuscany.html b/site/trunk/site-publish/build-your-first-web-services-with-tuscany.html
new file mode 100644
index 0000000000..aa892d0992
--- /dev/null
+++ b/site/trunk/site-publish/build-your-first-web-services-with-tuscany.html
@@ -0,0 +1,346 @@
+
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE- 2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+ <!-- generateKeywords macro -->
+ <META name="description" content="Apache Tuscany">
+ <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource">
+ <!-- generateKeywords macro end -->
+
+ <LINK type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css">
+ <LINK rel="SHORTCUT ICON" href="https://cwiki.apache.org/confluence/display/TUSCANY/$images/favicon.ico">
+ <TITLE>Apache Tuscany : Build your first Web Services with Tuscany</TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+
+ <BODY onload="init()">
+ <!-- topNav macro -->
+ <TABLE valign="top" border="0" cellspacing="0" cellpadding="0" width="100%" background="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg">
+ <TR>
+ <TD valing="top" align="left">
+ <A href="https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=TUSCANY&title=$siteroot"><IMG src="http://tuscany.apache.org/images/TuscanyLogoNEW_Text_120px_bg.jpg" height="91" width="25" border="0"></A>
+ </TD>
+ <TD>
+ <A href="http://tuscany.apache.org/"><IMG src="http://tuscany.apache.org/images/TuscanyLogo.jpg" border="0"></A>
+ </TD>
+
+ <TD width="100%">
+ &nbsp;
+ </TD>
+
+ <!-- Adds the edit page link to the top banner-->
+ <TD valign="bottom">
+ <DIV style="padding: 2px 10px; margin: 0px;">
+ <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=82971">
+ <IMG src="http://tuscany.apache.org/images/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></A>
+ </DIV>
+ </TD>
+
+ </TR>
+ </TABLE>
+ <!-- topNav macro end -->
+
+ <!-- breadCrumbs macro -->
+ <TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
+ <TR class="topBar">
+ <TD align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
+ &nbsp;<A href="home.html" title="Apache Tuscany">Apache Tuscany</A>&nbsp;&gt;&nbsp;<A href="home.html" title="Home">Home</A>&nbsp;&gt;&nbsp;<A href="sca-overview.html" title="SCA Overview">SCA Overview</A>&nbsp;&gt;&nbsp;<A href="sca-java.html" title="SCA Java">SCA Java</A>&nbsp;&gt;&nbsp;<A href="java-sca-documentation-menu.html" title="Java SCA Documentation Menu">Java SCA Documentation Menu</A>&nbsp;&gt;&nbsp;<A href="" title="Build your first Web Services with Tuscany">Build your first Web Services with Tuscany</A>
+ </TD>
+
+ <TD align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
+ <A href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</A> | <A href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</A>&nbsp;&nbsp;
+ </TD>
+ </TR>
+ </TABLE>
+ <!-- breadCrumbs macro end -->
+
+
+ <TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
+ <TR>
+ <TD align="left" valign="top">
+
+ <!-- pageContent macro -->
+ <DIV id="PageContent">
+
+ <DIV class="pagecontent">
+ <DIV class="wiki-content">
+ <H1><A name="BuildyourfirstWebServiceswithTuscany-BuildyourfirstWebServiceswithTuscany"></A>Build your first Web Services with Tuscany</H1>
+
+<P><A href="http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Create%20Your%20First%20Web%20Service%20with%20Apache%20Tuscany" class="external-link" rel="nofollow"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/star_yellow.gif" height="16" width="16" align="absmiddle" alt="" border="0"> &quot;Creating Your First Web Service with Apache Tuscany video&quot;</A><BR>
+This guide will give you step by step instructions on how to build your first web services.<BR>
+The first part, we will learn how we can add the Tuscany Runtime to Eclipse IDE.<BR>
+The second part, will show how easy is to create a webservices using Apache Tuscany.</P>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-InstalltheLatestTuscanyEclipsePlugin"></A>Install the Latest Tuscany Eclipse Plugin</H2>
+
+<P><A href="http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Installing%20the%20Apache%20Tuscany%20Eclipse%20Plugins" class="external-link" rel="nofollow"><IMG class="emoticon" src="https://cwiki.apache.org/confluence/images/icons/emoticons/star_yellow.gif" height="16" width="16" align="absmiddle" alt="" border="0"> &quot;Installing the Apache Tuscany Eclipse Plugins video&quot;</A></P>
+
+<P>A quick Step by Step walk through of downloading, installing, and verifying the Tuscany Eclipse Plugins.</P>
+
+<P>This section shows you how to install the lastest Tuscany Eclipse plugin. The plugin gives you the ability to run an SCA composite file from the Package Explorer. You will see a &quot;Run As Tuscany&quot; menu item when you bring up the context menu on composite files.</P>
+
+<P>Start Eclipse and go to Help -&gt; Software Updates -&gt; Find and Install. Select &quot;Search for new features to install&quot; and then click next</P>
+
+<P>Create a new Remote Site. On the next dialog, click on &quot;New Remote Site...&quot; to create a new site entry. Give it a name such as<BR>
+&quot;Tuscany&quot; and add the site URL from the latest <B><A href="sca-java-1x-releases.html" title="SCA Java 1.x Releases">Tuscany release</A></B> (e.g <B><A href="http://www.apache.org/dist/tuscany/java/sca/1.5.1/tuscany-sca-1.5.1-updatesite/" class="external-link" rel="nofollow">http://www.apache.org/dist/tuscany/java/sca/1.5.1/tuscany-sca-1.5.1-updatesite/</A></B>.</P>
+
+<P>Select the &quot;Remote Site&quot; you just created, and click &quot;Finish&quot;</P>
+
+<P>Select the &quot;Apache Tuscany SCA Tools&quot; and click &quot;Next&quot;, and then, on the next dialog, click &quot;Finish&quot;. Accept the &quot;Plugin License&quot; and next click on &quot;Install All&quot;.</P>
+
+<P>When asked to &quot;restart eclipse&quot;, click the &quot;yes&quot; button. </P>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-CreateyourServiceBusinessLogic"></A>Create your Service Business Logic</H2>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-CreateaJavaProject"></A>Create a Java Project</H2>
+
+<P>In this step you create a Java Project in Eclipse to hold the composite service application.<BR>
+Click on the <B><EM>New Java Project</EM></B> button <SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/new_java_project.png" style="border: 0px solid black"></SPAN>&nbsp; in the toolbar to launch the project creation dialog.<BR>
+Next you enter &quot;ws&quot; as the <B><EM>Project name</EM></B>, and for <B><EM>Project Layout</EM></B> select <B><EM>Create separate</EM></B><BR>
+<B><EM>folders for sources and class files.</EM></B><BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_create_new_java_project_name.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;<BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_create_new_java_project_layout.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;<BR>
+Hit the <B><EM>Next</EM></B> button, and on the following page go to the <B><EM>Libraries</EM></B> tab. Use the <B><EM>Add Library...</EM></B><BR>
+button on the right to add the <B>Tuscany Library</B> library to the project.<BR>
+&nbsp;<BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_create_new_java_project_tuscany_library.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;<BR>
+&nbsp;<BR>
+Hit the <B><EM>Finish</EM></B> button to complete the <B><EM>New Java Project</EM></B> dialog to create the &quot;ws&quot; java project.&nbsp;<BR>
+&nbsp;<BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_new_java_project_structure_1.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;<BR>
+&nbsp;</P>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-ConstructServices"></A>Construct Services</H2>
+
+<P>First you create the &quot;helloworld&quot; package folders into which later in this step you place service implementations.<BR>
+Select the &quot;ws&quot; project and click on the <B><EM>New Java Package</EM></B> button <SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/new_java_pkg_btn.png" style="border: 0px solid black"></SPAN> in the toolbar to launch<BR>
+the package creation dialog.</P>
+
+<P>Next you enter &quot;helloworld&quot; as the package <B><EM>Name</EM></B>, and press the <B><EM>Finish</EM></B> button to complete the<BR>
+dialog.<BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_new_java_package.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;</P>
+
+<H3><A name="BuildyourfirstWebServiceswithTuscany-HelloWorld"></A><EM>HelloWorld</EM></H3>
+
+<P>In this step you create the HelloWorld service interface and implementation.<BR>
+Select the &quot;helloworld&quot; package. Next you click on the dropdown arrow next to the <B><EM>New Java Class</EM></B><BR>
+button&nbsp; <SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/class_btn.png" style="border: 0px solid black"></SPAN>&nbsp; and select the <B><EM>New Java Interface</EM></B>&nbsp;&nbsp;&nbsp;<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/interface_btn.png" style="border: 0px solid black"></SPAN> option from the dropdown list. In the dialog<BR>
+enter &quot;HelloWorld&quot; as the <B><EM>Name</EM></B> of the interface and select the Finish button to complete the dialog.<BR>
+The Java editor will open on the new created Java interface. Replace the content of the editor by<BR>
+<B><EM>copy-paste</EM></B> of the following Java interface code snippet.</P>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+<SPAN class="code-keyword">package</SPAN> helloworld;
+<SPAN class="code-keyword">import</SPAN> org.osoa.sca.annotations.Remotable;
+@Remotable
+<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> HelloWorld {
+ <SPAN class="code-object">String</SPAN> sayHello(<SPAN class="code-object">String</SPAN> name);
+}
+</PRE>
+</DIV></DIV>
+<P>Select the &quot;helloworld&quot; package again. Select the <B><EM>New Java Class</EM></B> button <SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/class_btn.png" style="border: 0px solid black"></SPAN> . In the dialog enter<BR>
+&quot;HelloWorldImpl&quot; as the <B><EM>Name</EM></B> of the class, add &quot;Catalog&quot; as the interface this class implements, and<BR>
+then select <B><EM>Finish</EM></B> to complete the dialog.</P>
+
+<P>The Java editor will open on the new created Java class. Replace the content of the editor by<BR>
+<B><EM>copy-paste</EM></B> of the following Java class code snippet.</P>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+<SPAN class="code-keyword">package</SPAN> helloworld;
+<SPAN class="code-keyword">public</SPAN> class HelloWorldImpl <SPAN class="code-keyword">implements</SPAN> HelloWorld {
+ <SPAN class="code-keyword">public</SPAN> <SPAN class="code-object">String</SPAN> sayHello(<SPAN class="code-object">String</SPAN> name) {
+ <SPAN class="code-keyword">return</SPAN> <SPAN class="code-quote">&quot;Hello &quot;</SPAN> + name;
+ }
+}
+</PRE>
+</DIV></DIV>
+<P>After completing these steps the content of the &quot;ws&quot; project will look as follows.<BR>
+<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_new_java_project_structure_1.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;</P>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-ComposeServices"></A>Compose Services</H2>
+
+<P>Now that you have all the required service implementations you compose them together to provide<BR>
+the helloworld composite service. The composition is stored in a .composite file.</P>
+
+<P>Select the &quot;src&quot; folder of the &quot;ws&quot; project. <B><EM>Right click</EM></B> to get the context menu, select <B><EM>New</EM></B>, and<BR>
+then <B><EM>File</EM></B>. In the <B><EM>New File</EM></B> dialog enter &quot;helloworld.composite&quot; for the <B><EM>File name</EM></B>, and then select <B><EM>Finish</EM></B><BR>
+to complete the dialog.</P>
+
+<P>The Text editor will open on the new created composite file. Replace the content of the editor by<BR>
+<B><EM>copy-paste</EM></B> of the following composite snippet.</P>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+&lt;?xml version=<SPAN class="code-quote">&quot;1.0&quot;</SPAN> encoding=<SPAN class="code-quote">&quot;UTF-8&quot;</SPAN>?&gt;
+&lt;composite xmlns=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//www.osoa.org/xmlns/sca/1.0&quot;</SPAN>
+</SPAN> xmlns:t=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//tuscany.apache.org/xmlns/sca/1.0&quot;</SPAN>
+</SPAN> xmlns:c=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//helloworld&quot;</SPAN>
+</SPAN> targetNamespace=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//helloworld&quot;</SPAN>
+</SPAN> name=<SPAN class="code-quote">&quot;helloworld&quot;</SPAN>&gt;
+
+ &lt;component name=<SPAN class="code-quote">&quot;HelloWorldComponent&quot;</SPAN>&gt;
+ &lt;implementation.java class=<SPAN class="code-quote">&quot;helloworld.HelloWorldImpl&quot;</SPAN>/&gt;
+ &lt;service name=<SPAN class="code-quote">&quot;HelloWorld&quot;</SPAN>&gt;
+ &lt;binding.ws uri=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//localhost:8080/HelloWorld&quot;</SPAN>/&gt;
+</SPAN> &lt;/service&gt;
+ &lt;/component&gt;
+&lt;/composite&gt;
+</PRE>
+</DIV></DIV>
+<P>After completing these steps the content of the &quot;ws&quot; project will look as follows.</P>
+
+<P><SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_new_java_project_structure_3.JPG" style="border: 0px solid black"></SPAN><BR>
+&nbsp;</P>
+
+<P>Congratulations you completed your 1st composite service applications, now its time to take it into<BR>
+action.</P>
+
+<H2><A name="BuildyourfirstWebServiceswithTuscany-UseServices"></A>Use Services</H2>
+
+<P>In this step you launch and use the ws composite service application you created.</P>
+
+<P>First select the &quot;helloworld.composite&quot; file, in your &quot;ws&quot; project. <B><EM>Right click</EM></B> to get the<BR>
+context menu, select <B><EM>Run As</EM></B>, and then <B><EM>Tuscany</EM></B>. The Tuscany runtime will start up adding<BR>
+the helloworld composition to its domain and will make the helloworld web service live.</P>
+
+<P>The Eclipse console will show the following messages.</P>
+
+<P>&nbsp;<SPAN class="image-wrap" style=""><IMG src="build-your-first-web-services-with-tuscany.data/ws_new_project_console_output.PNG" style="border: 0px solid black"></SPAN></P>
+
+<P>&nbsp;Next Launch your Web browser and enter the following address:</P>
+
+<P><A href="http://localhost:8080/HelloWorld?wsdl" class="external-link" rel="nofollow">http://localhost:8080/HelloWorld?wsdl</A>&nbsp;</P>
+
+<P>You should now have your web service live, and the url should give you back a generated wsdl for the service.</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+&lt;?xml version=<SPAN class="code-quote">&quot;1.0&quot;</SPAN> encoding=<SPAN class="code-quote">&quot;UTF-8&quot;</SPAN>?&gt;
+&lt;wsdl:definitions targetNamespace=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//helloworld&quot;</SPAN> xmlns:soap12=<SPAN class="code-quote">&quot;http://schemas.xmlsoap.org/wsdl/soap12/&quot;</SPAN> xmlns:ns0=<SPAN class="code-quote">&quot;http://helloworld&quot;</SPAN> xmlns:mime=<SPAN class="code-quote">&quot;http://schemas.xmlsoap.org/wsdl/mime/&quot;</SPAN> xmlns:http=<SPAN class="code-quote">&quot;http://schemas.xmlsoap.org/wsdl/http/&quot;</SPAN> xmlns:ns1=<SPAN class="code-quote">&quot;http://org.apache.axis2/xsd&quot;</SPAN> xmlns:wsaw=<SPAN class="code-quote">&quot;http://www.w3.org/2006/05/addressing/wsdl&quot;</SPAN> xmlns:xs=<SPAN class="code-quote">&quot;http://www.w3.org/2001/XMLSchema&quot;</SPAN> xmlns:soap=<SPAN class="code-quote">&quot;http://schemas.xmlsoap.org/wsdl/soap/&quot;</SPAN> xmlns:wsdl=<SPAN class="code-quote">&quot;http://schemas.xmlsoap.org/wsdl/&quot;</SPAN>&gt;
+</SPAN> &lt;wsdl:types&gt;
+ &lt;xs:schema attributeFormDefault=<SPAN class="code-quote">&quot;qualified&quot;</SPAN> elementFormDefault=<SPAN class="code-quote">&quot;qualified&quot;</SPAN> targetNamespace=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//helloworld&quot;</SPAN> xmlns:ns=<SPAN class="code-quote">&quot;http://helloworld&quot;</SPAN>&gt;
+</SPAN> &lt;xs:element name=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN>&gt;
+ &lt;xs:complexType&gt;
+ &lt;xs:sequence&gt;
+ &lt;xs:element minOccurs=<SPAN class="code-quote">&quot;0&quot;</SPAN> name=<SPAN class="code-quote">&quot;param0&quot;</SPAN> nillable=<SPAN class="code-quote">&quot;<SPAN class="code-keyword">true</SPAN>&quot;</SPAN> type=<SPAN class="code-quote">&quot;xs:string&quot;</SPAN>/&gt;
+ &lt;/xs:sequence&gt;
+ &lt;/xs:complexType&gt;
+
+ &lt;/xs:element&gt;
+ &lt;xs:element name=<SPAN class="code-quote">&quot;sayHelloResponse&quot;</SPAN>&gt;
+ &lt;xs:complexType&gt;
+ &lt;xs:sequence&gt;
+ &lt;xs:element minOccurs=<SPAN class="code-quote">&quot;0&quot;</SPAN> name=<SPAN class="code-quote">&quot;<SPAN class="code-keyword">return</SPAN>&quot;</SPAN> nillable=<SPAN class="code-quote">&quot;<SPAN class="code-keyword">true</SPAN>&quot;</SPAN> type=<SPAN class="code-quote">&quot;xs:string&quot;</SPAN>/&gt;
+ &lt;/xs:sequence&gt;
+ &lt;/xs:complexType&gt;
+ &lt;/xs:element&gt;
+ &lt;/xs:schema&gt;
+
+ &lt;/wsdl:types&gt;
+ &lt;wsdl:message name=<SPAN class="code-quote">&quot;sayHelloRequest&quot;</SPAN>&gt;
+ &lt;wsdl:part name=<SPAN class="code-quote">&quot;parameters&quot;</SPAN> element=<SPAN class="code-quote">&quot;ns0:sayHello&quot;</SPAN>&gt;
+ &lt;/wsdl:part&gt;
+ &lt;/wsdl:message&gt;
+ &lt;wsdl:message name=<SPAN class="code-quote">&quot;sayHelloResponse&quot;</SPAN>&gt;
+ &lt;wsdl:part name=<SPAN class="code-quote">&quot;parameters&quot;</SPAN> element=<SPAN class="code-quote">&quot;ns0:sayHelloResponse&quot;</SPAN>&gt;
+ &lt;/wsdl:part&gt;
+ &lt;/wsdl:message&gt;
+
+ &lt;wsdl:portType name=<SPAN class="code-quote">&quot;HelloWorldPortType&quot;</SPAN>&gt;
+ &lt;wsdl:operation name=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN>&gt;
+ &lt;wsdl:input message=<SPAN class="code-quote">&quot;ns0:sayHelloRequest&quot;</SPAN> wsaw:Action=<SPAN class="code-quote">&quot;urn:sayHello&quot;</SPAN>&gt;
+ &lt;/wsdl:input&gt;
+ &lt;wsdl:output message=<SPAN class="code-quote">&quot;ns0:sayHelloResponse&quot;</SPAN> wsaw:Action=<SPAN class="code-quote">&quot;urn:sayHelloResponse&quot;</SPAN>&gt;
+ &lt;/wsdl:output&gt;
+ &lt;/wsdl:operation&gt;
+ &lt;/wsdl:portType&gt;
+ &lt;wsdl:binding name=<SPAN class="code-quote">&quot;HelloWorldHttpBinding&quot;</SPAN> type=<SPAN class="code-quote">&quot;ns0:HelloWorldPortType&quot;</SPAN>&gt;
+
+ &lt;http:binding verb=<SPAN class="code-quote">&quot;POST&quot;</SPAN>/&gt;
+ &lt;wsdl:operation name=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN>&gt;
+ &lt;http:operation location=<SPAN class="code-quote">&quot;HelloWorld/sayHello&quot;</SPAN>/&gt;
+ &lt;wsdl:input&gt;
+ &lt;mime:content part=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN> type=<SPAN class="code-quote">&quot;text/xml&quot;</SPAN>/&gt;
+ &lt;/wsdl:input&gt;
+ &lt;wsdl:output&gt;
+ &lt;mime:content part=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN> type=<SPAN class="code-quote">&quot;text/xml&quot;</SPAN>/&gt;
+ &lt;/wsdl:output&gt;
+
+ &lt;/wsdl:operation&gt;
+ &lt;/wsdl:binding&gt;
+ &lt;wsdl:binding name=<SPAN class="code-quote">&quot;HelloWorldSOAP11Binding&quot;</SPAN> type=<SPAN class="code-quote">&quot;ns0:HelloWorldPortType&quot;</SPAN>&gt;
+ &lt;soap:binding style=<SPAN class="code-quote">&quot;document&quot;</SPAN> transport=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//schemas.xmlsoap.org/soap/http&quot;</SPAN>/&gt;
+</SPAN> &lt;wsdl:operation name=<SPAN class="code-quote">&quot;sayHello&quot;</SPAN>&gt;
+ &lt;soap:operation soapAction=<SPAN class="code-quote">&quot;urn:sayHello&quot;</SPAN> style=<SPAN class="code-quote">&quot;document&quot;</SPAN>/&gt;
+ &lt;wsdl:input&gt;
+ &lt;soap:body use=<SPAN class="code-quote">&quot;literal&quot;</SPAN>/&gt;
+ &lt;/wsdl:input&gt;
+
+ &lt;wsdl:output&gt;
+ &lt;soap:body use=<SPAN class="code-quote">&quot;literal&quot;</SPAN>/&gt;
+ &lt;/wsdl:output&gt;
+ &lt;/wsdl:operation&gt;
+ &lt;/wsdl:binding&gt;
+ &lt;wsdl:service name=<SPAN class="code-quote">&quot;HelloWorld&quot;</SPAN>&gt;
+ &lt;wsdl:port name=<SPAN class="code-quote">&quot;HelloWorldSOAP11port_http&quot;</SPAN> binding=<SPAN class="code-quote">&quot;ns0:HelloWorldSOAP11Binding&quot;</SPAN>&gt;
+ &lt;soap:address location=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//192.168.209.1:8080/HelloWorld&quot;</SPAN>/&gt;
+</SPAN> &lt;/wsdl:port&gt;
+
+ &lt;wsdl:port name=<SPAN class="code-quote">&quot;HelloWorldHttpport&quot;</SPAN> binding=<SPAN class="code-quote">&quot;ns0:HelloWorldHttpBinding&quot;</SPAN>&gt;
+ &lt;http:address location=<SPAN class="code-quote">&quot;http:<SPAN class="code-comment">//192.168.209.1:8080/HelloWorld&quot;</SPAN>/&gt;
+</SPAN> &lt;/wsdl:port&gt;
+ &lt;/wsdl:service&gt;
+&lt;/wsdl:definitions&gt;
+</PRE>
+</DIV></DIV>
+<P>You are finished. You have created the HelloWorld web service using Apache Tuscany.</P>
+ </DIV>
+ </DIV>
+ </DIV>
+ <!-- pageContent macro end -->
+
+ </TD>
+ </TR>
+ </TABLE>
+
+ <!-- footer macro -->
+ <SCRIPT src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+ </SCRIPT>
+ <SCRIPT type="text/javascript">
+ _uacct = "UA-1174707-5";
+ urchinTracker();
+ </SCRIPT>
+
+ <A href="http://www.statcounter.com/" target="_blank"><IMG src="http://c26.statcounter.com/counter.php?sc_project=2619156&java=0&security=94bd7e7d&invisible=0" alt="website stats" border="0"></A>
+
+ <DIV class="footer">
+ Copyright � 2003-2012, The Apache Software Foundation&nbsp;&nbsp;</BR>
+ Apache Tuscany and the Apache Tuscany project logo are trademarks of The Apache Software Foundation.
+ </DIV>
+ <!-- footer macro end -->
+
+ </BODY>
+</HTML>