text: /*##############################################################################
  
      HPCC SYSTEMS software Copyright (C) 2014 HPCC Systems.
  
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions and
      limitations under the License.
  ############################################################################## */
  
  #pragma warning (disable : 4786)
  
  #include "espplugin.hpp"
  #include "http/platform/httpprot.hpp"
  
  //ESP Service
  #include "loggingservice.hpp"
  #include "ws_loggingservice_esp.ipp"
  
  extern "C"
  {
      //when we aren't loading dynamically
      // Change the function names when we stick with dynamic loading.
      ESP_FACTORY IEspService * esp_service_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
      {
          if (strieq(type, "WsLoggingService"))
          {
              CWsLoggingServiceEx* loggingservice = new CWsLoggingServiceEx;
              loggingservice->init(name, type, cfg, process);
              return loggingservice;
          }
          return NULL;
      }
  
      ESP_FACTORY IEspRpcBinding * esp_binding_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
      {
          //binding names ending in _http are being added so the names can be made more consistent and can therefore be automatically generated
          //  the name also better reflects that these bindings are for all HTTP based protocols, not just SOAP
          //  both "SoapBinding" and "_http" names instantiate the same objects.
          if (strieq(type, "loggingservice_binding")||strieq(type, "wsloggingservice_http"))
              return new CWsLoggingServiceSoapBinding(cfg, name, process, hsl_none);
  
          return NULL;
      }
  
      ESP_FACTORY IEspProtocol * esp_protocol_factory(const char *name, const char* type, IPropertyTree *cfg, const char *process)
      {
          return http_protocol_factory(name, type, cfg, process);
      }
  
  };
  