lundi 30 octobre 2017

Twilio Fax: Schema validation warning - 12200

My Controller Code for incoming fax:

$twimlResponse = new \SimpleXMLElement("<Response></Response>");
$recieveEl = $twimlResponse->addChild('Receive');
$recieveEl->addAttribute('action', '/api/fax/received/file');       
return response($twimlResponse->asXML(), 200)
      ->header('Content-Type', 'text/xml');

Output of my incoming web hook defined by above code

<?xml version="1.0"?>
<Response>
    <Receive action="/api/fax/received/file"/>
</Response>

Twilio Error Log (Warning message)

Msg: XML Validation warning
line: 2
parserMessage: Invalid content was found starting with element 'Receive'. One of '{Play
ErrorCode:12200
cols:79
LogLevel:WARN
url:http://......./api/fax/incoming

http://ift.tt/2ih5VQA

http://ift.tt/2gNpdwg



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ifT0OF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire