cancel
Showing results for 
Search instead for 
Did you mean: 

Optional message type not possible?

Former Member
0 Kudos

Hi XI-experts,

Why does XI always makes a node element? We made an interface that decides if a message will be created or not.

If not XI always makes a node on top level (MT_MESSAGE) with no nodes underneath it. The result of this is that XI always creates a message.

for example, the message is:

<MT_MESSAGE>

<Customer>XI-Expert</Customer>

<Address>SDN Form</Address>

</MT_MESSAGE>

The interface decides that this customer is not an valid customer. As a result in XI after the message mapping we get

<MT_MESSAGE></MT_MESSAGE>

We are not be able to mark it as an optional node. Because it is the top element in the Message Type.

So in this cause XI generates a message.

How is it possible to delete this node element?

Regards, Luc

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey

XI uses valid XML and mandatorily needs a single root node,if you change the occurence of node to optional then there is a possibility that XML generated might not be valid and due to this XI does not let u define the root node as optional.

whay not handle this issue in conditional receiver determination and send a mail(or absolutely end message processing) customer is not valid.

also explore the CreateIf function of message mapping,it might also be able to solve the problem.

Thanx

Aamir

Answers (0)