• 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
Sending boolean value via XML-RPC using WebServicesCore.framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sending boolean value via XML-RPC using WebServicesCore.framework


  • Subject: Sending boolean value via XML-RPC using WebServicesCore.framework
  • From: Matt Gemmell <email@hidden>
  • Date: Sat, 28 Sep 2002 21:41:30 +0100

Hi all,

I'm playing around with XML-RPC calls, using the methods in WebServicesCore.framework (within CoreServices.framework). All has been working fine, up until now that I need to pass a "boolean" value in my XML-RPC call.

I'm using NSDictionary's +dictionaryWithObjectsAndKeys: method to create my parameters dictionary, and for parameters whose type is "string" it works fine to pass in NSStrings. However, I'm unsure as to what type of object I need in order to pass in a value of type "boolean".

When I use WSMethodInvocationSetParameters(), I pass in my params NSDictionary like this: (CFDictionary)params, and it all seems to just work, assuming all the parameters are strings. Now that I need to also have a "boolean" parameter, it falls over.

I've tried a BOOL (which obviously doesn't work in +dictionaryWithObjectsAndKeys:), I've tried an NSNumber +numberWithBool:, and I've even tried passing in a CFBooleanRef set to either kCFBooleanTrue or kCFBooleanFalse. In all these cases, when I do WSMethodInvocationInvoke(), the console just spits this message back at me:

java.lang.Exception: org.xml.sax.SAXParseException: expected Element

I'm a bit lost here, to be honest. Any thoughts on what I'm doing wrong, and what data type to use in an NSDictionary in order to send a "boolean" XML-RPC value, would be much appreciated.


Best,
-Matt

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sending boolean value via XML-RPC using WebServicesCore.framework
      • From: Matt Gemmell <email@hidden>
  • Prev by Date: embedding frameworks with plugins
  • Next by Date: Keyboard input for NSStatusItems
  • Previous by thread: embedding frameworks with plugins
  • Next by thread: Re: Sending boolean value via XML-RPC using WebServicesCore.framework
  • Index(es):
    • Date
    • Thread