SOAP API can't be used in .NET applications due to references to java.util.Map

XMLWordPrintable

      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

            Assignee:
            Steve Haffenden (Inactive)
            Reporter:
            chorltan smith
            Votes:
            19 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: