<?xml version="1.0"?>
<configuration>
	<configSections>
		<section name="ProviderConfigurationSection" type="Comarch.Shipping.Implementation.ProviderConfigurationSection, Comarch.Shipping"/>
	</configSections>
	<appSettings>
		<add key="Name" value="Optima"/>
		<add key="SerwerSMS" value="https://ssl.isklep24.pl/serwersms/svc.asmx"/>
		<add key="ClientSettingsProvider.ServiceUri" value=""/>
	</appSettings>
	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<probing privatePath="Interop;Genrap;log4net"/>
			<dependentAssembly><assemblyIdentity name="OnlineFPCommon" publicKeyToken="8B54098295E79123"/><bindingRedirect newVersion="2018.0.1.0" oldVersion="2010.0.0.0-2018.0.1.0"/></dependentAssembly></assemblyBinding>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<dependentAssembly>
				<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
				<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
			</dependentAssembly>
		</assemblyBinding>
	</runtime>
	<system.serviceModel>
		<bindings>
			<basicHttpBinding>
				<binding name="BasicHttpBinding_IUpdatesStateService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxReceivedMessageSize="65536" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true" messageEncoding="Text">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
					<security mode="None">
						<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="UserName" algorithmSuite="Default"/>
					</security>
				</binding>
				<binding name="cdc.001.01SOAP" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536000" maxReceivedMessageSize="65536000" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true" messageEncoding="Text">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="65536000" maxBytesPerRead="4096" maxNameTableCharCount="65536000"/>
					<security mode="Transport">
						<transport clientCredentialType="Certificate" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="UserName" algorithmSuite="Default"/>
					</security>
				</binding>
				<binding name="BasicHttpBinding_IAssemblyService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxReceivedMessageSize="65536" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true" messageEncoding="Text">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="32768" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
					<security mode="None">
						<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="UserName" algorithmSuite="Default"/>
					</security>
				</binding>
				<binding name="BasicHttpBinding_IService"/>
				<binding name="BasicHttpBinding_IUpdateService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="102400000" maxReceivedMessageSize="102400000" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true" messageEncoding="Text">
					<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="102400000" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
					<security mode="None">
						<transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
						<message clientCredentialType="UserName" algorithmSuite="Default"/>
					</security>
				</binding>
				<binding name="DHL24WebapiBinding" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
					<security mode="Transport"/>
				</binding>
			</basicHttpBinding>
			<customBinding>
				<binding name="DPDPackageObjServicesPortBinding">
					<transactionFlow transactionProtocol="WSAtomicTransactionOctober2004"/>
					<textMessageEncoding messageVersion="Soap11"/>
					<httpsTransport maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000" maxBufferSize="20000000"/>
				</binding>
				<binding name="DPDInfoServicesObjEventsPortBinding">
					<transactionFlow transactionProtocol="WSAtomicTransactionOctober2004"/>
					<textMessageEncoding messageVersion="Soap11"/>
					<httpsTransport maxBufferPoolSize="20000000" maxReceivedMessageSize="20000000" maxBufferSize="20000000"/>
				</binding>
				<binding name="PocztaPolskaSledzenieBinding">
					<security authenticationMode="UserNameOverTransport" includeTimestamp="false"/>
					<textMessageEncoding messageVersion="Soap11"/>
					<httpsTransport useDefaultWebProxy="false" requireClientCertificate="false"/>
				</binding>
			</customBinding>
		</bindings>
		<client>
			<endpoint address="http://ws.erp.comarch.pl/OptimaUpdateServer/UpdateService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUpdatesStateService" contract="AktualizacjeOptimaService.IUpdatesStateService" name="BasicHttpBinding_IUpdatesStateService"/>
			<endpoint binding="basicHttpBinding" bindingConfiguration="cdc.001.01SOAP" contract="CDC.cdcws00101Port" name="cdc.001.01SOAP"/>
			<endpoint address="http://localhost:54382/AssemblyService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAssemblyService" contract="AssemblyService.IAssemblyService" name="BasicHttpBinding_IAssemblyService"/>
			<endpoint address="http://www.erp.comarch.pl/InformacjeProduktowe/services/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService" contract="InformacjeProduktoweService.IService" name="BasicHttpBinding_IService"/>
			<endpoint address="http://ws.erp.comarch.pl/OptimaUpdateServer/UpdateService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUpdateService" contract="UpdateServer.IUpdateService" name="BasicHttpBinding_IUpdateService"/>
<endpoint address="https://dpdservices.dpd.com.pl/DPDPackageObjServicesService/DPDPackageObjServices" binding="customBinding" bindingConfiguration="DPDPackageObjServicesPortBinding" contract="DpdService.DPDPackageObjServices" name="DPDPackageObjServicesPort"/>
			<endpoint address="https://dpdinfoservices.dpd.com.pl/DPDInfoServicesObjEventsService/DPDInfoServicesObjEvents" binding="customBinding" bindingConfiguration="DPDInfoServicesObjEventsPortBinding" contract="InfoService.DPDInfoServicesObjEvents" name="DPDInfoServicesObjEventsPort"/>
<endpoint address="https://dhl24.com.pl/webapi2/provider/service.html?ws=1" binding="basicHttpBinding" bindingConfiguration="DHL24WebapiBinding" contract="DhlService.DHL24WebapiPort" name="DHL24WebapiPort"/>
			<endpoint address="https://tt.poczta-polska.pl/Sledzenie/services/Sledzenie.SledzenieHttpSoap11Endpoint/" binding="customBinding" bindingConfiguration="PocztaPolskaSledzenieBinding" contract="PocztaPolskaSledzenieService.SledzeniePortType" name="SledzenieHttpSoap11Endpoint"/>
		</client>
	</system.serviceModel>
	<startup useLegacyV2RuntimeActivationPolicy="true">
		<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
	</startup>
	<system.web>
		<membership defaultProvider="ClientAuthenticationMembershipProvider">
			<providers>
				<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
			</providers>
		</membership>
		<roleManager defaultProvider="ClientRoleProvider" enabled="true">
			<providers>
				<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
			</providers>
		</roleManager>
	</system.web>
	<ProviderConfigurationSection>
		<Providers>
			<add providerModule="Comarch.Shipping.DpdProvider"/>
			<add providerModule="Comarch.Shipping.DhlProvider"/>
			<add providerModule="Comarch.Shipping.PocztaPolskaProvider"/>
		</Providers>
	</ProviderConfigurationSection>
</configuration>
