
Test Environment
Use
The main function of the test environment of the
Adapter Engine is to test the settings of the individual adapters (JMS, File, JDBC, SOAP).Prerequisites
You have
installed the Adapter Engine and the adapter you require, started the Adapter Engine and called it using your web browser. On the configuration screen, you have chosen the menu option Test and the system now displays the menu Test Environment.Features
There are three ways of sending client-side messages using HTTP in the test environment.
The test interface receives a single part MIME message in text format and sends it to a specified URL. It comprises two input areas:
XMB.TargetURL=http://p35841:3333/JMS
XMB.ContentType=text/xml
If you have set the data correctly, choose Send Message to generate and send the message.
The system then sends you a review of the send procedure (Send Review). The upper output field contains the generated and sent data; the lower output field contains the received data or a specific error text, in the case of an error.
With this test variant, for example, you can easily generate JMS text messages using the mode JMSTunneling, with the JMS adapter.
The test interface receives messages of this type with a text payload. It comprises two input areas:
You set the parameters of the header data in the same way you set the parameters of the JMS file adapter or JDBC adapter.
With this test variant, for example, you can easily either send a message to the Integration Engine, or simulate a sending Integration Engine (for example, to test the configuration of an adapter).
The test interface receives messages of this type with a text payload. It comprises two input areas.
WS.targetURL=http://p35841:4040/WS
WS.SOAPAction=testservice
Example
As an example of the second message type, a message for the Integration Engine is generated from the following header data and payload and sent to the following URL:
http://pwdf0436:8082/sap/
xi/engine?type=entryHeader Data
XMB.TargetURL=http://pwdf0436:8082/sap/xi/engine?type=entry
XMB.SenderBusinessSystem=ExtAdapterSender
XMB.SenderInterfaceNamespace=http://sap.com/xi/xidemo
XMB.SenderInterfaceName=ExtAdapterSenderIF
XMB.ReceiverBusinessSystem=ExtAdapterReceiver
Payload
<test>Payload</test>
Message
Content type: Multipart/Related; boundary=4859e1d0-1ef1-11d6-a1c4-6fda44caeb12
Content length: 1495
--4859e1d0-1ef1-11d6-a1c4-6fda44caeb12
Content type: text/xml
Content length: 1189
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'> <SOAP:Header> <sap:MessageHeader xmlns:sap='http://sap.com/exchange/MessageFormat' version='1.0' SOAP:mustUnderstand='1'> <sap:From><sap:Name>ExtAdapterSender</sap:Name> <sap:Interface namespace='http://sap.com/xi/xidemo'>ExtAdapterSenderIF</sap:Interface> </sap:From><sap:To><sap:Name>ExtAdapterReceiver</sap:Name><sap:Interface namespace='http://sap.com/xi/xidemo'>ExtAdapterReceiverIF</sap:Interface></sap:To> <sap:MessageId>48585b30-1ef1-11d6-8726-6fda44caeb12</sap:MessageId> <sap:QualityOfService>BestEffort</sap:QualityOfService><sap:TimeSent>2002-02-11T13:14:30Z</sap:TimeSent><sap:Direction>Request</sap:Direction><sap:TraceLevel file='mytrace.trc'>1</sap:TraceLevel><sap:Logging file='mylog.log'>1</sap:Logging> <sap:Document>MainDocument</sap:Document></sap:MessageHeader></SOAP:Header> <SOAP:Body><sap:Manifest xmlns:sap='http://sap.com/exchange/MessageFormat' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0'><sap:Payload xlink:type='simple' xlink:href='cid:payload-48585b311ef111d694636fda44caeb12@sap.com'> <sap:Document>MainDocument</sap:Document></sap:Payload></sap:Manifest></SOAP:Body></SOAP:Envelope>
--4859e1d0-1ef1-11d6-a1c4-6fda44caeb12
Content type: text/plain
Content length: 22
Content ID: payload-48585b311ef111d694636fda44caeb12@sap.com
<test>Payload</test>
--4859e1d0-1ef1-11d6-a1c4-6fda44caeb12--
Result
The system displays the sent and the received message in the screen Send Review.