how to send an XML as return value in webservice

swteam

Newcomer
Joined
Jun 23, 2008
Messages
9
Hai

I am developing an webservice which need to return out as XML file e.g(<ResponseXml><TransactionId >101398</TransactionId ></ResponseXML>)
But my web service is returning like this(<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="lax"><ResponseXml><TransactionId >0</TransactionId>) can any one tell how can i remove the extra lines while returning here i want to remove (<?xml version="1.0" encoding="utf-8" ?>
<string xmlns="lax"> this lines i want tp cut please suggest me how do i procede
 
Why do you want to change the respone to a non-complient xml response?

Any standard XML reader [XmlDocument, etc] will support these extra tags.

If you use the Visual Studio "Add Web Reference" utility, you will not even need to deal with the XML as it'll all be handled behind the scenes.
 
Back
Top