在查询方法中无法解析xml字符串? [英] Can't parse xml string in query method?

查看:86
本文介绍了在查询方法中无法解析xml字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是设计还是错误?

现在,我必须对xml参数进行编码并在服务器端进行解码。

For now, I have to encode the xml parameter and decode in server side.

推荐答案

Ryan,

xml类型不作为查询参数直接支持。 如果要将xml数据作为查询参数传递,则必须将其序列化为字符串并将其作为字符串参数传递给查询。

xml types are not directly supported as query parameters.  If you want to pass xml data as a query parameter, you will have to serialize it into a string and pass it as a string parameter to the query.


这篇关于在查询方法中无法解析xml字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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