C# 没有可以接受消息的端点侦听服务。这通常是由不正确的地址或SOAP操作引起的。
在服务器(Windows server 2008 R2)上成功完成动态GP 2013安装。在SQL Server 2008 R2上自动创建数据库。服务已创建并正在运行 在Visual Studio 2012上使用控制台应用程序,并添加了Dynamic GP的Web服务<代码>http://MyDomainName:48620/Dynamics/GPService/mex 使用下面给出的示例代码进行测试:C# 没有可以接受消息的端点侦听服务。这通常是由不正确的地址或SOAP操作引起的。,c#,web-services,C#,Web Services,在服务器(Windows server 2008 R2)上成功完成动态GP 2013安装。在SQL Server 2008 R2上自动创建数据库。服务已创建并正在运行 在Visual Studio 2012上使用控制台应用程序,并添加了Dynamic GP的Web服务http://MyDomainName:48620/Dynamics/GPService/mex 使用下面给出的示例代码进行测试: using System; using System.Collections.Generic; us
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebServiceConsoleApp.DynamicGPAtTen;
using System.ServiceModel;
namespace WebServiceConsoleApp
{
class Program
{
static void Main(string[] args)
{
CompanyKey companyKey;
Context context;
Vendor vendor;
VendorKey vendorKey;
Policy vendorPolicy;
// Create an instance of the service
DynamicsGPClient wsDynamicsGP = new DynamicsGPClient();
// Create a context object with which to call the web service
context = new Context();
// Specify which company to use (sample company)
companyKey = new CompanyKey();
companyKey.Id = (-1);
// Set up the context
context.OrganizationKey = companyKey;
// Create a new vendor key
vendorKey = new VendorKey();
vendorKey.Id = "TstVndr0001";
// Populate the vendor object
vendor = new Vendor();
vendor.Key = vendorKey;
vendor.Name = "TestVendor0001";
// Get the create policy for the vendor
vendorPolicy = wsDynamicsGP.GetPolicyByOperation("CreateVendor", context);
// Create the vendor
wsDynamicsGP.CreateVendor(vendor, context, vendorPolicy);
// Close the service
if (wsDynamicsGP.State != CommunicationState.Faulted)
{
wsDynamicsGP.Close();
}
}
}
}
运行应用程序后,会出现以下错误消息:
没有端点正在侦听http://MyDomainName:48620/Dynamics/GPService/GPService 这可以接受这个信息。这通常是由于地址或SOAP操作不正确造成的。
有什么解决办法吗?
关于图像的详细信息
Windows服务 检查以下Windows服务是否正在运行(开始>所有程序>管理工具>服务):
- Microsoft Dynamics GP服务主机
- 用于Microsoft Dynamics GP的eConnect 2013集成服务
http://MyDomainName:48620/DynamicsGPWebServices
在浏览器中打开以下URL检查本机版本:
http://MyDomainName:48620/Dynamics/GPService
不工作?
如果两者都不起作用,请尝试检查所有这些内容:
如果您在上述任何阶段遇到任何问题,请告知我们…我们的版本是Dynamic GP 2013<代码>http://MyDomainName:48620/DynamicsGPWebServices/DynamicsGPService.asmx这在2013年下半年有效。@Khalidarhan-我已经扩展到包括遗留测试、本机测试和一些测试。当你们浏览到每一个网站时,看看你们得到了什么,我们可以从那里开始。通过将配置文件域名更改为IP
好东西,得到了解决方案!我希望我的回答能对你有所帮助?听起来你需要查看你的DNS设置。