【问题标题】:asp.net web service OneWay definition not workingasp.net Web 服务 OneWay 定义不起作用
【发布时间】:2010-04-22 22:48:07
【问题描述】:

当我在我的网络服务上指定 <SoapDocumentMethod(OneWay:=True)> 时,它似乎没有被调用。如果我删除该网络服务正常工作。此外,在开发机器上一切正常,只是在服务器上不行。

这是我的网络方法:

<SoapDocumentMethod(OneWay:=True)> _
<WebMethod()> _
Public Sub Write(ByVal processGroupId As Integer) 
    xslClass.xslHelper.writeDatabase(processGroupId) 
End Sub

这是我的调用代码:

    Dim svc As New svcWriteFiles.WriteDatabaseService
    svc.WriteAsync(e.CommandArgument)

有什么想法吗?

【问题讨论】:

  • 你是如何确定它没有被调用的?
  • 服务在被调用时向系统写出一个文件。当 OneWay 为真时,这不会发生。

标签: asp.net vb.net web-services


【解决方案1】:

想通了。首先,我按照以下说明打开了跟踪:http://msdn.microsoft.com/en-us/library/bb885203.aspx

这表明我在打开 oneWay 时遇到了安全异常。 (我真的不明白为什么我会只为 oneWay 得到它,但无论如何)。

然后,我在遇到安全问题的文件夹中添加安全性。 (C:\Windows\temp)

希望这对某人有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-06-04
    • 1970-01-01
    • 1970-01-01
    • 2018-05-03
    • 2022-06-21
    • 1970-01-01
    • 2016-01-09
    相关资源
    最近更新 更多