This scenario implements a Web service using HTTP as the transport mechanism and MIME as the domain. A message flow for this scenario, and the resulting message tree are given below:
When a MIME message enters the message flow the top-level Content-Type of the message is stored in the HTTPInputHeader tree and in the MIME tree. The broker also stores a copy of the Content-Type of the message as the ContentType value in the Properties subtree.
Any processing that this message flow needs to do is done in the Compute node. The output domain of this message flow is also MIME, therefore the output message must be a MIME tree. This tree can be made by either creating a new tree, or modifying the incoming MIME message tree using the Compute node. If the Content-Type of a message needs to be modified, update the broker ContentType property. When this property is changed, the MIME tree is updated automatically.
SET OutputRoot.HTTPReplyHeader.Host = 'localhost:1234';