Web Services

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.
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.
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.
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

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact