Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am having 3 tire architecture
DB layer
BO layer
UI layer

I want to expose all the methods of all classes for BO layer as webservice (.asmx)
and UI layer will access a webservice.
BO layer has 100 classes
How do I achieve this task?

I have a good knowledge to create/expose/consume a web service.

For e.g.(2 classes considered)
class A
Add()
update()
Delete()

classB
Addition()
Multiply()
Divide()

Now I want to add a web service layer and my web service will expose all these classes, and this classes will expose their methods as web methods

What is the best possible way to expose all this methods for respective classes (I am having 100 classes)
Posted

1 solution

What is the best possible way to expose all this methods for respective classes
Well, I doubt if there would be any shortcut here.

You need to create a webservice project and put it in between BO & UI layer. Have multiple classes (with needed webmethods) in webservice to expose BO methods of your 100 classes. Get started.
 
Share this answer
 
Comments
sachin10d 24-May-12 3:23am    
I don't want any short cut way, but a best standard, to reduce code repetition.
Sandeep Mewara 24-May-12 4:10am    
Try what I suggested. It's standard way and not a shortcut.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900