473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Webservice string problem

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&#xD;&#xA;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
Nov 18 '05 #1
1 1132

"Erik" <no*****@nospam.com> wrote in message
news:Ob**************@TK2MSFTNGP12.phx.gbl...
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
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a...
9
by: MMesich | last post by:
I've got an order entry webservice whose WSDL looks like this: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i don´t want to filter the return value of the method, i have to pass a new instance of the...
5
by: Stacey Levine | last post by:
I have a webservice that I wanted to return an ArrayList..Well the service compiles and runs when I have the output defined as ArrayList, but the WSDL defines the output as an Object so I was...
1
by: Nattydreadlock | last post by:
Hi, I've written an ASP.Net webservice which takes somes specific .net objects. Now I want to caal this service by PHP, which normally would be possible, after all that's the main reason of...
2
by: Jannicke | last post by:
Hi. I have a project that contains a webservice. To test my webservice I have another class in the same project. In the project I have added a webreference to my webservice. In my class file i call...
0
by: Rob C | last post by:
I have several methods implemented in a webservice written in C#. The methods execute SQL against a SQL Server 2005 db and returns a Dataset (as XML). I am utilizing the webservice from a VC++...
4
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.