BizTalk Server Orchestration - handling a xml-message as a string - problems with attributes

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2005 > handling a xml-message as a string - problems with attributes





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author handling a xml-message as a string - problems with attributes
Theo

2005-06-07, 7:52 am

Hi!

I am sending a message to a web service which takes the message as a string
and not as an xml-doc. I run into problems as the message contains
attributes, therefore additional " characters within the message. The web
service of course translates it as the end of the string, which is not true.
How can I in a simple way avoid this kind of problem? I could of course build
go through me entire xml message and replace " with \" but this seems quite
tedious when the number of attributes is big.

thanks,

//theo
Marvin Smit

2005-06-08, 7:47 am

Hi Theo,

Is the XML you are trying to send to the WebService originating from
an XML document or are you concatenating strings?

Using the .OuterXml method on a DOM document should generate a string
that does not mix " and ' characters. Thereby the receiving WebService
should have no problem reading this (entire) string and loading it
into a DOM on its side.

Regards,

Marvin Smit


On Tue, 7 Jun 2005 05:24:02 -0700, "Theo"
<Theo@discussions.microsoft.com> wrote:

>Hi!
>
>I am sending a message to a web service which takes the message as a string
>and not as an xml-doc. I run into problems as the message contains
>attributes, therefore additional " characters within the message. The web
>service of course translates it as the end of the string, which is not true.
>How can I in a simple way avoid this kind of problem? I could of course build
>go through me entire xml message and replace " with \" but this seems quite
>tedious when the number of attributes is big.
>
>thanks,
>
>//theo


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com