0

我是 Web 服务的初学者,正在尝试学习 JAX RPC,我已经阅读了消息样式和消息格式。与 Document Literal 结合使用总是更好。这是真的 ??请告诉我我们什么时候使用 RPC 样式?

4

1 回答 1

0

RPC-style encoding was used by old web services that only talked to other systems of the same type (i.e. .net to .net, java to java, etc). The problem was that the encoding of data types was never specified fully, making cross-platform usage difficult.

Document-literal encoding uses XML Schema-constrained documents to pass the data around, which is much more robust, at the expense of higher complexity. It does make cross-platform iweb-services much easier, though.

In summary, RPC encoding is obsolete and very rarely used any more.

于 2011-07-11T17:55:11.193 回答