Implement the Web service.
Use Web services tools to discover, create, and publish the Web service.
You can develop Java bean, enterprise bean, and URL Web services. You can
use Web service tools to create skeleton Java code and a sample application
from a WSDL document. For example, an enterprise bean can be offered as a
Web service, using Remote Method Invocation over Internet Inter-ORB Protocol
(RMI-IIOP) as the access protocol. Or you can use a Java class as a Web service,
with native Java invocations as the access protocol.
You
can use the WebSphere Studio Application Developer to create a Web service
from a Java application, as described in its StockQuote service tutorial.
The Java application that you use in this scenario returns the last trading
price from the Internet Web site www.xmltoday.com, given a stock symbol. Using
the Web service wizard, you generate a binding WSDL document named StockQuoteService-binding.wsdl and
a service WSDL document named StockQuoteService-service.wsdl from
the StockQuoteService.java bean. You then deploy the Web
service to a Web server, generate a client proxy to the Web service, and generate
a sample application that accesses the StockQuoteService through the client
proxy. You test the StockQuote Web service, publish it using the IBM UDDI
Explorer, and then discover the StockQuote Web service in the IBM UDDI Test
Registry.
You can use the WebSphere Development
Studio for iSeries (WDS) to create a Web service from a Java application.
Using the Web service wizard, you generate a binding WSDL document and a service
WSDL document from the Java bean. You can then deploy the Web service to a
Web server, generate a client proxy to the Web service, and generate a sample
application that accesses the service through the client proxy. You can test
the service, publish it using the IBM UDDI Explorer, and then discover the
service in the IBM UDDI Test Registry.