Hi, I am trying to send a message to the smsbox using the XML format specified here (http://kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#POSTXML). I have attached 2 example documents that should both work properly. The only difference is that the second one has the dlr-url element enclosed in a CDATA section. The message in post_test1.xml succeeds, and the message in post_test2.xml fails with the error "DLR-URL field misformed, rejected" and produces the following logging statement in the smsbox log: 2009-10-24 17:56:10 [4572] [3] DEBUG: Status: 400 Answer: <DLR-URL field misformed, rejected> Any ideas why using a CDATA section around the dlr-url should cause parsing of this field to fail? On a related note, NOT using a CDATA section or otherwise encoding the url causes the XML to be malformed, so if the parser was being strict (try opening it in Firefox) it should fail. Thanks for your help, Garth
<?xml version="1.0" encoding="UTF-8"?> <message> <submit> <oa> <number>12345</number> </oa> <da> <number>2125551212</number> </da> <ud>Hello World</ud> <from> <username>foo</username> <password>bar</password> </from> <statusrequest> <dlr-mask>31</dlr-mask> <dlr-url>http://127.0.0.1:8080/dlr?uuid=9ad36818-694b-4107-9a6a-47fd2bdfa069&t=%t&d=%d&i=%i&A=%A&F=%F&u=%u</dlr-url> </statusrequest> </submit> </message>
<?xml version="1.0" encoding="UTF-8"?> <message> <submit> <oa> <number>12345</number> </oa> <da> <number>2125551212</number> </da> <ud>Hello World</ud> <from> <username>foo</username> <password>bar</password> </from> <statusrequest> <dlr-mask>31</dlr-mask> <dlr-url><![CDATA[http://127.0.0.1:8080/dlr?uuid=9ad36818-694b-4107-9a6a-47fd2bdfa069&t=%t&d=%d&i=%i&A=%A&F=%F&u=%u]]></dlr-url> </statusrequest> </submit> </message>
