473,851 Members | 2,297 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create a web service using an existing XML file in VB.Net

Hello,

I've an XML file that i would like to use in creating a web service. I have
already set up the IIS server and i can run a sample web service.

I tried creating a function so that when the web service is invoked, it will
display the content of my XML file.

Do anyone know what i can do to resolve this issue. Any help will be
greatly appreciated...

Many Thanks......... .
Nov 21 '05 #1
4 1203
Hi,

Try something like this

<WebMethod()> _

Public Function ReturnXml() As DataSet

Dim ds As New DataSet

ds.ReadXml("C:\ temp.xml")

Return ds

End Function

Ken

-------------------------------

"Ish2000" <Is*****@discus sions.microsoft .com> wrote in message
news:FF******** *************** ***********@mic rosoft.com...
Hello,

I've an XML file that i would like to use in creating a web service. I have
already set up the IIS server and i can run a sample web service.

I tried creating a function so that when the web service is invoked, it will
display the content of my XML file.

Do anyone know what i can do to resolve this issue. Any help will be
greatly appreciated...

Many Thanks......... .

Nov 21 '05 #2
Hi,

Try something like this

<WebMethod()> _

Public Function ReturnXml() As DataSet

Dim ds As New DataSet

ds.ReadXml("C:\ temp.xml")

Return ds

End Function

Ken

-------------------------------

"Ish2000" <Is*****@discus sions.microsoft .com> wrote in message
news:FF******** *************** ***********@mic rosoft.com...
Hello,

I've an XML file that i would like to use in creating a web service. I have
already set up the IIS server and i can run a sample web service.

I tried creating a function so that when the web service is invoked, it will
display the content of my XML file.

Do anyone know what i can do to resolve this issue. Any help will be
greatly appreciated...

Many Thanks......... .

Nov 21 '05 #3
Ish,

Where do you want to show the XML file (windowforms or webpages)?

However see this walkthrough, they are both in that.

http://msdn.microsoft.com/library/de...alkthrough.asp

I hope this helps?

Cor
Nov 21 '05 #4
Ish,

Where do you want to show the XML file (windowforms or webpages)?

However see this walkthrough, they are both in that.

http://msdn.microsoft.com/library/de...alkthrough.asp

I hope this helps?

Cor
Nov 21 '05 #5

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

Similar topics

5
980
by: Bill Hauver | last post by:
I am attempting to use a web service from my work pc which is behind a firewall. I have used wsdl.exe to create the web service reference class and added it to my project. (this seems to work without a hitch). Before I use this class, I make the necessary calls to instantiate a WebProxy class and then pass in my credentials to set the WebProxy.Credentials property so I can get through the proxy server.
11
1934
by: Mr. B | last post by:
I've an application in which I use to check out the date/time stamp of a data base... and if I find that it has been updated, my application runs and does a particular update. Currently I fire off my application hourly useing the built in XP Scheduler. What I am going to do is to have my application check every minute while it is running as I don't want to have to wait up to a hour for my particular update to happen....
0
1046
by: PeterS | last post by:
I am trying to create new web service for existing schema by using BizTalk Web Services Publishing Wizard. By clicking create button I got the following error message Web Access Failed The default Web access mode for this project is set to file share, but the project folder at ‘http://localhost/AccidentInvest_Info' cannot be opened with the path ‘C:\Solution\Accident Solution\Accident Solution\AccidentInvest_Info'. The error returned was:...
0
226
by: Ish2000 | last post by:
Hello, I've an XML file that i would like to use in creating a web service. I have already set up the IIS server and i can run a sample web service. I tried creating a function so that when the web service is invoked, it will display the content of my XML file. Do anyone know what i can do to resolve this issue. Any help will be greatly appreciated...
6
3385
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free) I installed FrontPage server extensions to IIS on my computer while following instructions in a Microsoft ASP.Net MCSD training book. After installing the FrontPage Server Extensions I cannot create a new
0
2195
by: pwilliams | last post by:
NCOALink Change of Address Verification Each year over 40 million Americans change their mailing addresses. This change is equivalent to every person in California deciding to change addresses and not tell you that they have moved. This uncertainty results in wasted spending on undeliverable address mail, returned mail and processing fees related to direct mail campaigns. NCOALink solves this problem for you. NCOALink provides you...
15
5287
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to show - text boxes, input boxes, buttons, hyperlinks ie the usual. The data is not obtained directly from a database.
5
2569
by: cj | last post by:
Back some time ago I was playing with a little app in VB 2005 that used a google web service to get search results. I was rebuilding this app in 2008 today. I added the web service http://api.google.com/googlesearch.wsdl and then down in the code I was typing Dim myGoogle As New Google.GoogleSearchService only to find GoogleSearchService was no longer a method. I looked on google for documentation and it appears they no longer offer...
11
5395
by: Mark B | last post by:
I want to display a pre-designed graphical 'performance badge' on certain webpages (round, about 2cm diameter) next to a salesperson's details. I have a function, fGetPerformanceGrade(SalesPersonID as Long) as String to retrieve that salesperson's grade (e.g. A+, A, A-, B+, B... D). Also one other function, fGetMonthlySales(SalesPersonID as Long) as String to get their sales figure, e.g. "$87K". I want web visitors to be able to click...
0
9895
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10670
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10725
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7900
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4142
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.