473,666 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4214
Hi,

some pseudo code:

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

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

success = StoreToSQL( input );
resultDocument. loadXml(String. Format("<AllDon e><success>{0} </success></AllDone>",
success.ToStrin g() ) );

return resultDocument;
}
Hope this helps,

Marvin Smit.
On Thu, 8 Sep 2005 16:01:03 -0700, AllenM
<Al****@discuss ions.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.selectSin gleNode({XPath to URL
of PDF file});

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

success = StoreToSQL( input );
resultDocument. loadXml(String. Format("<AllDon e><success>{0} </success></AllDone>",
success.ToStrin g() ) );

return resultDocument;
}
Hope this helps,

Marvin Smit.
On Thu, 8 Sep 2005 16:01:03 -0700, AllenM
<Al****@discuss ions.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
1343
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 performance when multiple request arrived? (multiple pages read the cached data) 2.Instead of caching the data inside the Application dictionary can I use a
2
2124
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. I'm trying to find a way to store data in the URL of my pages. I know that SessionState does this if you go cookieless, and that's useful but it's not what I want because the real data is stored on the server, and only an ID code is
0
1820
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 am able to call this method from vb.net desktop client and add a record to the database(this I used to test if there is any problem in the webservice). My main requirement is to create a C++(native dll) wrapper what is recognized by a non...
2
1194
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 for creating such object? Also would like to know how an XML file is received from a web service and how to read it. Thanks!!
5
2051
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. As the data is received, it needs to be displayed as its received. I have made an attempt, but hit a problem. Here is a brief overview of the attempt:
2
2426
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, 20070503.dat, 20070502.dat In each of above data files there will be some millions of records. So my job is read those data files and also read first 3 letters of each record in all above data files and write into new data files.For example
1
1463
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> <Item1></Item1> <Item2></Item2> </order> Thanks in advance.
2
2311
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 me..Can anyone give such a good explaianation for cookie also..How to store data in cookie,destoy cookie etc un ,php page .I read out it from w3schools.com but i dont know how to implement that.Like session(how to pass varible through page) plz also...
0
8871
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8552
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
8640
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6198
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
5666
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();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2773
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
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1776
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.