473,795 Members | 3,002 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="d0bf7 c3a-5305-4020-be1f-75bcb23adab4"
MasterID="d8665 536-2ebe-4bd8-a176-9fc53ab8fadf"
ParentID="f5ea1 f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Fol der1"
ObjectTypeID="a fed7347-d07e-44b4-b467-3a15dbd8dfbc"
ObjectTypeName= "lblFolder" ObjectTypeIcons Name="folder"
TemplatePath="a bc.aspx" Children="161" ChildsVisibleIn Tree="1">

XML string after webservice transfer (browser):

<Node ObjectID=\"d0bf 7c3a-5305-4020-be1f-75bcb23adab4\"
MasterID=\"d866 5536-2ebe-4bd8-a176-9fc53ab8fadf\"
ParentID=\"f5ea 1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Fo lder1\"
ObjectTypeID=\" afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
ObjectTypeName= \"lblFolder\ " ObjectTypeIcons Name=\"folder\"
TemplatePath=\" abc.aspx.aspx\" Children=\"161\ " ChildsVisibleIn Tree=\"1\">

Example 2:

Before transfer:

<Node ObjectID="43d3b d44-4a53-4fdb-bf68-68bb679f0c60"
MasterID="e595f b24-3d6f-4ffb-a86f-3f97f90ee84f"
ParentID="d8665 536-2ebe-4bd8-a176-9fc53ab8fadf" ObjectName="a text.
Kompetenscentru m&#xD;&#xA;Erfa renheter och möjligheter"
ObjectTypeID="2 8f907bd-3981-4540-8bd4-3c673f8362ec"
ObjectTypeName= "lblDocumen t" ObjectTypeIcons Name="document" TemplatePath=""
Children="0" ChildsVisibleIn Tree="1" />

after:

<Node ObjectID=\"43d3 bd44-4a53-4fdb-bf68-68bb679f0c60\"
MasterID=\"e595 fb24-3d6f-4ffb-a86f-3f97f90ee84f\"
ParentID=\"d866 5536-2ebe-4bd8-a176-9fc53ab8fadf\" ObjectName=\"a text.
Kompetenscentru m Erfarenheter och möjligheter\"
ObjectTypeID=\" 28f907bd-3981-4540-8bd4-3c673f8362ec\"
ObjectTypeName= \"lblDocumen t\" ObjectTypeIcons Name=\"document \"
TemplatePath=\" \" Children=\"0\" ChildsVisibleIn Tree=\"1\"/>

Any clues?

Rgrds

Erik
Nov 18 '05 #1
1 1152

"Erik" <no*****@nospam .com> wrote in message
news:Ob******** ******@TK2MSFTN GP12.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="d0bf7 c3a-5305-4020-be1f-75bcb23adab4"
MasterID="d8665 536-2ebe-4bd8-a176-9fc53ab8fadf"
ParentID="f5ea1 f44-5cbf-44d9-846d-74a81ec57786" ObjectName="Fol der1"
ObjectTypeID="a fed7347-d07e-44b4-b467-3a15dbd8dfbc"
ObjectTypeName= "lblFolder" ObjectTypeIcons Name="folder"
TemplatePath="a bc.aspx" Children="161" ChildsVisibleIn Tree="1">

XML string after webservice transfer (browser):

<Node ObjectID=\"d0bf 7c3a-5305-4020-be1f-75bcb23adab4\"
MasterID=\"d866 5536-2ebe-4bd8-a176-9fc53ab8fadf\"
ParentID=\"f5ea 1f44-5cbf-44d9-846d-74a81ec57786\" ObjectName=\"Fo lder1\"
ObjectTypeID=\" afed7347-d07e-44b4-b467-3a15dbd8dfbc\"
ObjectTypeName= \"lblFolder\ " ObjectTypeIcons Name=\"folder\"
TemplatePath=\" abc.aspx.aspx\" Children=\"161\ " ChildsVisibleIn Tree=\"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
768
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 .NET Framework application, but just not on the .NET CF version. Can anyone suggest anything that might be wrong with the code? (I could post the app and webservice, but i was hoping that you might have noticed something from the supplied...
9
8271
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" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <OrderSubmit xmlns="http://tempuri.org/WebServices/beta"> <varCustNum>string</varCustNum> <varPassword>string</varPassword>
7
5406
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 filter-object without setting any properties. but the value type-properties can´t be null and the filter is set to 0 (int) or false (bool). therefore i did implement the propertySpecified-pattern like this:
5
19600
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 having a problem in the calling program. I searched online and found suggestions that I return an Array instead so I modified my code (below) to return an Array instead of an ArrayList. Now I get the message when I try to run just my webservice...
1
3592
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 existence for web services. I have three function:
2
1469
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 the webservice which should return a string value in the response. The problem is that the responsevalue is null even if the webmethod acts like it should do. I have debugged my code and when i debug the webmethod the return value is set correct,...
0
1378
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++ app by adding the web ref to the project which creates the header file for making the calls. I traced through the method call in my app and found the problem in the CAtlHttpClientT<TSocketClasstemplate implementation. The problem is happening in...
4
8062
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 potentially dangerous Request.Form value was detected from the client (myparam="<root><blah...."). --- The fix used for ASPX pages is to include the @Page directive with
2
3488
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 HttpWebRequest object. Under normal circumstances I am able to use the webservice without any problems. But after using an HttpWebRequest object to make a call to a website all subsequent attempts to use the WebService will fail with a 401...
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10439
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7541
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.