com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Setting up WCF Service Application Data Agent

WCF Message publisher is used to publish WCF messages to WSO2 BAM thru WSO2 BAM Rest API.

Installing WCF Message Publisher

The following are the steps needed to bind WCF Message Publisher to WCF Service Application to be monitored using WSO2 BAM.

  • Download WCFMessageInterceptor.dll, WCFMessagePublisher.dll, WSO2BamRestApi.dll files from https://github.com/wso2/bam-data-publishers/tree/master/WCF/WCFMessagePublisher/bin/Release.
  • Copy them to the bin directory of the WCF-Service-Application.
  • Create the file IISMessageInterceptor.config in the parent directory of where your WCF-Service hosted.

    This file is a normal xml file containing "RestApi" parent element and it contains 4 mandatory elements "host" (ip-address), "port", "username" and "password". This is where we put WSO2 BAM configuration. The configuration looks,

    <RestApi>
        <host>localhost</host>
        <port>9443</port>
        <username>admin</username>
        <password>admin</password>
    </RestApi>

    For example, if the service going to be hosted in iis-express, then, IISMessageInterceptor.config should be created in home of the iis_express, by default that is C:\Program Files (x86)\IIS Express

  • Bind the WCFMessagePublisher.dll to the application using .net configuration.

    Add the following configuration into the Xpath location configuration/system.serviceModel of the .net configuration file (App.config/Web.config) and bind the WCF Message Publisher to the application.

    <protocolMapping>
      <add scheme="http" binding="customBinding"/>
    </protocolMapping>
    <bindings>
      <customBinding>
        <binding>
          <BAMPublisher/>
          <httpTransport/>
        </binding>
      </customBinding>
    </bindings>
    <extensions>
      <bindingElementExtensions>
        <add name="BAMPublisher" type="WCFMessagePublisher.BAMPublisherElement, WCFMessagePublisher"/>
      </bindingElementExtensions>
    </extensions>
    In the above configuration BAMPublisherElement.BAMPublisherElement is the binding class to the applicationa and WCFMessagePublisher is the assembly(.dll) name.
  • Start WSO2-BAM server.
  • Now hit your service and see the data on BAM.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.