Jump to: navigation, search

Difference between revisions of "Configuration Files/Services.config"


 
Line 5: Line 5:
  
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<services>
 
<services>
   <service name="UBIK.Service.UBIKContent" behaviorConfiguration="httpBehavior">
+
 
     <endpoint address="" behaviorConfiguration="httpBehavior" binding="webHttpBinding" contract="UBIK.Service.IUBIKContent" />
+
  <!-- UBIK CONTENT -->
     <endpoint address="/SOAP" binding="wsHttpBinding" contract="UBIK.Service.IUBIKContent" />
+
   <service name="UBIK.Service.UBIKContent"
     <!-- USED FOR STREAMING TRANSFER MODE -->
+
behaviorConfiguration="httpBehavior">
     <endpoint address="/SOAP11" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_UBIKContent" contract="UBIK.Service.IUBIKContent" />
+
 
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
 +
     <endpoint address=""
 +
  behaviorConfiguration="httpBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="WebHttpBinding"
 +
  contract="UBIK.Service.IUBIKContent" />
 +
 
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
 +
     <endpoint address="newjson"
 +
  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="newtonsoftJsonWebHttpBinding"
 +
  contract="UBIK.Service.IUBIKContent" />
 +
 
 +
     <endpoint address="/SOAP"
 +
  binding="wsHttpBinding"
 +
  bindingConfiguration="WSHttpBinding"
 +
  contract="UBIK.Service.IUBIKContent" />
 +
 
 +
     <endpoint address="/SOAP11"
 +
  binding="basicHttpBinding"
 +
  bindingConfiguration="BasicHttpBinding"
 +
  contract="UBIK.Service.IUBIKContent" />
 
   </service>
 
   </service>
 +
  <!-- END UBIK CONTENT -->
 +
 +
 +
  <!-- UBIK USAM -->
 +
  <service name="UBIK.Service.USAM"
 +
behaviorConfiguration="httpBehavior">
 +
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
 +
    <endpoint address=""
 +
  behaviorConfiguration="httpBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="WebHttpBinding"
 +
  contract="UBIK.Service.IUSAM" />
 +
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
 +
    <endpoint address="newjson"
 +
  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="newtonsoftJsonWebHttpBinding"
 +
  contract="UBIK.Service.IUSAM" />
 +
 +
    <endpoint address="/SOAP"
 +
  binding="wsHttpBinding"
 +
  bindingConfiguration="WSHttpBinding"
 +
  contract="UBIK.Service.IUSAM" />
 +
 +
    <endpoint address="/SOAP11"
 +
  binding="basicHttpBinding"
 +
  bindingConfiguration="BasicHttpBinding"
 +
  contract="UBIK.Service.IUSAM" />
 +
  </service>
 +
  <!-- END UBIK USAM -->
 +
 +
 
 +
  <!-- UBIK PUSH -->
 +
<service name="UBIK.Service.UBIKPush"
 +
behaviorConfiguration="httpBehavior">
 +
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
 +
    <endpoint address=""
 +
  behaviorConfiguration="httpBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="WebHttpBinding"
 +
  contract="UBIK.Service.IUBIKPush" />
 +
 +
    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
 +
    <endpoint address="newjson"
 +
  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
 +
  binding="webHttpBinding"
 +
  bindingConfiguration="newtonsoftJsonWebHttpBinding"
 +
  contract="UBIK.Service.IUBIKPush" />
 +
 +
    <endpoint address="/SOAP"
 +
  binding="wsHttpBinding"
 +
  bindingConfiguration="WSHttpBinding"
 +
  contract="UBIK.Service.IUBIKPush" />
 +
 +
    <endpoint address="/SOAP11"
 +
  binding="basicHttpBinding"
 +
  bindingConfiguration="BasicHttpBinding"
 +
  contract="UBIK.Service.IUBIKPush" />
 +
</service>
 +
  <!-- END UBIK PUSH -->
 +
 
</services>
 
</services>
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 10:38, 7 July 2023

IC Attention.pngIf the service has to support the streaming transfer mode - e.g. used for downloading large data branches in the UBIK client - ensure to provide the endpoint definition for "BasicHttpBinding_UBIKContent" (see example). The client setting "ContentServiceConfig" should be set accordingly.


Example

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<services>

  <!-- UBIK CONTENT -->
  <service name="UBIK.Service.UBIKContent"
                         behaviorConfiguration="httpBehavior">

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
    <endpoint address=""
                                  behaviorConfiguration="httpBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="WebHttpBinding"
                                  contract="UBIK.Service.IUBIKContent" />

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
    <endpoint address="newjson"
                                  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="newtonsoftJsonWebHttpBinding"
                                  contract="UBIK.Service.IUBIKContent" />

    <endpoint address="/SOAP"
                                  binding="wsHttpBinding"
                                  bindingConfiguration="WSHttpBinding"
                                  contract="UBIK.Service.IUBIKContent" />

    <endpoint address="/SOAP11"
                                  binding="basicHttpBinding"
                                  bindingConfiguration="BasicHttpBinding"
                                  contract="UBIK.Service.IUBIKContent" />
  </service>
  <!-- END UBIK CONTENT -->


  <!-- UBIK USAM -->
  <service name="UBIK.Service.USAM"
                         behaviorConfiguration="httpBehavior">

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
    <endpoint address=""
                                  behaviorConfiguration="httpBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="WebHttpBinding"
                                  contract="UBIK.Service.IUSAM" />

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
    <endpoint address="newjson"
                                  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="newtonsoftJsonWebHttpBinding"
                                  contract="UBIK.Service.IUSAM" />

    <endpoint address="/SOAP"
                                  binding="wsHttpBinding"
                                  bindingConfiguration="WSHttpBinding"
                                  contract="UBIK.Service.IUSAM" />

    <endpoint address="/SOAP11"
                                  binding="basicHttpBinding"
                                  bindingConfiguration="BasicHttpBinding"
                                  contract="UBIK.Service.IUSAM" />
  </service>
  <!-- END UBIK USAM -->

 
  <!-- UBIK PUSH -->
        <service name="UBIK.Service.UBIKPush"
                         behaviorConfiguration="httpBehavior">

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages. -->
    <endpoint address=""
                                  behaviorConfiguration="httpBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="WebHttpBinding"
                                  contract="UBIK.Service.IUBIKPush" />

    <!-- Endpoint that responds to HTTP requests instead of SOAP messages but uses Newtonsoft Json as Serializer -->
    <endpoint address="newjson"
                                  behaviorConfiguration="newtonsoftJsonEndpointBehavior"
                                  binding="webHttpBinding"
                                  bindingConfiguration="newtonsoftJsonWebHttpBinding"
                                  contract="UBIK.Service.IUBIKPush" />

    <endpoint address="/SOAP"
                                  binding="wsHttpBinding"
                                  bindingConfiguration="WSHttpBinding"
                                  contract="UBIK.Service.IUBIKPush" />

    <endpoint address="/SOAP11"
                                  binding="basicHttpBinding"
                                  bindingConfiguration="BasicHttpBinding"
                                  contract="UBIK.Service.IUBIKPush" />
        </service>
  <!-- END UBIK PUSH -->

</services>

See also