|
|
Choosing A Webhost: |
NSBoolNumber (instance) does not recognize count info: msg#00011cms.opengroupware.xmlrpc.devel
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);
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: xml-rpc with Perl, Adam Tauno Williams |
|---|---|
| Next by Date: | Re: LSDBObjectCommandException - no participants set, Adam Tauno Williams |
| Previous by Thread: | Update executor in person.updateJob, Frank Patzig |
| Next by Thread: | Re: NSBoolNumber (instance) does not recognize count info, Adam Tauno Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |