如何在Web服务调用中发送特殊字符? [英] How to send special character in web service call?

查看:140
本文介绍了如何在Web服务调用中发送特殊字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

H全部,

我有一个问题。我正在调用webservice并以XML格式发送数据。

当我调用Web服务时,我传递的值为

< XML>

< myname>

< / XML>



< myname>是用户在文本框中输入的值,当我发送数据然后我收到错误,我怎么能有特殊字符?

解决方案

由特殊字符你的意思是双引号或&符号吗?



http: //en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references [ ^

H All,
I have a issue. I am calling webservice and sending the data in XML form.
When i call the web service then i am passing the values as
<XML>
<myname>
</XML>

<myname> is the value entered by the user in textbox, When i send the data then i am getting the error, How can i special character?

解决方案

By "special character" do you mean something like an double quotation mark or ampersand?

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references[^]


这篇关于如何在Web服务调用中发送特殊字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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