I am trying to call ordinary servlet via spring (I am using gwt-sl
library and GWTHandler class) and requestbuilder in GWT (POST method).
When I am trying to do that without setting any header a get error:
1. Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-
rpc
so I am changing header Content-Type to text/x-gwt-rpc by
httpbuilder.setHeader("content-Type", "text/x-gwt-rpc");
but then I am get error :
2. Character Encoding is '(null)'. Expected 'charset=utf-8'
so I am trying like you suggest: httpbuilder.setHeader("content-Type",
"text/x-gwt-rpc; charset=utf-8");
but I get error:
3. encodedRequest cannot be empty
that is why I wanted to know header name for Character Encoding to be
not of the part content-type
but when I look closer to those errors numbers 1 and 2 comes from
com.google.gwt.user.server.rpc.RPCServletUtils
and number 3 from org.gwtwidgets.server.spring.GWTRPCServiceExporter
caused by com.google.gwt.user.server.rpc.RPC.decodeRequest
I am new at spring and GWT :)