(emailed this last night but thought I'd post here too for anyone
else)
Primarily you use the XmlRPCStruct class (which also is used for
arrays)
The official DOCs are a bit distracting, but here's where I started:
http://www.xml-rpc.net/faq/xmlrpcnetfaq.html#2.1
Mine is implemented something like this:
CLASS/INTERFACE:
[XmlRpcUrl("
http://us.fotolia.com/Xmlrpc/rpc")]
public interface IFotolia : IXmlRpcProxy
{
[XmlRpcMethod("xmlrpc.test")]
XmlRpcStruct test(string apikey);
[XmlRpcMethod("xmlrpc.getSearchResults")]
XmlRpcStruct getSearchResults(
string apikey,
XmlRpcStruct Params,
string[] result_fields);
}
CALL/HANDLE:
IFotolia FotoliaApi = (IFotolia)XmlRpcProxyGen.Create(typeof
(IFotolia));;
XMLRPCStruct searchResults = FotoliaApi.getSearchResults(apikey,
Params /* an XMLRPCStruct */, result_fields /*a regular string array
*/);
if (searchresults != null)
{
for(int i=0; i<Counter; i++)
{
XmlRpcStruct Record = (XmlRpcStruct)(searchresults[i.ToString
()]);
if(Record != null)
{
//Do something with Record["title"] //Or whatever
fieldName
}
}
}
As long as the cookcomputing dll is registered you shouldn't need to
add anything else.
Of course you may want to class that up to re-use your objects
effectively.
Hope that helps :)
Bob