10 messages in com.googlegroups.google-calendar-help-dataapiRe: How to log Response and Request f...| From | Sent On | Attachments |
|---|---|---|
| Kulvinder Singh | 21 Sep 2007 02:56 | |
| Frank Mantek | 21 Sep 2007 03:36 | |
| Kulvinder Singh | 21 Sep 2007 04:31 | |
| Kulvinder Singh | 21 Sep 2007 04:54 | |
| Frank Mantek | 21 Sep 2007 05:23 | |
| Kulvinder Singh | 21 Sep 2007 05:34 | |
| Frank Mantek | 21 Sep 2007 05:57 | |
| Kulvinder Singh | 21 Sep 2007 23:32 | |
| Kulvinder Singh | 24 Sep 2007 21:32 | |
| Frank Mantek | 25 Sep 2007 02:08 |
| Subject: | Re: How to log Response and Request for Google Calendar API ?![]() |
|---|---|
| From: | Kulvinder Singh (kulv...@yahoo.com) |
| Date: | 09/21/2007 04:31:15 AM |
| List: | com.googlegroups.google-calendar-help-dataapi |
Hi Frank,
Thanks for your kind reply. I tried out the changes in CalenderService.cs in the
following manner :
/// <summary>
/// default constructor
/// </summary>
/// <param name="applicationName">the applicationname</param>
public CalendarService(string applicationName) : base(GCalendarService,
applicationName, GCalendarAgent)
{
this.NewFeed += new ServiceEventHandler(this.OnNewFeed);
// You can set factory.methodOverride = true if you are behind a
// proxy that filters out HTTP methods such as PUT and DELETE.
GDataLoggingRequestFactory factory = new
GDataLoggingRequestFactory(GCalendarService, applicationName);
factory.MethodOverride = true;
// No of Retries is 0 by default. So, set it to 3 so that it will try it again
for the Response
factory.NumberOfRetries = 3;
this.RequestFactory = factory;
}
the code runs fine but still i dont see the files i require which contains all
the information regarding what was actually sent and what was received. These
files are supposed to be
this.strInput = "GDatarequest.xml"; this.strOutput = "GDataresponse.xml"; this.strCombined = "GDatatraffic.log";
but there is no files as such.
Can you help again ?
Thanks Kulvinder Singh
----- Original Message ---- From: Frank Mantek <fman...@gmail.com> To: goog...@googlegroups.com Sent: Friday, September 21, 2007 4:06:31 PM Subject: Re: How to log Response and Request for Google Calendar API ?
Yes. Go to the client/cs/src/unittests and check out unittests.cs
If you just set the factory used to be of kind GDataLoggingRequestFactory, all
data will automatically be logged in the current directory as xml and log files
(see the implementation of GDataLoggingRequest.cs for details).
Let me know if you need any more help.
Frank Mantek Google
On Sep 21, 2007, at 11:57 AM, Kulvinder Singh wrote:
Hi,
To debug the problem which a user faces on his machine, i want to know whether
there is a way by which i can figure out what data was sent to the Google server
and what was actually recieved ?
I see that there is a GDataLoggingRequest.cs class as well but i dont know how
do i enable the tracing in my application so that all the data being sent and
being recieved can be sent by a user and i can debug the issue.
Any ideas ?
Thanks
Kulvinder Singh
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and
lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7




