可能WebService路径不对,数据编码格式不对,如果还不是,把程序贴出来.

解决方案 »

  1.   

    测试一下你的webSevice.
    或着用代理类
      

  2.   

    要添加webservice的发现地址(discover url)你添加的地址是什么样子?
      

  3.   

    http://localhost/AuthorsWebService/AuthorsWebService.vsdisco 很显然这是错误的。应该是一个*.asmx。比如,你的应该是http://localhost/AuthorsWebService/FileName.asmx。(请用你的文件名替换FileName字样。)但是,在很多资料上都说是vsdisco 文件,是怎么回事呢?他们没有错。不过是过时了。我查阅过ms的站点,说的是,以前确实使用这个。后来这个被关闭了(可以在machine.config可以打开)。
      

  4.   

    我口口声声问你要分,我真的那么爱csdn这个分么?不。我希望得到你的肯定、承认罢了。希望你明白。另外,你的title显示出了你的可爱,不过,不适合作为询问技术的一个标题。
      

  5.   

    补充一点权威资料。来自ms msdn:http://msdn.microsoft.com/msdnmag/issues/02/08/XMLFiles/default.aspx
    Q Why did .vsdisco documents stop working with the final release of the Microsoft&reg; .NET Framework? A In the beta releases of the .NET Framework, the .vsdisco HTTP handler was automatically enabled, but for the final release the .NET team decided to disable it by default. If you open machine.config (from a path that looks something like c:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\CONFIG\machine.config) and search for .vsdisco under /configuration/system.web/httpHandler, you'll see that the .vsdisco HTTP handler entry is commented out:<!-- machine.config -->
    &#8226;&#8226;&#8226;
    <httpHandlers>
    <!--
    <add verb="*" path="*.vsdisco" 
          type="System.Web.Services.Discovery.DiscoveryRequestHandler,
          System.Web.Services, Version=1.0.3300.0, Culture=neutral, 
          PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
    -->
    <add verb="*" path="*.aspx" 
          type="System.Web.UI.PageHandlerFactory"/>
          &#8226;&#8226;&#8226;If you open the Microsoft Internet Information Services (IIS) management console and inspect the default application mappings that are configured by the .NET Framework installation, you'll see that the application mapping for .vsdisco documents is still in place (see Figure 1). This means that by default HTTP GET requests for .vsdisco documents are going to be handled by the static file handler (System.Web.StaticFileHandler), which returns the contents of the .vsdisco document, not the results of the dynamic discovery algorithm that searches for Web Service descriptions within the given vroot.
    Figure 1 Application MappingsTo enable machine-wide dynamic discovery support, uncomment the .vsdisco httpHandler entry. If dynamic discovery should remain disabled at the machine level, you can turn it on at the vroot level by adding .vsdisco to the web.config file of the particular vroot, as shown here:<!-- web.config -->
    <configuration>
      <system.web>
        <httpHandlers>
          <add verb="*" path="*.vsdisco" 
           type="System.Web.Services.Discovery.DiscoveryRequestHandler,
           System.Web.Services, Version=1.0.3300.0, Culture=neutral, 
           PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
        </httpHandlers>
      </system.web>
    </configuration>You can just add this web.config file to any vroot that needs dynamic discovery (assuming the vroot hasn't removed the .vsdisco application mapping).
    It's reasonable to have the .vsdisco handler disabled by default since it allows clients to retrieve some of the details of a machine's Web Service configuration. Turning it on forces developers to make a decision before allowing clients to retrieve such information.