Hi Dave, Following is a snippet of code to customize your HTTP Response (output) header from Witango. This particular one is largely for ensuring that your content is not cached. All you really need to do is modify the Content-Type.
<@ASSIGN request$httpHeader VALUE="HTTP/1.1 <@HTTPSTATUSCODE> <@HTTPREASONPHRASE><@CRLF>X-Witango: <@VERSION> <@PLATFORM><@CRLF>Content- Type: text/html<@CRLF>Cache-Control: no-cache, max-age=0, must- revalidate, proxy-revalidate<@CRLF>Pragma: no- cache<@CRLF><@USERREFERENCECOOKIE><@CRLF>"> Change "Content-Type: text/html" to "Content-Type: text/xml". Although most applications that consume XML content (Web services) don't support session-cookies, it's safer to leave the <@USERREFERENCECOOKIE> in the code than to take it out. As well, you should make sure you don't have any whitespace before your XML content in the output, so use <@PURGERESULTS>. Some Services don't handle extra whitespace well. Hope this helps. Cheers... Scott Cadillac, 403-281-6090 ~ [EMAIL PROTECTED] ------------ XML-Extranet ~ http://xmlx.ca ~ http://forums.xmlx.ca Well-formed Programming in C# .NET, Witango, MSIE and XML ------------ Witango ~ http://witango.org EasyXSLT ~ http://easyxslt.ca IIS Watcher ~ http://iiswatcher.ca ------------ -----Original Message----- From: "Dave Machin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Tue, 9 Mar 2004 09:10:24 -0800 Subject: Witango-Talk: XML Page Content Headers > I need to write a .taf that returns it's results as basic XML to the > client over the internet. The taf is responding to a few arguments > passed to it and returning a few values formatted in XML that our end > client will integrate into their reporting software. > > Do I need to set-up a custom http header since the content of the page > is XML? If so, what would that look like? > > Dave Machin > > > E-Mail. [EMAIL PROTECTED] > Tel. 805.614.0123 x 30 > Address: 3130 Skyway Drive #702 > Santa Maria, CA > 93455����������������������������������������������������������������� > �������D�T�5T%45$�$S�v�F��GG���wwr�v�F�v��6���FWfV��W"����Ɨ7B� > F` ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
