Difference between revisions of "Configuration Files/Services.config"
(Created page with "== Example == <syntaxhighlight lang="xml"> <?xml version="1.0" encoding="UTF-8"?> <services> <service name="UBIK.Service.UBIKContent" behaviorConfiguration="httpBehavior">...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Attention|If 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 "[[Settings#WinX|ContentServiceConfig]]" should be set accordingly.}} | ||
+ | |||
+ | |||
== Example == | == Example == | ||
<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" |
+ | 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> | </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> | ||
Line 14: | Line 107: | ||
* [[Configuration Files]] | * [[Configuration Files]] | ||
− | [[Category:Installing]] | + | [[Category:Installing|Configuration Files/Services.config]] |
− | [[Category:Web service]] | + | [[Category:Web service|Configuration Files/Services.config]] |
Latest revision as of 10:38, 7 July 2023
If 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>
<?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>