对您没有代码的外部服务进行 GWT RPC 调用
我想制作一个小程序,从支持 GWT 的第 3 方网站抓取信息。是否有可能以某种方式直接调用这个 RPC?我需要进行什么逆向工程才能做到这一点(即希望不是整个低级协议)。
我希望我能以某种方式从我自己的服务器端 GWT 或 Servlet 应用程序中调用它。
I would like to make a small program that scrapes information from a 3rd-party GWT-enabled website. Is it possible to somehow call this RPC directly? What would I need to reverse-engineer to do this (i.e. hopefully not the entire low-level protocol).
I am hoping I could somehow just call this from within my own server-side GWT or Servlet app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是可能的......但您必须仔细阅读他们的代码才能了解序列化/反序列化的工作原理。
感兴趣的类是
我正在尝试类似的学术项目,如果我能破译这些课程,我将添加更多信息。
It is possible... but you would have to go through their code to understand how the serialization/deserialization works.
Classes of interest are
I am trying out a similar thing as an academic project, and I will add more information if I can decipher these classes.
我很确定,出于安全考虑,GWT 使跨站点请求变得困难。
您提出的任何解决方案都可能很糟糕(并且对未来的变化不灵活),并且由于您可能是在未经相关网站同意的情况下这样做的,因此一开始可能是一个坏主意。
是否有某种原因导致您无法要求网站使用 REST API 发布其数据?
I'm pretty sure GWT makes it difficult to do cross-site requests, for the sake of security.
Any solution you come up with will probably be hacky (and not flexible to future changes), and since you're presumably doing it without the consent of the site in question, probably a bad idea to begin with.
Is there some reason you can't ask the site to publish their data using a REST API?