cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP - XI - IDoc

Former Member
0 Kudos

Hello,

I want to post a message via XI in an asynchronous scenario to an IDoc.

I already have the sender message interface that should be filled via http.

How should the payload look like? Is XML possible to directly fill the sender message interface?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

message interface is never filled up,it is used to give the direction and mode.

when the sender system will send XML via HTTP,the data will be validated based upon the sender message type which is referenced by your sender message interface.

now coming to your question.

sender payload is validated based upon the structure of sender message type(in message mapping) and if correct proper mapping is performed and receiver structure is generated and then send to actual receiver.whole of this process is automated and requires no manual intervention

Thanx

Aamir

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Florian!

Payload must be a XML document whicg fits the outbound interface structure and message namespace.

Try following:

go to message mapping, provide ur source message and any target message, then click TEST tab.

On the left pane click button to see the source.

This is the XML which must be sent via HTTP.

Peter

Former Member
0 Kudos

Thanks for the comment.

If I have the following MI:

testMI

field1

field2

Then could I use the following HTTP Body:?

<body>

<testMI>

<field1> 2 </field2>

<field2> 3 </field3>

</testMI>

</body>

Are there also other possibilities?

Former Member
0 Kudos

Hi Florian,

Yes it is possible.

Regards,