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

Why lose header XMLdeclaration and proccesing instruccion XSL?

Hi,

I have a WebServices in ASP.NEt VisualBasic, the declaration of the method
is :
Public Function saveDocumentXML(ByVal pvXmlDocument As Xml.XmlDocument) As
String

And i call to this method with a webreference in this way:
Dim myString as String = myWS.saveDocumentXML(myXMlDocument)

Wherein myXmlDocument is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="testlayer24.xsl"?>
<testlayer>
<text1>Text test1</text1>
<text12>Text test12</text12>
<text2>Text test2</text2>
<text22>Text test22</text22>
<text3>Text test3</text3>
<text32>Text test32</text32>
</testlayer>

But in the webservices i receive:
<testlayer xmlns="">
<text1>Text test1</text1>
<text12>Text test12</text12>
<text2>Text test2</text2>
<text22>Text test22</text22>
<text3>Text test3</text3>
<text32>Text test32</text32>
</testlayer>

This means that i ve lost the header of the XML in the WebServices, the
declaration and the Xsl transformation reference.
Anyone knows why? What is wrong?

Thanks,
Pikulo.

Nov 21 '05 #1
1 1162
this multi-post was answered elsewhere.

"Piculo" <PakPiculo(NoSPam.at)gmail.com> wrote in message
news:uS**************@TK2MSFTNGP15.phx.gbl...
Hi,

I have a WebServices in ASP.NEt VisualBasic, the declaration of the method
is :
Public Function saveDocumentXML(ByVal pvXmlDocument As Xml.XmlDocument) As
String

And i call to this method with a webreference in this way:
Dim myString as String = myWS.saveDocumentXML(myXMlDocument)

Wherein myXmlDocument is something like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="testlayer24.xsl"?>
<testlayer>
<text1>Text test1</text1>
<text12>Text test12</text12>
<text2>Text test2</text2>
<text22>Text test22</text22>
<text3>Text test3</text3>
<text32>Text test32</text32>
</testlayer>

But in the webservices i receive:
<testlayer xmlns="">
<text1>Text test1</text1>
<text12>Text test12</text12>
<text2>Text test2</text2>
<text22>Text test22</text22>
<text3>Text test3</text3>
<text32>Text test32</text32>
</testlayer>

This means that i ve lost the header of the XML in the WebServices, the
declaration and the Xsl transformation reference.
Anyone knows why? What is wrong?

Thanks,
Pikulo.

Nov 21 '05 #2

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

Similar topics

18
by: Frank Thorstens | last post by:
Hi, i try to give my script headers so the output text would be downloaded in the client's browser and not displayed. But it doesn't work at all in my IE 6 and Opera. <?...
10
by: Margaret MacDonald | last post by:
I'm seeing a problem that has me flummoxed. The only thing I can think of is that I'm violating some rule I don't know about. I have some code that does some processing and then does a...
6
by: John | last post by:
Hi. I am having a few header problems at the moment with a login page. I don't have my headers at the top of the page where I've learned I need to have them. However, I also know I'm supposed...
6
by: Mica Cooper | last post by:
Hi, I have a series of Select menus on a page. I am trying to allow the user to click on the Select title and have it popup a help window. This works fine with the following code except that all...
6
by: Jason Collins | last post by:
There seems to be an inconsistency (bug?) in the way the Set-Cookie header is handled by the WebHeaderCollection. That is, the values of Set-Cookie, when an Expires is specified, contain the ","...
7
by: Nadav | last post by:
Hello, When I create an XML header using this code: XmlDeclaration header = doc.CreateXmlDeclaration("1.0", "UTF-8", null); XmlElement rootElement = doc.DocumentElement; ...
82
by: robert bristow-johnson | last post by:
here is a post i put out (using Google Groups) that got dropped by google: i am using gcc as so: $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure...
3
by: =?Utf-8?B?bGVzbGllIGVsZHJpZ2U=?= | last post by:
Hi, I am using TAB control with 2 tab pages. First tab page contains a tree view and second also a tree view control. If I select any node of first tree view on the first tab page and then go to...
2
by: chike_oji | last post by:
Please can someone help me. I am writing a web application, that allows for the upload of an excel sheet into the database. I have an upload button and a save button. The upload button allows...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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,...
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,...

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.