Plan to use web services
We can plan to develop and implement web services based on a variety of Java programming models.
Web services reflect the service-oriented architecture approach to programming. This approach is based on the idea of building applications by discovering and implementing network-available services, or by invoking the available applications to accomplish a task. Web services deliver interoperability, for example, web services applications provide a way for components created in different programming languages to work together as if they were created using the same language. Web services rely on existing transport technologies, such as HTTP, and standard data encoding techniques, such as Extensible Markup Language (XML), for invoking the implementation.
IBM WebSphere Application Server supports JAX-WS and JAX-RPC. Using the strategic JAX-WS programming model, development of web services and clients is simplified through support of a standards-based annotations model. Although JAX-RPC and applications are still supported, take advantage of the easy-to-implement JAX-WS programming model to develop new web services applications and clients.best-practices
Read the web services scenario overview information to learn about the story of a fictional online garden supply retailer named Plants by WebSphere and how this retailer incorporated the web services concept. We can also review the Samples section of the Information Center for web services samples. These samples demonstrate enterprise beans and JavaBeans components available as web services.
The JAX-WS Web services samples demonstrate the simple message exchange patterns using both synchronous and asynchronous invocation of web services in SOAP 1.1 and SOAP 1.2 environments. The samples are composed with web service standards such as WS-Addressing (WS-A) , WS-Reliable Messaging (WS-RM), and WS-Secure Conversation (WS-SC), which we can use to complete a broad range of interoperability tests. The samples demonstrate the use of JavaBeans artifacts and static service endpoints and proxy-based clients. Additionally, a sample is provided that demonstrates Message Transmission Optimization Mechanism.
We must re-write existing JAX-RPC applications to take advantage of the features of JAX-WS.
Tasks
- Identify your goals and design web services to fit your e-business solution. Consider what we want to accomplish using web services. Decide how web services fit into your current topology, applications and programming model. Determine how the Web services process requests on the server and how the clients manage and use the web service.
- Design the web services for reliability, availability, manageability and security. For example, we want the web services to process a transaction in a reasonable time at all hours of the day and provide users with optimal security, such as authentication for buyers. Planning to use web services to work with WAS helps to meet these requirements.
- Review the standards used in developing and deploying web services onto WAS. Development and deployment are based on a variety of Java programming models.
- Decide what development and implementation tools to use. Use a variety of manual development and implementation tasks. Whether we have an existing web service to implement or we want to develop our own from a JavaBeans implementation or from an EJB module, we can choose different tasks respective to your resources. We can also use assembly tools to complete development and implementation tasks.
- Install the application server. For detailed information on installing the application server, read about installing the application serving environment.
- Review web services samples.
We have a design plan for implementing web services applications into the business architecture.
Related:
JAX-WS JAXB Service-oriented architecture Web services approach to a service-oriented architecture Web services business models supported in SOA Overview: Online garden retailer web services scenarios Accessing the samples Install enterprise application files Task overview: Implementing web services applications Implement web services applications with JAX-WS Implement web services applications from existing WSDL files with JAX-WS Implement web services applications with JAX-RPC Implement web services applications from existing WSDL files with JAX-RPC Implement static JAX-WS web services clients Implement JAX-RPC web services clients Implement extensions to JAX-WS web services clients Implement extensions to JAX-RPC web services clients Web services hints and tips: JAX-RPC vs JAX-WS Web services hints and tips: JAX-RPC vs JAX-WS Part 2