Hi all,
I am very new to XI and I will like to get some advise for testing an asynchronous interface:
SOAP -> XI -> File
To test the interface:
I logged into RWB - Component Monitoring - Adapter Engine - Test Message:
URL: http://ootspdbs02:50100/XISOAPAdapter/MessageServlet?channel=:BS_RON_TEST:SOAP_Sender_Test
Service: BS_RON_TEST
Interface: MI_TestWebServiceServer_UpdatePatAdmissInfo
Interface Namespace: urn:test:ron:fapl:TestWebServiceServer
QOS: EO
Payload (I generated this from XMLSpy with the WSDL generated in Integration Directory):
http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:ns0="urn:OOTSUpdatePatientAdmissionInfoWsd">
<SOAP-ENV:Body>
<m:MI_TestWebServiceServer_UpdatePatAdmissInfo xmlns:m="urn:test:ron:fapl:TestWebServiceServer">
<ns0:Header>
<ns0:encoding>String</ns0:encoding>
<ns0:sendingApp>String</ns0:sendingApp>
<ns0:sendingFac>String</ns0:sendingFac>
<ns0:receivingApp>String</ns0:receivingApp>
<ns0:receivingFac>String</ns0:receivingFac>
<ns0:timeStamp>2001-12-17T09:30:47.0Z</ns0:timeStamp>
<ns0:messageType>String</ns0:messageType>
<ns0:messageId>String</ns0:messageId> <ns0:messageDesc>String</ns0:messageDesc>
</ns0:Header>
<ns0:patientID>String</ns0:patientID>
<ns0:institutionID>String</ns0:institutionID>
<ns0:caseNumber>String</ns0:caseNumber>
<ns0:admissionDateTime>2001-12-17T09:30:47.0Z</ns0:admissionDateTime>
<ns0:ward>String</ns0:ward>
<ns0:bed>String</ns0:bed>
<ns0:room>String</ns0:room>
<ns0:movementCategory>String</ns0:movementCategory>
<ns0:movementType>String</ns0:movementType>
</m:MI_TestWebServiceServer_UpdatePatAdmissInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The error I got in SXMB_MONI is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- http://sap.com/xi/XI/Message/30" xmlns:SOAP=" http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA~</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_TestWebServerService_UpdatePatA: RuntimeException in Message-Mapping transformatio</b></SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
<Trace level="1" type="T"><b>com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_TestMsg/CaseNumber. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:303) at .....</b>
The message mapping consists of direct maps from each field in the source to the target (MT_TestMsg).
CaseNumber is the first field to be mapped.
In IR, I tested the interface and it works fine - no error in mapping.
I assume I cannot use the message generated in IR, because the SOAP envelope is required. (I tried anyway, and encountered the same error.)
Please advise how I can resolve this error.
Many thanks in advance.
Ron