473,407 Members | 2,326 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,407 software developers and data experts.

Returning a XmlDocument from a Web Service

10
Hi all,
I have a web service with a method that returns a xml document, however, on the client side the result of the call to this method returns a XmlNode. If i look in the Reference.vb or the object browser for the reference the return type is specified there as being an XmlNode.

Although this isn't fatal i'd like the client program to be getting an XmlDocument back. Any ideas or pointers?

Thanks,
Paul.

WEBSERVICE:
Expand|Select|Wrap|Line Numbers
  1.     <WebMethod()> _
  2.     Public Function Calls(ByVal sCallID) As System.Xml.XmlDocument
  3.         Return DoCallHit(sCallID)
  4.     End Function
  5. ...
  6.     Private Function DoCallHit(ByVal sCallID As String) As XmlDocument
  7.         Dim xDoc As New XmlDocument
  8.         Dim node As XmlNode
  9.  
  10.         xDoc.Load(System.AppDomain.CurrentDomain.BaseDirectory() & "\App_Data\CallHitCreate.xml")
  11.         ' Reference
  12.         node = xDoc.SelectSingleNode("/SIDREQUEST/FIELD/ID[.='CALLG;CALLID']")
  13.         node.NextSibling.InnerText = sCallID
  14.  
  15.         Return xDoc
  16.     End Function
  17.  
REFERENCE.vb:
Expand|Select|Wrap|Line Numbers
  1. Public Function Calls(ByVal sCallID As String) As System.Xml.XmlNode
Mar 10 '08 #1
3 1231
Carona
10
http://support.microsoft.com/default.aspx?scid=kb;en-us;330600
Mar 10 '08 #2
Frinavale
9,735 Expert Mod 8TB
http://support.microsoft.com/default.aspx?scid=kb;en-us;330600
I take it you found the answer to your problem?

-Frinny
Mar 10 '08 #3
Carona
10
Yeah sorry, was in a bit of a rush when I posted the url so didn't add any explanation. It's not ideal but at least I won't waste time looking for how to do it!
Mar 13 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: SQLScott | last post by:
I have a Web Service in which I am trying to pass an XMLDocument as a parameter to one of the methods. I would like to use the XMLTextReader to read the XML but I am getting the following error: ...
2
by: Tarren | last post by:
Hi: What would be some standard convention to follow when writing web services for return types for .NET only data types? I initially wrote my web service that returns some XML as...
1
by: Joe Monnin | last post by:
I have a web service that takes an XmlDocument as a parameter, performs some processing on it, and saves it to a database. The web service signature looks similar to this: public void...
1
by: Ronchese | last post by:
Helllo. I need to return a XML from my WebService, but I'm not getting the result as a XML. I mean, instead of receiveing a tag (<xyy></xyz>), I'm receiving it encoded (with &lt; or &gt;). There is...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.