TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
key meh
NA
13
0
How to send html response in xmlelement web method
Jul 9 2015 2:08 AM
I want to send html response in xmlelement web method. But When I run in console application to send html response, it raises error. It is not recognized html in xml response.
public XmlElement GenerateHTMLResponse()
{
ReqErrxml = "<?xml version='1.0' encoding='utf-8' ?>" +
"<DATA>" +
"<HTMLCODE>" + html_code + "</HTMLCODE>" +
"</DATA>";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(ReqErrxml);
return xmlDoc.DocumentElement;
}
Request you to guide me for this problem.
Reply
Answers (
0
)
exception handling WCF
Fault Contract and Web Fault Contract in a single