Hi there. I think the issue is that if I send TWO inserts that contain XML escaped characters to Google contacts using the batching API (and version 3.0, which is what I'm using), the API comes back with the inconsistent repeating query parameter response. Here's a very simple example. In this case, the API is complaining about the "<" sign being escaped as ">" even thought that XML escaping is necessary..
url: https://www.google.com/m8/feeds/contacts/default/full/batch <?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:gContact='http:// schemas.google.com/contact/2008' xmlns:batch='http:// schemas.google.com/gdata/batch' xmlns:gd='http:// schemas.google.com/g/2005'> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http:// schemas.google.com/g/2005" xmlns:gContact="http://schemas.google.com/ contact/2008"> <category scheme="http://schemas.google.com/g/ 2005#kind" term="http://schemas.google.com/g/2008#contact"/><operation type="insert"/><gd:name><gd:fullName>foobah' " <></ gd:fullName><gd:givenName>foobah'</gd:givenName><gd:additionalName>"</ gd:additionalName><gd:familyName><></gd:familyName></ gd:name><gd:organization primary="true" rel="http://schemas.google.com/ g/2005#work"/><gContact:groupMembershipInfo deleted='false' href='http://www.google.com/m8/feeds/groups/plaxounittest4%40gmail.com/ base/6' /></entry><entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" xmlns:gContact="http:// schemas.google.com/contact/2008"> <category scheme="http:// schemas.google.com/g/2005#kind" term="http://schemas.google.com/g/ 2008#contact"/><operation type="insert"/><gd:name><gd:fullName>foobah' " <></gd:fullName><gd:givenName>foobah'</ gd:givenName><gd:additionalName>"</ gd:additionalName><gd:familyName><></gd:familyName></ gd:name><gd:organization primary="true" rel="http://schemas.google.com/ g/2005#work"/><gContact:groupMembershipInfo deleted='false' href='http://www.google.com/m8/feeds/groups/plaxounittest4%40gmail.com/ base/6' /></entry></feed> Headers: GData-Version: 3.0 Authorization: GoogleLogin auth=DQAAAKUAAAC7yzwgjfQGg9Io8JoOgQJzFG80e6lEA_2sQhujgt0k-6SEkrp7t1vLP_utC6VG1qiqsAH9uD- ZaS4Lyk_BPA-wPduaQQtqX7J74u_tLrYtxjC- sgmyGvrruuyiRwY0UO1VyrcgL6vCIUitom6taigw1JK8Vfhnx0fSz6QORCTNEr1qKWTDzDSP_AVI4MbDy8TcaLgL__LbrdapHXkMYCqha0YFHLKcMI9B6Wt07psV3g Connection: Keep-Alive Keep-Alive: 120000 On Oct 14, 5:01 am, Alain Vongsouvanh <[email protected]> wrote: > Hello, > > I've just tried posting your XML and it worked perfectly. What URL are you > sending your request to? > It should be something like: > https://www.google.com/m8/feeds/contacts/default/full/batch > > Also, please make sure to use version 3.0 of the API: > > http://code.google.com/apis/contacts/docs/3.0/developers_guide.html#V... > > Best, > Alain > > > > > > > > > > On Thu, Oct 13, 2011 at 9:04 PM, Posey <[email protected]> wrote: > > Those elements are present. My XML viewing interface didn't display > > them. here is the actual XML that is sent up: > > > <?xml version='1.0' encoding='UTF-8'?> > > <feed xmlns='http://www.w3.org/2005/Atom' xmlns:gContact='http:// > > schemas.google.com/contact/2008' xmlns:batch='http:// > > schemas.google.com/gdata/batch' xmlns:gd='http:// > > schemas.google.com/g/2005'> > > <entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd="http:// > > schemas.google.com/g/2005" xmlns:gContact="http://schemas.google.com/ > > contact/2008"> <category scheme="http://schemas.google.com/g/ > > 2005#kind" term="http://schemas.google.com/g/2008#contact"/><operation > > type="insert"/><gd:structuredPostalAddress rel="http:// > > schemas.google.com/g/2005#work"><gd:formattedAddress>Shanghai, > > Greater > > China</gd:formattedAddress><gd:city>Shanghai</ > > gd:city><gd:region>Greater</gd:region><gd:country>China</gd:country></ > > gd:structuredPostalAddress><gContact:groupMembershipInfo > > deleted='false' href='http://www.google.com/m8/feeds/groups/ > > plxsynctest3%40gmail.com/base/6' /></entry><entry xmlns="http:// > >www.w3.org/2005/Atom" xmlns:gd="http://schemas.google.com/g/2005" > > xmlns:gContact="http://schemas.google.com/contact/2008"> <category > > scheme="http://schemas.google.com/g/2005#kind" term="http:// > > schemas.google.com/g/2008#contact"/><operation type="insert"/ > > ><gd:structuredPostalAddress rel="http://schemas.google.com/g/ > > 2005#work"><gd:formattedAddress>Shanghai, Greater > > China</gd:formattedAddress><gd:city>Shanghai</ > > gd:city><gd:region>Greater</gd:region><gd:country>China</gd:country></ > > gd:structuredPostalAddress><gContact:groupMembershipInfo > > deleted='false' href='http://www.google.com/m8/feeds/groups/ > > plxsynctest3%40gmail.com/base/6' /></entry></feed> > > > On Oct 13, 3:44 am, Alain Vongsouvanh <[email protected]> wrote: > > > Hello, > > > > Your request feed seems invalid, please have a look at the developers > > guide: > > > >http://code.google.com/apis/contacts/docs/3.0/developers_guide.html#B... > > > > You are missing some xmlns such as atom, gd, batch and gContact > > > > Best, > > > Alain > > > > On Tue, Oct 11, 2011 at 11:31 PM, Posey <[email protected]> wrote: > > > > I am hitting this URL: > > > >https://www.google.com/m8/feeds/contacts/default/full/batch > > > > > On Oct 11, 2:29 pm, Posey <[email protected]> wrote: > > > > > I am adding two contacts with the same address to Google contacts: > > > > > > <feed><entry><category scheme="http://schemas.google.com/g/2005#kind > > " > > > > > term="http://schemas.google.com/g/2008#contact"/><operation > > > > > type="insert"/><gd:structuredPostalAddress rel="http:// > > > > > schemas.google.com/g/2005#work"><gd:formattedAddress>Shanghai, > > Greater > > > > > > China</gd:formattedAddress><gd:city>Shanghai</ > > > gd:city><gd:region>Greater</gd:region><gd:country>China</gd:country></ > > > > > gd:structuredPostalAddress><gContact:groupMembershipInfo > > > > > deleted="false" href="http://www.google.com/m8/feeds/groups/ > > > > > plxsynctest3%40gmail.com/base/6"/></entry><entry><category > > > > > scheme="http://schemas.google.com/g/2005#kind" term="http:// > > > > > schemas.google.com/g/2008#contact"/><operation > > > > type="insert"/><gd:structuredPostalAddress rel=" > > > >http://schemas.google.com/g/ > > > > > > 2005#work"><gd:formattedAddress>Shanghai, Greater > > > > > > China</gd:formattedAddress><gd:city>Shanghai</ > > > gd:city><gd:region>Greater</gd:region><gd:country>China</gd:country></ > > > > > gd:structuredPostalAddress><gContact:groupMembershipInfo > > > > > deleted="false" href="http://www.google.com/m8/feeds/groups/ > > > > > plxsynctest3%40gmail.com/base/6"/></entry></feed> > > > > > > I see this error: > > > > > > Inconsistent repeating query parameter #13; > > > > > China</gd:formattedAddress><gd:city>Shanghai</ > > > > > gd:city><gd:region>Greater</ > > > > > gd:region><gd:country>China</gd:country></ > > > > > gd:structuredPostalAddress><gContact:groupMembershipInfo > > deleted > > > > > > What gives? Thanks! > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > > > > To post to this group, send email to > > > > [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected] > > > > For more options, visit this group at > > > >http://code.google.com/apis/contacts/community/forum.html > > > > -- > > > Alain Vongsouvanh | Developer Programs Engineer > > > -- > > You received this message because you are subscribed to the Google > > Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. > > To post to this group, send email to > > [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://code.google.com/apis/contacts/community/forum.html > > -- > Alain Vongsouvanh | Developer Programs Engineer -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
