I am experimenting with adding support for an optional SOAP envelope on the CommentAPI. I haven't updated the specification for the CommentAPI, waiting instead for feedback from y'all. Thanks to Sam my script will produce a correctly formatted SOAP fault in an error condition. Here are two examples of posts to the comments of this entry, both using cURL. These are both single line commands, just formatted into multiple lines for make them easier to read. First example is the currently documented format:
curl --header "Content-type: text/xml"
--data "<item><title>Joe</title><description>Posted via cURL.</description></item>"
http://bitworking.org/news/comments/58
Now here is an example with the optional SOAP envelope:
curl --header "Content-type: text/xml"
--data "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>
<soap:Header/><soap:Body>
<item>
<title>Joe</title>
<description>A test from within a SOAP envelope</description>
</item>
</soap:Body>
</soap:Envelope>"
http://bitworking.org/news/comments/58
The code that lets me robustly handle both messages is built on top of the XmlToDictBySAX.py that I posted yesterday.
Posted by anonymous on 2003-03-17
Posted by anonymous on 2003-03-18
Posted by Joe on 2004-01-22
Posted by Joe on 2004-01-22
Posted by anonymous on 2004-08-12
Posted by anonymous on 2003-03-17