Skip to main content

<Redirect>

The <Redirect> verb transfers control from the current document to another. It is effectively an exit statement from the current document, as there is no way to return to any instructions listed after the <Redirect> verb.

An example message that redirects next XML instruction to another document:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Redirect>https://your-application.com/next-instructions</Redirect>
</Response>

Verb Attributes

The following attribute is available for the verb <Redirect>:

Attribute
method optionalSpecifies whether the redirect is a GET or a POST. Default value is POST.

Nouns

The following item is accepted as a noun for the <Redirect> verb:

Noun
plain textThe URL, in plain text, of the document to execute.

Nesting

No other verbs can be nested within <Redirect> and you cannot nest <Redirect> within any other verbs.

Examples

Redirect to absolute URL

<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Redirect>http://www.somesite.com/NextDoc.xml</Redirect>
</Response>

To continue processing this message using the instructions in another document, specify the absolute URL of that document as the noun to the <Redirect> verb.