开发者

Creating a webservice inside a dll file? Can it be done?

I would like to create a c# dll that handles requests. I would like the requests to come as webservice cal开发者_如何学Pythonls so that websites can quickly call the dll. Is there a way to integrate the two - to have the code for the webservice be placed inside of the dll?

Or, if the webservice has to be separate - is there a way with visual studio to put the webservice into the project with the dll but tell the compiler to compile it as an external file? That way this would at least help me keep my project structure simple and clean.


It's unclear to me what you're really trying to do. "A DLL that services requests" can be implemented in any number of ways.

One way to implement a Web service in a DLL would be to use an HttpListener.

You'll have to supply more information about what exactly you're trying to do before we can provide reasonable answers.


All you need to do is create a new WCF Service Project. This will cause your services to be created as a separate application under IIS. Both projects would be in the same solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜