Structuring 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.
Response
<?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>
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input for further improvements!
Subscribe to Updates
Thank you for your feedback!