ssongi / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

When creating a new product in the Content API, shipping is not being saved #511

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Created a new ProductEntry object
2. Created a new Shipping object and added it to the ProductEntry.ShippingRules 
collection
3. Saved the entry object

What is the expected output? What do you see instead?
When the product was retrieved back, the shipping collection was empty. So was 
the TaxRules collection

Please refer to the example I used to test the functionality: 
http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/samples/con
tentforshopping_sample/contentforshoppingsample.cs?r=1067

This code in its current condition using the latest google-gdata library 
produces this problem

Original issue reported on code.google.com by shak...@gmail.com on 1 Jun 2011 at 3:28

GoogleCodeExporter commented 8 years ago
I saved my entry object as xml (entry.SaveToXml) to view what was the result 
and I have pasted it at the bottom. It doesnt seem that much different from 
POST demo at http://code.google.com/apis/shopping/content/demo/demo.html other 
than the fact that the namespaces are missing (i am assuming that that is taken 
care off by the library). Any ideas why the shipping and tax information is not 
being saved?

<entry xml:lang="it">
  <sc:id>123457</sc:id>
  <sc:target_country>US</sc:target_country>
  <sc:content_language>en</sc:content_language>
  <scp:brand>ACME</scp:brand>
  <scp:condition>new</scp:condition>
  <scp:price unit="usd">25</scp:price>
  <scp:product_type>Clothing & Accessories > Clothing > Outerwear > Sweaters</scp:product_type>
  <scp:quantity>3</scp:quantity>
  <scp:shipping_weight unit="lb">0.1</scp:shipping_weight>
  <scp:color>red</scp:color>
  <scp:color>blue</scp:color>
  <scp:shipping>
    <scp:shipping_country>US</scp:shipping_country>
    <scp:shipping_region>MA</scp:shipping_region>
    <scp:shipping_service>Speedy Shipping - Ground</scp:shipping_service>
    <scp:shipping_price unit="USD">5.95</scp:shipping_price>
  </scp:shipping>
  <scp:tax>
    <scp:tax_country>US</scp:tax_country>
    <scp:tax_region>CA</scp:tax_region>
    <scp:tax_rate>8.25</scp:tax_rate>
    <scp:tax_ship>True</scp:tax_ship>
  </scp:tax>
  <sc:image_link>http://www.example.com/1.jpg</sc:image_link>
  <title type="text">Wool sweater</title>
  <link href="http://express.staging.iclearpath.com" rel="alternate" type="text/html"/>
  <content type="text">Comfortable and soft, this sweater will keep you warm on those cold winter nights. Red and blue stripes.</content>
</entry>

Original comment by shak...@gmail.com on 1 Jun 2011 at 2:46

GoogleCodeExporter commented 8 years ago
If you can reproduce the issue by sending raw requests without the client 
library, it is likely that the problem is not in the library but instead 
server-side.
Please try asking in the Content API for Shopping forum:

https://groups.google.com/forum/#!forum/google-content-api-for-shopping

Thanks
Claudio

Original comment by ccherub...@google.com on 1 Jun 2011 at 6:48