<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>phpdataservices Discussions Rss Feed</title><link>http://phpdataservices.codeplex.com/Thread/List.aspx</link><description>phpdataservices Discussions Rss Description</description><item><title>New Post: How do you set a link? (SetLink vs AddLink)</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=71992</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi vpendroza,&lt;/p&gt;
&lt;p&gt;Yesterday we have released a new version of SDK, Please visit the site &lt;a title=odataphp.codeplex.com href=odataphp.codeplex.com&gt;http://odataphp.codeplex.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This release include support for SetLink, some other new features are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Support for all new OData protocol features (Projections, Server-Side paging, Blobs, RowCounter and Customizable Feeds)&lt;/li&gt;
&lt;li&gt;Support for Azure authentication (Azure T)&lt;/li&gt;
&lt;li&gt;Better programming model with APIs for all Query Options&lt;/li&gt;
&lt;li&gt;More command line options&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Wed, 17 Mar 2010 03:54:48 GMT</pubDate><guid isPermaLink="false">New Post: How do you set a link? (SetLink vs AddLink) 20100317035448A</guid></item><item><title>New Post: VS2010 WCF Data Service metadata namespace not supported</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=155403</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks Juan.&lt;/p&gt;
&lt;p&gt;Yesterday we have released a new version of SDK, please visit the site &lt;a title="http://odataphp.codeplex.com" href="http://odataphp.codeplex.com"&gt;http://odataphp.codeplex.com&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This release has the following features&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Support for all new OData protocol features (Projections, Server-Side paging, Blobs, RowCount and Customizable Feeds)&lt;/li&gt;
&lt;li&gt;Support for Azure authentication (Azure Table and ACS) &lt;/li&gt;
&lt;li&gt;Better programming model with APIs for all Query Options&lt;/li&gt;
&lt;li&gt;Support for .NET 4.0 based WCF Services.&lt;/li&gt;
&lt;li&gt;Support for OnBeforeRequest and OnAfterResponse call-backs&lt;/li&gt;
&lt;li&gt;Support for SetLink&lt;/li&gt;
&lt;li&gt;More command line options&lt;/li&gt;
&lt;li&gt;Additional samples&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thank you once again.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Wed, 17 Mar 2010 03:46:36 GMT</pubDate><guid isPermaLink="false">New Post: VS2010 WCF Data Service metadata namespace not supported 20100317034636A</guid></item><item><title>New Post: VS2010 WCF Data Service metadata namespace not supported</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=155403</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi team,&lt;/p&gt;
&lt;p&gt;We are working on some HOL samples using the PHP ADO.NET Data services toolkit with the latest VS2010 RC bits and we found a problem related to the EDM namespace used in the generated WCF (formerly ADO.NET) Data Service $metadata response.&lt;/p&gt;
&lt;p&gt;Below you can find a sample $metadata response. Notice the bolded edm namespace:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="color:#A31515"&gt;xml&lt;/span&gt; &lt;span style="color:Red"&gt;version&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;1.0&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;encoding&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;utf-8&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;standalone&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;yes&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Blue"&gt;?&amp;gt;&lt;/span&gt; &lt;br&gt;- &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;edmx&lt;/span&gt;&lt;span style="color:Blue"&gt;:&lt;/span&gt;&lt;span style="color:#A31515"&gt;Edmx&lt;/span&gt; &lt;span style="color:Red"&gt;Version&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;1.0&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;xmlns:edmx&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/06/edmx&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
- &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;edmx&lt;/span&gt;&lt;span style="color:Blue"&gt;:&lt;/span&gt;&lt;span style="color:#A31515"&gt;DataServices&lt;/span&gt; &lt;span style="color:Red"&gt;xmlns:m&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;m:DataServiceVersion&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;1.0&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
+ &lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;Schema&lt;/span&gt; &lt;span style="color:Red"&gt;Namespace&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;AdventureWorksShoppingModel&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;xmlns:d&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;br&gt;&lt;span style="color:Red"&gt;xmlns:m&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;br&gt;&lt;span style="color:Red"&gt;xmlns&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2008/09/edm&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;This namespace is not supported in the ADODotNETDataServices2PHPProxy.xsl file. We've workaround the issue by hacking the file to support this new version of the namepspace:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;&amp;lt;?&lt;/span&gt;&lt;span style="color:#A31515"&gt;xml&lt;/span&gt; &lt;span style="color:Red"&gt;version&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;1.0&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt; &lt;span style="color:Red"&gt;encoding&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;utf-8&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;?&amp;gt;&lt;/span&gt;
&lt;span style="color:Blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#A31515"&gt;xsl&lt;/span&gt;&lt;span style="color:Blue"&gt;:&lt;/span&gt;&lt;span style="color:#A31515"&gt;stylesheet&lt;/span&gt; &lt;span style="color:Red"&gt;version&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;1.0&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
    &lt;span style="color:Red"&gt;xmlns:xsl&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://www.w3.org/1999/XSL/Transform&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
    &lt;span style="color:Red"&gt;xmlns:edmx&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/06/edmx&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
    &lt;span style="color:Red"&gt;xmlns:d&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
    &lt;span style="color:Red"&gt;xmlns:schema_1_0&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2006/04/edm&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
    &lt;span style="color:Red"&gt;xmlns:schema_1_1&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2008/09/edm&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;
&lt;span style="color:Red"&gt;xmlns:m&lt;/span&gt;&lt;span style="color:Blue"&gt;=&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;http://schemas.microsoft.com/ado/2007/08/dataservices/metadata&lt;/span&gt;&lt;span style="color:Black"&gt;&amp;quot;&lt;/span&gt;&lt;span style="color:Blue"&gt;&amp;gt;&lt;/span&gt;
  &lt;span style="color:Green"&gt;&amp;lt;!--Removed Entity Data Model schema--&amp;gt;&lt;/span&gt;
  &lt;span style="color:Green"&gt;&amp;lt;!--xmlns:schema_1_1=&amp;quot;&lt;span style="text-decoration:underline"&gt;&lt;strong&gt;http://schemas.microsoft.com/ado/2007/05/edm&lt;/strong&gt;&lt;/span&gt;&amp;quot;--&amp;gt;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The approach above worked for us in this specific scenario, but we are pretty sure hacking the xsl file is not the best approach. You might have another solution in mind.&lt;/p&gt;
&lt;p&gt;We hope you can find this info useful for your next release.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Juan Arguello&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.southworks.net/jarguello"&gt;http://blogs.southworks.net/jarguello&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>juanar</author><pubDate>Mon, 22 Feb 2010 23:08:06 GMT</pubDate><guid isPermaLink="false">New Post: VS2010 WCF Data Service metadata namespace not supported 20100222110806P</guid></item><item><title>New Post: Analysis Services</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=76272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Does this support ADOMD as well?&lt;/p&gt;&lt;/div&gt;</description><author>MitchMcBride</author><pubDate>Thu, 26 Nov 2009 00:44:09 GMT</pubDate><guid isPermaLink="false">New Post: Analysis Services 20091126124409A</guid></item><item><title>New Post: How do you encode spaces in a query with a filter?</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=72920</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The following query with a filter works when issued from a browser&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer(customerId='VE1')/orders?$filter=orderDate ge datetime'2009-10-16T00:00:00' and orderDate le datetime'2009-10-20T23:59:59.99'&lt;/p&gt;
&lt;p&gt;When I attempt to execute it programatically, it fails.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rangeResult = $proxy-&amp;gt;ExecuteQuery(&amp;quot;Customer(customerId='$customerId')/orders?\$filter=orderDate ge datetime'$lowDate' and orderDate le datetime'$hiDate'&amp;quot;);&lt;/p&gt;
&lt;p&gt;The spaces were turned into + signs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer(customerId='VE1')/orders?$filter=orderDate+ge+datetime%272009-10-17T%3A00%3A00%3A00%27+and+orderDate+le+datetime%272009-10-21T%3A23%3A59%3A99%27&lt;/p&gt;
&lt;p&gt;When I try substituting the spaces with %20 it also fails, the %20 gets turned into %2520&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rangeResult = $proxy-&amp;gt;ExecuteQuery&amp;quot;Customer(customerId='$customerId')/orders?\$filter=orderDate%20ge%20datetime'$lowDate'%20and%20orderDate%20le%20datetime'$hiDate'&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer(customerId='VE1')/orders?$filter=orderDate%2520ge%2520datetime%272009-10-17T%3A00%3A00%3A00%27%2520and%2520orderDate%2520le%2520datetime%272009-10-21T%3A23%3A59%3A99%27&lt;/p&gt;&lt;/div&gt;</description><author>vpedroza</author><pubDate>Fri, 23 Oct 2009 19:22:36 GMT</pubDate><guid isPermaLink="false">New Post: How do you encode spaces in a query with a filter? 20091023072236P</guid></item><item><title>New Post: Unable to load propery order "orderDetails"</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=72455</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Looking at the original Northwinds Data Service I see that the OrderID was Type=&amp;quot;Edm.Int32&amp;quot;.&lt;br&gt;In the service I am using I see that it is Type=&amp;quot;Edm.Int64&amp;quot;. Peeking at &lt;br&gt;adodotnetservcesphp\Contect\ObjectContext.php LoadProperty() function I see that it is&lt;br&gt;really generating a query.&amp;nbsp; I have been able to workaround the support issue of int vs long&lt;br&gt;by generating my own query and working with the result.&amp;nbsp; Is this something that will be &lt;br&gt;supported in the future?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; //$proxy-&amp;gt;LoadProperty($order, &amp;quot;orderDetails&amp;quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp; $orderDetailResult = $proxy-&amp;gt;ExecuteQuery(&amp;quot;Order(customerId='&amp;quot;.$customerId.&amp;quot;',orderId=&amp;quot;.$order-&amp;gt;orderId.&amp;quot;L)/orderDetails&amp;quot;);&lt;/p&gt;&lt;/div&gt;</description><author>vpedroza</author><pubDate>Mon, 19 Oct 2009 19:30:49 GMT</pubDate><guid isPermaLink="false">New Post: Unable to load propery order "orderDetails" 20091019073049P</guid></item><item><title>New Post: Unable to load propery order "orderDetails"</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=72455</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Attempting to load orderDetails for an order fails. The generated query&lt;br&gt;with orderId=1 fails but works when manually issued with orderId=1L.&lt;/p&gt;
&lt;p&gt;I would apprecate any suggestions, Thanks, Vince...&lt;/p&gt;
&lt;p&gt;&lt;br&gt;--&amp;gt; The following line works and generates the request : GET /vvvvRestSVT2/vvvNorthwindSVTDataService.svc/Customer(customerId='VP1')/orders HTTP/1.1&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $proxy-&amp;gt;LoadProperty($customer, &amp;quot;orders&amp;quot;)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach($customer-&amp;gt;orders as $order) {&lt;br&gt;------&amp;gt; The following line generates the follwing request which fails : GET /vvvRestSVT2/vvvNorthwindSVTDataService.svc/Order(customerId='VP1',orderId=1)/orderDetails HTTP/1.1&lt;br&gt;------&amp;gt; When I manually issue request with orderID as long L it works : GET /vvvRestSVT2/vvvNorthwindSVTDataService.svc/Order(customerId='VP1',orderId=1L)/orderDetails HTTP/1.1&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $proxy-&amp;gt;LoadProperty($order, &amp;quot;orderDetails&amp;quot;);&lt;/p&gt;
&lt;p&gt;The metadata shows orderID as a long Type=&amp;quot;Edm.Int64&amp;quot;&lt;/p&gt;
&lt;p&gt;- &amp;lt;EntityType Name=&amp;quot;Order&amp;quot;&amp;gt;&lt;br&gt;- &amp;lt;Key&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;PropertyRef Name=&amp;quot;customerId&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;PropertyRef Name=&amp;quot;orderId&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;/Key&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;customerId&amp;quot; Type=&amp;quot;Edm.String&amp;quot; Nullable=&amp;quot;false&amp;quot; MaxLength=&amp;quot;254&amp;quot; Unicode=&amp;quot;false&amp;quot; FixedLength=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;orderId&amp;quot; Type=&amp;quot;Edm.Int64&amp;quot; Nullable=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;orderDate&amp;quot; Type=&amp;quot;Edm.DateTime&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;shipCity&amp;quot; Type=&amp;quot;Edm.String&amp;quot; Nullable=&amp;quot;true&amp;quot; MaxLength=&amp;quot;254&amp;quot; Unicode=&amp;quot;false&amp;quot; FixedLength=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;shipCountry&amp;quot; Type=&amp;quot;Edm.String&amp;quot; Nullable=&amp;quot;true&amp;quot; MaxLength=&amp;quot;254&amp;quot; Unicode=&amp;quot;false&amp;quot; FixedLength=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;version&amp;quot; Type=&amp;quot;Edm.Int32&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;NavigationProperty Name=&amp;quot;customer&amp;quot; Relationship=&amp;quot;NWSVTModel.CustomerOrder&amp;quot; FromRole=&amp;quot;Order&amp;quot; ToRole=&amp;quot;Customer&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;NavigationProperty Name=&amp;quot;orderDetails&amp;quot; Relationship=&amp;quot;NWSVTModel.OrderOrderDetail&amp;quot; FromRole=&amp;quot;Order&amp;quot; ToRole=&amp;quot;OrderDetail&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;/EntityType&amp;gt;&lt;/p&gt;
&lt;p&gt;- &amp;lt;EntityType Name=&amp;quot;OrderDetail&amp;quot;&amp;gt;&lt;br&gt;- &amp;lt;Key&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;PropertyRef Name=&amp;quot;order_customerId&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;PropertyRef Name=&amp;quot;order_orderId&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;PropertyRef Name=&amp;quot;productId&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;/Key&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;order_customerId&amp;quot; Type=&amp;quot;Edm.String&amp;quot; Nullable=&amp;quot;false&amp;quot; MaxLength=&amp;quot;254&amp;quot; Unicode=&amp;quot;false&amp;quot; FixedLength=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;order_orderId&amp;quot; Type=&amp;quot;Edm.Int64&amp;quot; Nullable=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;productId&amp;quot; Type=&amp;quot;Edm.Int32&amp;quot; Nullable=&amp;quot;false&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;categoryId&amp;quot; Type=&amp;quot;Edm.Int32&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;discount&amp;quot; Type=&amp;quot;Edm.Single&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;quantity&amp;quot; Type=&amp;quot;Edm.Int16&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;unitPrice&amp;quot; Type=&amp;quot;Edm.Double&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;Property Name=&amp;quot;version&amp;quot; Type=&amp;quot;Edm.Int32&amp;quot; Nullable=&amp;quot;true&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;NavigationProperty Name=&amp;quot;order&amp;quot; Relationship=&amp;quot;NWSVTModel.OrderOrderDetail&amp;quot; FromRole=&amp;quot;OrderDetail&amp;quot; ToRole=&amp;quot;Order&amp;quot; /&amp;gt; &lt;br&gt;&amp;nbsp; &amp;lt;/EntityType&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><author>vpedroza</author><pubDate>Mon, 19 Oct 2009 18:13:52 GMT</pubDate><guid isPermaLink="false">New Post: Unable to load propery order "orderDetails" 20091019061352P</guid></item><item><title>New Post: How do you set a link? (SetLink vs AddLink)</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=71992</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&lt;span style="color:#1f497d"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#1f497d"&gt;This release of toolkit don't have the support for SetLink API,&amp;nbsp;&lt;/span&gt;&lt;span style="color:#1f497d"&gt;we are working on the next release so we will make sure to include SetLink too.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#1f497d"&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#1f497d"&gt;Anu&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Fri, 16 Oct 2009 15:26:38 GMT</pubDate><guid isPermaLink="false">New Post: How do you set a link? (SetLink vs AddLink) 20091016032638P</guid></item><item><title>New Post: How do you set a link? (SetLink vs AddLink)</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=71992</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;How do you SetLink?&lt;/p&gt;
&lt;p&gt;WHen running the Northwithnds simple sample7, the following code&lt;br&gt;adds to the $cust collection of links a link to the new order &lt;br&gt;$newO.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $proxy-&amp;gt;AddLink($cust, &amp;quot;Orders&amp;quot;, $newO);&lt;/p&gt;
&lt;p&gt;I want to add a link to the $newO back to the $cust.&lt;br&gt;&amp;nbsp;&amp;nbsp; &lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; $proxy-&amp;gt;AddLink($cust, &amp;quot;Orders&amp;quot;, $newO);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;proxy-&amp;gt;AddLink($newO, &amp;quot;Customers&amp;quot;, $cust)&lt;/p&gt;
&lt;p&gt;This fails as follows&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; Error: Th&amp;nbsp;&amp;nbsp; e URI 'http://mulder.rchland.ibm.com:1325/NorthwindWeb/NorthwindData&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Service.svc/$2/$links/Customers' is not valid for POST operation. For POST opera&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; tions, the URI must refer to a service operation or an entity set.&amp;lt;br&amp;gt;Detailed E&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; rror:&lt;/p&gt;
&lt;p&gt;Since it is not a collection of links I tried SetLink but that is &lt;br&gt;not defined.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$proxy-&amp;gt;AddLink($cust, &amp;quot;Orders&amp;quot;, $newO);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;$proxy-&amp;gt;SetLink($newO, &amp;quot;Customers&amp;quot;, $cust);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; PHP Fatal error:&amp;nbsp; Call to undefined method NorthwindEntities::SetLink() in C:\Hmm&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; m\Sample7.php on line 51&lt;/p&gt;
&lt;p&gt;How do I go about adding a link from the order back to the&lt;br&gt;customer?&lt;/p&gt;&lt;/div&gt;</description><author>vpedroza</author><pubDate>Wed, 14 Oct 2009 18:50:40 GMT</pubDate><guid isPermaLink="false">New Post: How do you set a link? (SetLink vs AddLink) 20091014065040P</guid></item><item><title>New Post: Config Issue - adodotnetservicesphp_path</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=70354</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Nickknyc,&lt;/p&gt;
&lt;p&gt;Did you restart IIS after changing PHP.INI ? if not can you try it?&lt;/p&gt;
&lt;p&gt;For adding php_xsl.dll, Please follow the below steps:&lt;/p&gt;
&lt;p&gt;1. Download the PHP zip package in a temporary folder from &lt;a href="http://www.php.net/downloads.php"&gt;http://www.php.net/downloads.php&lt;/a&gt; corresponding to your PHP version&lt;/p&gt;
&lt;p&gt;2. Extract the zip, from %Temporary Folder%\PHP version\ext\ copy php_xsl.dll to ext directory of your PHP installation directory.&lt;/p&gt;
&lt;p&gt;3. Restart IIS&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Tue, 29 Sep 2009 05:16:58 GMT</pubDate><guid isPermaLink="false">New Post: Config Issue - adodotnetservicesphp_path 20090929051658A</guid></item><item><title>New Post: Config Issue - adodotnetservicesphp_path</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=70354</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I&amp;nbsp;am having trouble getting PHP.INI configuration changes in place. . This is what my ini file looks like now&lt;/p&gt;
&lt;pre&gt;; Windows: &amp;quot;\path1;\path2&amp;quot;
;include_path = &amp;quot;.;c:\php\includes
include_path = &amp;quot;.;C:\Program Files\PHP\adodotnetservicesphp&amp;quot;  
;PHP Toolkit for ADO .NET Data Services Library Path 
adodotnetservicesphp_path = &amp;quot;C:\Program Files\PHP\adodotnetservicesphp&amp;quot; &lt;/pre&gt;
&lt;p&gt;I am receiving the following error when I run the following&lt;/p&gt;
&lt;p&gt;C:\Program Files\PHP&amp;gt; php adodotnetservicesphp\PHPDataSvcUtil.php /uri:http://myAzureapp.cloudapp.net/myService.svc/&lt;/p&gt;
&lt;p&gt;Error generating proxy classes. The configuration option 'adodotnetservicesphp_p&lt;br&gt;ath' is not set in the php.ini file, Please refer installation instructions for&lt;br&gt;fix this issue&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;
&lt;p&gt;Also - I installed PHP using the WPI 2.0 (Web Platform Installer) and the version of PHP that is currently being loaded does not contain the php_xsl.dll&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><author>nickknyc</author><pubDate>Mon, 28 Sep 2009 17:41:33 GMT</pubDate><guid isPermaLink="false">New Post: Config Issue - adodotnetservicesphp_path 20090928054133P</guid></item><item><title>New Post: What type of data should I be creating/using for the date fields?</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68941</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;In our client application we can use string to represent date. For example:&lt;/p&gt;
&lt;p&gt;$order = $proxy-&amp;gt;ExecuteQuery(&amp;quot;Orders(OrderID=10248)&amp;quot;);&lt;br&gt; &lt;strong&gt;&lt;span style="color:#ff0000"&gt;$order[0]-&amp;gt;OrderDate = '2008/05/07';&lt;/span&gt;&lt;/strong&gt;&lt;br&gt; $proxy-&amp;gt;UpdateObject($order[0]);&lt;br&gt; $proxy-&amp;gt;SaveChanges();&lt;/p&gt;
&lt;p&gt;The above code will fetch the first Order record from Orders table of NorthWind database and update the OrderDate column to 2008/05/07. We can represent date in yyyy/mm/dd format.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Fri, 18 Sep 2009 03:29:04 GMT</pubDate><guid isPermaLink="false">New Post: What type of data should I be creating/using for the date fields? 20090918032904A</guid></item><item><title>New Post: Getting an exception with no message when adding object</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68824</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks Rob, I have updated User guide with correct usage of AddObject&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Tue, 15 Sep 2009 07:44:53 GMT</pubDate><guid isPermaLink="false">New Post: Getting an exception with no message when adding object 20090915074453A</guid></item><item><title>New Post: What type of data should I be creating/using for the date fields?</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68941</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Forgive me I haven't seen any information in any of the docs on this, and I believe I may have read them back to front a few times by now. =)&amp;nbsp; What type of data should I be using for a field which the proxy identifies as 'Edm.datetime'?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is obviously a date or timestamp in the data model.&amp;nbsp; I've tried a few things but can't figure out what data type in php it's expecting.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;/div&gt;</description><author>RobWisniewski</author><pubDate>Tue, 15 Sep 2009 05:38:33 GMT</pubDate><guid isPermaLink="false">New Post: What type of data should I be creating/using for the date fields? 20090915053833A</guid></item><item><title>New Post: Getting an exception with no message when adding object</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68824</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You're absolutely right.. that works (as does using the -&amp;gt;AddToCustomers() method which I didn't see before)..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What's interesting is the that the user's guide is wrong.&amp;nbsp; copies from the user's guide:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515"&gt;'MyProxyClass.php'&lt;/span&gt;;

$proxy = &lt;span style="color:Blue"&gt;new&lt;/span&gt; NorthwindEntities();

&lt;span style="color:Green"&gt;/* Create a Customers php Object */&lt;/span&gt;

$customer = Customers::CreateCustomers(&lt;span style="color:#A31515"&gt;&amp;quot;CHAN9&amp;quot;&lt;/span&gt;, &lt;span style="color:#A31515"&gt;&amp;quot;channel9&amp;quot;&lt;/span&gt;);

&lt;span style="color:Green"&gt;/* inserting Customers object context tracking system */&lt;/span&gt;

$proxy-&amp;gt;AddObject($customer, &amp;lsquo;Customers&amp;rsquo;);

&lt;span style="color:Green"&gt;/*SaveChange insert the object into data service*/&lt;/span&gt;

$proxy-&amp;gt;SaveChanges(); 
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p style="unicode-bidi:normal;direction:ltr;margin-bottom:0pt"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="unicode-bidi:normal;direction:ltr;margin-bottom:0pt"&gt;&lt;span&gt;&lt;span&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><author>RobWisniewski</author><pubDate>Tue, 15 Sep 2009 05:36:16 GMT</pubDate><guid isPermaLink="false">New Post: Getting an exception with no message when adding object 20090915053616A</guid></item><item><title>New Post: Getting an exception with no message when adding object</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68824</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Rob,&lt;br&gt;&lt;br&gt;The way you are invoking the AddObject function is wrong, Instead of &lt;br&gt;&lt;br&gt;&amp;nbsp;$proxy-&amp;gt;AddObject(&lt;span style="color:#800000"&gt;$newCustomer&lt;/span&gt;, &lt;span style="color:#ff0000"&gt;'Customers'&lt;/span&gt;);&lt;br&gt;&lt;br&gt;you should invoke it as:&lt;br&gt;&lt;br&gt;$proxy-&amp;gt;AddObject(&lt;span style="color:#ff0000"&gt;'Customers'&lt;/span&gt;, &lt;span style="color:#800000"&gt;$newCustomer&lt;/span&gt;);&lt;br&gt;&lt;br&gt;&lt;br&gt;The first argument of AddObject is the EntityType and second is the entity instance.&lt;br&gt;&lt;br&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;
&lt;pre style="padding-left:60px"&gt;&lt;br&gt;&lt;br&gt;&lt;/pre&gt;&lt;/div&gt;</description><author>anu_chandy</author><pubDate>Tue, 15 Sep 2009 05:12:12 GMT</pubDate><guid isPermaLink="false">New Post: Getting an exception with no message when adding object 20090915051212A</guid></item><item><title>New Post: Getting an exceptioni with no message when adding object</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68824</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm trying to get up to speed with the libraries here and write a couple samples against a previous northwind data service which I used to learn some Silverlight development with.&amp;nbsp; Everything worked find creating the proxies from the command line and even with my first php cases doing some fairly complex queries.&amp;nbsp; I can't do a simple customer insert, however, despite using almost the exact same code as described in the user guide.&lt;/p&gt;
&lt;p&gt;Here's my php:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;&lt;span style="color:Blue"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515"&gt;'northwinddb.php'&lt;/span&gt;;
&lt;span style="color:Blue"&gt;require_once&lt;/span&gt; &lt;span style="color:#A31515"&gt;'svt_functions.php'&lt;/span&gt;;
define(&lt;span style="color:#A31515"&gt;&amp;quot;NORTHWIND_SERVICE_URL&amp;quot;&lt;/span&gt;, &lt;span style="color:#A31515"&gt;&amp;quot;http://localhost:999/Northwind.svc&amp;quot;&lt;/span&gt;);

$proxy = &lt;span style="color:Blue"&gt;new&lt;/span&gt; NorthwindEntities(NORTHWIND_SERVICE_URL);

$newcid = rand_str(5);
$newCustomer = Customers::CreateCustomers($newcid, &lt;span style="color:#A31515"&gt;&amp;quot;company_&amp;quot;&lt;/span&gt;.$newcid);
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;ContactName = &amp;quot;cont_&amp;quot;.$newcid;&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;Address = &amp;quot;add_&amp;quot;.$newcid;&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;City = &amp;quot;cty_&amp;quot;.$newcid;&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;Region = &amp;quot;reg_&amp;quot;.$newcid;&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;PostalCode = rand_str(5, &amp;quot;0123456789&amp;quot;);&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;Phone = rand_str(7, &amp;quot;0123456789&amp;quot;);&lt;/span&gt;
&lt;span style="color:Green"&gt;// $newCustomer-&amp;gt;Fax = rand_str(7, &amp;quot;0123456789&amp;quot;);&lt;/span&gt;

&lt;span style="color:Blue"&gt;echo&lt;/span&gt; &lt;span style="color:#A31515"&gt;&amp;quot;&amp;lt;p&amp;gt;Adding Customer: &amp;quot;&lt;/span&gt;.$newCustomer-&amp;gt;CustomerID.&lt;span style="color:#A31515"&gt;&amp;quot;&amp;lt;/p&amp;gt;\n&amp;quot;&lt;/span&gt;;

&lt;span style="color:Blue"&gt;try&lt;/span&gt;
{
  $proxy-&amp;gt;AddObject($newCustomer, &lt;span style="color:#A31515"&gt;'Customers'&lt;/span&gt;);
  $proxy-&amp;gt;SaveChanges();
} 
&lt;span style="color:Blue"&gt;catch&lt;/span&gt; (Exception $e) 
{
    &lt;span style="color:Blue"&gt;echo&lt;/span&gt; &lt;span style="color:#A31515"&gt;'Caught exception: '&lt;/span&gt;,  $e-&amp;gt;getMessage(), &lt;span style="color:#A31515"&gt;&amp;quot;\n&amp;quot;&lt;/span&gt;;
    var_dump($e-&amp;gt;getTrace());
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;And here's the output:&lt;/p&gt;
&lt;p&gt;
&lt;pre&gt;&lt;p&gt;Adding Customer: vwbv6&lt;/p&gt;
Caught exception: 
array(2) {
  [0]=&amp;gt;
  array(6) {
    [&amp;quot;file&amp;quot;]=&amp;gt;
    string(61) &amp;quot;C:\dev\phpdataservices1.0\framework\Context\ObjectContext.php&amp;quot;
    [&amp;quot;line&amp;quot;]=&amp;gt;
    int(123)
    [&amp;quot;function&amp;quot;]=&amp;gt;
    string(30) &amp;quot;ThrowExceptionIfNotValidObject&amp;quot;
    [&amp;quot;class&amp;quot;]=&amp;gt;
    string(13) &amp;quot;ObjectContext&amp;quot;
    [&amp;quot;type&amp;quot;]=&amp;gt;
    string(2) &amp;quot;-&amp;gt;&amp;quot;
    [&amp;quot;args&amp;quot;]=&amp;gt;
    array(2) {
      [0]=&amp;gt;
      string(9) &amp;quot;Customers&amp;quot;
      [1]=&amp;gt;
      string(9) &amp;quot;AddObject&amp;quot;
    }
  }
  [1]=&amp;gt;
  array(6) {
    [&amp;quot;file&amp;quot;]=&amp;gt;
    string(33) &amp;quot;C:\Apache2.2\htdocs\svt\index.php&amp;quot;
    [&amp;quot;line&amp;quot;]=&amp;gt;
    int(31)
    [&amp;quot;function&amp;quot;]=&amp;gt;
    string(9) &amp;quot;AddObject&amp;quot;
    [&amp;quot;class&amp;quot;]=&amp;gt;
    string(13) &amp;quot;ObjectContext&amp;quot;
    [&amp;quot;type&amp;quot;]=&amp;gt;
    string(2) &amp;quot;-&amp;gt;&amp;quot;
    [&amp;quot;args&amp;quot;]=&amp;gt;
    array(2) {
      [0]=&amp;gt;
      object(Customers)#4 (17) {
        [&amp;quot;_entityMap&amp;quot;:protected]=&amp;gt;
        array(1) {
          [&amp;quot;Orders&amp;quot;]=&amp;gt;
          string(6) &amp;quot;Orders&amp;quot;
        }
        [&amp;quot;_entityKey&amp;quot;:protected]=&amp;gt;
        array(1) {
          [0]=&amp;gt;
          string(10) &amp;quot;CustomerID&amp;quot;
        }
        [&amp;quot;_relLinks&amp;quot;:protected]=&amp;gt;
        array(0) {
        }
        [&amp;quot;_baseURI&amp;quot;:protected]=&amp;gt;
        string(0) &amp;quot;&amp;quot;
        [&amp;quot;CustomerID&amp;quot;]=&amp;gt;
        string(5) &amp;quot;vwbv6&amp;quot;
        [&amp;quot;CompanyName&amp;quot;]=&amp;gt;
        string(13) &amp;quot;company_vwbv6&amp;quot;
        [&amp;quot;ContactName&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;ContactTitle&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Address&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;City&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Region&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;PostalCode&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Country&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Phone&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Fax&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;Orders&amp;quot;]=&amp;gt;
        NULL
        [&amp;quot;_objectID&amp;quot;:protected]=&amp;gt;
        string(36) &amp;quot;0cd11295-23cb-c76a-3862-84c1e8162dc5&amp;quot;
      }
      [1]=&amp;gt;
      string(9) &amp;quot;Customers&amp;quot;
    }
  }
}
&lt;/pre&gt;
&lt;/p&gt;
&lt;p&gt;Any ideas?&amp;nbsp; I looked at the ObjectContext.php file at line 123, and I just can't find a way that an exception would be thrown without a message.&amp;nbsp; Thanks for the help&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;/div&gt;</description><author>RobWisniewski</author><pubDate>Mon, 14 Sep 2009 08:23:41 GMT</pubDate><guid isPermaLink="false">New Post: Getting an exceptioni with no message when adding object 20090914082341A</guid></item><item><title>New Post: /Data folder in samples contains Northwind.BAK , why not the MDF file ?</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68229</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Phani,&lt;/p&gt;
&lt;p&gt;There is no specific need for .BAK file. We will include MDF file in our next release. If user already have Northwind sample database, he can just modify settings in web.config file, as you did.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;Satish&lt;/p&gt;&lt;/div&gt;</description><author>satish_nikam</author><pubDate>Wed, 09 Sep 2009 15:27:11 GMT</pubDate><guid isPermaLink="false">New Post: /Data folder in samples contains Northwind.BAK , why not the MDF file ? 20090909032711P</guid></item><item><title>New Post: Generated create object method takes in readonly properties</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=67134</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;|&amp;nbsp; Astoria doesn't yet have a concept of read-only properties.&lt;/p&gt;
&lt;p&gt;Strange, because this is working perfectly fine for me on dotnet and php clients. On the dotnet client the property only has a getter causing a compilation error if you try to set it. That said the main discussion in the thread was the ability to add your own propeties if you are exposing the Entity Data Model through the Data Service and indeed the custom properties do not come through.&lt;/p&gt;&lt;/div&gt;</description><author>mcm_ham</author><pubDate>Tue, 08 Sep 2009 23:38:12 GMT</pubDate><guid isPermaLink="false">New Post: Generated create object method takes in readonly properties 20090908113812P</guid></item><item><title>New Post: /Data folder in samples contains Northwind.BAK , why not the MDF file ?</title><link>http://phpdataservices.codeplex.com/Thread/View.aspx?ThreadId=68229</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I downloaded the sample and was trying to install it when I saw that the sample databases for the ADODotNetDataServices project have a .BAK file for northwind.&lt;br&gt;&amp;nbsp;Will this work against&amp;nbsp;the sample northwind schema ?I tried this against a local install&amp;nbsp; of northwind and get an error message about the .BAK file being &lt;br&gt;incompatible for my database schemas. Admittedly , pointing the dataservice to my local install of northwind by changing the connection string in web.config worked.&lt;br&gt;I am just curious as to why we needed to include the .BAK file and not the MDF file.&lt;/p&gt;
&lt;p&gt;Phani Raj&lt;br&gt;&lt;a href="http://blogs.msdn.com/PhaniRaj"&gt;http://blogs.msdn.com/PhaniRaj&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>Phanatic</author><pubDate>Tue, 08 Sep 2009 06:51:24 GMT</pubDate><guid isPermaLink="false">New Post: /Data folder in samples contains Northwind.BAK , why not the MDF file ? 20090908065124A</guid></item></channel></rss>