在 Visual Studio 中为 Dynamics Axe 创建 Web 服务参考
我正在尝试在 Visual Studio 中为我已经在 Dynamics ax 中创建的服务创建服务引用。
当我输入网址时,我收到一条错误消息:
下载时出错 'http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl'。 无法解析远程名称:“template.2003x86.local”元数据 包含无法解析的引用: 'http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl'。
没有端点在监听 http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl 可以接受该消息。这通常是由不正确的操作引起的 地址或 SOAP 操作。有关更多信息,请参阅 InnerException(如果存在) 细节。无法解析远程名称: 'template.2003x86.local' 如果服务定义在当前 解决方案,尝试构建解决方案并添加服务引用 再次。
AX2009安装在虚拟机上,Visual Studio安装在我的电脑上。 我应该进行哪些配置以及在哪里进行?
I'm trying to create a service reference in visual studio for a service that i've already made in dynamics ax.
when i enter the url i get an error message which says:
There was an error downloading
'http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl'.The
remote name could not be resolved: 'template.2003x86.local' Metadata
contains a reference that cannot be resolved:
'http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl'.There was no endpoint listening at
http://template.2003x86.local/MicrosoftDynamicsAXAif50/customerservice.svc?wsdl
that could accept the message. This is often caused by an incorrect
address or SOAP action. See InnerException, if present, for more
details. The remote name could not be resolved:
'template.2003x86.local' If the service is defined in the current
solution, try building the solution and adding the service reference
again.
the AX2009 is installed on a virtual machine and the visual studio on my pc.
what configurations should i make and where?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您的电脑不属于名为 2003x86.local 的域,并且您的 VPC 上安装了自己的域?这是至关重要的信息。
假设您的 PC 位于不同的域中,并且 2003x86.local 只是 VPC 上的一个虚构域,您需要让您的 PC 知道在哪里可以找到 2003x86,因为它不在您的 DNS 中。
实现此目的的一个简单方法是使用 PC 上的 HOSTS 文件。这将允许您告诉您的 PC 它可以找到哪个 IP 地址 template.2003x86.com
您可以通过 Google“HOSTS”文件来了解如何使用它。您需要知道 VPC 实例的 IP 地址。
I assume your pc is not part of a domain called 2003x86.local, and your VPC has its own domain installed on it? This is crucial information.
Assuming your PC is in a different domain and 2003x86.local is just a made up domain on the VPC, you will need to have your PC know where to find 2003x86 because it won't be in your DNS.
An easy way to accomplish this is using the HOSTS file on your PC. This will allow you to tell your PC what IP address it can find template.2003x86.com
You can Google "HOSTS" file to find out how to use this. You will need to know the IP address of your VPC instance.