My google base header wrong?

General ShopSite user discussion

My google base header wrong?

Postby hiamps » Wed Jul 21, 2010 9:45 am

I was wondering why when I try and send a feed the header is wrong? My shopsite does...

<?xml version='1.0'?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:g="http://base.google.com/ns/1.0"
xmlns:batch="http://schemas.google.com/gdata/batch">\


And Google wants it...
<?xml version="1.0" ?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:g="http://base.google.com/ns/1.0"
xmlns:batch="http://schemas.google.com/gdata/batch">

The formatting is wrong in Shopsite so I always have to edit it to send manually and have never had it send automatically and work. Seems I lose the formatting but in the top one there are 3 spaces between feed and xlns and both the bottom xlns:batch have a couple spaces in front.
There are also about 3 whole lines to the top from where this starts that I also have to backspace...
EDIT: How do I keep original format when post here? When I edit it shows how I posted it but when I submit they both look the same...
hiamps
 
Posts: 160
Joined: Thu Sep 14, 2006 7:42 pm
Location: Lakewood Wa

Postby loren_d_c » Wed Jul 21, 2010 10:01 am

Use the 'Code' button above the edit window to enclose anything that is or looks like HTML, XML, JavaScript, etc code.

My feed header from ShopSite looks like this:

Code: Select all
<?xml version='1.0'?>
<feed     xmlns="http://www.w3.org/2005/Atom"
    xmlns:g="http://base.google.com/ns/1.0"
    xmlns:batch="http://schemas.google.com/gdata/batch">
<title type="text">http://www.mydomain.com Batch Feed</title>
<category scheme="http://base.google.com/categories/itemtypes" term="products"/>


And Google accepts it just fine.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby loren_d_c » Wed Jul 21, 2010 10:03 am

Also, regarding the empty lines at the beginning that you have to delete, that is only on the screen in the backoffice where you view the feed sent to Google Base, those empty lines are NOT in the feed data actually sent.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby loren_d_c » Wed Jul 21, 2010 10:07 am

What submission method are you using? API, or FTP? If API, how many products are you submitting? This method only works with up to 300 or 400 or so products.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby hiamps » Wed Jul 21, 2010 1:52 pm

Been trying FTP but have always had to manually send it and if I just copy and paste without taking out the spaces it never works. Just got it to accept this morning but haven't had anything go thru in months. Oh well at least I can manually get it. Probably a shared hosting thing....
hiamps
 
Posts: 160
Joined: Thu Sep 14, 2006 7:42 pm
Location: Lakewood Wa

Postby loren_d_c » Fri Jul 23, 2010 1:09 pm

Ask your host to verify that they allow outgoing FTP connections from their server. If there is a firewall rule blocking outgoing connections, there is a possibility that versions of ShopSite prior to 10 sp1 would report that the submission was successful when in fact the connection to the Google Base FTP server couldn't even be made.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 21 guests

cron