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

前端 未结 3 675
佛祖请我去吃肉
佛祖请我去吃肉 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条回答
  •  日久生厌
    2021-02-07 09:24

    You cannot (should never) stream the data within a web service, as in continously sending XML over the HTTP connection in a single web-service request over time. You will have to make many single web-service calls, or accumulate several calls into one.

    If you need high performance, web-services are not great. But you can hand-optimize simple web-services, it is not that hard. But switching to another transport format would be more 'on the money' if you need higher performance. I'd still keep things over HTTP - especially if you have some authentication requirements.

提交回复
热议问题