<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Renan de Lima</title>
	<atom:link href="http://www.renandelima.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.renandelima.com</link>
	<description>até que nem tanto esotérico assim</description>
	<pubDate>Sun, 20 May 2012 15:10:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on WSDL + PHP = WSDLDocument by Schirkan</title>
		<link>http://www.renandelima.com/wsdl-php-wsdldocument/#comment-1318</link>
		<dc:creator>Schirkan</dc:creator>
		<pubDate>Sat, 13 Aug 2011 23:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=57#comment-1318</guid>
		<description>Hello,

if you have an object with an array of objects, the objects are transfered as simple structs.

Example:

class Person
{
    /**
     * @var string
     */
    public $name = '';
    /**
     * @var Address[]
     */
    public $address = array();
}

class Address
{
 ...
}

The created wsdl contains a definition for "AddressArray" but not for the class "Address" an its members.

I have found a simple fix for this - in method createType():

        # create the arrays concerned depth
        if ( $iArrayDepth &#62; 0 )
        {
            // --- Fix for Array of Objects
            $this-&#62;createType($sRawType);
            // --- end

            $sNameSpace = "tns";
            for ( ; $iArrayDepth &#62; 0; $iArrayDepth-- )
            {
                $sType = $this-&#62;createArrayType( $sType );
            }
        }</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>if you have an object with an array of objects, the objects are transfered as simple structs.</p>
<p>Example:</p>
<p>class Person<br />
{<br />
    /**<br />
     * @var string<br />
     */<br />
    public $name = &#8221;;<br />
    /**<br />
     * @var Address[]<br />
     */<br />
    public $address = array();<br />
}</p>
<p>class Address<br />
{<br />
 &#8230;<br />
}</p>
<p>The created wsdl contains a definition for &#8220;AddressArray&#8221; but not for the class &#8220;Address&#8221; an its members.</p>
<p>I have found a simple fix for this - in method createType():</p>
<p>        # create the arrays concerned depth<br />
        if ( $iArrayDepth &gt; 0 )<br />
        {<br />
            // &#8212; Fix for Array of Objects<br />
            $this-&gt;createType($sRawType);<br />
            // &#8212; end</p>
<p>            $sNameSpace = &#8220;tns&#8221;;<br />
            for ( ; $iArrayDepth &gt; 0; $iArrayDepth&#8211; )<br />
            {<br />
                $sType = $this-&gt;createArrayType( $sType );<br />
            }<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHPSource 0.0.1 by Evaldo Maciel</title>
		<link>http://www.renandelima.com/wordpress-plugin-phpsource-001/#comment-1317</link>
		<dc:creator>Evaldo Maciel</dc:creator>
		<pubDate>Fri, 24 Jun 2011 14:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=26#comment-1317</guid>
		<description>Não funfou.</description>
		<content:encoded><![CDATA[<p>Não funfou.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Alternativa para anexo em SOAP by Winter</title>
		<link>http://www.renandelima.com/alternativa-para-anexos-em-soap/#comment-1316</link>
		<dc:creator>Winter</dc:creator>
		<pubDate>Wed, 25 May 2011 02:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=33#comment-1316</guid>
		<description>I feel so much haepipr now I understand all this. Thanks!</description>
		<content:encoded><![CDATA[<p>I feel so much haepipr now I understand all this. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WSDL + PHP = WSDLDocument by Thiago Mata</title>
		<link>http://www.renandelima.com/wsdl-php-wsdldocument/#comment-1305</link>
		<dc:creator>Thiago Mata</dc:creator>
		<pubDate>Fri, 07 Aug 2009 22:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=57#comment-1305</guid>
		<description>sugiro a adicao do seguinte método

    public function handle()
    {
        header ("content-type: text/xml");
        if( $_SERVER[ "REQUEST_METHOD" ] == "POST" )
        {
            $objServer = new SoapServer( null , array( "uri" =&#62; $_SERVER[ "SERVER_NAME" ] . $_SERVER[ "REQUEST_URI" ] ) );
            $objServer-&#62;setClass( $this-&#62;oClass-&#62;getName() );
            $objServer-&#62;handle();
        }
        else
        {
            echo $this-&#62;saveXml();
        }
    }

pois o codigo na chamada


$objServer = new WSDLDocument( "MinhaClasseWS" );
$objServer-&#62;handle();

Pode então lidar tanto com o wsdl quanto com as requisições ;)</description>
		<content:encoded><![CDATA[<p>sugiro a adicao do seguinte método</p>
<p>    public function handle()<br />
    {<br />
        header (&#8221;content-type: text/xml&#8221;);<br />
        if( $_SERVER[ "REQUEST_METHOD" ] == &#8220;POST&#8221; )<br />
        {<br />
            $objServer = new SoapServer( null , array( &#8220;uri&#8221; =&gt; $_SERVER[ "SERVER_NAME" ] . $_SERVER[ "REQUEST_URI" ] ) );<br />
            $objServer-&gt;setClass( $this-&gt;oClass-&gt;getName() );<br />
            $objServer-&gt;handle();<br />
        }<br />
        else<br />
        {<br />
            echo $this-&gt;saveXml();<br />
        }<br />
    }</p>
<p>pois o codigo na chamada</p>
<p>$objServer = new WSDLDocument( &#8220;MinhaClasseWS&#8221; );<br />
$objServer-&gt;handle();</p>
<p>Pode então lidar tanto com o wsdl quanto com as requisições <img src='http://www.renandelima.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DBDesigner + PostgreSQL + Linux Kernel 2.6 by Cristiano Teles</title>
		<link>http://www.renandelima.com/dbdesigner-postgresql-linux-kernel-26/#comment-1298</link>
		<dc:creator>Cristiano Teles</dc:creator>
		<pubDate>Wed, 13 May 2009 18:58:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=49#comment-1298</guid>
		<description>Valeu pela dica ;)
Agora falta conectar para fazer a reversa, segue uma referência http://eloiribeiro.blogspot.com/2009/01/criar-um-conector-odbc-para-postgresql.html

Abraço</description>
		<content:encoded><![CDATA[<p>Valeu pela dica <img src='http://www.renandelima.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Agora falta conectar para fazer a reversa, segue uma referência <a href="http://eloiribeiro.blogspot.com/2009/01/criar-um-conector-odbc-para-postgresql.html" rel="nofollow">http://eloiribeiro.blogspot.com/2009/01/criar-um-conector-odbc-para-postgresql.html</a></p>
<p>Abraço</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WSDL + PHP = WSDLDocument by Renan de Lima</title>
		<link>http://www.renandelima.com/wsdl-php-wsdldocument/#comment-1296</link>
		<dc:creator>Renan de Lima</dc:creator>
		<pubDate>Mon, 13 Apr 2009 03:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=57#comment-1296</guid>
		<description>Hebert,

o jeito que você está correto, só que não é necessário indicar o option "uri" no array enviado como segundo parâmetro do construtor do SoapServer

você ainda pode deixar o wsdl gerfado e indicar somente um caminho para o arquivo no servidor, sem a necessidade de uma requisição http, mesmo que seja localhost

obrigado pelo contato</description>
		<content:encoded><![CDATA[<p>Hebert,</p>
<p>o jeito que você está correto, só que não é necessário indicar o option &#8220;uri&#8221; no array enviado como segundo parâmetro do construtor do SoapServer</p>
<p>você ainda pode deixar o wsdl gerfado e indicar somente um caminho para o arquivo no servidor, sem a necessidade de uma requisição http, mesmo que seja localhost</p>
<p>obrigado pelo contato</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WSDL + PHP = WSDLDocument by Herbert</title>
		<link>http://www.renandelima.com/wsdl-php-wsdldocument/#comment-1295</link>
		<dc:creator>Herbert</dc:creator>
		<pubDate>Sun, 12 Apr 2009 18:46:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=57#comment-1295</guid>
		<description>mas a instância da classe servidor, ficaria como?
eu tentei assim:
$server = new SoapServer("http://meusite.com.br/webservice/teste_wsdldocument.php?wsdl", array(
'uri' =&#62; 'http://'.$_SERVER["HTTP_HOST"].'/loja/webservice',
'encoding'=&#62;'ISO-8859-1')
								);
tá certo assim?
sendo que o arquivo "teste_wsdldocument.php" contém o código de geração do Xml:
saveXml();
?&#62;</description>
		<content:encoded><![CDATA[<p>mas a instância da classe servidor, ficaria como?<br />
eu tentei assim:<br />
$server = new SoapServer(&#8221;http://meusite.com.br/webservice/teste_wsdldocument.php?wsdl&#8221;, array(<br />
&#8216;uri&#8217; =&gt; &#8216;http://&#8217;.$_SERVER["HTTP_HOST"].&#8217;/loja/webservice&#8217;,<br />
&#8216;encoding&#8217;=&gt;&#8217;ISO-8859-1&#8242;)<br />
								);<br />
tá certo assim?<br />
sendo que o arquivo &#8220;teste_wsdldocument.php&#8221; contém o código de geração do Xml:<br />
saveXml();<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Buscador de disciplinas UnB 2009/1 by Wilson</title>
		<link>http://www.renandelima.com/buscador-de-disciplinas-unb-20091/#comment-1292</link>
		<dc:creator>Wilson</dc:creator>
		<pubDate>Wed, 11 Mar 2009 23:38:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=90#comment-1292</guid>
		<description>Pô Renan dá um jeito nesse buscador aí e bota ele funcionar. 
Assim você atrapalha a vida das pessoas!!</description>
		<content:encoded><![CDATA[<p>Pô Renan dá um jeito nesse buscador aí e bota ele funcionar.<br />
Assim você atrapalha a vida das pessoas!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BackTrace 0.2 by blaine</title>
		<link>http://www.renandelima.com/backtrace-02/#comment-1290</link>
		<dc:creator>blaine</dc:creator>
		<pubDate>Wed, 18 Feb 2009 19:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=70#comment-1290</guid>
		<description>Existe um problema com objetos recursivos.
Você podia usar aquele "truque" que a gente desenvolveu de outra vez para resolver isso.

Veja no http://my-svn.assembla.com/svn/corujaphpframework/corujito/coruja/components/default/debug/CorujaDebug.class.php o método
removeRecursiveProblem</description>
		<content:encoded><![CDATA[<p>Existe um problema com objetos recursivos.<br />
Você podia usar aquele &#8220;truque&#8221; que a gente desenvolveu de outra vez para resolver isso.</p>
<p>Veja no <a href="http://my-svn.assembla.com/svn/corujaphpframework/corujito/coruja/components/default/debug/CorujaDebug.class.php" rel="nofollow">http://my-svn.assembla.com/svn/corujaphpframework/corujito/coruja/components/default/debug/CorujaDebug.class.php</a> o método<br />
removeRecursiveProblem</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A morte do Smarty by Fábio José</title>
		<link>http://www.renandelima.com/a-morte-do-smarty/#comment-1285</link>
		<dc:creator>Fábio José</dc:creator>
		<pubDate>Wed, 31 Dec 2008 21:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.renandelima.com/?p=37#comment-1285</guid>
		<description>Tudo que queria ouvir. :)</description>
		<content:encoded><![CDATA[<p>Tudo que queria ouvir. <img src='http://www.renandelima.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>

