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 "Soti, Dheeraj" <ds...@harris.com> on 2005/03/12 00:35:58 UTC

Is it Ok to expose the middle-tier objects directly through web s ervices?

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