Michael Lei · Jun 28, 2021

uploading files with csp and webservice

Why do I upload files faster with webservice than with csp?

The soap protocol used by webservice has to go through http protocol. csp directly handles http, no xml encapsulation, so it should be faster.

After testing, for a 1M file, csp is about 0.1s slower. After the gateway connection to 1972, there is a stall of about 0.1s, not sure why.

Is there any way to make the file upload speed of csp faster than webservice?




0 257
Discussion (1)1
Log in or sign up to continue

In general, SOAP should be used over should probably be used over CSP as CSP is only recommended for legacy applications:

There's a lot of different ways the difference in latency could be added, from Authentication differences to how the page is being handled.

As SOAP is still getting active development, it's also possible that optimizations have been built in for SOAP that haven't for CSP.

Others may be helpful for how to code optimizations in the CSP page if you want to go that route, but SOAP is the preferred way.