<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Data Services with PostgreSQL</title>
	<atom:link href="http://www.dimuthu.org/blog/2008/12/07/php-data-services-with-postgresql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dimuthu.org/blog/2008/12/07/php-data-services-with-postgresql/</link>
	<description>Waiting for your comments</description>
	<lastBuildDate>Thu, 01 Dec 2011 06:50:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dimuthu</title>
		<link>http://www.dimuthu.org/blog/2008/12/07/php-data-services-with-postgresql/comment-page-1/#comment-30346</link>
		<dc:creator>dimuthu</dc:creator>
		<pubDate>Fri, 03 Sep 2010 11:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=771#comment-30346</guid>
		<description>Did you able to run non-pgsql services on your installation. If so I think it can be an issue in the installation?. Anyway there is a new wsf/php release (2.1), &lt;a href=&quot;http://wso2.org/downloads/wsf/php&quot; rel=&quot;nofollow&quot;&gt;http://wso2.org/downloads/wsf/php&lt;/a&gt;. Can you try that and check whether the problem still there?
Thanks,
Dimuthu</description>
		<content:encoded><![CDATA[<p>Did you able to run non-pgsql services on your installation. If so I think it can be an issue in the installation?. Anyway there is a new wsf/php release (2.1), <a href="http://wso2.org/downloads/wsf/php" rel="nofollow">http://wso2.org/downloads/wsf/php</a>. Can you try that and check whether the problem still there?<br />
Thanks,<br />
Dimuthu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mounir Bechchi</title>
		<link>http://www.dimuthu.org/blog/2008/12/07/php-data-services-with-postgresql/comment-page-1/#comment-29939</link>
		<dc:creator>Mounir Bechchi</dc:creator>
		<pubDate>Mon, 30 Aug 2010 14:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=771#comment-29939</guid>
		<description>Hello,
Thanks for releasing this document which helped me to get start with WSF/PHP data services.

However, I have a problem with my first service.
The service works well but the apache memory usage rise, as the soap client is called, until it crashes both apache and postgresql servers.

Do you have any idea about this issue.
Thanks.
 
My server :
 &quot;pgsql&quot;,
&quot;username&quot; =&gt; &quot;postgres&quot;,
&quot;password&quot; =&gt; &quot;postgres&quot;,
&quot;dbname&quot; =&gt; &quot;DBTICKETS&quot;,
&quot;dbhost&quot; =&gt; &quot;localhost&quot;
);
 

// security configuration
$pub_key = ws_get_cert_from_file(&quot;./clientsoapovh9.crt&quot;);
$pvt_key = ws_get_key_from_file(&quot;./servsoapovh9.key&quot;);
$pub_key_server = ws_get_cert_from_file(&quot;./servsoapovh9.crt&quot;);
$sec_array = array(&quot;sign&quot;=&gt;TRUE,&quot;encrypt&quot; =&gt; TRUE, &quot;algorithmSuite&quot; =&gt; &quot;Basic256Rsa15&quot;,
&quot;securityTokenReference&quot; =&gt; &quot;IssuerSerial&quot;);
$policy = new WSPolicy(array(&quot;security&quot;=&gt;$sec_array));
$sec_token = new WSSecurityToken(array(&quot;privateKey&quot; =&gt; $pvt_key,
&quot;receiverCertificate&quot; =&gt;$pub_key,
&quot;certificate&quot; =&gt; $rec_cert_client));
 
 
$inputFormatticket = array(&quot;nim&quot; =&gt; &quot;STRING&quot;,&quot;datej&quot; =&gt; &quot;STRING&quot;,&quot;cb&quot; =&gt; &quot;STRING&quot;,&quot;fam&quot; =&gt; &quot;STRING&quot;);
$outputFormatticket = array(&quot;resultElement&quot; =&gt; &quot;listeticketjourResponse&quot;,
&quot;rowElement&quot; =&gt; &quot;ticket&quot;,

&quot;elements&quot; =&gt; array(
&quot;id&quot; =&gt; &quot;id&quot;,
&quot;nul&quot; =&gt; &quot;nul&quot;,
&quot;heure&quot; =&gt; &quot;heure&quot;,
&quot;caisse&quot; =&gt; &quot;caisse&quot;,
&quot;emp&quot; =&gt; &quot;emp&quot;,
&quot;montant&quot; =&gt; &quot;montant&quot;,
&quot;mode&quot; =&gt; &quot;mode&quot;,
&quot;article&quot; =&gt; &quot;article&quot;,
&quot;z&quot; =&gt; &quot;z&quot;));
$sqlticket = &quot;SELECT id,nul,heure,caisse,emp,montant,mode,article,z FROM ticket_liste_jour(?,?,&#039;HEURE, MONTANT, NB_ARTICLE, PAIEMENT, CAISSE, EMPLOYE&#039;,&#039;ASC&#039;,?,?) &quot;.
&quot;as (id int8, nul int8, heure timestamp, caisse int8, emp varchar, montant float8, mode varchar, article int4, z int8 )&quot;;
$operationsticket = array(&quot;inputFormat&quot; =&gt; $inputFormatticket,
&quot;sql&quot; =&gt; $sqlticket,
&quot;outputFormat&quot; =&gt; $outputFormatticket);
 
 
$operations = array(&quot;listeticketjour&quot; =&gt; $operationsticket);

$actions = array(&quot;http://xxx/listeticketjour&quot; =&gt; &quot;listeticketjour&quot;);

$my_data_service = new DataService(array(&quot;config&quot; =&gt; $db_config,
&quot;operations&quot; =&gt; $operations,
&quot;actions&quot; =&gt; $actions,
&quot;policy&quot; =&gt; $policy,
&quot;securityToken&quot; =&gt; $sec_token));

 
$my_data_service-&gt;reply();
?&gt;
 
My client :
&lt;?php
$requestPayloadString = &lt;&lt;&lt;XML

$nim
$datej
$cb
$fam

XML;
$rec_cert = ws_get_cert_from_file(&quot;./keys/servsoapovh9.crt&quot;);
$pvt_key = ws_get_key_from_file(&quot;./keys/clientsoapovh9.key&quot;);
$rec_cert_client = ws_get_cert_from_file(&quot;./keys/clientsoapovh9.crt&quot;);

$reqMessage = new WSMessage($requestPayloadString,
array(&quot;to&quot; =&gt; &quot;http://xxx/server.php&quot;,
&quot;action&quot; =&gt; &quot;http://xxx/listeticketjour&quot;));

$sec_array = array(&quot;sign&quot;=&gt;TRUE,&quot;encrypt&quot;=&gt;TRUE, &quot;algorithmSuite&quot; =&gt; &quot;Basic256Rsa15&quot;,
&quot;securityTokenReference&quot; =&gt; &quot;IssuerSerial&quot;);
$policy = new WSPolicy(array(&quot;security&quot;=&gt;$sec_array));
$sec_token = new WSSecurityToken(array(&quot;privateKey&quot; =&gt; $pvt_key,
&quot;receiverCertificate&quot; =&gt; $rec_cert,
&quot;certificate&quot; =&gt; $rec_cert_client));
$client = new WSClient(array(&quot;useWSA&quot; =&gt; TRUE, &quot;policy&quot; =&gt; $policy,
&quot;securityToken&quot; =&gt; $sec_token));

 
$resMessage = $client-&gt;request($reqMessage);
$response = $resMessage-&gt;str;
?&gt;</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thanks for releasing this document which helped me to get start with WSF/PHP data services.</p>
<p>However, I have a problem with my first service.<br />
The service works well but the apache memory usage rise, as the soap client is called, until it crashes both apache and postgresql servers.</p>
<p>Do you have any idea about this issue.<br />
Thanks.</p>
<p>My server :<br />
 &#8220;pgsql&#8221;,<br />
&#8220;username&#8221; =&gt; &#8220;postgres&#8221;,<br />
&#8220;password&#8221; =&gt; &#8220;postgres&#8221;,<br />
&#8220;dbname&#8221; =&gt; &#8220;DBTICKETS&#8221;,<br />
&#8220;dbhost&#8221; =&gt; &#8220;localhost&#8221;<br />
);</p>
<p>// security configuration<br />
$pub_key = ws_get_cert_from_file(&#8220;./clientsoapovh9.crt&#8221;);<br />
$pvt_key = ws_get_key_from_file(&#8220;./servsoapovh9.key&#8221;);<br />
$pub_key_server = ws_get_cert_from_file(&#8220;./servsoapovh9.crt&#8221;);<br />
$sec_array = array(&#8220;sign&#8221;=&gt;TRUE,&#8221;encrypt&#8221; =&gt; TRUE, &#8220;algorithmSuite&#8221; =&gt; &#8220;Basic256Rsa15&#8243;,<br />
&#8220;securityTokenReference&#8221; =&gt; &#8220;IssuerSerial&#8221;);<br />
$policy = new WSPolicy(array(&#8220;security&#8221;=&gt;$sec_array));<br />
$sec_token = new WSSecurityToken(array(&#8220;privateKey&#8221; =&gt; $pvt_key,<br />
&#8220;receiverCertificate&#8221; =&gt;$pub_key,<br />
&#8220;certificate&#8221; =&gt; $rec_cert_client));</p>
<p>$inputFormatticket = array(&#8220;nim&#8221; =&gt; &#8220;STRING&#8221;,&#8221;datej&#8221; =&gt; &#8220;STRING&#8221;,&#8221;cb&#8221; =&gt; &#8220;STRING&#8221;,&#8221;fam&#8221; =&gt; &#8220;STRING&#8221;);<br />
$outputFormatticket = array(&#8220;resultElement&#8221; =&gt; &#8220;listeticketjourResponse&#8221;,<br />
&#8220;rowElement&#8221; =&gt; &#8220;ticket&#8221;,</p>
<p>&#8220;elements&#8221; =&gt; array(<br />
&#8220;id&#8221; =&gt; &#8220;id&#8221;,<br />
&#8220;nul&#8221; =&gt; &#8220;nul&#8221;,<br />
&#8220;heure&#8221; =&gt; &#8220;heure&#8221;,<br />
&#8220;caisse&#8221; =&gt; &#8220;caisse&#8221;,<br />
&#8220;emp&#8221; =&gt; &#8220;emp&#8221;,<br />
&#8220;montant&#8221; =&gt; &#8220;montant&#8221;,<br />
&#8220;mode&#8221; =&gt; &#8220;mode&#8221;,<br />
&#8220;article&#8221; =&gt; &#8220;article&#8221;,<br />
&#8220;z&#8221; =&gt; &#8220;z&#8221;));<br />
$sqlticket = &#8220;SELECT id,nul,heure,caisse,emp,montant,mode,article,z FROM ticket_liste_jour(?,?,&#8217;HEURE, MONTANT, NB_ARTICLE, PAIEMENT, CAISSE, EMPLOYE&#8217;,'ASC&#8217;,?,?) &#8220;.<br />
&#8220;as (id int8, nul int8, heure timestamp, caisse int8, emp varchar, montant float8, mode varchar, article int4, z int8 )&#8221;;<br />
$operationsticket = array(&#8220;inputFormat&#8221; =&gt; $inputFormatticket,<br />
&#8220;sql&#8221; =&gt; $sqlticket,<br />
&#8220;outputFormat&#8221; =&gt; $outputFormatticket);</p>
<p>$operations = array(&#8220;listeticketjour&#8221; =&gt; $operationsticket);</p>
<p>$actions = array(&#8220;http://xxx/listeticketjour&#8221; =&gt; &#8220;listeticketjour&#8221;);</p>
<p>$my_data_service = new DataService(array(&#8220;config&#8221; =&gt; $db_config,<br />
&#8220;operations&#8221; =&gt; $operations,<br />
&#8220;actions&#8221; =&gt; $actions,<br />
&#8220;policy&#8221; =&gt; $policy,<br />
&#8220;securityToken&#8221; =&gt; $sec_token));</p>
<p>$my_data_service-&gt;reply();<br />
?&gt;</p>
<p>My client :<br />
&lt;?php<br />
$requestPayloadString = &lt;&lt;&lt;XML</p>
<p>$nim<br />
$datej<br />
$cb<br />
$fam</p>
<p>XML;<br />
$rec_cert = ws_get_cert_from_file(&#8220;./keys/servsoapovh9.crt&#8221;);<br />
$pvt_key = ws_get_key_from_file(&#8220;./keys/clientsoapovh9.key&#8221;);<br />
$rec_cert_client = ws_get_cert_from_file(&#8220;./keys/clientsoapovh9.crt&#8221;);</p>
<p>$reqMessage = new WSMessage($requestPayloadString,<br />
array(&#8220;to&#8221; =&gt; &#8220;http://xxx/server.php&#8221;,<br />
&#8220;action&#8221; =&gt; &#8220;http://xxx/listeticketjour&#8221;));</p>
<p>$sec_array = array(&#8220;sign&#8221;=&gt;TRUE,&#8221;encrypt&#8221;=&gt;TRUE, &#8220;algorithmSuite&#8221; =&gt; &#8220;Basic256Rsa15&#8243;,<br />
&#8220;securityTokenReference&#8221; =&gt; &#8220;IssuerSerial&#8221;);<br />
$policy = new WSPolicy(array(&#8220;security&#8221;=&gt;$sec_array));<br />
$sec_token = new WSSecurityToken(array(&#8220;privateKey&#8221; =&gt; $pvt_key,<br />
&#8220;receiverCertificate&#8221; =&gt; $rec_cert,<br />
&#8220;certificate&#8221; =&gt; $rec_cert_client));<br />
$client = new WSClient(array(&#8220;useWSA&#8221; =&gt; TRUE, &#8220;policy&#8221; =&gt; $policy,<br />
&#8220;securityToken&#8221; =&gt; $sec_token));</p>
<p>$resMessage = $client-&gt;request($reqMessage);<br />
$response = $resMessage-&gt;str;<br />
?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

