...
There are two options...
# . JSON-Stringify the Map<String,String> and use that as the XML attribute value which is "simple" but ugly as hell, or
# . Provide a more structured approach to defining the request parameters associated with the request: e.g. instead of using attributes, we can use Param elements...
Code Block |
---|
<os:HttpRequest key="..." method="get" href="..."> <os:Param name="format" value="text" /> <os:Param name="headers"> <os:Param name="X-Foo-Header" value="blah blah blah" /> <os:Param name="Prefer" value="lenient" /> </os:Param> </os:HttpRequest> |
http://code.google.com/p/opensocial-resources/issues/detail?id=1298