As I could not figure out whats on wire with my XML, I tried testing my XML using cygwin's command prompt the following way:
***************************************************************************************************** $telnet google.com 80 $POST /calendar/feeds/default/private/full HTTP/1.1 Content-Type: application/atom+xml; charset=UTF-8 Content-Length: 739 Authorization: AuthSub token="COfE286iARD3w5tA" Host: http://www.google.com Connection: keep-alive <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/ 2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'><category scheme="http://schemas.google.com/g/2005#kind" term="http:// schemas.google.com/g/2005#event"></category><title type="text">Tennis with Beth</title><content type="text">Meet for a quick lesson.</ content><author><name>Venkata Nanduri</ name><email>[EMAIL PROTECTED]</email></author><gd:transparency value="http://schemas.google.com/g/2005#event.opaque"></ gd:transparency><gd:eventStatus value="http://schemas.google.com/g/ 2005#event.confirmed"></gd:eventStatus><gd:where valueString="Rolling Lawn Courts"></gd:where><gd:when startTime="2007-04-17T15:00:00.000Z" endTime="2007-04-17T17:00:00.000Z"/></entry> *********************************************************************************************************** I am getting a response as: ********************************************************************************* HTTP/1.1 501 Not Implemented Content-Type: text/html Server: GWS/2.1 Content-Length: 1343 Date: Sat, 10 Mar 2007 01:29:12 GMT Cneonction: Close <html><head> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <title>501 Not Implemented</title> <style><!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #0000cc} div.nav A {font-size: 10pt; color: black} A.l:link {color: #6f6f6f} A.u:link {color: green} //--></style> <script><!-- var rc=501; //--> </script> </head> <body text=#000000 bgcolor=#ffffff> <table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap> <b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font> </b> <td> </td></tr> <tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr> <tr><td> </td></tr></table> <blockquote> <H1>Not Implemented</H1> The server is unable to process your request. <p> </blockquote> <table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table> </body></html> **************************************************************************************** Can somebody help me out pls.... I am stuck at the same point for two weeks.... On Mar 4, 3:35 am, "Frank Mantek" <[EMAIL PROTECTED]> wrote: > And as I have pointed out, what you are sending most likely is not what you > are sending :) > > I believe you that this is a hard coded string, but somewhere, this string > is transformed and put on the wire via HTTP. So what you are sending > includes headers etc, all the good stuff to make this a complete HTTP > request. > > Also, are you sending the string with XMLHttp? or directly writing it to the > wire? Because if you have any kind of intermediary, what happens is that > this code will most likely encode your XML string. > > This is most likely a character encoding issue. (or a random byte). For > example, if you state, in the HTTP headers, that this stream you are > sending is US ASCII but the stream contains a unicode byteorder mark, you > would get this error. > > Hence, I need to see the HTTP transfer using whatever tool at your disposal. > There must be a way for you to run this outside of a production server > environment, on a machine that allows you to have an HTTP sniffer installed > to capture the actual traffic. If there is not, in all seriousness, you need > to rethink the way you do web server development, as there is a good > likelihood, no matter who you are talking to, that you need to investigate > lot's of times what is actually getting send to find errors in yours or > your partners protocol implementation - and you have right now no way of > doing that. From my own experience, without this ability, you will get stuck > much too often. > > All i can tell you right now, is that there is a 99.9999% chance that there > is something fishy going on on your side of the data stream. I am not > excluding that there is an error on our side, but I have no way to > investigate this - without seeing the HTTP headers and the rest of the data > that you are sending i could not even identify what to look for in our > logs... > > Frank Mantek > Google > > On 3/3/07, KoolGuy <[EMAIL PROTECTED]> wrote: > > > > > As I have already mentioned.. I am just sending a hardcoded xml - > > which I picked up from Google Calendar API site and formed a string > > with it.. printed it before sending ... and then sending .... and > > here's the xml: > > > ********************************************************************** > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns=' > >http://www.w3.org/2005/Atom' > > xmlns:gd='http://schemas.google.com/g/2005'><category > > scheme='http://schemas.google.com/g/2005#kind'term=' > >http://schemas.google.com/g/2005#event'></category><title > > type='text'>Tennis > > with Beth</title><content type='text'>Meet for a quick > > lesson.</content><author><name>Venkata Nanduri</name><email> > > [EMAIL PROTECTED]</email></author><gd:transparency value=' > >http://schemas.google.com/g/2005#event.opaque' > > ></gd:transparency><gd:eventStatus > > value='http://schemas.google.com/g/2005#event.confirmed'></ > > gd:eventStatus><gd:where > > valueString='Rolling Lawn Courts'></gd:where><gd:when > > startTime='2007-04-17T15:00:00.000Z' > > endTime='2007-04-17T17:00:00.000Z > > '></gd:when></entry> > > > ********************************************************************************* > > So, I don't see a way of figuring out whats the special character I am > > sending as I am getting the same error even when I send a simple xml > > as: > > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/ > > 2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'></entry> > > > So, the only way I can figure out whats being sent to google is from > > ur logs... is there any way I can point to ur UAT or Development > > server so as to test it in tandem?... as this prototype is very > > important for our company to move forward in tieing-up with GOOGLE. > > > Regards > > Venkata Nanduri > > > On Mar 1, 1:33 pm, "Frank Mantek" <[EMAIL PROTECTED]> wrote: > > > Just to clarify, i am more than happy to help you once i see what you > > are > > > sending, but without that information, i am just fishing in the dark.... > > > > Frank > > > > On 3/1/07, Frank Mantek (Google) <[EMAIL PROTECTED]> wrote: > > > > > You need to figure out a way to get the HTTP that get's send. There > > > > is, in all cases on our side, and in all cases i researched on the > > > > java side (server), a high statistically propabillity (99, 9999% ) > > > > that what you are sending is wrong, most likely wrongfully encoded, or > > > > just some random character in front of the XML. > > > > > Frank Mantek > > > > Google > > > > > On Feb 27, 10:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > > > wrote: > > > > > The message body is created by Javascript (broadvision customized > > > > > server side javascript). Yes, it is creating xml. If you can send me > > > > > the logs if at all you have any access to, it wud b gr8!! > > > > > > Thanks > > > > > Venkata nanduri > > > > > > On Feb 24, 10:57 am, "Frank Mantek" <[EMAIL PROTECTED]> wrote: > > > > > > > ok... what's the server infrastrucure? I am not familiar with > > > > "Broadvision" > > > > > > (what you mentioned above). What language is creating the request > > body > > > > > > (creates the xml?) ? > > > > > > > Frank Mantek > > > > > > Google > > > > > > > On 2/23/07, KoolGuy <[EMAIL PROTECTED]> wrote: > > > > > > > > I am sending this request from the server. So, I have no clue of > > how > > > > > > > to obtain the trace for a request made from server. > > > > > > > > On Feb 23, 4:52 pm, "Frank Mantek" <[EMAIL PROTECTED]> wrote: > > > > > > > > The problem is that this is probably not what's on the wire. I > > > > would > > > > > > > guess > > > > > > > > that if you used an http sniffer, you would see that there are > > > > some > > > > > > > bytes in > > > > > > > > front of the <?xml... that are causing the problem (I am just > > > > guessing > > > > > > > here, > > > > > > > > of course, but i did run into similar issues in the past). Can > > you > > > > get > > > > > > > an > > > > > > > > http trace? > > > > > > > > > Frank Mantek > > > > > > > > Google > > > > > > > > > On 2/23/07, Venkata Nanduri <[EMAIL PROTECTED]> wrote: > > > > > > > > > > For testing sake I just hard-coded the XML. And sending the > > > > entry XML > > > > > > > in > > > > > > > > > the body to the URL using Broadvision's post Method. Here's > > the > > > > exact > > > > > > > XML > > > > > > > > > that I printed in my logs: > > > ***************************************************************************��************* > > > > > > > > > > <?xml version='1.0' encoding='UTF-8'?><entry xmlns=' > > > > >http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005' > > > > > > > <http://schemas.google.com/g/2005%27>><category > > > > > > > > > scheme=' > > > > >http://schemas.google.com/g/2005#kind'term='http://schemas.google.com. > > .. > > > > > > > <http://schemas.google.com/g/2005#event%27>></category><title > > > > > > > > > type='text'>Tennis with Beth</title><content > > type='text'>Meet > > > > for a > > > > > > > quick > > > > > > > > > lesson.</content><author><name>Venkata Nanduri</name><email> > > > > > > > > > [EMAIL PROTECTED]</email></author><gd:transparency > > > > value=' > > > > > > >http://schemas.google.com/g/2005#event.opaque' > > > > > > > > > <http://schemas.google.com/g/2005#event.opaque%27 > > > > > > > >></gd:transparency><gd:eventStatus > > > > > > > > > value='http://schemas.google.com/g/2005#event.confirmed'< > > > > > > >http://schemas.google.com/g/2005#event.confirmed%27 > > > > > > > >></gd:eventStatus><gd:where > > > > > > > > > valueString='Rolling Lawn Courts'></gd:where><gd:when > > > > > > > > > startTime='2007-04-17T15:00: 00.000Z' > > endTime='2007-04-17T17:00: > > > > > > > 00.000Z > > > > > > > > > '></gd:when></entry> > > > ***************************************************************************��********************** > > > > > > > > > > Thanks for your help.... > > > > > > > > > > On 2/23/07, Frank Mantek <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Can you send what is actually on the wire? "Content is not > > > > allowed > > > > > > > in > > > > > > > > > > prolog" normally indicates an encoding issue (some > > > > random/incorrect > > > > > > > UTF > > > > > > > > > > indicator, e.g.) - it really is that in the prolog of your > > > > message > > > > > > > there > > > > > > > > > > is is stuff that does not belong... > > > > > > > > > > > Frank Mantek > > > > > > > > > > Google > > > > > > > > > > > On 2/23/07, Venkata Nanduri < [EMAIL PROTECTED]> > > > > wrote: > > > > > > > > > > > > Thanks... this seems to be working thought it gave me a > > > > redirect > > > > > > > > > > > URL... I am still working on getting it working .. as > > now I > > > > am > > > > > > > with the > > > > > > > > > > >error: > > > > > > > > > > > "org.xml.sax.SAXParseException: Content is not allowed > > in > > > > prolog." > > > > > > > > > > > > MY EVENT XML: > > > ***************************************************************************��******************* > > > > > > > > > > > <entry xmlns=' > > > > >http://www.w3.org/2005/Atom'xmlns:gd='http://schemas.google.com/g/2005' > > < > > > > >http://www.w3.org/2005/Atom%27xmlns:gd=%27http://schemas.google.com/g. > > .. > > > > > > > >><category > > > > > > > > > > > scheme=' > > >http://schemas.google.com/g/2005#kind'term='http://schemas.google.com...< > > > > >http://schemas.google.com/g/2005#kind%27term=%27http://schemas.google. > > .. > > > > > > > >></category><title > > > > > > > > > > > type='text'>Tennis with Beth</title><content > > > > type='text'>Meet for > > > > > > > a quick > > > > > > > > > > > lesson.</content><author><name>Venkata > > Nanduri</name><email> > > > > > > > > > > > [EMAIL PROTECTED] > > </email></author><gd:transparencyva > > > > > > > > > > > lue='http://schemas.google.com/g/2005#event.opaque' > > > > > > > > > > > <http://schemas.google.com/g/2005#event.opaque%27 > > > > > > > >></gd:transparency><gd:eventStatus > > > > > > > > > > > value='http://schemas.google.com/g/2005#event.confirmed' > > > > > > > > > > > <http://schemas.google.com/g/2005#event.confirmed%27> > > > > > > > > > > > ></gd:eventStatus><gd:wh > > > > > > > > > > > ere valueString='Rolling Lawn > > ... > > read more � --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
