Is it possible to use MTOM in reponse of CXF RESTful Web Service

前端 未结 1 395
囚心锁ツ
囚心锁ツ 2021-01-14 07:29

I\'m using CXF 2.2.12 library for my Web Services.

Is it possible to use MTOM (Message Transmission Optimization Mechanism

相关标签:
1条回答
  • 2021-01-14 08:26

    MTOM is specific to SOAP so I would argue that it is incompatible with a RESTful architecture. However, HTTP supports multi-part content naturally, so you can do everything that MTOM does in HTTP directly.

    If you really wanted you could use XOP for packaging your multi-part content like MTOM does, but it really isn't necessary.

    MTOM is solving a problem that HTTP already solved.

    0 讨论(0)
提交回复
热议问题