Click here to Skip to main content
15,891,033 members
Articles / Hosted Services / Azure

RoutingService on Azure

Rate me:
Please Sign up or sign in to vote.
4.89/5 (10 votes)
18 Jul 2011CPOL19 min read 60K   429   20  
This article describes a design, implementation and usage of the WCF4 Routing Service hosted by Windows Azure.
<?xml version="1.0"?>
<configuration>
	<!--<system.diagnostics>
		<switches>
			<add name="System.Workflow.Runtime" value="All"/>
			<add name="System.Workflow.Runtime.Hosting" value="All"/>
			<add name="System.Workflow.Runtime.Tracking" value="All"/>
			<add name="System.Workflow.Activities" value="All"/>
			<add name="System.Workflow.Activities.Rules" value="All"/>
			--><!--<add name="System.Workflow LogToFile" value="1" />--><!--
			<add name="System.Workflow LogToTraceListeners" value="1"/>
		</switches>
		<sources>
			<source name="System.ServiceModel">
				<listeners>
					<add name="ServiceModelTraceListener"/>
				</listeners>
			</source>
			<source name="System.ServiceModel.MessageLogging">
				<listeners>
					<add name="ServiceModelMessageLoggingListener"/>
				</listeners>
			</source>
		</sources>
		<sharedListeners>
			<add initializeData="c:\Logs\simulator_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceOutputOptions="LogicalOperationStack, Timestamp, ThreadId, Callstack">
				<filter type=""/>
			</add>
			<add initializeData="c:\Logs\simulator_messages.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
				<filter type=""/>
			</add>			
		</sharedListeners>
		<trace autoflush="true"/>
	</system.diagnostics>-->


	<system.serviceModel>
		<!--<diagnostics wmiProviderEnabled="true">
			<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
		</diagnostics>-->
	
		<bindings>
      <customBinding>
        <binding name ="customHttpSoap11">
          <textMessageEncoding messageVersion="Soap11" >
            <readerQuotas maxStringContentLength="2000000"  />
          </textMessageEncoding>
          <httpTransport />
        </binding>
        <binding name ="customHttpSoap12">
          <textMessageEncoding messageVersion="Soap12">
            <readerQuotas maxStringContentLength="2000000" />
          </textMessageEncoding>          
          <httpTransport/>         
        </binding>
        </customBinding>
			<basicHttpBinding>		
				<binding name="simulator" maxBufferSize="2265536" maxBufferPoolSize="524288" maxReceivedMessageSize="2265536">				
					<readerQuotas maxStringContentLength="2000000" />
          <security mode="None"/>
				</binding>
			</basicHttpBinding>
		</bindings>

	</system.serviceModel>
  
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions