473,224 Members | 1,306 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,224 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 4196
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...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.