Re: XML-RPC and WebServices
Re: XML-RPC and WebServices
- Subject: Re: XML-RPC and WebServices
- From: Jérome Foucher <email@hidden>
- Date: Tue, 10 Feb 2004 09:23:53 +0100
Le 10 fivr. 04, ` 06:32, Joel Watson a icrit :
>
Hi everyone!
>
>
I've been tinkering around with XML-RPC and WebServices attempting to
>
create a rudimentary blog-posting app that posts to blogger.com. I've
>
correctly set up all various WS calls such that I can successfully use
>
their blogger.getUsersBlogs and blogger.getUserInfo method from the
>
Blogger API. Unfortunately, I can't seem to get either the
>
blogger.newPost or blogger.editPost method to work. It seems to crash
>
at CFDictionaryRef resultDict = WSMethodInvocationInvoke(request);
>
which makes me think I have the parameters set up incorrectly, but I've
>
triple checked them and they're right. Anyone have any ideas? Here's
>
what I've got:
>
>
// Create the dictionary that will contain the parameters
>
dict = CFDictionaryCreateMutable(NULL, 0, NULL, NULL);
IMHO, this is where the bug lies
You should use :
dict= CFDictionaryCreateMutable(NULL, 0,
&kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
Read the documentation in the header CFDictionary.h. It provides very
good information on the two last parameters of
CFDictionaryCreateMutable.
Jerome
BTW, this is off-topic on the Cocoa dev list.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.