Adapter Vs. SelfServicing in Web Services

Posts   
 
    
orenpeled
User
Posts: 53
Joined: 25-Jul-2005
# Posted on: 25-Jul-2005 14:30:10   

Hi,

I am dealing with web services, and according to the documentation Adapter is the better approach. However, my Oracle-database is pretty cumbersome, meaning that there are many irrelevant fields for the client. To make a long story short, I decided to expose "light" classes to the client, and to completely work with the LLBLGen classes in the Server side after performing appropriate conversions from the light classes.

Now, knowing that the client does not get LLBLGen classes, should I still prefer Adapter over SelfServicing?

And in general, are there any performance issues I should consider when choosing between Adapter and SelfServicing?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 25-Jul-2005 15:08:22   

If you're passing your own messages accros (which is good, it's better SOA) which you fill from entities on the server, it means that you're not having the entity code on the client, so you won't run into problems on teh client where it wants to load data from the database but it can't because it obviously has to read from the webservice.

Frans Bouma | Lead developer LLBLGen Pro
orenpeled
User
Posts: 53
Joined: 25-Jul-2005
# Posted on: 25-Jul-2005 15:19:24   

I understand that I have nothing to worry about the client. However, both of my questions refer to the server side, considering the issues you've mentioned. In short, everything is performed in the server side, so I guess the Adapter looses its advantages in my case?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39749
Joined: 17-Aug-2003
# Posted on: 25-Jul-2005 17:06:14   

Yes, that's what I tried to explain, sorry if I was unclear. simple_smile . Selfservicing's disadvantage in a distributed scenario isn't present in your case.

Frans Bouma | Lead developer LLBLGen Pro
orenpeled
User
Posts: 53
Joined: 25-Jul-2005
# Posted on: 26-Jul-2005 09:44:14   

OK, thanx a lot!