Web Services Code Samples
Web services are web-based services that are accessed by business application programs. The service receives the request for its services and returns a response. The Java programming language provides a number of APIs for writing web service applications.
Getting Started
- HelloClient.java is a remote client that contacts a web service and invokes the sayHello method. HelloIF.java is the service definition interface, and HelloImpl.java is the impl ementation interface for the HelloIF class. For more information see The Java Web Services Tutorial: Java API for XML-based RPC.
- HelloClient.java makes two remote procedure calls. For more information see The Java Web Services Tutorial: Java API for XML-based RPC.
Java Web Services Developer Pack
- JAX-RPC and JAXM example application. For more information see Java Web Services Developer Pack. Part 2: Calls, Messaging, and the JAX-RPC and JAXM API.
h5JAX-RPC
- Request.java sends a request-response message to a web service. For more information see The Java Web Services Tutorial: Java API for XML Messaging.
- SunRegImpl.java hows the service implementation class for SunRegPort. For more information see Getting Started with JAX-RPC.
- SunRegPort.java shows code for the service endpoint interface for SunReg. For more information see Getting Started with JAX-RPC.
Registration and Discovery
- MyUddiPing.java accesses a test version of a UDDI service registry. A Universal Description, Discovery, and Integration (UDDI) service is a business registry and repository from which you can get information about businesses that have registered themselves with the registry. For more information see The Java Web Services Tutorial: Java API for XML Messaging.
- NaicsQuery.java hows how to perform queries programmatically. For more information see Registration and Discovery of Web Services Using JAXR with XML Registries such as UDDI and ebXML.
- PublishORG.java shows how to create an organization and publish it in the IBM UDDI V2 Business Registry. For more information see Registration and Discovery of Web Services Using JAXR with XML Registries such as UDDI and ebXML. seo
Performance
- WS Test 1.0 Web Services Processing Performance in Java and .NET code sample. Download this WS Test to compare the performance of common Web Services operations in Java and .NET. Requires Windows Server 2003 and J2SE 1.4.2. See the Java Performance page for the accompanying whitepaper.
Download
- XML Test 1.0 XML Processing Performance in Java and .NET code sample. Download this XML Test to compare the performance of common XML operations in Java and .NET. Requires Windows Server 2003 and J2SE 1.4.2. See the Java Performance page page for the accompanying whitepaper.
Download