SOAP Interface (Not) Broken, plus Camebones Question

garth on 2002-04-24T10:16:56

Is the SOAP interface to use.perl broken at the moment? I have been trying to use it to create a journal entry, but everytime the body of the entry comes up as just the word 'date'.

While this could be the universe trying to tell me I need to get out more, I am pretty certain that there is something wrong in the back end. Even using pudge's example script gives the same result as my program.

Oh, and while I am asking questions, does any know if it is possible to create an NSString object in camelbones? All my current attempts result in a scalar being returned, which is not what I need.


Working

pudge on 2002-04-24T18:04:21

It is working for me. It was down for a week or less, but that was a week or more ago.

Re:Working

garth on 2002-04-24T23:53:14

Finally fixed up my script to work. I was trying to add an entry using
my $new_id  = $journal->add_entry( body     => 'this is a test again',
                                   subject  => 'this should not just be the word date')->result;
when in reality, you have to have all the key-pairs in there
my $new_id  = $journal->add_entry( body     => 'this is a test again',
                                   subject  => 'this should not just be the word date',
                                   discuss  => 1,
                                   posttype => 1,
                                   tid      => 1 )->result;
I just assumed those were optional, but obviously not. Thanks for your help :-)

Oh, and is there any progress on getting a nickname -> uid interface? Or using the nickname to get entries?

Re:Working

pudge on 2002-04-25T12:02:39

I use add_entry($subject, $body). I don't recall if add_entry(subject => $subject, body => $body) works, though it should. I'll look into it.

The nickname-uid interface has not yet been written; too many other things to do.