Search the web
Sign In
New User? Sign Up
XMLRPCNET · XML-RPC.NET
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
string response instead of struct   Message List  
Reply | Forward Message #1084 of 1226 |
Re: string response instead of struct

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]




Mon Oct 27, 2008 9:08 pm

draka80
Offline Offline
Send Email Send Email

Forward
Message #1084 of 1226 |
Expand Messages Author Sort by Date

Hi all, I'm new to xml-rpc architecture and to xmlrpcnet. I'm playing with last.fm web service api. I succesfully managed to send a request, but responses are...
Carlo
draka80
Offline Send Email
Oct 26, 2008
11:52 pm

... This looks like a good XML-RPC response. ... See the FAQ. Define a proxy interface for the API and it will all be done automatically, it will be just...
Adam Tauno Williams
ferillis2003
Offline Send Email
Oct 27, 2008
1:05 am

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...
Carlo
draka80
Offline Send Email
Oct 27, 2008
9:08 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help