473,807 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3126
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*******@discu ssions.microsof t.com> wrote in
message news:83******** *************** ***********@mic rosoft.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
14874
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
2
356
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 a static .lib version so he could give a customer a single .exe file for the "free version". Certain parts of my library are required to live inside a DLL.
12
2809
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 you are implementing in the class. Other than to resolve the problem that arises when a class implements two interfaces with the same method signature, what good is it?
4
8380
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 length or comma delimited, or even xml. This service should run in the background and only execute on the first of the month. If you have done this or know how to get this done, I would really appreciate the knowledge. Break Down of my Problem....
8
2585
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
3674
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 Axis and want to consume it with a .NET client. So I've created the web proxy using wsdl.exe and I can call the service and it responds but the client returns null. If I run a Java client then it gets the response fine and dandy. The web service...
1
7433
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 on dynamic SQL to export a series of table/views to CSV format, then zip the files up, then it creates an series of ftp commands to put the newly created zip file onto the relevent ftp server. The list of files and destination server are held in a...
2
3107
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 transactionStatement; import javax.xml.transform.TransformerFactory; import javax.servlet.*; import org.jdom.*; import java.io.ByteArrayOutputStream; import java.io.File;
1
2535
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 = "http://www.support-focus.com/customer-service-software.html"; $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)';
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
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...
1
10374
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,...
0
10112
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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
3
3011
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.