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
Shefali Lahariya
NA
257
156.4k
how to solve An exception of type 'System.Xml.XmlException'
Oct 24 2017 7:53 AM
Hi,
An exception of type 'System.Xml.XmlException' occurred in System.Xml.dll but was not handled in user code
Using code:
HttpWebRequest request = CreateSOAPWebRequest();
XmlDocument SOAPReqBody = new XmlDocument();
//SOAP Body Request
StringBuilder strRequest = new StringBuilder();
strRequest.Append("<?xml version='1.0' encoding='utf-8'?>");
strRequest.Append("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:v1=\"http://portal.test.com/admin/v1_1\">");
strRequest.Append("<soapenv:Header/>");
strRequest.Append("<soap:Body>");
strRequest.Append("<v1:GetEntityByRoomKeyRequest>");
strRequest.Append("<v1:roomKey>" + constant.Roomkey + "</v1:roomKey");
strRequest.Append("</v1:GetEntityByRoomKeyRequest>");
strRequest.Append("</soap:Body>");
strRequest.Append("</soap:Envelope>");
SOAPReqBody.LoadXml(strRequest.ToString());
Please help me to solve this error.
Reply
Answers (
2
)
Looping and Output
How to Using Graph AD For Azure B2C in Xamarin Forms ?