A New Day Is Coming ... Preliminary knowledge Enter the learning Java Web Service pre-need to understand the following knowledge points, mainly about XML and Web Service Basics, it is best to understand the history of these technologies, between XML Concept, using XSL / XSLT concept Java XML Parser: DOM / SAX, Concept, Usage WEB Service Concept, State State Standard: SOAP, WSDL, UDDI, EBXML JAVA RMI Knowledge Structure As Sun Latest Published JWSDP Package Structure, Java Web Service Contains the following technical module JAXP Java API for XML processing Using various parsers to process XML Document JAXB Java Architecture for XML Binding Using Mode Pattern Send JavaBeans Component class Processing XML Document JAX-RPC Java API for XML-based RPC to remotely each other Make SOAP method calls, and receive returned results JAXM (SAAJ) Java API for XML Messaging Send SOAP messages in a standard manner with a standard manner with a standard way to provide a standard way for accessing business registry and sharing information. JWSDP also includes Tomcat Servlet Container JSTL Client End Development (JSP) Standard Tag Library Registration Center Server, a test-based registration center server JAXP JAXP should be the most easily understood part of the Web Service process, which as an XML parsing / write module Not only in Web Service development. JAXP is launched as a framework instead of the Parser implementation, in fact, it contains only six critical classes, providing a standard interface for obtaining an XML parser, configuring any DOM / SAX parser. JAXB JAXB provides a quick and convenient way to bind an XML mode to a representation of Java code, making Java developers more easily integrated XML data and Java applications, without having to There are a lot of understanding of XML itself. Supports bindings in the following: XML Schema Compile Java Class 2, XML Doc Unmarshal Java Object 3, Java Object Marshal XML Doc 4, Java Object Validate BY XML Schemajax-RPC A remote call mechanism, based on SOAP messaging, support WSDL Advanced Features: Allows the sending of the entire document, also allows a part of the sending document to support SOAP message processing, and supports scalable type mapping implementation processes: Server: 1, define web service interfaces (ie, the service provided, extended RMI.Remote) 2. Implement the interface class 3, run the mapping tool, WSDeploy generate TIE classes and WSDL 4 according to the interface and class, package deployment, can be packaged into the WAR (generate web.xml files, which contain attribute files generated by the mapping tool) Client: 1 , Run mapping tool, WSCompile generates a Stub factory based on WSDL, Stub Class 2, and gets STUB from the Stub Factory for remote call JAXM defines a basic XML information exchange frame. JAXM is based on SOAP and an accessory SOAP specification and can extend to the use of higher level messaging protocols.
JAXM is more suitable for SOAP messages than JAX-RPC, and Messaging Provider supports the following advanced features: 1, single item (asynchronous) message transmission 2, can route messages to multiple places 3, reliable messaging, however, due to the Uncertainty of SOAP format Generally, only the same SCHEMA can be used only after the customer / service provider negotiation, otherwise, the JAX-RPC is more versatile (from the public WSDL to get the interface). JAXR provides a unified approach to accessing an XML registry. XML registration center is used to store information about the published web service. The current most common registration center is a UDDI registry. JWSDP provides a registry server for testing. Basic Action: Registering Search Registration Some Experience 1, Web Service is defined from both Client and Server, relative to the protocol. The reason is to take into account the separation of the client / server and compatible with other systems. 2. Since Web Service is considered in the design process, it is important to understand the use of each component, and the dependency between the other protocols / systems and access.