我爱Aspx >> Asp.Net >> COM+ Web 服务:通过复选框路由到 XML Web Services(1) (微软中国)要简化在服务器上发布 SOAP 的过程,您可以使用 Microsoft C#™ 或 Visual Basic .NET,并从 ServicedComponent 继承。下面是简单托管组件的托管代码示例:using System;using System.Reflection;using System.Runtime.InteropServices;using System.EnterpriseServices;[assembly: ApplicationName("CSSoap")][assembly: ApplicationActivation(ActivationOption.Server, SoapVRoot="CSSoap")][assembly: AssemblyKeyFile("CSSoap.snk")]namespace CSSoap{ public interface ICalc { double Add (double Value1, double Value2); } [ClassInterface(ClassInterfaceType.AutoDual)] [TransactionAttribute(TransactionOption.None)] public class Calc : ServicedComponent, ICalc { public double Add (double Value1, double Value2); { return (Value1 + Value2); } }}
上述示例中值得注意的是 ApplicationActivation 属性:[assembly: ApplicationActivation(ActivationOption.Server, SoapVRoot="CSSoap")]
建立 C# 组件,将它安装在全局程序集缓存中,然后运行 regsvcs.exe 将它注册为 COM+ 应用程序。这样,该组件就被发布为 IIS 虚拟根和 SOAP 端点。要成功地远程使用 ServicedComponent Ҷƪл˵?
好的,webservice里能返回datase..[05-28]
在Web Service中实现Transaction[05-28]
Data Integrity in Web Services..[05-28]
Data Integrity in Web Services..[05-28]
很老的文章了,不知道有人贴过没..[05-28]
一并给你回答吧:webservice , s..[05-28]
XML Web Service 基础 (转微软MS..[05-28]
在运行时使用 UDDI (微软)[05-28]
实战Web服务[05-28]
Web Service描述语言 WSDL 详解(..[05-28]
好的,webservice里能返回datase..[05-28]
在Web Service中实现Transaction[05-28]
Data Integrity in Web Services..[05-28]
Data Integrity in Web Services..[05-28]
很老的文章了,不知道有人贴过没..[05-28]
浅谈SOAP (转)[05-28]
一并给你回答吧:webservice , s..[05-28]
XML Web Service 基础 (转微软MS..[05-28]
在运行时使用 UDDI (微软)[05-28]
实战Web服务[05-28]