Hi:
Thanks for getting back with me!
My real problem is this error message:
Error1'ConsoleApplication1.WebService1.Service1' does not contain a definition for 'WriteData' and no extension method 'WriteData' accepting a first argument of type 'ConsoleApplication1.WebService1.Service1' could be found (are you missing a using directive or an assembly reference?)C:\Users\timmcd\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs2024ConsoleApplication1
Thanks for listening!!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using ConsoleApplication1.WebService1;
using System.Xml;
namespace Database_Connection_Application
{
class Program
{
static void Main(string[] args)
{
Service1 webService = new Service1();
XmlDocument doc = new XmlDocument();
doc.Load(@"C:\\Users\\timmcd\\XML_INPUT\\WORKFLOW.xml");
webService.WriteData(doc);
Console.ReadLine();
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Data.SqlClient;
using System.Xml;
using System.Text;
namespace WebService1
{
/// <summary>
/// Summary description for Service1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class Service1 : System.Web.Services.WebService
{
SqlConnection con = null;
SqlDataAdapter adap = null;
DataSet ds = null;
[WebMethod]
public void WriteData(XmlDocument doc)
{
//PARSE XML AND INSERTS TO SQL TABLE GOES HERE
}
}
}