From: tonybaldwin on
hi...
I'm trying to add xmlrpc posting to <a href="http://
baldwinsoftware.com/xpost.html">Xpostulate</a> (which currently uses
flat post method for LiveJournal and clones thereof), not only to work
better with LJ clones (dreamwidth, insanejournal, etc.), 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 when sending postevent, which, I believe
(thanks to <lj user="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.

any and all assistance always appreciated in advance
../tony
http://www.baldwinsoftware.com
From: drscrypt on
On 4/7/2010 11:53 AM, tonybaldwin wrote:
> 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.
>

Can you also post the response you are getting (data or the headers)?
That will help explain whether the feed is really in XML.


DrS