Redian新闻
>
xmldocument and webservice question
avatar
xmldocument and webservice question# DotNet - 窗口里的风景
e*e
1
hello all,
I send an XmlDocument object as a parameter to a webservice. The document
contains some western European letters and they turn out to be question marks
after being received at the server side. How to resolve this?
Thanks a lot.
avatar
e*e
2
Anyone uses the WSE?
I think I v found the cause of the problem.
Since I am using DIME, the configuration has to include the following section:


y="1" group="0" />


If my request message has some dime attachments, then the document sent as
a

【在 e****e 的大作中提到】
: hello all,
: I send an XmlDocument object as a parameter to a webservice. The document
: contains some western European letters and they turn out to be question marks
: after being received at the server side. How to resolve this?
: Thanks a lot.

avatar
m*c
3
The culture parameter in your email is for the WSE assembly, of course you
couldn't change that. What you need change is the encoding and decoding of
your XML file which has a character set define in its header.

section:
type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Servi
WSE,though
See?
Norweigan
have
really
marks

【在 e****e 的大作中提到】
: Anyone uses the WSE?
: I think I v found the cause of the problem.
: Since I am using DIME, the configuration has to include the following section:
:
:
: : y="1" group="0" />
:

:

avatar
e*e
4
no, that is not the case.
the characters are lost during the transmission.

【在 m****c 的大作中提到】
: The culture parameter in your email is for the WSE assembly, of course you
: couldn't change that. What you need change is the encoding and decoding of
: your XML file which has a character set define in its header.
:
: section:
: type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Servi
: WSE,though
: See?
: Norweigan
: have

avatar
m*c
5
I know the characters are lost during the transmission. But what I mean in
last message is that
type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Services,Versi
on=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" priority="1"
group="0" />
is the signature of the WSE assembly. It is provided by the developer of WSE,
you couldn't change that. And culture neutral assembly could handle other
culture's files as well, it just depends on how you program this thing.
I am not q

【在 e****e 的大作中提到】
: no, that is not the case.
: the characters are lost during the transmission.

avatar
e*e
6
Thanks a lot.
Right, it is the signature and that explains.
If I don't attach anything to the SOAP message, then the characters are fine.
So I was suspecting this configuration might be the cause.
Still no solutions :(. Only bypassing is possible.

【在 m****c 的大作中提到】
: I know the characters are lost during the transmission. But what I mean in
: last message is that
: : type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Services,Versi
: on=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35" priority="1"
: group="0" />
: is the signature of the WSE assembly. It is provided by the developer of WSE,
: you couldn't change that. And culture neutral assembly could handle other
: culture's files as well, it just depends on how you program this thing.
: I am not q

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。