ChampAlias
unread,Feb 7, 2011, 8:18:14 AM2/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Kayak HTTP
Hi Benjamin, sorry for my English, I'm french.
I would like use kayak for return a xml. what is the best method for
make this ?
I have a string xml (get with with my object serialized) and I have
try change text/plain to text/xml but it's not works correctly.
thanks for help :-)
StoredPluginSettings Settings = new StoredPluginSettings { MenuMode =
"firstest" };
CustomXmlSerializer CustomSerializer = new
CustomXmlSerializer();
string XMLToDisplay =
CustomSerializer.SerializeObject(Settings);
respond(
"200 OK",
new Dictionary<string, IList<string>>()
{
{ "Content-Type", new string[]
{ "text/xml" } }
},
new object[]
{ Encoding.ASCII.GetBytes(XMLToDisplay) }
);