XML • Generate the Configuration File

Listing 3. The client-side configuration file describes the location and the contracts provided by the service's endpoint, as well as the underlying communication mechanism to access it.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
	<system.serviceModel>
		<bindings>
			<basicHttpBinding>
				<binding name=
					"EmployeeWServiceSoapHttp" 
					closeTimeout="00:01:00"
					openTimeout="00:01:00" 
					receiveTimeout="00:10:00" 
					sendTimeout="00:01:00"
				allowCookies="false" 
					bypassProxyOnLocal="false" 
					hostNameComparisonMode=
					"StrongWildcard"
				maxBufferSize="65536" 
					maxBufferPoolSize="524288" 
					maxReceivedMessageSize="65536"
				messageEncoding="Text" textEncoding="utf-8" 
					transferMode="Buffered"
				useDefaultWebProxy="true">
					<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>
			</basicHttpBinding>
		</bindings>
		<client>
			<endpoint address=
				"http://crvc18.crvc.tel.etecsa.cu:8888/
PLSQLWS_App-PLSQLWS_Proj-context-root/EmployeeWServiceSoapHttpPort"
				binding="basicHttpBinding" 
				bindingConfiguration=
				"EmployeeWServiceSoapHttp"
				contract="EmployeeWService" 
					name="EmployeeWServiceSoapHttpPort" />
		</client>
	</system.serviceModel>
</configuration>