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

Web Method Return XmlDocument returns XmlNode


I developed a web method that returns type XmlDocument.

But a client calling the web method will only accept the datatype as
XmlNode.

Why?

--
http://www.texeme.com

Nov 21 '05 #1
1 7627
When a web service returns an XmlDocument, it maps on s:any in WSDL which in
turn maps on XmlNode in the generated proxy. If you want to work with an
XmlDocument in the consumer,
http://support.microsoft.com/default...b;en-us;330600 shows how.

Regards,
Sami

"John Bailo" <ja*****@earthlink.net> wrote in message
news:qw*****************@newsread1.news.pas.earthl ink.net...

I developed a web method that returns type XmlDocument.

But a client calling the web method will only accept the datatype as
XmlNode.

Why?

--
http://www.texeme.com

Nov 21 '05 #2

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

Similar topics

2
by: John Bailo | last post by:
I developed a web method that returns type XmlDocument. But a client calling the web method will only accept the return value as datatype XmlNode. Why? -- http://antimeme.texeme.com
1
by: Shawn | last post by:
Hi. I'm using a FileStream (instead of just the path to the xml file) to load an XmlDocument. I'm doing this because I need to be able to prevent other processes to update the file I'm working on....
2
by: Shailendra Batham | last post by:
hi gurus I have a asp.net web services and in that i have a function which returns XmlDocument as the return value, when I test the service it works fine and I can see the XML. When I try to...
2
by: Andrew Robinson | last post by:
I am attempting to create an XmlDocument object but keep getting "Object reference not set to an instance of an object" exceptions when I try to add elements or attributes. I don't have an...
3
by: Derrick | last post by:
I'm writing a read/write properties file, how do I simluate the AppSettings method to get/set a value? Thanks in advance!
1
by: mike malone | last post by:
I am creating a very simple web service the recieves a XMLDocument, massages the list and returns the document. The problem is that the return type declartion in referances of the client is a...
0
by: Matthew Copeland | last post by:
A little background. This is a VB.Net client application , and it uses a web reference to a web service, which has been properly refreshed. My app takes collections of two serializable...
1
by: sridev | last post by:
hi, i am new to xml can any one plz tell me how to change the root name in a xml. <NewDataSet> - <PersonInfo> <ID>3123</ID> <Person>Mohan</Person>
5
by: David Palau | last post by:
I'm looking for some guidance on what data type would work best as the result output of a web service function method. This web method will return an object that implements a class that is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.