Hi all,
I'm coding a new app for sub searching, mainly in order to learn C# and web-services (and if the outcome will be worth a damn, I will make it public of course).
Anyway, I have been coding a new wrapper for XML-RPC (yea I know there's Cook's XMLRPC.NET but my main goal is learning), and although I have only tried sending a "ServerInfo" request till now, I have noticed that the API method declaration states a return value of
ARRAY,
but the actual response contains a STRUCT object.
Why is that so?
And is this the case with all other API methods with return type ARRAY?
Another thing - with the idea to catch <fault>...</fault>
responses and creating a class for such faults, I tried to send a bad method name, and tried to access the server from the browser, both cases are faulty of course, and although the returned struct had a Fault structure to it (containing something similar to a faultCode member and a faultString member), the enclosing tags are:
<params><param> struct </param></params>
and not as stated in the XML-RPC protocol:
<fault> struct </fault>
So, why isn't the reply created as fault?
Thanks!