Handling SOAP Messages
Handling XML Data
Java provides the following two APIs for parsing XML data:
- JAXP
- JAXB
JAXP
Includes:
- SAX API
- Process an XML document in the form of a steam of data
- Allows only reading of an XML document.
- DOM API
- Allows reading and manipulation of an XML document at runtime
- Parses the XML doc by using a DOM parser
JAXB
JAXB is an API that parses an XML doc by converting the XML doc into a tree of Java objects and then again, converting these trees into the XML doc.
Steps:
1.Compilation
2.Validation
3.Unmarshalling
4.Marshalling
Handling Non-XML Data
SAAJ(SOAP with Attachments API for JAVA) is an API that contains methods to exchange SOAP messages between the clients and the Web applications along with non-XML data.
Working with Metro Web Services
The Metro Web Service Stack
Metro is a software stack, which fulfills all you Web service related requirements.
Metro integrates various technologies used in the Web service development in a single software stack, providing faster, secure, reliable, interoperable, and performance-oriented Web services.
Metro uses JAX-WS and WSIT for Web service development.
JAX-WS
The JAX-WS provides the core APIs required for Web service development.
WSIT(Web Services Interoperability Technology)
The WSIT provides APIs for secure message delivery, optimization of messages for faster message transfer, and reliable message delivery to ensure that messages reach their destinations.
Specifications:
- Core XML
- Bootstrapping and configuration
- Optimization
- Reliability
- Security
Web Service Patterns
Design patterns
Design patterns are well-thought out and previously-used solutions to programming problems.
- Asychronous Interaction Pattern
- Web Service Cache Pattern
- Web Service Broker Pattern
- Web Service Logger Pattern
- Web service
- Secure logger
- Log reader
- Log viewer
Deployment Patterns are well-thought out and previously-used solutions for deployment problems.
- HTTP load balancing pattern
- Container cluster pattern