You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can follow the [Quick Start](https://github.com/alibaba/tengine/tree/master/modules/mod_dubbo#quick-start) guide in Tengine with the configuration above for testing.
95
95
96
-
Dubbo returns data in the form `Map<String, String>`.
96
+
APISIX dubbo plugin uses `hessian2` as the serialization protocol. It supports only `Map<String, Object>` as the request and response data type.
97
+
98
+
### Application
99
+
100
+
Your dubbo config should be configured to use `hessian2` as the serialization protocol.
101
+
102
+
```yml
103
+
dubbo:
104
+
...
105
+
protocol:
106
+
...
107
+
serialization: hessian2
108
+
```
109
+
110
+
Your application should implement the interface with the request and response data type as `Map<String, Object>`.
If you need to pass request data, you can add the data to the HTTP request header. The plugin will convert the HTTP request header to the request data of the Dubbo service. Here is a sample HTTP request that passes `user` information:
0 commit comments