title: There was no endpoint listening GPService that could accept the message. This is often caused by an incorrect address or SOAP action.
body: <p>Dynamic GP 2013 Setup successfully done at server (Windows Server 2008 R2). Database auto created on SQL Server 2008 R2. Services are created and these are running. </p>
  
  <p>Taking a console application on Visual Studio 2012 and added the Web Service of Dynamic GP. <code>http://MyDomainName:48620/Dynamics/GPService/mex</code></p>
  
  <p>Use a sample code to test which are given bellow:</p>
  
  <pre><code>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();
              }
          }
      }
  }
  </code></pre>
  
  <p><strong>After running application it gives following error message:</strong></p>
  
  <p><code>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.</code>  </p>
  
  <p><strong>Any idea to solve?</strong></p>
  
  <p>Detail info on Image</p>
  
  <p><img src="https://i.stack.imgur.com/Fj6o9.png" alt="enter image description here"></p>