【问题标题】:There was no endpoint listening GPService that could accept the message. This is often caused by an incorrect address or SOAP action.没有可以接受消息的端点侦听 GPService。这通常是由不正确的地址或 SOAP 操作引起的。
【发布时间】:2014-03-18 10:13:34
【问题描述】:

Dynamic GP 2013 安装程序已在服务器 (Windows Server 2008 R2) 上成功完成。在 SQL Server 2008 R2 上自动创建的数据库。服务已创建并且正在运行。

在 Visual Studio 2012 上开发一个控制台应用程序,并添加了 Dynamic GP 的 Web 服务。 http://MyDomainName:48620/Dynamics/GPService/mex

使用下面给出的示例代码进行测试:

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();
            }
        }
    }
}

运行应用程序后,它会给出以下错误消息:

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.

有什么解决办法吗?

图片的详细信息

【问题讨论】:

    标签: c# web-services


    【解决方案1】:

    Windows 服务

    检查以下 Windows 服务是否正在运行(开始 > 所有程序 > 管理工具 > 服务):

    • Microsoft Dynamics GP 服务主机
    • eConnect for Microsoft Dynamics GP 2013 年整合服务

    通过在浏览器中打开以下 URL 检查旧版本:

    http://MyDomainName:48620/DynamicsGPWebServices

    通过在浏览器中打开以下 URL 检查原生版本:

    http://MyDomainName:48620/Dynamics/GPService

    不工作?

    如果两者都不起作用,请尝试检查所有这些内容:http://support.microsoft.com/kb/950844

    如果您在上述任何阶段遇到任何问题,请告诉我们...

    【讨论】:

    • 我们的版本是 Dynamic GP 2013。http://MyDomainName:48620/DynamicsGPWebServices/DynamicsGPService.asmx 这工作低于 2013 年。
    • @KhalidFarhan - 我已经扩展到包括 Legacy 和 Native 以及一些测试。当您浏览到每一个时,看看您会得到什么,我们可以从那里开始。
    • 通过将配置文件域名更改为IP <endpoint address="http://MyIP:48620/Dynamics/GPService/GPService" ...得到解决方案面临另一个问题[调用者未经GP服务身份验证]:[stackoverflow.com/questions/22477436/…
    • 好东西!希望我的回答对你有一点帮助?听起来您需要查看您的 DNS 设置。
    猜你喜欢
    • 1970-01-01
    • 2010-12-14
    • 2021-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-29
    • 2016-03-25
    相关资源
    最近更新 更多