cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping question regarding Envelope

Former Member
0 Kudos

I have a scenario where the vendor requires certain fields and values to be present in the envelope in order to process the message. The envelope has to look as such and an HTTP Post has to be used as the communication.

<?xml version="1.0" encoding=”UTF-16”?>

<Envelope version="01.00">

<Sender>

<Id>EID001</Id>

<Credential>Test</Credential>

</Sender>

<Recipient>

<Id>http://dev.brassring.com/..etc…</Id>

</Recipient>

<TransactInfo transactType="data">

<TransactId>0037</TransactId>

<TimeStamp>2000-10-09T14:14:11Z</TimeStamp>

</TransactInfo>

<Packet>

<PacketInfo packetType="data">

<PacketId>1</PacketId>

<Action> SET</Action>

<Manifest>REQUISITION</Manifest>

</PacketInfo>

<Payload>

.....

</Payload>

</Packet>

</Envelope>

How would one go about manipulating the envelope header information in an HTTP post to match this example? This is apparently some HR-XML standard specification.

Regards,

Chris

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Richard,

You can define this XML structure as a Data Type in XI. or You could import the XSD into 'External definitions'.

Use that for your mapping. The output of this map will give you this XML, which can be sent to the target via HTTP Post.

This entire envelope (including its header & payload) acts as a message payload for XI. So you could manipulate the Header or Payload of the envelope during the XI Mapping.

The HTTP adapter can POST the output XML as it is to the target system.

Hope this clarifies.

regards,

Pops V.

Former Member
0 Kudos

Thanks POPS. I wil try this and see if they accept it.

Regards,

Chris