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

Help with webservice to read, store data to and write xml using vb

I have a project that requires an XML webservice that will receive an xml
file. The webservice will need to read the XML file, download a pdf file from
a URL stored in the XML file then store the xml data to a SQL table and
finally send back an XML confirmation file.

I have researched several samples and can not find any that is even close to
this task.

Any help would be greatly appreciated.
Nov 23 '05 #1
2 4201
Hi,

some pseudo code:

public class MyWebSevice : WebService
{
[WebMethod]
public XmlDocument retrievePDF( XmlDocument input )
{
XmlDocument resultDocument = new XmlDocument();
string pdfFileURL = input.selectSingleNode({XPath to URL
of PDF file});

PDFFile myPDFFile = LoadPFDFromURL( pdfFileURL); //
What we gonna do with this file?

success = StoreToSQL( input );
resultDocument.loadXml(String.Format("<AllDone><su ccess>{0}</success></AllDone>",
success.ToString() ) );

return resultDocument;
}
Hope this helps,

Marvin Smit.
On Thu, 8 Sep 2005 16:01:03 -0700, AllenM
<Al****@discussions.microsoft.com> wrote:
I have a project that requires an XML webservice that will receive an xml
file. The webservice will need to read the XML file, download a pdf file from
a URL stored in the XML file then store the xml data to a SQL table and
finally send back an XML confirmation file.

I have researched several samples and can not find any that is even close to
this task.

Any help would be greatly appreciated.

Nov 23 '05 #2
Thanks Marvin... This will get me started.

Allen

"Marvin Smit" wrote:
Hi,

some pseudo code:

public class MyWebSevice : WebService
{
[WebMethod]
public XmlDocument retrievePDF( XmlDocument input )
{
XmlDocument resultDocument = new XmlDocument();
string pdfFileURL = input.selectSingleNode({XPath to URL
of PDF file});

PDFFile myPDFFile = LoadPFDFromURL( pdfFileURL); //
What we gonna do with this file?

success = StoreToSQL( input );
resultDocument.loadXml(String.Format("<AllDone><su ccess>{0}</success></AllDone>",
success.ToString() ) );

return resultDocument;
}
Hope this helps,

Marvin Smit.
On Thu, 8 Sep 2005 16:01:03 -0700, AllenM
<Al****@discussions.microsoft.com> wrote:
I have a project that requires an XML webservice that will receive an xml
file. The webservice will need to read the XML file, download a pdf file from
a URL stored in the XML file then store the xml data to a SQL table and
finally send back an XML confirmation file.

I have researched several samples and can not find any that is even close to
this task.

Any help would be greatly appreciated.

Nov 23 '05 #3

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

Similar topics

1
by: Julia | last post by:
Hi, I have basic questions regarding ASP.NET site I am going to use Microsoft application configuration block and I wonder 1.does caching read only data in the application can hurt ...
2
by: jmensch | last post by:
Hello. I'm a reasonably new ASP.NET programmer with no prior ASP or web development experience, but a lot of general programming experience. I'm using Visual Web Developer Beta Express 2005. ...
0
by: Sathya | last post by:
Hi, I have a vb.net webservice which takes XMLDocument as a parameter and returns bool. Signature of the method is some thing like this AddXmlEmpDetails(xmlEmp as XMLDocument) as Boolean. I...
2
by: SSS | last post by:
Hello there, I have to pass on some data to a webservice. I have the XML format with me. How is it passed usually? As a string or as an object? If an object is used, what are the methods used...
5
by: Steven Blair | last post by:
I need to write an ASP.NET application which can do the following: 1. Create a socket which will stay alive and continously read data. 2. The data read needs to be displayed on the webpage. 3....
2
by: Gary42103 | last post by:
Hi I need Perl Script to do Data Parsing using existing data files. I have my existing data files in the following directory: Directory Name: workfs/ams Data File Names: 20070504.dat,...
1
by: ruxhxNim | last post by:
Hi, I am new to webservice ,can anyone could help me out to know the code which help me to read xml file by using webservice. .XML file contains following type of tag (for eg.) <order> ...
2
by: itsmenarwal | last post by:
Hi everyone..... I read out the topic of how to pass a variable into another page using session.And mr.moderator have explained it with beauty.I apply this and it is working for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.