开发者

How to access a MTOM payload when using document oriented SOAP?

开发者 https://www.devze.com 2022-12-31 23:16 出处:网络
I need to integrate an external SOAP Service into my system. I have only the wsdl and no test server so far. I figured out how to generate stubs for the server using CXF in order to build a mocking se

I need to integrate an external SOAP Service into my system. I have only the wsdl and no test server so far. I figured out how to generate stubs for the server using CXF in order to build a mocking server to implement against.

On the client side the spring webservices WebServiceTemplate seems the perfect match for my use case. Two of the methods are sen开发者_运维技巧ding MTOM attachments as a result. And I'm not sure what I will see when looking at the response documents. Does spring-ws handle the attachment tranparently? Or do I need to access it in a special way?

And how do I generate an MTOM attachment on the server with my CXF generated classes?


Spring-WS operates over an underlying SOAP implementation, either SAAJ or Axiom. SAAJ is the default, but I don't think it supports MTOM (but I'm happy to be corrected on that). Axiom is the low-level SOAP implementation from Apache Axis2, and it does support MTOM.

So I'd recommend reading up on Spring-WS's support for Axiom, and Axiom's support for MTOM.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号