cancel
Showing results for 
Search instead for 
Did you mean: 

Building a module that creates a MML message

Former Member
0 Kudos

Hi experts,

I’m working on an EAI project based on SAP XI (PI 7.0), SonicMQ 6.0 and SAP Bussiness Connector/Marketplace Connector 4.7.

IDocs must be sent from R/3 to XI, transformed into an xCBL Message using XSLT and then sent to a SonicMQ queue. BC listens to this queue and then do some processing with it. Because we’re upgrading from a solution based on SAP/CommerceOne Marketplace, this must be the message flow, for technical reasons.

My first try was to configure the Marketplace Adapter to send messages to SonicMQ but I had no success. I could not even find where to put the SonicMQ configuration (location, port, username, password…). However, I configured the JMS Adapter to send the messages to SonicMQ and it worked. The problem is that BC expects the message to be in MML format, so it reads the message but can’t work on it.

I’m trying right now to build a module that converts the message that has to be sent to the MML format. I found a class (MMLMessage) in the XI Adapter Framework Core 3.0 that suggest that it's possible, but I have no idea how to convert the message. Can anybody help me on that?

Best regards,

Renato Kalman

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I found the Marketplace Adapter class that dows the conversion XIMessage from/to MMLMessage. It's the com.sap.aii.adapter.marketplace.app.MarketPlaceAdapterBeanModule

class.

Unfortunately, it seems that the last adapter module in the chain expects to receive a XIMessage. So my conversion causes a ClassCastException in that module. I’m trying to figure out how to solve that issue.

Best Regards,

Renato Kalman