开发者

asp.net web service OneWay definition not working

开发者 https://www.devze.com 2022-12-28 01:43 出处:网络
When I specify <SoapDocumentMethod(OneWay:=True)> on my webservice it doesn\'t seem to get called.If I remove that the webservice works properly.Also, everything works fine on the development ma

When I specify <SoapDocumentMethod(OneWay:=True)> on my webservice it doesn't seem to get called. If I remove that the webservice works properly. Also, everything works fine on the development machine just not on the server.

Here is my web method:

<SoapDocumentMethod(OneWay:=True)> _
<WebMethod()> _
Public Sub Write(ByVal processGroupId As Integer) 
    xslClass.xslHelper.writeDatabase(processGroupI开发者_JS百科d) 
End Sub

Here is my calling code:

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

Any ideas?


Figured this out. First I turned on tracing following these instructions: http://msdn.microsoft.com/en-us/library/bb885203.aspx

This showed me that when oneWay is turned on I was getting security exceptions. (I don't really understand why I would get that only for oneWay but whatever).

I then add security the folders where I was having security issues. (C:\Windows\temp)

Hope this helps someone.

0

精彩评论

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