在BO和UI层之间添加Webservice层 [英] Add Webservice layer between BO and UI layer

查看:178
本文介绍了在BO和UI层之间添加Webservice层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有3种轮胎结构
数据库层
BO层
UI层

我想将BO层的所有类的所有方法公开为webservice(.asmx)
和UI层将访问Web服务.
BO层有100个班级
如何完成这项任务?

我具有创建/公开/使用Web服务的丰富知识.

例如(考虑了2个类别)
A级
Add()
update()
Delete()

classB
加法()
Multiply()
Divide()

现在,我想添加一个Web服务层,我的Web服务将公开所有这些类,并且这些类将其方法公开为Web方法.

公开各个类的所有方法的最佳方法是什么(我有100个类)

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)

推荐答案

公开所有方法的最佳方法是什么该方法适用于各个类
好吧,我怀疑这里是否会有捷径.

您需要创建一个Web服务项目,并将其放在BO&之间. UI层. Web服务中有多个类(具有所需的Web方法)以公开100个类的BO方法.开始使用.
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.


这篇关于在BO和UI层之间添加Webservice层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆