How to use direct streaming for SOAP with Spring-WS?

前端 未结 3 673
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 08:56

We want to enable direct streaming of our payload in webservice endpoints. We have to process a large amount of data and want to stream the data while processing.

We use

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 09:22

    I can only think of a hack for this - stacks(cxf, spring ws etc) would buffer the entire message as they have to validate the response xml, to be able to calculate the cryptographic keys if security is enabled etc.

    So the hack would be to write your own custom servlet/spring controller which would handle this specific response and stream out the soap envelope, then your payload, then the end tag of soap envelope. This is assuming you don't have any WSS requirements.

提交回复
热议问题