如何创建自定义asp.netweb服务 - sharepoint [英] How do I create a custom asp.netweb service - sharepoint

查看:63
本文介绍了如何创建自定义asp.netweb服务 - sharepoint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想创建一个ASP.net Web服务SharePoint 2013.我使用的是Visual Studio 2015.



我关注此链接



https://msdn.microsoft.com/en-us/library/ms464040(v=office。 14).aspx



我在生成和编辑静态发现和WSDL文件中遇到上述链接的一部分..



当我在Visual Studio命令提示符下命中下面的disco命令生成.wsdl和.disco文件时,我收到错误。



C:\ProgramFile< 86> \ Windows \ microsoftoftSDk \ Windows \bin \v10.0A \。NetFx 4.6.1工具> disco http://servername/_layouts/MyFirstWebService.asmx



我收到以下错误信息。



下载http://servername/_layouts/MyFirstWebService.asmx时出错。



请求失败,HTTP状态为404:未找到。









我的尝试:



我想在代码项目上发布一个问题。我不知道还要写什么。

解决方案

错误非常清楚......你的http://servername/_layouts/MyFirstWebService.asmx的网址没有存在。我想它与servername有关,因为它看起来不像是一个有效的域名。如果这是正确的,您提供的URL就是您所遵循的URL,表示URL应该是MyServer而不是servername。



但是,请求失败,HTTP状态404:未找到非常自我解释......弄清楚您的URL有什么问题,因为我们没有人能够为您做到这一点,因为我们无法访问您的代码,服务器或了解您的项目。

Hi,

I want to create a ASP.net web service SharePoint 2013. I am using Visual Studio 2015.

I am following this link

https://msdn.microsoft.com/en-us/library/ms464040(v=office.14).aspx

I am stuck during "To generate and edit the static discovery and WSDL files" part of the above link..

When I am hitting the below disco command on Visual Studio command prompt to generate the .wsdl and .disco file, I am getting error.

C:\ProgramFile<86>\Windows\MicrosoftSDk\Windows\bin\v10.0A\.NetFx 4.6.1 Tools> disco http://servername/_layouts/MyFirstWebService.asmx

I am getting below error message.

There was an error downloading "http://servername/_layouts/MyFirstWebService.asmx"

The request failed with HTTP status 404: not found.




What I have tried:

I am trying to post a question on code project. i dont know what else to write.

解决方案

The error is pretty clear...your URL of http://servername/_layouts/MyFirstWebService.asmx doesn't exist. I imagine it has something to do with "servername" as that doesn't seem like a valid domain name. Should that be correct, your URL you provided as what you are following indicates the URL should be MyServer and not servername.

But again, "The request failed with HTTP status 404: not found" is very self explanatory...figure out what is wrong with your URL as none of us can do that for you since we don't have access to your code, your servers or know anything about your project.


这篇关于如何创建自定义asp.netweb服务 - sharepoint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆