问题描述
我正在尝试编写肥皂扩展名.但是框架没有加载它.
I'm trying to write a soap extension. But the framework is not loading it.
我已添加到web.config
I've added to the web.config
<webServices>
<soapExtensionTypes>
<add group="High" priority="1" type="Lisa.Admin.SoapExceptionExtension,Lisa.Admin" />
</soapExtensionTypes>
</webServices>
即使我将类型更改为废话也不会抛出异常.
and even if I change the type to some bullshit It does not cast an exception.
推荐答案
我一直在遇到类似行为的问题,但我不知道它是否完全相同.
I have been having a problem with similar behaviour but I don't know if it's exactly the same.
在web.config和Web方法中编写,编译和应用SoapExtension时,一切似乎都能正常工作,但是在访问我的Web服务时,未使用我的扩展名.我想我只是想通了.
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.
当通过测试页(通过浏览器)向Web服务发出请求时,似乎未使用该扩展名.另一方面,如果您将Web参考添加到正在调用扩展名的控制台应用程序中.
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.
再读一点;原因似乎是在使用测试页时,使用HTTP-POST协议访问Web方法,并且不涉及SOAP协议,没有调用ALAS SoapExtensions.
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.
这篇关于SoapExtension未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!