-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
High
-
None
-
Affects Version/s: 1.4.1
-
Component/s: Core - Content REST APIs
-
Environment:
Fedora on Intel - App server = Tomcat 5.0.28, JDK = 1.4.2_08,
We expose java.util.Map in the remote API as arguments to methods such as search() and getRenderedContent(). While XML-RPC has a native hash type, SOAP doesn't, so SOAP toolkits don't know how to translate the Map into a SOAP object... with predictably bad results.
We need to replace all maps in the API with beans that have specific property getters and setters. This will necessarily be a breaking non-backwards-compatible change, so we'll have to rev a new version of the API (confluence-v2) as a separate plugin. To keep all the breaking API changes in the same place, we should also fix the overloaded methods (CONF-3877) problem at the same time.
(Original description)
Hi
In the remote API one can search using:
Vector search(String token, String query, Map parameters, int maxResults)
I am trying to invoke this from Visual Basic .NET and confess to be a bit new to all this and a bit stuck. I can see an object called Map in the object browser which is added along with the ConfluenceService. But I think this object cannot be instantiated - I suspect it is sort of abstract, as the reference.vb file indicates: Public MustInherit Class Map
So how do I populate this with the space keys I want to restrict the search to. I could subclass Map, but what methods should I add (I tried it - but it did not seem to work). I suspect in Java this would be trivial, but I am stuck in .NET.
Anyone got any ideas - code examples?
Thanks
Chorltan
- is related to
-
CONFSERVER-3877 Overloaded methods in remote API break some SOAP toolkits
- Closed