DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   RSS, Web Services and SOAP (http://www.daniweb.com/forums/forum151.html)
-   -   Need suggestion on sending HTML content over webservice (http://www.daniweb.com/forums/thread199974.html)

kaushik259106 Jun 26th, 2009 10:10 am
Need suggestion on sending HTML content over webservice
 
Hi All,
I have this requirement to do and am still scratching my head. Actually am not that comfortable with webservice but am still fighting and need some help.

Here i go.
I need to send xHTML content through webservice. Something like if someone calls my API he gets a html content and he can use it in there website.

Approach i thought:
Send the xhtml content in the XML itself and have a method in my API to strip it down. Though am not sure about the after effect about this approach i request you guys for some idea.

pritaeas Jun 29th, 2009 3:57 am
Re: Need suggestion on sending HTML content over webservice
 
You could return your xhtml in a cdata block.
http://www.w3schools.com/xmL/xml_cdata.asp


All times are GMT -4. The time now is 10:09 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC