?

Log in

No account? Create an account
April 7th, 2010 - LiveJournal Development — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

April 7th, 2010

xmlrpc woes [Apr. 7th, 2010|11:34 am]
LiveJournal Development

lj_dev

[tonytraductor]
[Tags|, , , , , ]
[Current Location |127.0.0.1]
[mood |perplexed]
[music |wind]

hi...
I'm trying to add xmlrpc posting to Xpostulate, not only to work better with LJ, DW and (insert favorite LJ clone), but also to get wordpress crossposting worked in (since that also uses xmlrpc).

I seem to have sorted out my xml, and am certain I am sending a valid postevent, with one exception,
I've been missing something, which, I believe (thanks to catness to be LJ.XMLRPC.getchallenge data
so, I am now requesting a challenge from the server, then using tdom (tcl parser) to parse the response, but I think I'm feeding tdom the wrong data, because it keeps throwing a syntax error, as if I am not feeding it xml
I thought I was feeding it the server response, which, to my knowledge, should be an xml response, giving me some c0:balbalbalba value (which needs parsed out) to use in the postevent to send thereafter

here's my code: http://pastebin.com/ed4cTjaG
the result I get is simply error "syntax error" at line 1 character 0
"o <--Error-- k"
this leads me to believe that neither http::meta nor http::status is the variable I need to feed to the parser to get the challenge variable I need
link2 comments|post comment

navigation
[ viewing | April 7th, 2010 ]
[ go | Previous Day|Next Day ]