[英]There was no endpoint listening GPService that could accept the message. This is often caused by an incorrect address or SOAP action.
Dynamic GP 2013 Setup successfully done at server (Windows Server 2008 R2). 动态GP 2013安装程序已在服务器(Windows Server 2008 R2)上成功完成。 Database auto created on SQL Server 2008 R2.
在SQL Server 2008 R2上自动创建的数据库。 Services are created and these are running.
服务已创建并且正在运行。
Taking a console application on Visual Studio 2012 and added the Web Service of Dynamic GP. 在Visual Studio 2012上使用控制台应用程序,并添加了Dynamic GP的Web服务。
http://MyDomainName:48620/Dynamics/GPService/mex
Use a sample code to test which are given bellow: 使用示例代码来测试以下内容:
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();
}
}
}
}
After running application it gives following error message: 运行应用程序后,它给出以下错误消息:
There was no endpoint listening at http://MyDomainName:48620/Dynamics/GPService/GPService that could accept the message. This is often caused by an incorrect address or SOAP action.
Any idea to solve? 有什么想法要解决吗?
Detail info on Image 图片上的详细信息
Windows Services Windows服务
Check that the following Windows Services are running (Start > All Programs > Administrative Tools > Services): 检查以下Windows服务是否正在运行(开始>所有程序>管理工具>服务):
Check Legacy version by opening the following URL in your browser: 通过在浏览器中打开以下URL来检查旧版本:
http://MyDomainName:48620/DynamicsGPWebServices
Check Native version by opening the following URL in your browser: 通过在浏览器中打开以下URL来检查本机版本:
http://MyDomainName:48620/Dynamics/GPService
Not working? 不行吗
If neither are working try checking all of these things: http://support.microsoft.com/kb/950844 如果两者都不起作用,请尝试检查所有这些内容: http : //support.microsoft.com/kb/950844
Please let us know if you hit any issues at any stage of the above... 如果您在上述任何阶段遇到任何问题,请告诉我们...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.