message_url, which is one of the mandatory parameters when sending a message.
Requirements
- The
message_urlshould respond with an XML document that provides instructions to control the SMS. - The
Content Typeof the response header, returned by themessage_url, must be set totext/xmlorapplication/xml. - The XML document returned should contain a valid Plivo Message XML element as described below.
Structuring the XML Document
The Parent Element
The<Response> element is the parent element of Plivo’s XML. All child elements must be nested within this element. Any other structure is considered invalid.
Child Elements
Child elements are proprietary Plivo elements and are case-sensitive. This means that using<message> instead of <Message>, for example, will result in an error. Attributes for the child elements are also case-sensitive and “camelCased.”
When Plivo receives an XML response, it executes the elements from top to bottom.