soa - Should you return HTML from a web service? -


i have situation 2 components being designed have similar presentation requirements, have been built using different technology stacks (one java , other .net). 1 feature, developers propsing using web service returns html both components can re-use same display logic. have been told bad practice use web service in fashion, , web service should focus on data.

in terms of web-service or soa best practrices, should return html web service?

if it's web service (i.e. meant called scripts), html bad idea, you'll have difficult time handling error situations.

a well-designed xml or json answer way go these days.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -