Sending boolean value via XML-RPC using WebServicesCore.framework
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.