• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML-RPC and WebServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >XML-RPC and WebServices (From: Joel Watson <email@hidden>)

  • Prev by Date: Re: Making the correct button the default button?
  • Next by Date: didClickTableColumn not called when column reordering is off
  • Previous by thread: XML-RPC and WebServices
  • Next by thread: X-code build problem in panther
  • Index(es):
    • Date
    • Thread