且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASMX Web服务 - "此Web服务使用http://tempuri.org/作为默认命名空间"。消息 - 但它不应该

更新时间:2021-10-21 08:01:58

咳咳。

过了一会儿,试图找出这一个,我马上回起点,开始质疑我的假设。通常在这种情况下,如果没有人似乎有一个答案,我做的事情真的很密集。

After a while trying to figure this one out, I got right back to the start and began questioning my assumptions. Usually in this kind of situation if nobody seems to have an answer I am doing something really dense.

果然,我有几个班在我的Web服务文件(因为它是一个用于测试的存根,并不会在长期使用),我已经完全在我的.asmx文件作为Web服务的支持代号为错误的类。

Sure enough, I have a couple of classes in my Web Service file ( because it's a stub for testing and will not be used in the long term ) and I had completely the wrong class named in my .asmx file as the supporting code for the web service.

在我纠正了,一切正常。

Once I corrected that, everything worked fine.

我不感到自豪,这是远从我最自豪的时刻,但我会为了以防万一有人离开这个否则运行到同样的问题...

I'm not proud, it's far from my proudest moment, but I'll leave this just in case anyone else runs into the same problem...