听dj战歌,就上傲气战歌网!2015年传奇家族玩家最喜爱的家族战歌网
战歌推荐:战歌网 战歌网dj Mc战歌网 DJ战歌网下载 激情战歌-冰雪战歌网 客服Q:350317
新闻搜索:

XML, SOAP and Binary Data(4)

作者:傲气战歌网     来源:www.27zg.com    发表时间:2014-03-14 03:00

This suggests that the correct approach to handling opaque binary data in XML is that of encoding; that is, representing such data within the Infoset using the xs:base64Binary or xs:hexBinary types. However, as discussed, there are potential performance issues surrounding this technique.

How, then, can one keep the Infoset model consistent without encountering these drawbacks? We believe that the answer lies in standardized transformations of the Infoset, or in representations of it. In this fashion, the message can be considered as an Infoset, yet avoid the penalties of actually encoding and decoding the data with base64 or hexadecimal text.

To illustrate this, consider the XInclude [XInclude] mechanism, which allows one to create a synthetic Infoset by merging two Infosets, or by merging plain text content into an Infoset. This latter use provides for an interesting possibility; what if XInclude were to allow inclusion of binary data, to be transformed to base64 or hexBinary-encoded data in the resulting synthetic Infoset? This would allow binary data to be integrated into the Infoset whilst still being serialized as raw octets.

Yet another approach would be to define an alternate serialization of the Infoset (much as WBXML [WBXML] has done) that serializes xs:base64Binary and xs:hexBinary typed data as the actual octets, rather than text-encoded octets. One can easily imagine on-disk/on-wire representations that allow opaque data to coexist as raw octets with the encoded characters of the surrounding XML structured data.

These are only two examples of how one could preserve the Infoset and avoid the performance issues associated with base64/hex text encoding. They are not fully specified here, but serve to illustrate that viable alternatives to current approaches exist and should be considered before radically changing SOAP and Web services.

5. Conclusions

Retaining SOAP's tradition of purely Infoset-based messages has various advantages:

The authors of this paper believe strongly that that data and processing model for SOAP has always been and should remain purely XML-based. Literally thousands of man-years have been directed at defining and refining an architecture based on these assumptions. Moreover, the data and processing model for SOAP should deviate as little as possible from the current SOAP/1.2 Candidate Recommendation.

The authors also believe that the XMLP WG charter allows sufficient freedom in associating opaque data with SOAP Messages to define a SOAP specific processing model, including the XInclude approach, as well as participating in or leading other approaches.

6. Acknowledgements

This white paper is the result of ongoing conversations with:

Erik Christensen, Chris Fry, Yaron Goland, Chris Kaler, Andrew Layman, Hal Lockhart, and John Shewchuk.

7. References [soap11] "SOAP: Simple Object Access Protocol 1.1," W3C Note, May 2000. [soap12wd] "SOAP Version 1.2," W3C Working Draft, July 2001. [soap12cr] "SOAP Version 1.2 Part 1: Messaging Framework," W3C Candidate Recommendation, December 2002 [XInclude] "XML Inclusions (XInclude) Version 1.0," W3C Candidate Recommendation, September 2002 [XML] "Extensible Markup Language (XML) 1.0 (Second Edition)," W3C Recommendation, October 2000 [WBXML] "WAP Binary XML Content Format," W3C Note, June 1999 [rfc2045] "Base64 Content-Transfer-Encoding," RFC 2045, Section 6.8, IETF Draft Standard, November 1996 [rfc2557] "MIME Encapsulation of Aggregate Documents, such as HTML (MHTML)," RFC 2557, IETF Proposed Standard, March 1999

1 to 1 of 1

  • . . . and?
    2003-02-26 22:42:44 W. E. Perry
  • . . . and?
    2010-08-29 23:17:44 lonpair789
  • 1 to 1 of 1



    战歌网

    数据统计中!!

    最新评论共有  位网友发表了评论
    发表评论(评论内容:请文明参与评论,禁止谩骂攻击!)
    不能超过250字节,请自觉遵守互联网相关政策法规.
    昵称:    发表评论 (Ctrl+Enter快速回复)

    关于本站 | 合作加盟 | 合作说明 | 免责声明 | 广告服务 | 网站地图

    健康游戏忠告:抵制不良游戏 拒绝盗版游戏 注意自我保护 谨防受骗上当 适度游戏益脑 沉迷游戏伤身 合理安排时间 享受健康生活

    如有意见和建议,请惠赐E-mail至350317@qq.com 联系QQ:350317

    Copyright © 2010-2013 Www.27zG.CoM
    苏ICP备11049833号