Click here to Skip to main content
15,896,539 members
Articles / DevOps / Load Testing

VirtualService for ESB

Rate me:
Please Sign up or sign in to vote.
4.90/5 (32 votes)
19 Feb 2008CPOL37 min read 97K   1.2K   98  
This article describes the design, implementation, and usage of VirtualService for the Enterprise Service Bus, using the Microsoft .NET FX 3.5 technology.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>  
    <system.serviceModel>
      <extensions>
        <bindingElementExtensions>
          <add name="nullTransport" type="RKiss.NullChannelLib.NullTransportElement, NullChannelLib" />
        </bindingElementExtensions>
        <behaviorExtensions>         
          <add name="logger" type="RKiss.Logger.LoggerBehaviorSection, Logger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
        </behaviorExtensions>
      </extensions>
      
      <bindings>
        <customBinding>
          <binding name="NewBinding0">
            <context contextExchangeMechanism="ContextSoapHeader" protectionLevel="None" />
            <nullTransport />
          </binding>
        </customBinding>
      </bindings>
      
      <services>
		  <service name="WorkflowLibrary1.WS_ResourceTransfer" behaviorConfiguration="logmessages">
			  <endpoint address="net.null://localhost/fafa2" binding="customBinding" bindingConfiguration="NewBinding0" contract="RKiss.WSTransfer.IWSTransfer" />
		  </service>
	  </services>
      
      <behaviors>
        <endpointBehaviors>
          <behavior name="logmessages">
            <logger enable="true" />
          </behavior>
        </endpointBehaviors>
        <serviceBehaviors>		  
          <behavior name="logmessages">
			  <serviceMetadata />
            <logger enable="true" logAfterReceiveRequest="true" logBeforeSendReply="true"/>
            <serviceCredentials>
              <windowsAuthentication allowAnonymousLogons="false" includeWindowsGroups="true" />
            </serviceCredentials>
            <serviceDebug includeExceptionDetailInFaults="true" /> 
            <workflowRuntime name="WorkflowServiceHostRuntime" validateOnCreate="false" enablePerformanceCounters="true" >
              <services>
                <add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.00000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                     connectionString="Data Source=localhost\sqlexpress;Initial Catalog=PersistenceStore;Integrated Security=True;Pooling=False"
                     LoadIntervalSeconds="1" UnLoadOnIdle="true"  />
                <add type="RKiss.ESB.DynamicRuleWorkflowLoader, ESB.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
              </services>              
            </workflowRuntime>          
          </behavior>          
        </serviceBehaviors>
      </behaviors>
    </system.serviceModel>
</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