wso2 esb json到json转换双引号丢失 [英] wso2 esb json to json converting double quotes missing

查看:230
本文介绍了wso2 esb json到json转换双引号丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在wso2 esb中将json转换为json时遇到问题,实际上我在代理中使用有效负载工厂,并使用剩余内容和json内容调用该代理.这是我的集成流程,我调用一个代理,然后代理将请求(带有json内容)发送到jms消息存储,然后,我定义了一个消息处理器,以使用消息存储中的消息并将其发送到已定义的终结点(.net web api).但是问题是带有数字的字符串会自动转换为整数元素:"orderId":10000(我希望它是字符串"orderId":"10000"),但是当我直接从代理向我的端点发送请求时(没有使用消息代理)可以正常工作.您能帮我解决这个问题吗?

I have a problem in converting json to json in wso2 esb, actually I'm using payload factory in a proxy and I call the proxy with rest and json content. Here is my integration flow, I call a proxy and the proxy sends the request(with json content) to a jms message store then, I defined a message processor to consume messages from message store and send them to a defined endpoint(.net web api). but the problem is strings with numbers automatically get converted as integer elements: "orderId": 10000 ( I want it to be string "orderId": "10000") , but when I send the request directly from proxy to my end point (without using message broker) it works correctly. Could you please help me solve this problem?

推荐答案

有关更多详细信息,请参见 wso2吉拉

For more details refer to my question with more details on this problem, and looks like this is a bug in wso2 esb 4.9.0 wso2 jira

这篇关于wso2 esb json到json转换双引号丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆