By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,679 Members | 1,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,679 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.