11.07.2015 Views

Anyframe CXF JAX-WS Plugin

Anyframe CXF JAX-WS Plugin

Anyframe CXF JAX-WS Plugin

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Databinding3.2.2.Client ConfigurationAmong ways to develop client to access Web Services, if you use Spring Configuration XML setting, youcan use it simply and conveniently.3.2.2.1.SamplesThe following is an example of accessing Movie Service exposed to Web Services.• Test CaseWhen using binary data in attachment type, not as a part of xml document, using MTOM, it testswhether MTOM Databinding is properly working and thereby searching and modifying poster imagebinary file of Movie.Using Spring Configuration XML Client setting (<strong>JAX</strong>-<strong>WS</strong> Frontend)Using MTOM Databinding can be defined through setting Spring Configuration XML....3.2.3.References - Contents related to MTOM• Spec. suggested by W3C for enhancing Web Services performance• In January 2005, W3C (World Wide Web Consortium) suggested the following three Web Servicesspecs. They provide ways to efficiently package or transmit binary data referring to or includingSOAP 1.2 message.• XOP (XML-binary Optimized Packaging), MTOM (SOAP Message Transmission OptimizationMechanism), RRSHB (Resource Representation SOAP Header Block)• Binary data transmission• When a part of xml document is binary data, it must be encoded as base64. This increases CPUusage percentage and payload size. One of the characteristics of Web Services is that transmittedmessage is composed of xml and eases transmission between heterogeneous systems. This isbecause of the fact that as xml is a kind of text document, the portability is good between differenttypes. However, to add binary data to text xml document, encoding is needed in base64 type, whichleads to more than 50% of binary data capacity. Also, to handle encoding and decoding, 5~10%of CPU load is added. In other words, when transferring binary data, using Web Services causesreduced performance.• Using MTOM creates binary data in SOAP-Attachment type, not as a part of xml document. Therefore,it can resolve the problems mentioned above.• If you add xmime:expectedContentTypes="application/octet-stream" to Schema type, byte[] forbase64Binary element is not created, but DataHandler for data streaming is created.• Providing the means and ways to transmit large-size binary data.17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!