Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

1. Create two instances of the MSH

To send/receive messages from two different MSH’s you can use your own MSH configuration or just copy the root folder to another name:

AS4 .NET Sender (acts as Access Point A)
AS4 .NET Receiver (acts as Access Point B)

When we have two instances, we can configure the one for sending and another for receiving.
When you’re done copying the Sender/Receiver folders for the Component Instances; we can continue with the configuration of the two.

2. Change the HTTP port of the receiver instance

The two instances having an own HttpReceiver in place which can be hosted on a port. Default is this 8081. It’s logical that we can’t have to HTTP endpoints on the same port, that’s why you must configure one of the two to another port. The samples are made so that the Receiver instance is on port 9090 and the Sender on port 8081.

This can be configured in the AS4 .NET Receiver\config\settings.xml in the Receive Agent’s HTTP Receiver. In the settings of this receiver, change the port to 9090.

Note that there are two agents defined in the settings.xml file that use a HttpReceiver:

-      Change the address of the submitagent to http://localhost:9090/msh/submit/
-      Change the address of the receiveagent to http://localhost:9090/msh/receive/

Image Removed

3. Copy the required sample PModes

On the sending instance, copy the following PModes from the samples folder to the AS4 .NET Sender \config\ send-pmodes folder:

  • samples \ pmodes \ 01-sample-send-pmode.xml
  • samples \ pmodes \ 02-sample-send-pmode.xml
  • samples \ pmodes \ 03-sample-send-pmode.xml

On the receiving instance, copy the following PModes from the samples folder to the AS4 .NET Receiver \config\ receive-pmodes folder:

  • samples \ pmodes \ 01-sample-receive-pmode.xml
  • samples \ pmodes \ 02-sample-receive-pmode.xml
  • samples \ pmodes \ 03-sample-receive-pmode.xml

On the receiving instance, copy the following PModes from the samples folder to the AS4 .NET Receiver \config\ send-pmodes folder:

...

4. Install the required certificates

Import the following private certificates in Certificates (Local Computer) / Personal / Certificates:

  • samples \ certificates \ AccessPointA.pfx
  • samples \ certificates \ AccessPointB.pfx

Import the following public certificates in Certificates (Local Computer) / Trusted Root Certification Authorities / Certificates:

...

6. Start the two MSH instances

Start both instances by right clicking on Eu.EDelivery.AS4.ServiceHandler.ConsoleHost.exe and choosing ‘Run as Administrator’

...