Click here to Skip to main content
15,897,704 members
Articles / Hosted Services / Azure

RESTful WCF + Azure AppFabric Service Bus = Access to Remote Desktop from Browser

Rate me:
Please Sign up or sign in to vote.
4.92/5 (42 votes)
11 Dec 2010CPOL6 min read 76K   2.6K   78  
Technique combining RESTful WCF with Azure AppFabric Service Bus enables browser access to remote desktop with minimum code
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="ScreenMagnificationFactor" value="0.75" />
    <add key="SleepBeforeScreenCaptureMs" value="500" />
  </appSettings>
  
  <system.serviceModel>

    <behaviors>
      <endpointBehaviors>
        <behavior name="sharedSecretClientCredentials">
          <transportClientEndpointBehavior credentialType="SharedSecret">
            <clientCredentials>
              <!-- Replace placeholders ISSUER_NAME and ISSUER_SECRET with their values -->
              <sharedSecret issuerName="ISSUER_NAME" issuerSecret="ISSUER_SECRET" />
            </clientCredentials>
          </transportClientEndpointBehavior>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="default">
          <serviceDebug httpHelpPageEnabled="false" httpsHelpPageEnabled="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>

    <services>
    <!-- Application Service -->
    <service name="ScreenShare.CommService" behaviorConfiguration="default">
      <host>
        <baseAddresses>
          <!-- Replace placeholder SERVICE-NAMESPACE with its value -->
          <add baseAddress="https://SERVICE-NAMESPACE.servicebus.windows.net/ScreenShare" />
        </baseAddresses>
      </host>
        <endpoint name="RelayEndpoint0" contract="ScreenShare.ICommContract" binding="webHttpRelayBinding" bindingConfiguration="default" behaviorConfiguration="sharedSecretClientCredentials" address="RemoteScreen" />
        <endpoint name="RelayEndpoint1" contract="ScreenShare.ICommContract" binding="webHttpRelayBinding" bindingConfiguration="default" behaviorConfiguration="sharedSecretClientCredentials" address="Picture" />
    </service>
    </services>

    <bindings>
        <!-- Application Binding -->
        <webHttpRelayBinding>
          <binding name="default">
            <security relayClientAuthenticationType="None"/>
          </binding>
        </webHttpRelayBinding>
      </bindings>

    </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)
Israel Israel


  • Nov 2010: Code Project Contests - Windows Azure Apps - Winner
  • Feb 2011: Code Project Contests - Windows Azure Apps - Grand Prize Winner



Comments and Discussions