从CRM4升级到2011之后,我一直在尝试将https:///mscrmservices/2007/CrmService.asmx?WSDL添加到我的服务参考中:
错误消息:
There was an error downloading 'https://ServerName/mscrmservices/2007/CrmService.asmx?WSDL'.
The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="https://<ServerName>/mscrmservices/2007/CrmServiceWsdl.aspx">here</a>.</h2>
还试过&#34; https:///mscrmservices/2007/CrmServiceWsdl.aspx"如在错误消息中看到但得到相同的返回。
通过网络访问时,只需在Visual Studio中添加作为参考
即可其他网址运行正常,例如https:///XRMServices/2011/Organization.svc?wsdl = wsdl0
此链接表明它应该没问题: http://msdn.microsoft.com/en-us/library/gg334316.aspx
有没有人见过这个?
答案 0 :(得分:2)
好的,这是一个奇怪的,但我设法让Visual Studio使用服务器的IP下载服务,因为@ccellar突出显示我的网址的“server / {org}”部分有问题使用“主机名”,但无论如何使用IP已经工作!
https://{IP}/mscrmservices/2007/CrmServiceWsdl.aspx
如果您不知道您的IP使用http://network-tools.com/查询
希望这可以帮助任何有此问题的人
感谢@CCellar的指导
答案 1 :(得分:1)
您的网址中似乎缺少组织名称。该网址应如下http{s}://server/{org}/mscrmservices/2007/crmservice.asmx?wsdl