Java 2EE and XML Development

Скачать в pdf «Java 2EE and XML Development»

You might also use XML to encode the data values passed back and forth between remote objects. You could, for example, serialize a DOM structure to

a string and use it as a parameter in a remote method invocation. Serializing a Java value object to XML and passing it to a non-Java based remote object can be an easy way to convert data objects between platforms.

4.2 A web services scenario

In section 4.1, we reviewed several different methods for integrating your applications with remote systems. Due to the newness of SOAP and web services, and the great potential that they have to make a significant impact on application integration, we review and analyze them in detail in sections 4.3 and 4.4.

In order to bring some context to the discussion in the next two sections, we apply a real world example involving a manufacturer and a distributor. The manufacturer makes products that the distributor sells. There has been a slight problem with this arrangement because the manufacturer changes product information such as pricing every so often, and the distributor is still working with the old data. Both companies decided to analyze the use of SOAP and web services to transmit product information between their companies. We will develop the code necessary to make this integration happen over the next two sections. Figure 4.8 depicts the communication between both companies.


Pricing Updates ^-w




Product Image



Скачать в pdf «Java 2EE and XML Development»