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.