java - Do we really need ServiceFacade Design Pattern while consuming a web-service? -


i wanted know if servicefacade design pattern required while consuming web-service.

http://soapatterns.org/design_patterns/service_facade

any insight , code snippet helpful.

thanks in advance !!

the aim of facade provide forward (or client) facing endpoint, in turn provides needed communication , hide behind outside world.

having facade allow abstract behaviour without exposing it. allow make changes without potentially affecting endpoint itself. depends on type of changes obviously, if have requirements require change in logic might possible actual input , output of service remain untouched.

if away service facade, changes code might require clients update code end, , who, reason not update might end broken system or else have cater multiple versions.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -