SoapExtension not loading

后端 未结 1 2013
逝去的感伤
逝去的感伤 2021-02-09 12:21

I\'m trying to write a soap extension. But the framework is not loading it.

I\'ve added to the web.config


    

        
1条回答
  •  你的背包
    2021-02-09 13:05

    I have been having a problem with similar behaviour but I don't know if it's exactly the same.

    When writing, compiling and applying my SoapExtension, in web.config and on my web method, everyting seems to work correctly, but when accessing my web service my extension was not being used. I think I just figured this one out.

    It looks like the extension is not being used when making requests to the web service through the test pages (via a browser). If you, on the other hand, add a web reference to a console application the extension is being called.

    Hope this is your problem and my answer will help you.

    Edit:

    Just read a little more; the reason seems to be that when using the test-pages, the HTTP-POST protocol is being used to access the web methods and the SOAP protocol is not involved, ALAS SoapExtensions are not being called.

    0 讨论(0)
提交回复
热议问题