当前注册人数423093人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Creating Web Services in a Class Library project

在链接库中动态创建Web服务源代码

2007年12月05日
C# 2.0C# 3.0VB 8.0VB 9.0, Windows, .NET 2.0, .NET 3.5, ASP.NET, WebForms, VS2008, VS2005, Arch, Dev
本文实现如何在一个DLL动态链接库中创建Web服务。
相关知识

先实现WebServiceBase, 然后,创建Web Service

Imports System.Web.Services

<WebService(Namespace:="http://tempuri2.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Public Class WSTest
    Inherits WebServiceBase

    <WebMethod()> _
    Public Function HelloWorld() As String
        Return "Hello World"
    End Function
End Class

 

源代码原文下载:
Creating Web Services in a Class Library project Recently I worked on a plug-in based system, and one of the approaches of this system was to allow each plug-in (dll) to have the capability to host web services. I had never heard about such task before, I made a search on the Web and didn't find anything about that, so I decided to think and fortunately I came with a pretty good solution.This article explains how you can create Web Services in a Class Library project

源码图片

从本站下载附件及源代码(1个附件,已经成功下载69次)

最值得关注的外文源代码

Calculator
CreateUser Control Ajax-enabled using Anthem.NET
IconLib - Icons Unfolded (MultiIcon and Windows Vista supported)
Create Icons at Runtime and Show Them in the System Tray
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论64次,此处显示最近20次评论! 查看所有评论

宁愿  2022年10月18日
学习了,不错
870791837  2018年06月23日
算法很好
vnena  2015年06月02日
谢谢楼主分享
daicheng  2014年10月24日
很好 谢谢楼主
fascinate  2014年09月24日
好的啊
huaxiashuo  2014年09月08日
加油,,加油。。。
jv  2014年09月07日
不错
wcxfairy  2014年06月19日
谢谢啦!
renmg123  2013年12月02日
恩恩,算法很好
杨小妞爱忘词  2013年09月17日
xiexie
二档起步  2013年07月24日
不错的资料
企鹅  2013年05月26日
3Q~~~
diy菜鸟  2013年04月23日
不错的资料
pengpeng612  2013年03月21日
谢谢
gn_2012  2013年03月19日
看看
杯中水DADA  2013年02月24日
spliucc  2012年12月12日
很不错 多谢
innocence  2012年09月24日
楼主给力啊
tanta  2012年07月22日
不错.
qukaito  2012年06月19日
还是不错了
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明