RE: \r\n problem with SOAP and XmlDocument



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!

.



Relevant Pages

  • problem with SOAP and XmlDocument
    ... The problem is, when normal WCF clients call the WCF service, the SOAP ... when BizTalk calls the WCF ...
    (microsoft.public.biztalk.general)
  • wsHttpBinding WCF Adapter error
    ... I'm trying to access a WCF Service from BizTalk Orchestration through wsHttpBinding WCF Adapter. ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2004 - WCF basicHttpBinding
    ... We are using WCF service with BizTalk 2006 without any issues. ... Failed" error for both the service and the WSDL. ... > figure out a way to get BizTalk 2004 to consume these WCF services. ...
    (microsoft.public.biztalk.general)
  • WCF Service Validating Soap Header Username/Password
    ... I have a WCF service that can process a soap 1.2 message ... that it can vallidate a username/password supplied in the soap header). ... I am stiil not clear on how one can validate the soap header username and ...
    (microsoft.public.biztalk.general)