vhson / google-gdata

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

Custom Fields not returned in #555

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using Google Data APIs Sample code for .NET; stepping through ExecRequest 
with these parameters:
cp QUERY 
https://www.google.com/m8/feeds/contacts/username@gmail.com/full?max-results=250

2. Retrieve results and write them to XML file

What is the expected output? What do you see instead?
Not seeing the custom fields added to the contact record.

What version of the product are you using? On what operating system?
Chrome / Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by dave.r...@gmail.com on 8 Nov 2011 at 10:36

GoogleCodeExporter commented 9 years ago
Can you please capture the HTTP traffic with Fiddler so that we can see both 
the XML request and response?
Thanks

Claudio

Original comment by ccherub...@google.com on 9 Nov 2011 at 12:30

GoogleCodeExporter commented 9 years ago
What are you looking for specifically in the HTTP traffic?  I would need to 
strip out the authentication info of course.

Thanks

Dave

/accounts/ClientLogin

POST https://www.google.com/accounts/ClientLogin HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: www.google.com
Content-Length: 123
Expect: 100-continue
Connection: Keep-Alive

Email=username%40gmail.com&Passwd=unbreakable&source=ExecRequest%2F1.0.0&service
=cp&accountType=HOSTED_OR_GOOGLE

GET 
https://www.google.com/m8/feeds/contacts/username@gmail.com/full?max-results=250
0 HTTP/1.1
Content-Type: application/atom+xml; charset=UTF-8
User-Agent: G-ExecRequest/1.0.0/GDataGAuthRequestFactory-CS-Version=1.9.0.0
Authorization: GoogleLogin auth=[removed]
GData-Version: 1.0
Host: www.google.com

Response XML:

<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" 
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" 
xmlns:gContact="http://schemas.google.com/contact/2008" 
xmlns:batch="http://schemas.google.com/gdata/batch" 
xmlns:gd="http://schemas.google.com/g/2005">
...

Original comment by dave.r...@gmail.com on 9 Nov 2011 at 1:14

GoogleCodeExporter commented 9 years ago
Actually, I wanted to check whether the response xml contained the custom 
fields you are trying to retrieve.
BTW, are you sure those custom fields were added in the first place?

Original comment by ccherub...@google.com on 9 Nov 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Looks like you (and I) responded on 
http://code.google.com/p/google-gdata/issues/detail?id=518

Original comment by ccherub...@google.com on 9 Nov 2011 at 1:39