HI All,
I have created a web service which I do not want to expose on internet so I have created an interface suppose Interface.aspx
which calls the webmethod and user has access to this page and sends the input XML string as querystring.
Now by passing the input XML string I call the web service and then web service returns the XML to Interface.aspx and in this page I have a textarea.
But when I call it from client application I shoul get the XML only(returned by web service) where as I am getting following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">^M
^M
<html xmlns="http://www.w3.org/1999/xhtml" >^M
<head><title>^M
Untitled Page^M
</title></head>^M
<body>^M
<form name="form1" method="post" action="Interface.aspx" id="form1">^M
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMjgzMDgzOTgzZGS0Z6oZ670UiJb9JiWWT1fYreD0tQ==" />^M
^M
<div>^M
</div>^M
<textarea name="txtOutputString" rows="10" cols="20" id="txtOutputString"><?xml version="1.0"?><error><id></id><message>An Unexpected error has occured. </message></error></textarea>^M
^M
</form>^M
</body>^M
</html>^M
Please help me to return XML only not HTML stuff.
Thanks in advance...
I have created a web service which I do not want to expose on internet so I have created an interface suppose Interface.aspx
which calls the webmethod and user has access to this page and sends the input XML string as querystring.
Now by passing the input XML string I call the web service and then web service returns the XML to Interface.aspx and in this page I have a textarea.
But when I call it from client application I shoul get the XML only(returned by web service) where as I am getting following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">^M
^M
<html xmlns="http://www.w3.org/1999/xhtml" >^M
<head><title>^M
Untitled Page^M
</title></head>^M
<body>^M
<form name="form1" method="post" action="Interface.aspx" id="form1">^M
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMjgzMDgzOTgzZGS0Z6oZ670UiJb9JiWWT1fYreD0tQ==" />^M
^M
<div>^M
</div>^M
<textarea name="txtOutputString" rows="10" cols="20" id="txtOutputString"><?xml version="1.0"?><error><id></id><message>An Unexpected error has occured. </message></error></textarea>^M
^M
</form>^M
</body>^M
</html>^M
Please help me to return XML only not HTML stuff.
Thanks in advance...