<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FWeb_Services_SOA%2FCode_First</id>
		<title>Java/Web Services SOA/Code First - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FWeb_Services_SOA%2FCode_First"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Web_Services_SOA/Code_First&amp;action=history"/>
		<updated>2026-04-18T20:32:19Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Web_Services_SOA/Code_First&amp;diff=9205&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Web_Services_SOA/Code_First&amp;diff=9205&amp;oldid=prev"/>
				<updated>2010-06-01T07:27:36Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 07:27, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/Web_Services_SOA/Code_First&amp;diff=9204&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/Web_Services_SOA/Code_First&amp;diff=9204&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:50Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== This demo illustrates how to develop a service use the &amp;quot;code first&amp;quot; approach using the JAX-WS APIs ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
  Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
  or more contributor license agreements. See the NOTICE file&lt;br /&gt;
  distributed with this work for additional information&lt;br /&gt;
  regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
  to you under the Apache License, Version 2.0 (the&lt;br /&gt;
  &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
  with the License. You may obtain a copy of the License at&lt;br /&gt;
 &lt;br /&gt;
  http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 &lt;br /&gt;
  Unless required by applicable law or agreed to in writing,&lt;br /&gt;
  software distributed under the License is distributed on an&lt;br /&gt;
  &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
  KIND, either express or implied. See the License for the&lt;br /&gt;
  specific language governing permissions and limitations&lt;br /&gt;
  under the License.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
Hello World Demo using Document/Literal Style&lt;br /&gt;
=============================================&lt;br /&gt;
This demo illustrates how to develop a service use the &amp;quot;code first&amp;quot;&lt;br /&gt;
approach using the JAX-WS APIs.&lt;br /&gt;
Prerequisite&lt;br /&gt;
------------&lt;br /&gt;
If your environment already includes cxf-manifest-incubator.jar on the&lt;br /&gt;
CLASSPATH, and the JDK and ant bin directories on the PATH&lt;br /&gt;
it is not necessary to set the environment as described in&lt;br /&gt;
the samples directory README.  If your environment is not&lt;br /&gt;
properly configured, or if you are planning on using wsdl2java,&lt;br /&gt;
javac, and java to build and run the demos, you must set the&lt;br /&gt;
environment.&lt;br /&gt;
&lt;br /&gt;
Building and running the demo using ant&lt;br /&gt;
---------------------------------------&lt;br /&gt;
From the samples/hello_world directory, the ant build script&lt;br /&gt;
can be used to build and run the demo.&lt;br /&gt;
Using either UNIX or Windows:&lt;br /&gt;
  ant build&lt;br /&gt;
  ant server&lt;br /&gt;
  ant client&lt;br /&gt;
    &lt;br /&gt;
To remove the code generated from the WSDL file and the .class&lt;br /&gt;
files, run:&lt;br /&gt;
  ant clean&lt;br /&gt;
&lt;br /&gt;
Building the demo using wsdl2java and javac&lt;br /&gt;
-------------------------------------------&lt;br /&gt;
From the samples/hello_world directory, first create the target&lt;br /&gt;
directory build/classes and then generate code from the WSDL file.&lt;br /&gt;
For UNIX:&lt;br /&gt;
  mkdir -p build/classes&lt;br /&gt;
  wsdl2java -d build/classes -compile ./wsdl/hello_world.wsdl&lt;br /&gt;
For Windows:&lt;br /&gt;
  mkdir build\classes&lt;br /&gt;
    Must use back slashes.&lt;br /&gt;
  wsdl2java -d build\classes -compile .\wsdl\hello_world.wsdl&lt;br /&gt;
    May use either forward or back slashes.&lt;br /&gt;
Now compile the provided client and server applications with the commands:&lt;br /&gt;
For UNIX:  &lt;br /&gt;
  &lt;br /&gt;
  export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-manifest-incubator.jar:./build/classes&lt;br /&gt;
  javac -d build/classes src/demo/hw/client/*.java&lt;br /&gt;
  javac -d build/classes src/demo/hw/server/*.java&lt;br /&gt;
For Windows:&lt;br /&gt;
  set classpath=%classpath%;%CXF_HOME%\lib\cxf-manifest-incubator.jar;.\build\classes&lt;br /&gt;
  javac -d build\classes src\demo\hw\client\*.java&lt;br /&gt;
  javac -d build\classes src\demo\hw\server\*.java&lt;br /&gt;
&lt;br /&gt;
Running the demo using java&lt;br /&gt;
---------------------------&lt;br /&gt;
From the samples/hello_world directory run the commands, entered on a&lt;br /&gt;
single command line:&lt;br /&gt;
For UNIX (must use forward slashes):&lt;br /&gt;
    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties&lt;br /&gt;
         demo.hw.server.Server &amp;amp;&lt;br /&gt;
    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties&lt;br /&gt;
         demo.hw.client.Client ./wsdl/hello_world.wsdl&lt;br /&gt;
The server process starts in the background.  After running the client,&lt;br /&gt;
use the kill command to terminate the server process.&lt;br /&gt;
For Windows (may use either forward or back slashes):&lt;br /&gt;
  start &lt;br /&gt;
    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties&lt;br /&gt;
         demo.hw.server.Server&lt;br /&gt;
    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties&lt;br /&gt;
       demo.hw.client.Client .\wsdl\hello_world.wsdl&lt;br /&gt;
A new command windows opens for the server process.  After running the&lt;br /&gt;
client, terminate the server process by issuing Ctrl-C in its command window.&lt;br /&gt;
To remove the code generated from the WSDL file and the .class&lt;br /&gt;
files, either delete the build directory and its contents or run:&lt;br /&gt;
  ant clean&lt;br /&gt;
&lt;br /&gt;
Building and running the demo in a servlet container&lt;br /&gt;
----------------------------------------------------&lt;br /&gt;
From the samples/hello_world directory, the ant build script&lt;br /&gt;
can be used to create the war file that is deployed into the&lt;br /&gt;
servlet container.&lt;br /&gt;
Build the war file with the command:&lt;br /&gt;
  ant war&lt;br /&gt;
    &lt;br /&gt;
Preparing deploy to APACHE TOMCAT&lt;br /&gt;
* set CATALINA_HOME environment to your TOMCAT home directory&lt;br /&gt;
    &lt;br /&gt;
Deploy the application into APACHE TOMCAT with the commond:&lt;br /&gt;
[NOTE] This step will check if the cxf jars present in Tomcat, &lt;br /&gt;
       if not, it will automatically copy all the jars into CATALINA_HOME/shared/lib&lt;br /&gt;
  &lt;br /&gt;
  ant deploy -Dtomcat=true&lt;br /&gt;
The servlet container will extract the war and deploy the application.&lt;br /&gt;
&lt;br /&gt;
Using ant, run the client application with the command:&lt;br /&gt;
  ant client-servlet -Dbase.url=http://localhost:#&lt;br /&gt;
Where # is the TCP/IP port used by the servlet container,&lt;br /&gt;
e.g., 8080.&lt;br /&gt;
Or&lt;br /&gt;
  ant client-servlet -Dhost=localhost -Dport=8080&lt;br /&gt;
You can ignore the -Dhost and -Dport if your tomcat setup is same, i.e ant client-servlet&lt;br /&gt;
Using java, run the client application with the command:&lt;br /&gt;
  For UNIX:&lt;br /&gt;
    &lt;br /&gt;
    java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties&lt;br /&gt;
         demo.hw.client.Client http://localhost:#/helloworld/services/hello_world?wsdl&lt;br /&gt;
  For Windows:&lt;br /&gt;
    java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties&lt;br /&gt;
       demo.hw.client.Client http://localhost:#/helloworld/services/hello_world?wsdl&lt;br /&gt;
Where # is the TCP/IP port used by the servlet container,&lt;br /&gt;
e.g., 8080.&lt;br /&gt;
Undeploy the application from the APACHE TOMCAT with the command:&lt;br /&gt;
   ant undeploy -Dtomcat=true&lt;br /&gt;
&lt;br /&gt;
Running demo with HTTP GET&lt;br /&gt;
----------------------------------------------------&lt;br /&gt;
APACHE CXF support HTTP GET to invoke the service, instead of running &lt;br /&gt;
   ant client&lt;br /&gt;
you can use &lt;br /&gt;
   ant client.get &lt;br /&gt;
to invoke the service with simple HttpURLConnection, or you can even&lt;br /&gt;
use your favoriate browser to get the results back.&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////////&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
  Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
  or more contributor license agreements. See the NOTICE file&lt;br /&gt;
  distributed with this work for additional information&lt;br /&gt;
  regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
  to you under the Apache License, Version 2.0 (the&lt;br /&gt;
  &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
  with the License. You may obtain a copy of the License at&lt;br /&gt;
 &lt;br /&gt;
  http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 &lt;br /&gt;
  Unless required by applicable law or agreed to in writing,&lt;br /&gt;
  software distributed under the License is distributed on an&lt;br /&gt;
  &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
  KIND, either express or implied. See the License for the&lt;br /&gt;
  specific language governing permissions and limitations&lt;br /&gt;
  under the License.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;project name=&amp;quot;hello world code first demo&amp;quot; default=&amp;quot;build&amp;quot; basedir=&amp;quot;.&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;import file=&amp;quot;common_build.xml&amp;quot;/&amp;gt;        &lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;target name=&amp;quot;client&amp;quot; description=&amp;quot;run demo client&amp;quot; depends=&amp;quot;build&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;property name=&amp;quot;param&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;cxfrun classname=&amp;quot;demo.hw.client.Client&amp;quot;&lt;br /&gt;
            param1=&amp;quot;&amp;quot; &lt;br /&gt;
            param2=&amp;quot;${op}&amp;quot; &lt;br /&gt;
            param3=&amp;quot;${param}&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/target&amp;gt; &lt;br /&gt;
        &lt;br /&gt;
    &amp;lt;target name=&amp;quot;server&amp;quot; description=&amp;quot;run demo server&amp;quot; depends=&amp;quot;build&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;cxfrun classname=&amp;quot;demo.hw.server.Server&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/target&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
    &amp;lt;property name=&amp;quot;cxf.war.file.name&amp;quot; value=&amp;quot;helloworld&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;target name=&amp;quot;war&amp;quot; depends=&amp;quot;build&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;cxfwar wsdl=&amp;quot;hello_world.wsdl&amp;quot; filename=&amp;quot;${cxf.war.file.name}.war&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/target&amp;gt;&lt;br /&gt;
    &amp;lt;target name=&amp;quot;client-servlet&amp;quot; description=&amp;quot;run demo client hitting servlet&amp;quot; depends=&amp;quot;build&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;property name=&amp;quot;param&amp;quot; value=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;cxfrun classname=&amp;quot;demo.hw.client.Client&amp;quot; param1=&amp;quot;${base.url}/helloworld/services/hello_world?wsdl&amp;quot; param2=&amp;quot;${op}&amp;quot; param3=&amp;quot;${param}&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/target&amp;gt; &lt;br /&gt;
&amp;lt;/project&amp;gt;&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////////&lt;br /&gt;
/**&lt;br /&gt;
 * Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
 * or more contributor license agreements. See the NOTICE file&lt;br /&gt;
 * distributed with this work for additional information&lt;br /&gt;
 * regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
 * to you under the Apache License, Version 2.0 (the&lt;br /&gt;
 * &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
 * with the License. You may obtain a copy of the License at&lt;br /&gt;
 *&lt;br /&gt;
 * http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 *&lt;br /&gt;
 * Unless required by applicable law or agreed to in writing,&lt;br /&gt;
 * software distributed under the License is distributed on an&lt;br /&gt;
 * &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
 * KIND, either express or implied. See the License for the&lt;br /&gt;
 * specific language governing permissions and limitations&lt;br /&gt;
 * under the License.&lt;br /&gt;
 */&lt;br /&gt;
package demo.hw.client;&lt;br /&gt;
import javax.xml.namespace.QName;&lt;br /&gt;
import javax.xml.ws.Service;&lt;br /&gt;
import javax.xml.ws.soap.SOAPBinding;&lt;br /&gt;
import demo.hw.server.HelloWorld;&lt;br /&gt;
public final class Client {&lt;br /&gt;
    private static final QName SERVICE_NAME &lt;br /&gt;
        = new QName(&amp;quot;http://server.hw.demo/&amp;quot;, &amp;quot;HelloWorld&amp;quot;);&lt;br /&gt;
    private static final QName PORT_NAME &lt;br /&gt;
        = new QName(&amp;quot;http://server.hw.demo/&amp;quot;, &amp;quot;HelloWorldPort&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    private Client() {&lt;br /&gt;
    } &lt;br /&gt;
    public static void main(String args[]) throws Exception {&lt;br /&gt;
        Service service = Service.create(SERVICE_NAME);&lt;br /&gt;
        // Endpoint Address&lt;br /&gt;
        String endpointAddress = &amp;quot;http://localhost:9000/helloWorld&amp;quot;;&lt;br /&gt;
        // Add a port to the Service&lt;br /&gt;
        service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);&lt;br /&gt;
        &lt;br /&gt;
        HelloWorld hw = service.getPort(HelloWorld.class);&lt;br /&gt;
        System.out.println(hw.sayHi(&amp;quot;World&amp;quot;));&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
////////////////////////////////////////////////////////////////////////&lt;br /&gt;
/**&lt;br /&gt;
 * Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
 * or more contributor license agreements. See the NOTICE file&lt;br /&gt;
 * distributed with this work for additional information&lt;br /&gt;
 * regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
 * to you under the Apache License, Version 2.0 (the&lt;br /&gt;
 * &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
 * with the License. You may obtain a copy of the License at&lt;br /&gt;
 *&lt;br /&gt;
 * http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 *&lt;br /&gt;
 * Unless required by applicable law or agreed to in writing,&lt;br /&gt;
 * software distributed under the License is distributed on an&lt;br /&gt;
 * &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
 * KIND, either express or implied. See the License for the&lt;br /&gt;
 * specific language governing permissions and limitations&lt;br /&gt;
 * under the License.&lt;br /&gt;
 */&lt;br /&gt;
// START SNIPPET: service&lt;br /&gt;
package demo.hw.server;&lt;br /&gt;
import javax.jws.WebService;&lt;br /&gt;
@WebService&lt;br /&gt;
public interface HelloWorld {&lt;br /&gt;
    String sayHi(String text);&lt;br /&gt;
}&lt;br /&gt;
// END SNIPPET: service&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////////&lt;br /&gt;
/**&lt;br /&gt;
 * Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
 * or more contributor license agreements. See the NOTICE file&lt;br /&gt;
 * distributed with this work for additional information&lt;br /&gt;
 * regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
 * to you under the Apache License, Version 2.0 (the&lt;br /&gt;
 * &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
 * with the License. You may obtain a copy of the License at&lt;br /&gt;
 *&lt;br /&gt;
 * http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 *&lt;br /&gt;
 * Unless required by applicable law or agreed to in writing,&lt;br /&gt;
 * software distributed under the License is distributed on an&lt;br /&gt;
 * &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
 * KIND, either express or implied. See the License for the&lt;br /&gt;
 * specific language governing permissions and limitations&lt;br /&gt;
 * under the License.&lt;br /&gt;
 */&lt;br /&gt;
// START SNIPPET: service&lt;br /&gt;
package demo.hw.server;&lt;br /&gt;
import javax.jws.WebService;&lt;br /&gt;
@WebService(endpointInterface = &amp;quot;demo.hw.server.HelloWorld&amp;quot;, &lt;br /&gt;
            serviceName = &amp;quot;HelloWorld&amp;quot;)&lt;br /&gt;
public class HelloWorldImpl implements HelloWorld {&lt;br /&gt;
    public String sayHi(String text) {&lt;br /&gt;
        return &amp;quot;Hello &amp;quot; + text;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
// END SNIPPET: service&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////////&lt;br /&gt;
/**&lt;br /&gt;
 * Licensed to the Apache Software Foundation (ASF) under one&lt;br /&gt;
 * or more contributor license agreements. See the NOTICE file&lt;br /&gt;
 * distributed with this work for additional information&lt;br /&gt;
 * regarding copyright ownership. The ASF licenses this file&lt;br /&gt;
 * to you under the Apache License, Version 2.0 (the&lt;br /&gt;
 * &amp;quot;License&amp;quot;); you may not use this file except in compliance&lt;br /&gt;
 * with the License. You may obtain a copy of the License at&lt;br /&gt;
 *&lt;br /&gt;
 * http://www.apache.org/licenses/LICENSE-2.0&lt;br /&gt;
 *&lt;br /&gt;
 * Unless required by applicable law or agreed to in writing,&lt;br /&gt;
 * software distributed under the License is distributed on an&lt;br /&gt;
 * &amp;quot;AS IS&amp;quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY&lt;br /&gt;
 * KIND, either express or implied. See the License for the&lt;br /&gt;
 * specific language governing permissions and limitations&lt;br /&gt;
 * under the License.&lt;br /&gt;
 */&lt;br /&gt;
package demo.hw.server;&lt;br /&gt;
import javax.xml.ws.Endpoint;&lt;br /&gt;
public class Server {&lt;br /&gt;
    protected Server() throws Exception {&lt;br /&gt;
        // START SNIPPET: publish&lt;br /&gt;
        System.out.println(&amp;quot;Starting Server&amp;quot;);&lt;br /&gt;
        HelloWorldImpl implementor = new HelloWorldImpl();&lt;br /&gt;
        String address = &amp;quot;http://localhost:9000/helloWorld&amp;quot;;&lt;br /&gt;
        Endpoint.publish(address, implementor);&lt;br /&gt;
        // END SNIPPET: publish&lt;br /&gt;
    }&lt;br /&gt;
    public static void main(String args[]) throws Exception {&lt;br /&gt;
        new Server();&lt;br /&gt;
        System.out.println(&amp;quot;Server ready...&amp;quot;);&lt;br /&gt;
        Thread.sleep(5 * 60 * 1000);&lt;br /&gt;
        System.out.println(&amp;quot;Server exiting&amp;quot;);&lt;br /&gt;
        System.exit(0);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>