In the following configuration example, a loop is defined in which the JCA example adapter is both the sender and receiver of a message.
Using this as a basis, you can configure the exchange of messages for your own adapter and then test it just in the PCK.
Using this configuration, you can also carry out tests with binary attachments and text attachments.
For an additional configuration example that includes the Integration Server, see: Configuration Example: Message Exchange
Make the following changes to the following properties in service XPI Adapter XI in the SAP NetWeaver Administrator:
Property Name | Value |
---|---|
xiadapter.internal |
devModePCK |
xiadapter.isconfig.url |
Enter the URL for the inbound channel for the PCK Adapter Framework. http://<AS Java Host>:<AS Java http port>/MessagingSystem/receive/AFW/XI Tip
http://localhost:50000/MessagingSystem/receive/AFW/XI |
xiadapter.isconfig.username |
Enter the user for the PCK inbound channel. This must be the same user as the one who assigned the Security Role xi_af_receive in the Security Provider sap.com/com.sap.aii.af.ms.app*MessagingSystem. |
xiadapter.isconfig.password |
Enter the password. |
JCA Adapter to PCK
Create the following objects.
Sender Agreement
Attribute | Value |
---|---|
Sender party |
Party_A |
Sender component |
Component_A |
Sender interface |
IF_XML |
Sender interface namespace |
http://IF |
Receiver party |
Party_A |
Receiver component |
Component_A |
Communication channel |
From_A
|
Receiver Agreement
Attribute | Value |
---|---|
Receiver party |
Party_A |
Receiver component |
Component_A |
Receiver interface |
IF_XML |
Receiver interface namespace |
http://IF |
Sender party |
Party_A |
Sender component |
Component_A |
Communication channel |
To_A
|