yugalatea / gwt-google-apis

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

RPC calls from gadget fail #292

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
java 1.6.0
gwt 1.7.0
gwt-gadget 1.03

Detailed description:
I try to get the GadgetRPC demo running in iGoogle and wave sandbox. I fail
in both.

I suspect that the rpcUrl might be wrong, but couldn't find a spec for that.

I installed the gadget on
http://weblily.net/gadgetRPC/com.google.gwt.gadgets.sample.gadgetrpc.GadgetRPC/c
om.google.gwt.gadgets.sample.gadgetrpc.client.GadgetRPC.gadget.xml

The Error message I get is: RPC Failed:
com.google.gwt.user.client.rpc.StatusCodeException: <HTML>
<HEAD>
<TITLE>HTTP method POST is not supported by this URL</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>HTTP method POST is not supported by this URL</H1>
<H2>Error 405</H2>
</BODY>
</HTML>

In the wave sandbox the rcpUrl looks like this: 
//www-wave-opensocial.googleusercontent.com/gadgets/proxy/refresh=3600&container
=wave&gadget=http%3A%2F%2Fweblily.net%2FgadgetRPC%2Fcom.google.gwt.gadgets.sampl
e.gadgetrpc.GadgetRPC%2Fcom.google.gwt.gadgets.sample.gadgetrpc.client.GadgetRPC
.gadget.xml/http://weblily.net/gadgetRPC/com.google.gwt.gadgets.sample.gadgetrpc
.GadgetRPC/GadgetRPC

In iGoogle it looks like this (I stripped of the "www." part, otherwise I
get a SOP vialoation):
http://ig.gmodules.com/gadgets/proxy/refresh=3600&container=ig&gadget=http%3A%2F
%2Fweblily.net%2FgadgetRPC%2Fcom.google.gwt.gadgets.sample.gadgetrpc.GadgetRPC%2
Fcom.google.gwt.gadgets.sample.gadgetrpc.client.GadgetRPC.gadget.xml/http://webl
ily.net/gadgetRPC/com.google.gwt.gadgets.sample.gadgetrpc.GadgetRPC/GadgetRPC

Appreciate your help,

jofeux

Original issue reported on code.google.com by jof...@gmail.com on 17 Jul 2009 at 9:32

GoogleCodeExporter commented 9 years ago
This is a server side message. There is a proxy between the sample RPC server 
and 
the client, probably in the Wave sandbox or maybe the iGoogle sandbox.  It is
possible that one of those proxies doesn't proxy POST urls.

I've seen it before when a Java servlet  doesn't implement doPost().  Is there 
any
way for you to trace the webcontainer running on weblily.net to see if it is 
indeed
receiving the request and rejecting it?  

Original comment by galgwt.reviews@gmail.com on 17 Jul 2009 at 11:23

GoogleCodeExporter commented 9 years ago
I monitored the incoming traffic on weblily.net, but nothing showed up. So I 
think
the message is from the iGoogle proxy.

Does anyone know how to obtain a proper rpcUrl?

Meanwhile I found on the page
http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=GadgetsS
ampleApplications
a link to GadgetRPC. However this one doesn't work neither on iGoole nor in the 
wave
sandbox.

Here comes the link to the Gadget Manifest:
http://gwt.google.com/samples/GadgetRPC-1.0.2/com.google.gwt.gadgets.sample.gadg
etrpc.client.GadgetRPC.gadget.xml

Original comment by jof...@gmail.com on 17 Jul 2009 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 17 Jul 2009 at 6:05