Webservice string problem

E

Erik

Does anyone know why this happens? When returning the XML string through the
webservice the XML string is filled with escape characters:

XML string before webservice transfer:

<Node ObjectID="d0bf7c3a-5305-4020-be1f-75bcb23adab4"
MasterID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf"
ParentID="f5ea1f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Folder1"
ObjectTypeID="afed7347-d07e-44b4-b467-3a15dbd8dfbc"
ObjectTypeName="lblFolder" ObjectTypeIconsName="folder"
TemplatePath="abc.aspx" Children="161" ChildsVisibleInTree="1">

XML string after webservice transfer (browser):

<Node ObjectID=\"d0bf7c3a-5305-4020-be1f-75bcb23adab4\"
MasterID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\"
ParentID=\"f5ea1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Folder1\"
ObjectTypeID=\"afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
ObjectTypeName=\"lblFolder\" ObjectTypeIconsName=\"folder\"
TemplatePath=\"abc.aspx.aspx\" Children=\"161\" ChildsVisibleInTree=\"1\">

Example 2:

Before transfer:

<Node ObjectID="43d3bd44-4a53-4fdb-bf68-68bb679f0c60"
MasterID="e595fb24-3d6f-4ffb-a86f-3f97f90ee84f"
ParentID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf" ObjectName="a text.
Kompetenscentrum
Erfarenheter och möjligheter"
ObjectTypeID="28f907bd-3981-4540-8bd4-3c673f8362ec"
ObjectTypeName="lblDocument" ObjectTypeIconsName="document" TemplatePath=""
Children="0" ChildsVisibleInTree="1" />

after:

<Node ObjectID=\"43d3bd44-4a53-4fdb-bf68-68bb679f0c60\"
MasterID=\"e595fb24-3d6f-4ffb-a86f-3f97f90ee84f\"
ParentID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\" ObjectName=\"a text.
Kompetenscentrum Erfarenheter och möjligheter\"
ObjectTypeID=\"28f907bd-3981-4540-8bd4-3c673f8362ec\"
ObjectTypeName=\"lblDocument\" ObjectTypeIconsName=\"document\"
TemplatePath=\"\" Children=\"0\" ChildsVisibleInTree=\"1\"/>

Any clues?

Rgrds

Erik
 
H

Hans Kesting

Erik said:
Does anyone know why this happens? When returning the XML string through the
webservice the XML string is filled with escape characters:

XML string before webservice transfer:

<Node ObjectID="d0bf7c3a-5305-4020-be1f-75bcb23adab4"
MasterID="d8665536-2ebe-4bd8-a176-9fc53ab8fadf"
ParentID="f5ea1f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Folder1"
ObjectTypeID="afed7347-d07e-44b4-b467-3a15dbd8dfbc"
ObjectTypeName="lblFolder" ObjectTypeIconsName="folder"
TemplatePath="abc.aspx" Children="161" ChildsVisibleInTree="1">

XML string after webservice transfer (browser):

<Node ObjectID=\"d0bf7c3a-5305-4020-be1f-75bcb23adab4\"
MasterID=\"d8665536-2ebe-4bd8-a176-9fc53ab8fadf\"
ParentID=\"f5ea1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Folder1\"
ObjectTypeID=\"afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
ObjectTypeName=\"lblFolder\" ObjectTypeIconsName=\"folder\"
TemplatePath=\"abc.aspx.aspx\" Children=\"161\" ChildsVisibleInTree=\"1\">


Any clues?

Rgrds

Erik

How did you see that string after transfer? In the debug window? In that
case
there is no problem, this window just *displays* the string in "escaped"
format.
Try getting the stringlength before and after transfer and see if indeed
lots of
characters have been added.

Hans Kesting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top