sheharyaar commented on issue #10648: URL: https://github.com/apache/apisix/issues/10648#issuecomment-1891724785
Hi @mayunSaicmotor , the datatype for your function argument in the implementation should also be `Map<string, Object>`. I was able to run your project with this change. Here is a complete order of changes : 1. `application.yml` should use hessian2 as the serialization protocol :  2. Here is the interface declaration :  3. Here is the interface implementation :  **Here are a points to note :** - The headers passed via curl/postman will be served as Map<String, Object> to the program. - If you pass the data in header, you can directly use that using get() as in the picture, but if you pass the data via body, that data is hessian2 encoded, so you must first decode that too. Here is the format of the received Map<String, Object> :  Here is a successful running of your program :  As you can see you will receive the response as Map<String, Object> along with the headers. (Refer : https://apisix.apache.org/docs/apisix/plugins/dubbo-proxy/#example-usage) I think the following changes should be made to the APISIX docs : - Support of Map<String, Object> only - Use of serialization protocol as `hessian2` - Passing the data in header / body (with the need to decode using hessian2) I hope now we can close the issue. For support of other data types, please open a feature-request -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
