473,383 Members | 1,891 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,383 software developers and data experts.

What caused return from XML Web Service to change output format?

I wrote a visual Basic .net xml web service that returns xml information back
to a classic ASP page. When the classic ASP page receives the response, the
xml has been returned in a format that that is setup to be read in an HTML
format.
In other words the format should look like:
<tag /tag>.

Has been changed to the following format:

&lt &gt;

This occurs when the response is sent to the asp (classic vb script page)
in a soap packet.

The visual basic .net code is:

<webmethod()>
function string valdata (passdata as data1) as string
dim results as string
node as system.xml
results = node.innerxml
return results
end function

Class data1
dim item1 as string
dim item2 as string
dim item3 as string
end class

Would you let me know what could have caused the format to change?

Thanks,

Wendy Elizabeth?
Nov 21 '05 #1
1 3106
Returning a string causes the XML within the string to be "escaped".,
resulting in the transformation of < to &lt; and > to &gt;

This is generally undesirable and unnecessary.

If you want to return just plain XML, then return an XmlNode, not a string
(eg, node.innerxml).

See this for more:
http://blogs.msdn.com/mpowell/archiv...12/130637.aspx

-Dino
--
Dino Chiesa
Microsoft Developer Division
d i n o c h @ OmitThis . m i c r o s o f t . c o m

"Wendy Elizabeth" <Wendy El*******@discussions.microsoft.com> wrote in
message news:83**********************************@microsof t.com...
I wrote a visual Basic .net xml web service that returns xml information
back
to a classic ASP page. When the classic ASP page receives the response,
the
xml has been returned in a format that that is setup to be read in an HTML
format.
In other words the format should look like:
<tag /tag>.

Has been changed to the following format:

&lt &gt;

This occurs when the response is sent to the asp (classic vb script page)
in a soap packet.

The visual basic .net code is:

<webmethod()>
function string valdata (passdata as data1) as string
dim results as string
node as system.xml
results = node.innerxml
return results
end function

Class data1
dim item1 as string
dim item2 as string
dim item3 as string
end class

Would you let me know what could have caused the format to change?

Thanks,

Wendy Elizabeth?

Nov 21 '05 #2

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: Nobody | last post by:
Let me start off with a brief overview... This part is not really important, just saying what its for... I had been working on a Windows GUI library (DLL) when suddenly my boss told he wanted...
12
by: Steve W. | last post by:
I just read the section (and did the exercise) in the C# Step by Step book that covers Explict Interface Implementation (where you specify in the method implementation the specific interface that...
4
by: Tim | last post by:
I need to create a C# service that will run a stored procedure which returns a result set. From there I need to create a file using the result set in a specific format. The format could be fixed...
8
by: FS Liu | last post by:
Hi, I am writing ATL Service application (XML Web service) in VS.NET C++. Are there any sample programs that accept XML as input and XML as output in the web service? Thank you very much.
1
by: BeckyB00 | last post by:
Slightly different situation from the question of the 11/18/05 but the same error. (I'm just learning about web services so this is based on a 'quick tutorial') I'm running a web service using...
1
by: leescriven | last post by:
Hi, Thi is my first post on this forum, and I'm hoping that there is a guru out there who can help me with an annoying problem I am having. I have written a Stored Procedure that relies heavily...
2
by: crabsdf | last post by:
My project is a single method class which takes a xml object and, using Apache FOP, transforms it into a PDF which is returned as an output stream. Here is full code package...
1
by: jeddiki | last post by:
I am using curl and DOMDocument to extract the links from my website. This is my script: require("my_functions.php"); $target_url =...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.