<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Deployer &#187; Generic</title>
	<atom:link href="http://thedeployer.com/category/generic/feed" rel="self" type="application/rss+xml" />
	<link>http://thedeployer.com</link>
	<description>Technology and Development Today</description>
	<lastBuildDate>Thu, 05 Aug 2010 07:17:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Kohana &#8211; setting content-type</title>
		<link>http://thedeployer.com/2010-08-kohana-setting-content-type</link>
		<comments>http://thedeployer.com/2010-08-kohana-setting-content-type#comments</comments>
		<pubDate>Thu, 05 Aug 2010 07:17:37 +0000</pubDate>
		<dc:creator>Lucian Daniliuc</dc:creator>
				<category><![CDATA[Generic]]></category>
		<category><![CDATA[kohana]]></category>

		<guid isPermaLink="false">http://thedeployer.com/?p=339</guid>
		<description><![CDATA[If you need to deliver some other type of content than text/html in Kohana,you should know that
Header("Content-type: text/xml"); 
does not work. Insted use
$this->request->headers
 this way:

 public function action_wsdl()
    {
        // send response as XML
        $this->request->headers = array( 'Content-type' [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to deliver some other type of content than text/html in Kohana,you should know that</p>
<p><code>Header("Content-type: text/xml");</code> </p>
<p>does not work. Insted use
<pre>$this->request->headers</pre>
<p> this way:</p>
<pre>
 public function action_wsdl()
    {
        // send response as XML
        $this->request->headers = array( 'Content-type' => 'text/xml' );

        $wsdl = new Zend_Soap_AutoDiscover();
        $wsdl->setUri('http://' . $_SERVER['HTTP_HOST'] . '/soap/service');
        $wsdl->setClass('Model_Soap');
        $wsdl->handle();
    }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thedeployer.com/2010-08-kohana-setting-content-type/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
