Im trying to deserialize the response from this simple web service
Im using the following code:
WebRequest request = WebRequest.Create("http://inb374.jelastic.tsukaeru.net:8080/VodafoneDB/webresources/vodafone/04111111");
WebResponse ws = request.GetResponse();
XmlSerializer s = new XmlSerializer(typeof(string));
string reponse = (string)s.Deserialize(ws.GetResponseStream());
You want to deserialize the XML and treat it as a fragment.
There's a very straightforward workaround available here. I've modified it for your scenario:
Declaring XmlSerializer as
is enough.