title: How to configure an external SOAP service in a net core 2.2 project
body: <p>I have a project developed in .net core 2.2.
  You need to use a WCF in .Net Framework.
  The inclusion of WCF and Reference.cs went well. The service is Ok, as a connected service.
  However I am getting a dependency injection error:</p>
  
  <p><code>microsoft.extensions.dependencyinjection.servicelookup.callsite factory.create argument callsite(type servicetype, type implementationtype, callsitechain callsitechain, parameterinfo[] parameters, bool throwifcallsitenotfound)</code></p>
  
  <p>Performing searches on the internet, some answers were related to the configuration of Startup.cs and Program.cs:</p>
  
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {
           services
                  .AddMvc()
                  .SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
                  .AddSessionStateTempDataProvider()
                  .AddJsonOptions(options =&gt;
                  {
                      options.SerializerSettings.ContractResolver = this.GetJsonSerializerContractResolver();
                      options.SerializerSettings.DateFormatString = this.GetJsonSerializerDateFormatString();
                  });
           this.ConfigureIoC(services);
  }
  
  private void ConfigureIoC(IServiceCollection services)
  {
           this.ConfigureHelpers(services);
           this.ConfigureUnitOfWorks(services);
           this.ConfigureFacades(services);
           this.ConfigureBusinessServices(services);
           this.ConfigureServiceFilters(services);
           this.ConfigureRestConsumers(services);
  }
  
  private void ConfigureHelpers(IServiceCollection services)
  {
           services.AddScoped(typeof(IHpUrl), typeof(HpUrl));
           services.AddScoped(typeof(IHpArvoreProduto), typeof(HpArvoreProduto));
  }
  </code></pre>
  
  <p>My doubt is whether I would need only one method:</p>
  
  <pre><code>private void ConfigureSoaps(IServiceCollection services)
  {
          services.AddScoped(typeof(ISoapBla), typeof(SoapBla));
  }
  </code></pre>
  
  <p>Since in some responses from the Web, the use of SoapCore among other solutions has been suggested.</p>