NSBoolNumber (instance) does not recognize count info
Adam Tauno Williams <[email protected]> Thu, 19 Jan 2006 16:40:15 -0500
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm getting an error when I attempt to delete an enterprise via
enterprise.delete.
Jan 19 21:27:16 ogo-xmlrpcd-1.1 [10207]: >DirectAction> turn exception
into fault: (Exception name:<nil> class:ObjcRuntimeException
reason:NSBoolNumber (instance) does not recognize count info:<nil>)
Anyone seen that one?
The request looks like -
<?xml version="1.0"?>
<methodCall>
<methodName>enterprise.delete</methodName>
<params>
<param>
<value>
<string>1583710</string>
</value>
</param>
</params>
</methodCall>
And the response is -
<?xml version='1.0'?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value><int>0</int></value>
</member>
<member>
<name>faultString</name>
<value><string>ObjcRuntimeException: NSBoolNumber (instance)
does not recognize count</string></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
What count? I've verified that 1583710 is the id of the newly created
enteprise object.
I'm mapping this method (C#) as taking a single paramater (string)
which is the primary key of the object.
/// \brief Proxy for enterprise.delete
[XmlRpcMethod("enterprise.delete")]
int DeleteEnterprise(string id);
This is xmlrpcd build r1489
I can create and update enterprise objects, but it fails when I attempt
to delete an object.
Server = new Whitemice.MOGI.RPC2.Server();
Server.Hostname = args[0];
Server.Credentials = new NetworkCredential(args[1], args[2]);
IEnterprise newEnterprise =
(IEnterprise)Server.Get("Document/Enterprise/0");
newEnterprise.Description = "New Enterprise";
newEnterprise.Bank = "New Bank";
newEnterprise.BankCode = "New Bank Code";
newEnterprise.URL = "New URL";
Console.WriteLine("Name of new enterprise:{0}", newEnterprise.Name);
Server.Put(newEnterprise);
Console.WriteLine("Name of new enterprise:{0}", newEnterprise.Name);
newEnterprise.Description="Updated Enterprise";
Server.Put(newEnterprise);
Server.Remove(newEnterprise);
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBD0Ac/LRePpNle04MRAtMqAJ4kj7rwUjmOSMQdATaWDh7WHZFhjQCffuFt ZbOwSXseU8LrzW8zBLkwFHE= =6CTX -----END PGP SIGNATURE-----