KBD

Keith Devens .com

Friday, May 16, 2008 Flag waving
"Yes, it's terribly simple. The good guys are always stalwart and true, the bad guys are easily distinguished by... – Giles (BtVS: Lie to Me)
← GET after POST revisitedXML-RPC Library changes →

Daily link icon Tuesday, June 11, 2002

XML-RPC validation suite

I didn't know there was an XML-RPC validation suite. I'm writing the test suite now at http://www.keithdevens.com/software/xmlrpc/validation_suite.php. I'll let you know how I make out.

Oh, I should log my time and see how long it takes me. All I did so far is create the validation_suite.php file and put the entire text of http://www.xmlrpc.com/validator1Docs into it as a comment. I'm going to do a kind of Literate Programming where the text of that page is my documentation, and then I write the program to match Smiley

Ok, start your engines, ready... go - it's 10:53pm.

Ok, time out. It's 11:06 and I've written all the functions that don't take Structs or Arrays as input. I realized shortly before attempting the validation suite that I need accessor functions that will retrieve Structs and Arrays in addition to booleans, ints, etc. I should have written them before I attempted the validation suite but I didn't think about it. I'm taking a time out to write them now.

Ok, it's 11:24 and I wrote my XMLRPC_getStruct and XMLRPC_getArray functions. Back to work on the validation suite. Although I didn't actually test those functions yet, so hopefully they work right Smiley. If the validation suite fails, I'll know that they don't.

Ok, finished all the functions and the "calling framework", and it's 11:40. All the functions should be correct. However, I think I may have found something I didn't account for in my XML-RPC library, so I may have to fix that before this'll work. If the validator displays certain behavior it'll tell me I'm right about not accounting for it, so... time to try the validator.

Grr, the validator timed out! I'll write tests to validate the code myself, and then I'll submit it to the validator one more time in the hopes that it won't time out again.

← GET after POST revisitedXML-RPC Library changes →

Comments XML gif

M. Bean (http://www.yaysoft.com/) wrote:

Back in early May, I wrote an XML-RPC engine that validated with the Userland XML-RPC Validation Suite... and it does the autotyping in both directions much like your code is seemingly designed to do.

The link to my posting (May 5) in the XML-RPC discussion group is here: http://www.xmlrpc.com/discuss/msgReader$2296?mode=day and the post links to both my XML-RPC code and the code for the validation suite.

I've currently rewritten my engine to be a little cleaner and run through in a single pass, without the aid of any of PHP's XML extensions, but the code mentioned in that post does work, even if it isn't all that pretty...

∴ M. Bean | 11-Jun-2002 11:23pm est | http://www.yaysoft.com/ | #475

Sam D wrote:

what ever became of this effort? still working

∴ Sam D | 19-Mar-2007 10:35pm est | #10027

Keith (http://keithdevens.com/) wrote:

Haven't looked at it in years probably. The validation suite was finished at one time though.

Keith | 20-Mar-2007 7:27am est | http://keithdevens.com/ | #10028

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

May 2008
SunMonTueWedThuFriSat
 123
45678910
11121314151617
18192021222324
25262728293031



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 1 posts

Recent comments XML

"IMDB for music"

IMDB for Music? It looks to be a​couple of years old...​http://MusicTell.co...

Ken Empie: May 14, 9:57pm

Generated in about 0.173s.

(Used 8 db queries)