Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 18th, 2005, 08:18 PM
Registered User
Join Date: Jan 2005
Location: Las Vegas, NV, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Service returns xmlNode instead of xmlDocument!

I have a web service that I'm trying to return an xml document from. the webmethod signature is xmlDocument.

When I consume the service from an aspx page, the IDE allows me to assign the return value to a variable of type xmlDocument, then throws and invalid cast at runtime. When hovering over the webservice method call, intellisense indicates the return type is xmlNode.

For test purposes I'm trying to assign the document to and xml control on the page before making the document available to other internal consumers of the service.

Any ideas?

the consumption code would look like this:

dim MyXmlDoc as xmlDocument
MyXmlDoc = ws.GetData("1234") 'where 1234 is an id to look up via the service.

when the above line executes the error is thrown. The call to the web service itself is successful.

Many thanks!



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
XmlDocument SqlType.Xml batott ASP.NET 2.0 Professional 1 February 17th, 2008 05:48 PM
XmlDocument Vs StringBuilder anup_daware C# 4 February 8th, 2007 09:54 AM
ASP/XML Trying to delete a xmlnode Florian_mrt Classic ASP XML 1 March 20th, 2006 02:25 PM
xmldocument & xmlnode albusr .NET Web Services 2 December 20th, 2005 01:46 PM
Getting XPath Expression from XmlDocument ? boemane C# 3 August 31st, 2004 04:44 PM

All times are GMT -4. The time now is 03:59 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.