1. Create an ASP.NET Empty Web Application Project in VS2010.

2. Add Reference of AMG DLLs.
Akabana.Amf.dll (required)
Akabana.Amf.Messaging.Gateway.dll (required)
log4net.dll (option)

3.Copy files to Project root.
gateway.aspx (required)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="gateway.aspx.cs" Inherits="Akabana.Amf.Messaging.Gateway.GatewayPage" %>

clientaccesspolicy.xml (option)
log4net.config (option)

4. Change a Web.config
<configuration>
  <configSections>
    <section name="akabana.amf.messaging.gateway" type="Akabana.Amf.Messaging.Gateway.Configuration.XmlConfigurator, Akabana.Amf.Messaging.Gateway"/>
  </configSections>

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
    
    <httpModules>
      <add name="MessagingGateway" type="Akabana.Amf.Messaging.Gateway.MessagingGateway, Akabana.Amf.Messaging.Gateway"/>
    </httpModules>
  </system.web>

  <akabana.amf.messaging.gateway endPoint="/gateway.aspx">
    <assemblies>
      <assembly type="WebApplication1"/>
    </assemblies>
  </akabana.amf.messaging.gateway>
</configuration>


5.Run Debug.

Last edited Sep 10, 2010 at 10:23 AM by e1arkw, version 1

Comments

No comments yet.