Last active
February 22, 2017 08:39
-
-
Save freerider7777/b8d40c7f6c2dbb09f055b1caf677d6ac to your computer and use it in GitHub Desktop.
app.config for websphere mq wcf service + ams security (xml extension for syntax highlighting only :) )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | |
</startup> | |
<!-- Uncomment the following config properties in order to enable WCF trace. A file called client.svclog | |
will be written to the present working directory. To view propagated client and server trace | |
create an app.config file for the service containing the same <system.diagnostics> block, changing | |
"client.svclog" to "service.svclog" --> | |
<system.diagnostics> | |
<trace autoflush="true" indentsize="4"> | |
<listeners> | |
<add name="myListener" | |
type="System.Diagnostics.TextWriterTraceListener" | |
initializeData="TextWriterOutput.log" /> | |
<remove name="Default" /> | |
</listeners> | |
</trace> | |
<sources> | |
<source name="System.ServiceModel.MessageLogging" | |
switchValue="Verbose, Information, ActivityTracing" > | |
<listeners> | |
<add name="traceListener" /> | |
</listeners> | |
</source> | |
<source name="System.ServiceModel" | |
switchValue="Verbose, Information, ActivityTracing" propagateActivity="true"> | |
<listeners> | |
<add name="traceListener" /> | |
</listeners> | |
</source> | |
<source name="IBM.XMS.WCF" | |
switchValue="Verbose, Information, ActivityTracing"> | |
<listeners> | |
<add name="traceListener" /> | |
</listeners> | |
</source> | |
</sources> | |
<sharedListeners> | |
<add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\\temp\\appserver2_way4.svclog"></add> | |
</sharedListeners> | |
</system.diagnostics> | |
<system.serviceModel> | |
<!-- Для настройки логирования запросов WCF: https://msdn.microsoft.com/en-us/library/ms730064%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 --> | |
<diagnostics> | |
<messageLogging | |
logEntireMessage="true" | |
logMalformedMessages="true" | |
logMessagesAtServiceLevel="true" | |
logMessagesAtTransportLevel="true" | |
maxMessagesToLog="3000" | |
maxSizeOfMessageToLog="20000"/> | |
</diagnostics> | |
<bindings> | |
<customBinding> | |
<binding name="CustomBinding_IWMQSampleContract"> | |
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16" | |
messageVersion="Default" writeEncoding="utf-8"> | |
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" | |
maxBytesPerRead="4096" maxNameTableCharCount="16384" /> | |
</textMessageEncoding> | |
<IBM.XMS.WCF.SoapJmsIbmTransportChannel maxBufferPoolSize="524288" maxMessageSize="65536" | |
clientConnectionMode="1" /> <!-- 1 HERE! --> | |
</binding> | |
</customBinding> | |
</bindings> | |
<services> | |
<service name="Wallet.Services.MessageBus.MessageBusRouterService"> | |
<endpoint address="jms:/queue?destination=TEST.Q&connectionFactory=binding()connectQueueManager(QM_VERIFY_AMS)clientConnection(10.*.*.*(1515))clientChannel(CH1)&initialContextFactory=com.ibm.mq.jms.Nojndi&replyDestination=TEST.R" | |
binding="customBinding" | |
contract="Wallet.Services.MessageBus.IMessageBus" | |
bindingConfiguration="CustomBinding_IWMQSampleContract" /> | |
</service> | |
</services> | |
<extensions> | |
<bindingElementExtensions> | |
<add name="IBM.XMS.WCF.SoapJmsIbmTransportChannel" type="IBM.XMS.WCF.SoapJmsIbmTransportBindingElementConfig, IBM.XMS.WCF, Version=8.0.0.5, Culture=neutral, PublicKeyToken=8c7c0be90afcd8ba" /> | |
</bindingElementExtensions> | |
</extensions> | |
</system.serviceModel> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment