cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use MessageTransformBean Module in SOAP Receiver and SOAP Sender?

Former Member
0 Kudos

Hi All,

We have a scenario where we receive a single file with 4 different interface data. Each record in a file will have few identifiers to identify to which interface this record belongs to. We read the file using Sender File Adapter and by using multi-mapping, we segregate the records for each interface.

Now by using the SOAP Receiver Adapter, we want to convert the XML output generated from muli-mapping per each interface to plain text and call the SOAP sender adapter in the Target URL of SOAP Receiver Adapter.

Is it possible to use the MessageTransformBean module in the SOAP Receiver Adapter to covert the XML data to plain text?

Is it possible to use the MessageTransformBean module in the SOAP Sender Adapter to covert the plain text to XML?

Thank you.

Regards

Tappa

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you. Your advise is helpful to design the interface.

former_member187339
Active Contributor
0 Kudos

Hi Tappa,

>>Is it possible to use the MessageTransformBean module in the SOAP Receiver Adapter to covert the XML data to plain text?

Yes we can use modules with receiver adapter

>>Is it possible to use the MessageTransformBean module in the SOAP Sender Adapter to covert the plain text to XML?

No SOAP Sender (with communication mode as SOAP) doesn;t support modules

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Thank you.

Can we use 2 MessageTransformBean Module in the Same SOAP Receiver Adapter one after the other?

1. First MessageTransformBean module to convert the XML data to Plain text.

2. Second MessageTransformBean module to convert the Plain text(output of the previous MessageTransformBean) to Required XML.

Thank you.

Regards

Tappa

former_member187339
Active Contributor
0 Kudos

Hi Tappa,

>>Can we use 2 MessageTransformBean Module in the Same SOAP Receiver Adapter one after the other?

Yes we can.. But if ultimately you require an XML then why can't do that in the respective Operation Mapping..

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Thank you.

Basically this scenario is File to IDOC. Where we will receive a single file per day which contain 4 interface data. Each record in a file will have few identifiers to identify to which interface this record belongs to. We read the file using Sender File Adapter and by using multi-mapping, we segregate the records for each interface.

Input Structure:

1.MessageTypeName 1:1

Record 0:unbounded

Data 1:1

We will read all the records in the file using the above structure. In message mapping, we verify the condition for a particular interface and map it to target message type. My target output structure will also be same as input. Here we just segregate the records based on interface specific. Now by using SOAP receiver adapter , using the first MessageTransformBean module we convert muli-mapping output XML to Plain(as we got input records) and by using the second MessageTransformBean module convert the plain records to required structure based on interface specific.

We will use 4 SOAP Receiver Adapter each per interface specific and each Receiver SOAP Adadpter will call the Sender SOAP adapter in the target URL of SOAP receiver adapter.

Thank you.

Regards

Tappa