6 messages in com.googlegroups.google-base-data-apiRe: API XML-Level Logging| From | Sent On | Attachments |
|---|---|---|
| RemotePortal | 21 Jan 2008 14:42 | |
| Jeff S | 22 Jan 2008 17:53 | |
| RemotePortal | 23 Jan 2008 11:19 | |
| Jeff S | 23 Jan 2008 11:31 | |
| RemotePortal | 23 Jan 2008 14:58 | |
| Jeff S | 24 Jan 2008 09:28 |
| Subject: | Re: API XML-Level Logging![]() |
|---|---|
| From: | Jeff S (j....@google.com) |
| Date: | 01/24/2008 09:28:46 AM |
| List: | com.googlegroups.google-base-data-api |
Client login parameters are explained in the first two links below, and a list of the service names is available in the third link.
http://code.google.com/apis/gdata/auth.html http://code.google.com/apis/accounts/AuthForInstalledApps.html
http://code.google.com/support/bin/answer.py?answer=62712
Hopefully this isn't too confusing, using the auth system for the Google Data APIs does involve a slight learning curve :)
Jeff
On Jan 23, 2:59 pm, RemotePortal <Pete...@gmail.com> wrote:
Thanks! that did the trick!
Hey, where is that documented? I'd like to learn...
Google.GData.Client.GDataLoggingRequestFactory factory = new GDataLoggingRequestFactory("gbase", "SpreadsheetsLoggingTest");
On Jan 23, 2:31 pm, Jeff S <j....@google.com> wrote:
Hi Pete,
The following line looked suspicious:
Google.GData.Client.GDataLoggingRequestFactory factory = new GDataLoggingRequestFactory("wise", "SpreadsheetsLoggingTest");
If you are working with Google Base, the service string needs to be "gbase" instead of the Google Spreadsheets API service identifier. The ClientLogin token you receive is only usable with the requested service.
Happy coding,
Jeff
On Jan 23, 11:19 am, RemotePortal <Pete...@gmail.com> wrote:
Jeff, thanks for the great reply. However, it fails with this error in the log file:
<HTML> <HEAD> <TITLE>Token invalid</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1>Token invalid</H1> <H2>Error 401</H2> </BODY> </HTML>
I'm using C#. I added this code:
// Wire Logging Google.GData.Client.GDataLoggingRequestFactory factory = new GDataLoggingRequestFactory("wise", "SpreadsheetsLoggingTest"); factory.MethodOverride = true; factory.CombinedLogFileName = "c:\\Logs\\Wire.txt"; Console.WriteLine("Log file name:" + factory.CombinedLogFileName); service.RequestFactory = factory;
right after setting the user credentials, almost verbatim.
Any ideas?
Pete
On Jan 22, 8:54 pm, Jeff S <j....@google.com> wrote:
Depending on which language/client library you are using, there are usually ways to turn on logging. There is a brief article on logging with the client libraries here:
I often find it is easier to use a packet capture tool like ethereal/ wireshark to see the HTTP requests and view all of the traffic. We have an article on using these tools as well:
Was there a particular language you were working with?
Thank you,
Jeff
On Jan 21, 2:42 pm, RemotePortal <Pete...@gmail.com> wrote:
I've searched but I can't find where you can turn on input/output logging to a flat file that shows the XML actually being sent/received over the wire.
Anyone know how/if this can be done?




