WSDL được cho là chuẩn phổ biến trên Internet để làm cho được biết đến các ứng dụng khách hàng tiêu thụ những gì một dịch vụ Web. Chúng tôi cũng đã học được về làm thế nào để tự động tạo ra một lớp Web proxy dịch vụ trong thời gian chạy dựa trên WSDL là không được biết đến tại thời gian thiết kế. | 752 Part VII Web Services and J2EE Figure 33-3 SOAP message with attachments Messages that are exchanged between client and server can be exchanged in synchronous and asynchronous modes. In reality there are a few variations on these two modes. The complete list of message exchange modes is as follows Asynchronous Inquire A message is sent and a response must be received not immediately but at some point in the future Asynchronous Update with Acknowledgement A message is sent and a specific acknowledgement must be received Synchronous Update A message is sent and the sender blocks until a response is received Synchronous Inquiry This is the same as Synchronous Update however the response is only needed to unblock the client Fire and Forget A message is sent and no response is expected or received Connections All messages that are exchanged via JAXM are sent and received via connections. A connection simply represents any link between a client a sender and its corresponding service a receiver . Based on the type of client you are developing you Chapter 33 Web Services with the Sun Java Web Services Developer Pack 753 may choose to connect directly to a service or you may connect to a message provider which will route your message to its ultimate destination. Each connection is created using the typical factory pattern. For example if you wanted to create a direct connection to a service referred to as a point-to-point connection you would simply invoke the static SOAPConnectionFactory. newInstance method which would return a SOAPConnection object. You could then use that connection for all of your synchronous interactions with the service. For asynchronous messaging you would create a Providerconnection by invoking the method. The interfaces for both of these models are very straightforward. JAXM package structure When JAXM was initially introduced all of it classes and interfaces were contained in the .