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.
The child elements are Plivo’s proprietary elements and are case-sensitive. For example, using <message>
instead of <Message>
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.
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Message src="12023222222" dst="15671234567" type="sms" callbackUrl="http://foo.com/sms_status/" callbackMethod="POST">
Hi, Message from Plivo
</Message>
</Response>