有一个问题,通过WCF发送XML? [英] Is there an issue sending XML via WCF?

查看:94
本文介绍了有一个问题,通过WCF发送XML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设你有一个的XElement或XmlElment,甚至包含要通过WCF发送XML字符串。有什么特别的precautions你必须要?现在的问题只是上来的时候,XML消息中,你发送一个XML文档声明会发生什么(小于?XML版本='1.0'>),如果序列可能发生的一个XmlDocument ...

Suppose you have an XElement or an XmlElment or even a string containing xml that you want to send via WCF. Are there any special precautions you have to take? The question just came up, what happens when, within the xml message, you transmit an xml document declaration (<?xml version=’1.0’ ?>), which may happen if serializing an XmlDocument...

推荐答案

我哈得没问题发送XML作为字符串与WCF。如果你的XML超过几KB,则必须修改客户端和放大器;服务器,允许更大的数据量

I hade no problem sending XML as a string with WCF. If your XML exceed a few Kb, you must make changes in client&server to allow larger data amounts.

这篇关于有一个问题,通过WCF发送XML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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