thanks. both request.vars and response.body.read() are empty. I'm calling my function: http://127.0.0.1:8000/init/default/call.jsp
I think it must be something in my Java GWT app that's not setting something for Web2py to identify that there is json data. On 7 June 2013 20:16, Niphlod <[email protected]> wrote: > if you're using recent web2py releases, that are able to parse POST vars > encoded in json, you should have them in request.vars as usual. Otherwise, > see response.body.read() > > On Friday, June 7, 2013 5:24:44 PM UTC+2, Carl wrote: >> >> From a GWT app I'm calling my Web2py server app. >> >> String jsonData = "{'example' : 'example data'}"; >> builder.setHeader("Accept", "application/json"); >> builder.setHeader("Content-**type", "application/json"); >> builder.setHeader("Content-**length", Integer.toString(jsonData.** >> length())); >> builder.sendRequest(jsonData, new RequestCallback() { ... } >> >> Where in Web2py can I access jsonData? >> I've looked thru 'request' but can't locate "example data". >> >> >> >> -- > > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/VM2rOQqQBmQ/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

