RE: \r\n problem with SOAP and XmlDocument
- From: Thiago <Thiago@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 May 2008 15:53:00 -0700
Try
msgOutput = new XmlDocument();
msgOutput.LoadXml( "<root><child/></root>" );
msgOutput.PreserveWhitespace = true;
(I changed it from msgOutput.LoadFrom to msgOutput.LoadXml, I think that's
what you meant?)
Thiago Almeida
http://connectedthoughts.wordpress.com
"R3al1ty" wrote:
Hi folks,.
I have a WCF send port that is used to invoke WCF services. My BizTalk
message is an XmlDocument similar to below
<root><child/></root>
The problem is, when normal WCF clients call the WCF service, the SOAP
content is
<root>\r\n <child/>\r\n </root>
This works and all is well. However, when BizTalk calls the WCF
service, the SOAP content is
<root>\n <child/>\n </root>
The \r is missing and this prevents the xml from deserializing into my
object at the WCF service. Any clues on why this might be happening? I
create the message through an expression shape as follows:
msgOutput = new XmlDocument();
msgOutput.LoadFrom( "<root><child/></root>" );
My pipelines are all PassThru. Thanks!
- References:
- \r\n problem with SOAP and XmlDocument
- From: R3al1ty
- \r\n problem with SOAP and XmlDocument
- Prev by Date: RE: Help with dehydrated orchestrations
- Next by Date: Re: Processing Word documents
- Previous by thread: \r\n problem with SOAP and XmlDocument
- Next by thread: SQL Adapter DTC Issue
- Index(es):
Relevant Pages
|