C# 如何让我的Spring.net Web服务正常工作?

C# 如何让我的Spring.net Web服务正常工作?,c#,asp.net,spring.net,C#,Asp.net,Spring.net,我正在尝试设置一个Spring.net web服务,但不断收到一条我无法理解的错误消息 错误: System.NotSupportedException: Target 'target' of type 'Spring.Objects.Factory.Support.RootWebObjectDefinition' does not support methods of 'StudentRegistration.Services.IBoundaryService'. at Spring.U

我正在尝试设置一个Spring.net web服务,但不断收到一条我无法理解的错误消息

错误:

System.NotSupportedException: Target 'target' of type 'Spring.Objects.Factory.Support.RootWebObjectDefinition' does not support methods of 'StudentRegistration.Services.IBoundaryService'.
   at Spring.Util.AssertUtils.Understands(Object target, String targetName, Type requiredType)
   at HelloWorldExporter.GetAllBounds()
代码:

公共接口IBoundaryService{
XmlDocument GetAllBounds();
}
公共类边界服务:IBoundaryService
{
公共虚拟IBoundaryDao BoundaryDao{get;set;}
公共虚拟XmlDocument GetAllBounds()
{
XmlDocument xmlDoc=新的XmlDocument();
LoadXml(“ok”);
返回xmlDoc;
}
}
配置:

  <object name="BoundaryService" type="StudentRegistration.Services.BoundaryService, StudentRegistration"
        abstract="true">
  </object>

  <object id="BoundaryExporter" type="Spring.Web.Services.WebServiceExporter, Spring.Web">
    <property name="TargetName" value="BoundaryService"/>
    <property name="Namespace" value="http://fake/services"/>
    <property name="Description" value="something"/>
    <property name="MemberAttributes">
      <dictionary>
        <entry key="GetAllBounds">
          <object type="System.Web.Services.WebMethodAttribute, System.Web.Services">
            <property name="Description" value="something."/>
            <property name="MessageName" value="GetAllBounds"/>
          </object>
        </entry>
      </dictionary>
    </property>
  </object>


我应该怎样澄清这一点呢?

xml声明中的Spring.NET引用是错误的(几天前我也遇到过同样的问题),或者我应该说它不是非常清楚

<object name="BoundaryService" 
        type="StudentRegistration.Services.BoundaryService, StudentRegistration"
        abstract="true" />
WebServiceExporter的
target
属性适用于声明对象的
id
,抽象部分不是必需的,因为Spring.NET承担了生成webservice的角色

请注意,您公开的服务名称(带有当前cfg)将是
(..)/BoundaryExporter.asmx

编辑: 至少对于spring版本1.3.0.20349,使用名称、类型属性的standard.asmx web服务的config语句似乎已被破坏

<object name="BoundaryService" 
        type="StudentRegistration.Services.BoundaryService, StudentRegistration"
        abstract="true" />
<object id="BoundaryService" 
        type="StudentRegistration.Services.BoundaryService, StudentRegistration"
 />