I'm getting an error after acessing my webservice like:
Server Error in '/' Application.
Type 'System.Xml.XmlDocument' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. See the Microsoft .NET Framework documentation for other supported types.
The SRC is fairly easy:
public interface IService1
{
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Xml)]
XmlDocument TwitterGetPublicTimeline();
}
and the WebService:
public XmlDocument TwitterGetPublicTimeline()
{
var t = new Yedda.Twitter();
return t.GetPublicTimelineAsXML();
}
if I return it has a string the document is preceded by " wich is not acceptable.. :|