Runtime Publishing  Locate

Both runtime publishing and client lookup of Web services are accomplished by one Java class in WSO2 SOA Enablement Server, org.systinet.wasp.webservice.Registry.

You publish a Web service by creating a public class that imports the Registry class and contains the following code:

wasp.startServer("http");
Registry.publish("/MyService", new MyServiceImplementation());

The first line is a static method that starts the WSO2 SOA Enablement Server. The second line publishes the Web service.

Runtime Publishing is covered extensively in the Developer's Guide. An introduction sufficient for most use-cases of Runtime Publishing is given in Publishing and Deployment. If you are already familiar with this and are interested in using advanced Registry methods, see Runtime Publishing.