<?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: Data Services Best Practices</title>
	<atom:link href="http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/</link>
	<description>Waiting for your comments</description>
	<lastBuildDate>Fri, 26 Feb 2010 17:34:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: _revo</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-11534</link>
		<dc:creator>_revo</dc:creator>
		<pubDate>Fri, 14 Aug 2009 12:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-11534</guid>
		<description>oh :( unexpected turn.. this killed a lot from positive of DataService.. all simplicity came to zero if we need to handle input manually, then build sql, parse rowset and output handmade replyMessage :(( Comparing with regular php coding - only autoWSDL generation seems to be as plus from using wso2/php framework. Of course for simple oneway methods it is still good but could (will?) be more. Please keep developing!!</description>
		<content:encoded><![CDATA[<p>oh <img src='http://www.dimuthu.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  unexpected turn.. this killed a lot from positive of DataService.. all simplicity came to zero if we need to handle input manually, then build sql, parse rowset and output handmade replyMessage <img src='http://www.dimuthu.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> ( Comparing with regular php coding &#8211; only autoWSDL generation seems to be as plus from using wso2/php framework. Of course for simple oneway methods it is still good but could (will?) be more. Please keep developing!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dimuthu</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-11529</link>
		<dc:creator>dimuthu</dc:creator>
		<pubDate>Fri, 14 Aug 2009 08:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-11529</guid>
		<description>If you are going to have a logic in the service method, you should use WSService object and proceed in normal way.
Data Services (Using DataService object) we just wrap database query from a data service, So no space to write additional code. :(

Thanks
Dimuthu</description>
		<content:encoded><![CDATA[<p>If you are going to have a logic in the service method, you should use WSService object and proceed in normal way.<br />
Data Services (Using DataService object) we just wrap database query from a data service, So no space to write additional code. <img src='http://www.dimuthu.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Thanks<br />
Dimuthu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _revo</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-11525</link>
		<dc:creator>_revo</dc:creator>
		<pubDate>Fri, 14 Aug 2009 07:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-11525</guid>
		<description>Sure, I did that way, but how you can work with $inMessage - check variables, threw custom WSFaults, WSMessages, addressing etc - according to requested operation. That is why I try to find solution to incapsulate operation body in function or class.</description>
		<content:encoded><![CDATA[<p>Sure, I did that way, but how you can work with $inMessage &#8211; check variables, threw custom WSFaults, WSMessages, addressing etc &#8211; according to requested operation. That is why I try to find solution to incapsulate operation body in function or class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dimuthu</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-11519</link>
		<dc:creator>dimuthu</dc:creator>
		<pubDate>Fri, 14 Aug 2009 03:13:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-11519</guid>
		<description>Yea you can expose two web service method in one php file. 
Have a look at this, &lt;a href=&quot;http://labs.wso2.org/wsf/php/demo.php?name=RESTFulCRUD&amp;demo=CRUDApplications/demo_client.php&amp;src=./CRUDApplications&quot; rel=&quot;nofollow&quot;&gt;http://labs.wso2.org/wsf/php/demo.php?name=RESTFulCRUD&amp;demo=CRUDApplications/demo_client.php&amp;src=./CRUDApplications&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Yea you can expose two web service method in one php file.<br />
Have a look at this, <a href="http://labs.wso2.org/wsf/php/demo.php?name=RESTFulCRUD&#038;demo=CRUDApplications/demo_client.php&#038;src=./CRUDApplications" rel="nofollow">http://labs.wso2.org/wsf/php/demo.php?name=RESTFulCRUD&#038;demo=CRUDApplications/demo_client.php&#038;src=./CRUDApplications</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: _revo</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-11505</link>
		<dc:creator>_revo</dc:creator>
		<pubDate>Thu, 13 Aug 2009 18:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-11505</guid>
		<description>Dear Dimuthu!! Many thanks for your great tutorial. Very clear and helpful.

Please advice how to manage more than 1 operation in one project file? For example is there a way to pack operations in functions or class? Please write example how to make 2 operations in 1 file, both with sql queries and different output model. Please..

Regards,
Alexey</description>
		<content:encoded><![CDATA[<p>Dear Dimuthu!! Many thanks for your great tutorial. Very clear and helpful.</p>
<p>Please advice how to manage more than 1 operation in one project file? For example is there a way to pack operations in functions or class? Please write example how to make 2 operations in 1 file, both with sql queries and different output model. Please..</p>
<p>Regards,<br />
Alexey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dimuthu</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-6117</link>
		<dc:creator>dimuthu</dc:creator>
		<pubDate>Thu, 23 Apr 2009 02:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-6117</guid>
		<description>Hi Eric,
Looks like you want to add an additional wrapper element to the generated response. That mean,
&lt;response&gt;
&lt;data&gt;
&lt;record&gt;
&lt;field1&gt;
&lt;/field1&gt;
&lt;field2&gt;
&lt;/field2&gt;
&lt;/record&gt;
&lt;/data&gt;
&lt;/response&gt;

If it is so, you can&#039;t do that. :(
But if you want is something like this, (see custom fields)
&lt;response&gt;
&lt;record&gt;
&lt;field1&gt;
&lt;/field1&gt;
&lt;field2&gt;
&lt;/field2&gt;
&lt;customfield1&gt;
&lt;/customfield1&gt;
&lt;customfield2&gt;
&lt;/customfield2&gt;
&lt;/record&gt;
&lt;/response&gt;
then you can do it. Please read this, http://wso2.org/wiki/display/wsfphp/API+for+Data+Services+Revised

Thanks
Dimuthu</description>
		<content:encoded><![CDATA[<p>Hi Eric,<br />
Looks like you want to add an additional wrapper element to the generated response. That mean,<br />
&lt;response&gt;<br />
&lt;data&gt;<br />
&lt;record&gt;<br />
&lt;field1&gt;<br />
&lt;/field1&gt;<br />
&lt;field2&gt;<br />
&lt;/field2&gt;<br />
&lt;/record&gt;<br />
&lt;/data&gt;<br />
&lt;/response&gt;</p>
<p>If it is so, you can&#8217;t do that. <img src='http://www.dimuthu.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
But if you want is something like this, (see custom fields)<br />
&lt;response&gt;<br />
&lt;record&gt;<br />
&lt;field1&gt;<br />
&lt;/field1&gt;<br />
&lt;field2&gt;<br />
&lt;/field2&gt;<br />
&lt;customfield1&gt;<br />
&lt;/customfield1&gt;<br />
&lt;customfield2&gt;<br />
&lt;/customfield2&gt;<br />
&lt;/record&gt;<br />
&lt;/response&gt;<br />
then you can do it. Please read this, <a href="http://wso2.org/wiki/display/wsfphp/API+for+Data+Services+Revised" rel="nofollow">http://wso2.org/wiki/display/wsfphp/API+for+Data+Services+Revised</a></p>
<p>Thanks<br />
Dimuthu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-6085</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 22 Apr 2009 06:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-6085</guid>
		<description>opppss, the sample xml format was not displayed, should something like this:

response
 data
   record
   ...
   /record
   ...
 /data
/response</description>
		<content:encoded><![CDATA[<p>opppss, the sample xml format was not displayed, should something like this:</p>
<p>response<br />
 data<br />
   record<br />
   &#8230;<br />
   /record<br />
   &#8230;<br />
 /data<br />
/response</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.dimuthu.org/blog/2008/12/18/data-services-best-practices/comment-page-1/#comment-6084</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 22 Apr 2009 06:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dimuthu.org/?p=803#comment-6084</guid>
		<description>Hi there,

If im going to consume a REST web service created using WSF/PHP, is there anyway to modify the xml output format ($outputFormat) to include additional element? 

say my output xml format should be like this:



  
     
      ....
     
     
      ....
     

  


notice the data element? How would i go about this in WSF/PHP?

thanks,

Eric</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>If im going to consume a REST web service created using WSF/PHP, is there anyway to modify the xml output format ($outputFormat) to include additional element? </p>
<p>say my output xml format should be like this:</p>
<p>      &#8230;.</p>
<p>      &#8230;.</p>
<p>notice the data element? How would i go about this in WSF/PHP?</p>
<p>thanks,</p>
<p>Eric</p>
]]></content:encoded>
	</item>
</channel>
</rss>
