Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Http协议方式,如何使用json序列化方式 #54

Closed
liuluo129 opened this issue Jun 13, 2014 · 5 comments
Closed

使用Http协议方式,如何使用json序列化方式 #54

liuluo129 opened this issue Jun 13, 2014 · 5 comments

Comments

@liuluo129
Copy link

文档上写的使用http协议时,默认使用json序列化,但是实际上请求头和响应头的content-type都是application/x-java-serialized-object,请求体和响应体也是类似java序列化的方式,想知道怎么才能使用json序列化方式呢

@dolt131943
Copy link

自行实现一个HTTP的JSON协议Protocol,类似Hessian和Dubbo。

@liuluo129
Copy link
Author

文档上不是说明是支持json的吗?而且源码里也已经有了HttpProtocol,不知道楼上是自己实现的吗?方便的话发份源码看看吗,我的邮箱liuluo129@163.com,谢谢

@dolt131943
Copy link

HttpProtocol你看看源代码就知道了,你看一下也就知道自己如何实现一个JSONRPCProtocol的协议了,不难,但使用非Dubbo的协议都存在一个问题,如何进行服务注册与服务发布?以及如何进行负载均衡等?

@atttx123
Copy link

atttx123 commented Dec 9, 2014

同求代码 @dolt131943
这个非dubbo协议主要是为了调试和测试使用的,不会上线服务

@diecui1202
Copy link

diecui1202 commented May 31, 2018

Hi, @liuluo129 Now you can try rest protocol: https://github.com/apache/incubator-dubbo-docs/blob/master/dubbo-user-book/rest.md

Feel free to reopen it if you also have any question.

@lovepoem lovepoem closed this as completed Jun 2, 2018
shareblitz pushed a commit to shareblitz/incubator-dubbo that referenced this issue Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants