thank you very much for replying.
I know how to build a proxy interface.
I'll try to explain the problem better:
this is the response from last.fm:
<?xml version="1.0" encoding="utf-8" ?>
<methodResponse>
<params>
<param>
<value>
<string>
[escaped-xml]
</string>
</value>
</param>
</params>
</methodResponse>
the [escaped-xml] string value has a content like this, all escaped:
<?xml version="1.0" encoding="utf-8" ?>
<methodResponse>
<params>
<param>
<value>
<string>
etc.
</string>
</value>
</param>
</params>
</methodResponse>
which is the response I want to "parse" as my method call response.
By now, this is an example of a proxy I wrote:
[XmlRpcUrl("http://ws.audioscrobbler.com/2.0/")]
public interface IUser_GetRecentTracks : IXmlRpcProxy
{
[XmlRpcMethod("user.getrecenttracks")]
string User_GetRecentTracks(User_GetRecentTracks_Params p);
}
this way I'm getting the [escaped xml] as a string, which I use with c#
xml methods. If I put the struct I want, as return parameter of the
method, I get an error saying that the response is a string and not a
struct (and its the truth).
I was asking if it's possible to extract that escaped string and map it
to the response struct.
thanks,
Carlo.
--- In XMLRPCNET@yahoogroups.com, Adam Tauno Williams <awilliam@...>
wrote:
>
> > <methodResponse>
> > </methodResponse>
>
> This looks like a good XML-RPC response.
>
> >is there a way, with xmlrpc.net, to
> >extract the escaped response,
> >unescape it and map to the so useful
> > structs? or have I to parse the
>
> See the FAQ. Define a proxy interface for the API and it will all be
done
> automatically, it will be just like calling a local method.
>
> --
> Adam Tauno Williams
> http://www.whitemiceconsulting.com
>
[Non-text portions of this message have been removed]