Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2005, 08:18 PM
Registered User
 
Join Date: Jan 2005
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!

Rich


Thanks,

Rich





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





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