Java – how to send gwt-rpc requests using httpclient?

I use the Apache HTTP client API to send HTTP requests, which so far uses standard requests Now I want to send a gwt-rpc request and display the response, but I always receive the following error from the gwt-rpc server:

//EX[2,1,"com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533","This application is out of date,please click the refresh button on your browser. ( Malformed or old RPC message received - expecting version 5 )"],5]

In fact, I have to send the following data and requests:

5|0|5|http://172.16.103.244:38081/kunagi/scrum.ScrumGwtApplication/|6E611C647A0C98D5A31A2506E16D81D6|scrum.client.ScrumService|startConversation|I|1|2|3|4|1|5|-1|

But I don't know what to do

When I retrieved the request code from firebug, I found the above data as a source in the post area

Solution

Look at the GWT syncproxy project It fully meets your requirements and forges RCP calls from Java code If you don't want to rely on a project on GWT syncproxy, you can look at its implementation and learn how to create a valid request

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>