You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dino Chiesa <di...@microsoft.com> on 2005/03/12 01:36:39 UTC

RE: Is it Ok to expose the middle-tier objects directly through web services?

Yes, 

In simple scenarios, it adds complexity without adding benefit.
In more complex (real world?) scenarios, it introduces that interface
layer which shields clients from changes.  Absolutely a good idea. 

In addition, some people introduce auditing and logging at that
communications layer.  So that is another potential benefit. 


 

-----Original Message-----
From: Soti, Dheeraj [mailto:dsoti@harris.com] 
Sent: Friday, March 11, 2005 6:36 PM
To: 'axis-user@ws.apache.org'
Subject: Is it Ok to expose the middle-tier objects directly through web
services?

Hi,

I have seen some examples where companies write a different set of
objects and expose them through wsdl. The service implementation can
then convert those objects into their internal counterparts. The
advantages are:

--Every change in the internal structure doesn't break the API. 
--Allows backward compatibility.
--Complex structures can be simplified and then exposed so that it is
easier for clients to understand.
--Helps to resolve the incompatible data types.

Does anyone has some feedback on this approach.

Thanks

Dheeraj