What is the difference between:
- Using ajax to call web services directly and rendered the result into the html, and
- Using ajax to call a local proxy and let the local proxy to call web services?
What is the difference between:
the biggest difference is database transactions. if your web service layer is orthogonal and fine-grained and common use-cases require multiple calls. often you want to bundle more than one call into a single atomic database transaction: e. g. (debit account A, credit account B).
to do this you must use a local proxy because you cannot demarcate transactions on the client.